Anchorage API reference
    Preparing search index...
    interface CreateApprovalInput {
        connectors?: string[];
        payload?: unknown;
        priority?: ApprovalPriority;
        requestedBy?: string;
        requestedByKind?: "human" | "service" | "agent" | "system";
        resumeCount?: number;
        resumedAt?: number;
        runId: string;
        runScoped?: boolean;
        slaSeconds?: number;
        stepPath?: string[];
        summary?: string;
        suspendedAt?: number;
        title: string;
        toolCallId?: string;
        workflowId: string;
    }
    Index

    Properties

    connectors?: string[]
    payload?: unknown
    priority?: ApprovalPriority
    requestedBy?: string

    Trusted requester provenance. New writes must provide it together with requestedByKind; the HTTP create route derives both from authentication.

    requestedByKind?: "human" | "service" | "agent" | "system"

    Trusted requester kind paired with requestedBy.

    resumeCount?: number

    Runtime resume ordinal of that suspension, observed from RunSummary.resumeCount by the same bridge — undefined for a first suspension, 1,2,… on re-suspensions. Pairs with suspendedAt as the collision-free grant-binding tie-breaker.

    resumedAt?: number

    Epoch-ms resumedAt of that suspension, observed from RunSummary.resumedAt by the same bridge. INFORMATIONAL only — not the grant tie-breaker.

    runId: string
    runScoped?: boolean

    Opt in to a run-scoped standing grant (mints on every leg). Create-time only — see ApprovalRecord.runScoped. Never settable over HTTP.

    slaSeconds?: number

    Seconds from creation to the SLA deadline; overrides the service default.

    stepPath?: string[]
    summary?: string
    suspendedAt?: number

    Epoch-ms suspendedAt of the suspension this approval binds to, observed from RunSummary.suspendedAt by the creating bridge (core clock, so grant minting is clock-free: mint requires record.suspendedAt to EXACTLY match the resumed leg's suspension). A capability-bearing record without it is inert.

    title: string
    toolCallId?: string

    Mastra tool-call identity captured from a durable-agent suspension. Trusted creation only; never accepted over HTTP.

    workflowId: string