D-ID Client SDK - v3.0.0-0
    Preparing search index...

    Interface ClientKeyAuth

    A client key for the Agents API — the credential to use in a browser.

    This is the one shape that is safe to ship in a page: a client key is scoped to a single agent and only works from the domains allowed for it, so it cannot be reused elsewhere. Copy it from the agent's Embed snippet, where it appears as data-client-key, or create one with the Agents API (see the link below). The SDK sends it as Authorization: Client-Key <clientKey>.<externalId>_<connectionId>, where the external id is either externalId or a per-browser id the SDK keeps in localStorage.

    interface ClientKeyAuth {
        clientKey: string;
        type: "key";
    }
    Index
    clientKey: string

    The client key: the data-client-key value from the agent's Embed snippet, or a key created with the Agents API.

    type: "key"

    Discriminator selecting this variant of Auth.