WorkOS.ClientApi (WorkOS SDK for Elixir v3.0.1)

Copy Markdown View Source

Operations for the ClientApi API.

Summary

Functions

create_token(client, params \\ %{}, opts \\ [])

@spec create_token(WorkOS.Client.t(), map(), keyword()) ::
  {:ok, WorkOS.ClientApiTokenResponse.t()} | {:error, WorkOS.Error.error()}

Generate a Client API token

Generate a short-lived, session-bound token for the Client GraphQL API, scoped to an organization and user.

Parameters