Anchorage API reference
    Preparing search index...
    interface ApprovalApiClientOptions {
        baseUrl?: string;
        fetch?: FetchLike;
        headers?: Record<string, string>;
        streamTicketUrl?: string;
    }
    Index

    Properties

    baseUrl?: string

    Default: '/api/approvals' (same-origin deployment).

    fetch?: FetchLike

    Default: globalThis.fetch. Injected in tests and non-browser hosts.

    headers?: Record<string, string>

    Sent on every request — the deployment's auth (bearer token, etc.).

    streamTicketUrl?: string

    Where streamTicket() POSTs — sibling to baseUrl, default '/api/stream/ticket'. The Worker is the sole ticket authority.