Anchorage API reference
    Preparing search index...
    Index

    Constructors

    Methods

    • Mint a short-lived HMAC stream ticket for a live channel over the injected fetch (bearer-authenticated like every other call). The socket is opened by the injected StreamTransport — this method only fetches addressing, never a WebSocket. Errors surface as ApprovalApiError. For channel 'run', runId is required by the server (400 otherwise); passing workflowId lets the server return the fully-qualified run WS url so the caller need not rebuild the /api/stream/run/:wf/:runId path (which would duplicate the route shape).

      Parameters

      • channel: "hub" | "run"
      • OptionalrunId: string
      • OptionalworkflowId: string

      Returns Promise<{ expiresAt: number; ticket: string; url: string }>