WorkOS · Schema

TokenQueryDto

AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP

Properties

Name Type Description
client_id string The client ID of the WorkOS environment.
client_secret string The client secret of the WorkOS environment.
code string The authorization code received from the authorization callback.
grant_type string The grant type for the token request.
View JSON Schema on GitHub

JSON Schema

workos-tokenquerydto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TokenQueryDto",
  "title": "TokenQueryDto",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "description": "The client ID of the WorkOS environment.",
      "example": "client_01HZBC6N1EB1ZY7KG32X"
    },
    "client_secret": {
      "type": "string",
      "description": "The client secret of the WorkOS environment.",
      "example": "sk_example_123456789"
    },
    "code": {
      "type": "string",
      "description": "The authorization code received from the authorization callback.",
      "example": "authorization_code_value"
    },
    "grant_type": {
      "type": "string",
      "description": "The grant type for the token request.",
      "example": "authorization_code",
      "const": "authorization_code"
    }
  },
  "required": [
    "client_id",
    "client_secret",
    "code",
    "grant_type"
  ]
}