Browse docs

Automations

List

GET/automations

includeArchived
In the query: true or false. Default false.
curl "http://app.telltailhq.com/api/v1/automations" \
  -H "Authorization: Bearer tt_pat_your_token"

Stats

GET/automations/stats

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/stats" \
  -H "Authorization: Bearer tt_pat_your_token"

Events

GET/automations/events

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/events" \
  -H "Authorization: Bearer tt_pat_your_token"

Triggers

GET/automations/triggers

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/triggers" \
  -H "Authorization: Bearer tt_pat_your_token"

Recipes

GET/automations/recipes

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/recipes" \
  -H "Authorization: Bearer tt_pat_your_token"

Status

GET/automations/status

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/status" \
  -H "Authorization: Bearer tt_pat_your_token"

Activity

GET/automations/activity

q
In the query: text, up to 120 characters.
automationId
In the query: id starting with AM_.
result
In the query: one of actions_run, filtered_out, failed, waiting.
customerId
In the query: id starting with CU_.
from
In the query: text.
to
In the query: text.
dir
In the query: one of asc, desc. Default desc.
limit
In the query: integer, 1 to 200. Default 100.
cursor
In the query: text. Where the next page starts. Opaque: follow the next URL from the last answer, which carries it.
curl "http://app.telltailhq.com/api/v1/automations/activity" \
  -H "Authorization: Bearer tt_pat_your_token"

Activity counts

GET/automations/activity/counts

q
In the query: text, up to 120 characters.
automationId
In the query: id starting with AM_.
result
In the query: one of actions_run, filtered_out, failed, waiting.
customerId
In the query: id starting with CU_.
from
In the query: text.
to
In the query: text.
curl "http://app.telltailhq.com/api/v1/automations/activity/counts" \
  -H "Authorization: Bearer tt_pat_your_token"

Issues

GET/automations/issues

This route takes no parameters.

curl "http://app.telltailhq.com/api/v1/automations/issues" \
  -H "Authorization: Bearer tt_pat_your_token"

Preview

POST/automations/preview

triggerEventRequired
In the JSON body: text, up to 80 characters.
entityRequired
In the JSON body: text, up to 80 characters.
automationId
In the JSON body: id starting with AM_.
filters
In the JSON body: list of object, up to 20.
cooldownHours
In the JSON body: integer, 1 to 9007199254740991.
actions
In the JSON body: list of object, up to 20.
curl -X POST "http://app.telltailhq.com/api/v1/automations/preview" \
  -H "Authorization: Bearer tt_pat_your_token" \
  -H "Content-Type: application/json" \
  -d '{"triggerEvent":"…","entity":"…"}'

Preview subjects

GET/automations/preview/subjects

triggerEventRequired
In the query: text, up to 80 characters.
curl "http://app.telltailhq.com/api/v1/automations/preview/subjects" \
  -H "Authorization: Bearer tt_pat_your_token"

Run

GET/automations/runs/{id}

idRequired
In the path: id starting with ARN_.
curl "http://app.telltailhq.com/api/v1/automations/runs/{id}" \
  -H "Authorization: Bearer tt_pat_your_token"

Get

GET/automations/{id}

idRequired
In the path: id starting with AM_.
curl "http://app.telltailhq.com/api/v1/automations/{id}" \
  -H "Authorization: Bearer tt_pat_your_token"

Runs

GET/automations/{id}/runs

idRequired
In the path: id starting with AM_.
result
In the query: one of actions_run, filtered_out, failed, waiting.
page
In the query: integer, 1 to 10000. Default 1.
curl "http://app.telltailhq.com/api/v1/automations/{id}/runs" \
  -H "Authorization: Bearer tt_pat_your_token"