@seamapi/http - v2.4.1
    Preparing search index...

    Class SeamHttp

    HTTP client for the Seam API.

    Create a client with the constructor or one of the static factory methods, e.g., fromApiKey. Each Seam API route is available under its corresponding property, e.g., use seam.devices.list() to call the /devices/list endpoint.

    Index
    client: AxiosInstance

    The client used to make HTTP requests to the Seam API.

    defaults: Required<SeamHttpRequestOptions>

    Default request options used for requests made by this client.

    • get acs(): SeamHttpAcs

      Client for the Seam API /acs routes.

      Returns SeamHttpAcs

    • get locks(): SeamHttpLocks

      Client for the Seam API /locks routes.

      Returns SeamHttpLocks

    • Updates the client session token used by this client for authentication.

      Parameters

      • clientSessionToken: string

      Returns Promise<void>

      If this client was not created with a client session token.

    • Creates a new SeamHttp authenticated with a console session token and scoped to a workspace.

      Parameters

      Returns SeamHttp

    • Creates a new SeamHttp authenticated with a personal access token and scoped to a workspace.

      Parameters

      Returns SeamHttp

    • Creates a new SeamHttp authenticated with a client session token for the user identified by the user identifier key. The client session is created with the publishable key if it does not exist.

      Parameters

      Returns Promise<SeamHttp>