Automation Runs a contact

GET/api/v1/contacts/{contact}/automation-runs
Requires anorganization API keywith the scopecontacts:read

Parameters

NameInTypeDescription
contactrequiredpathstringThe contact identifier.

Request

GET/api/v1/contacts/{contact}/automation-runs
curl -X GET 'https://app.mailyte.com/api/v1/contacts/01JBT8XQ2M9WYC3K4F6R7S8T9V/automation-runs' \
  -H 'Authorization: Bearer mk_live_YOUR_API_KEY'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Success.

  • dataobject
    • dataarray<object>
      • idstring
      • automation_idstring
      • version_idstring

        The version this run entered. It finishes that version even if a newer one is published.

      • version_numberinteger
      • contactobject
        • idstring
        • emailstring
        • namestring
      • statestringenrolled | running | waiting_time | waiting_event | paused | completed | exited | failed
      • current_node_idstring
      • wake_atstring

        When the engine next picks this run up. UTC.

      • waiting_eventstring
      • entered_atstring
      • ended_atstring
      • exit_reasonstring

        Why the run ended early: event:<name>, unsubscribed, archived, goal:<node>.

      • errorstring
      • contextobject

        The trigger payload: the event properties, or the list or tag that started the run.

      • automationobject

        Present on a contact's run list.

        • idstring
        • namestring
        • statestring
      • summarystring

        One plain-language line about this run. Present on a contact's run list.

      • stepsarray<object>

        Present when a single run is fetched; omitted from the list.

        • idinteger
        • node_idstring

          The node in the version graph this step belongs to.

        • node_typestring

          The node type, e.g. delay, send_email, trigger, exit_rule.

        • occurred_atstring
        • outcomestringenrolled | executed | sending | sent | skipped | deferred | branch | exited | failed | unknown
        • branch_takenstring
        • message_idstring

          The sent message, when this step sent one. Ties the step to delivery events.

        • skipped_reasonstring

          Why nothing was sent: suppressed, unsubscribed, marketing_review_pending, rate_limited, not_mailable.

        • detailsobject
      • narrativeobject

        Present when a single run is fetched: the steps as sentences, in the contact's local time.

        • timezonestring
        • tz_sourcestringcontact | organization_default | utc

          Where the timezone came from: the contact's own attribute, the organisation default, or UTC.

        • paragraphsarray<string>

          One paragraph per local day, plus what never happened after an early exit.

        • linesarray<object>
    • pagination_metaany

Returned inside the standard envelope.

Errors

StatusWhen
401The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist.
403The key is valid but may not do this: it lacks the required scope, its IP allowlist does not include you, or this endpoint does not accept API keys.
404No such resource in this organization.
422The request was understood but the values were not acceptable.
429Too many requests, or the organization has spent its sending allowance. `Retry-After` says how long to wait.

Every status, with what causes it and what to do, is on the error reference.