Automations

List automation actions

Changed on

Returns the operations in an automation workflow. Each object in the response represents an action or 'tile' in the automation builder.

This endpoint returns up to 10 actions at a time. If there is another page of results, the response will include a next string. Pass this string as the start parameter to get the next page of results.

You get the actions that have content, like messages, attribute updates, and events—not delays or flow control blocks like t/f branches.

If a message block contains multiple languages, this endpoint returns an object for each language variant. Each language variant includes the multi_language_branch_action_id property with the same value. Use this id to retrieve metrics for each language variant in a single request through Get automation action metrics.

get/v1/campaigns/{campaign_id}/actions

Request

  • Base URL
    https://api.customer.io
  • URL
    https://api.customer.io/v1/campaigns/{campaign_id}/actions
  • Auth
    HTTP bearer

Response

Returns automation actions. Each object represents an individual action.

nextstring

Indicates the next page of results. Add ?start=<next_value> to the request to get the next page of results.

Example response

{
  "actions": [
    {
      "id": 96,
      "broadcast_id": 2,
      "deduplicate_id": "15:1492548073",
      "name": "Opening Message",
      "created": 1552341937,
      "updated": 1552341937,
      "language": "fr",
      "from": "sentFrom@example.com",
      "from_id": 1,
      "reply_to": "replyto@example.com",
      "reply_to_id": 38,
      "recipient": "{{customer.email}}",
      "subject": "Did you get that thing I sent you?",
      "campaign_id": 5,
      "parent_action_id": 1,
      "multi_language_branch_action_id": 23,
      "headers": "[{\"name\":\"X-Mailgun-Tag\",\"value\":\"my-cool-tag\"},{\"name\":\"X-Custom-Header\",\"value\":\"custom-value\"}]"
    }
  ]
}

Changes

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the media type application/json for the response with the status