@archastro/sdk
    Preparing search index...

    Interface AutomationRun

    A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result.

    interface AutomationRun {
        app: string;
        automation: string;
        created_at?: string;
        event_id?: string | null;
        id: string;
        participants?: Record<string, unknown> | null;
        payload?: Record<string, unknown>;
        result?: Record<string, unknown> | null;
        status: string;
        team?: string | null;
        updated_at?: string;
        user?: string | null;
    }
    Index

    Properties

    app: string

    ID of the app that owns this automation run (dap_...).

    automation: string

    ID of the automation that was executed (aut_...).

    created_at?: string

    When the automation run was created (ISO 8601).

    event_id?: string | null

    Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. null when no event identifier was recorded.

    id: string

    Automation run ID (atr_...).

    participants?: Record<string, unknown> | null

    Invoke-time map of symbolic participant references to agent IDs. null when no participants were supplied.

    payload?: Record<string, unknown>

    The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false.

    result?: Record<string, unknown> | null

    The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. null if the run has not yet completed. Omitted on retrieval when include_payload=false.

    status: string

    Current execution status of the run. One of "pending" (queued, not yet started), "running" (actively executing), "completed" (finished successfully), "failed" (finished with an error), or "cancelled" (stopped before completion).

    team?: string | null

    ID of the team that owns this run (tea_...). null if the run is owned by a user rather than a team.

    updated_at?: string

    When the automation run record was last updated (ISO 8601).

    user?: string | null

    ID of the user that owns this run (usr_...). null if the run is owned by a team rather than a user.