@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;
        id: string;
        payload?: Record<string, unknown>;
        result?: Record<string, unknown>;
        status: string;
        team?: string;
        updated_at?: string;
        user?: string;
    }
    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

    ID of the platform event that triggered this run. null for directly invoked automations.

    id: string

    Automation run ID (atr_...).

    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.

    result?: Record<string, unknown>

    The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. null if the run has not yet completed.

    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

    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

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