Skip to main content
GET
/
trigger_templates
/
{id}
Retrieve a trigger template
curl --request GET \
  --url https://api.pocketflows.com/trigger_templates/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "trigger": {
    "id": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "name": "<string>",
    "project_defined_event": "<string>",
    "internal_event_definition": {
      "type": "customer_created",
      "segment": "<string>"
    },
    "trigger": "<string>",
    "steps": [
      {
        "type": "email",
        "custom_step_id": "<string>",
        "email_template_id": "<string>"
      }
    ],
    "status": "draft",
    "filter": "<string>",
    "email_address": "<string>",
    "phone_number": "<string>",
    "attributed_revenue": 123,
    "statistics": {
      "total_customers_enrolled": 123,
      "total_customers_started": 123,
      "total_customers_finished": 123,
      "emails": {
        "sent": 123,
        "delivered": 123,
        "opened": 123,
        "soft_bounced": 123,
        "hard_bounced": 123,
        "clicked": 123
      },
      "custom_steps": [
        {
          "custom_step": "<string>",
          "sent": 123
        }
      ]
    }
  },
  "enabled": true
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the trigger template

Response

200 - application/json

The retrieved TriggerTemplate

id
string
required

The ID of the trigger template

title
string
required

The title of the trigger template

description
string
required

The description of the trigger template

trigger
object
required

The trigger that will get created when the trigger template is used as a base

enabled
boolean
required

Whether the trigger template is enabled

I