Skip to navigation

Get the fields of a trigger or step type

View as Markdown

Returns the JSON Schema of one trigger type or step type listed by GET /automation/catalog: its fields, which ones are required and their allowed values.

For a trigger, the fields go next to type in the trigger object. For a step, they go in an object named after the step type, for example {"id": "mail", "type": "send_email", "send_email": {"template_id": 12}, "next": null}.

A field with x-lookup takes an ID from another resource. The value names that lookup: lists_get_lists is GET /contacts/lists, segments_get_segments is GET /contacts/segments, attributes_get_attributes is GET /contacts/attributes, templates_get_smtp_templates is GET /smtp/templates, transac_templates_get_sms_templates is GET /transactionalSMS/templates, senders_get_senders is GET /senders and automation_list_workflows is GET /automation/workflows.

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

OR
AuthorizationBearer

OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.

Path parameters

typestringRequiredformat: "^[a-z][a-z0-9_]{0,63}$"

A trigger type or step type, exactly as listed by GET /automation/catalog (for example send_email, start_another_workflow, go_to_step, percentage_split). A type the catalog does not list is answered with 404.

Response

Schema of the type
titlestringOptional
The type name
descriptionstringOptional
What the trigger or step does
x-kindenumOptional
trigger or step
Allowed values:
typestringOptional
Always object
propertiesmap from strings to anyOptional
The fields of the trigger or step object, as JSON Schema
requiredlist of stringsOptional
Fields that must be sent
additionalPropertiesbooleanOptional
Always false. Unknown fields are refused.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error