openapi: 3.1.1 paths: /agents/blueprints: post: description: >- Creates an agent blueprint: the template describing what an agent may do (its permission ceiling), who may invoke it, and the lifetimes of its sessions. operationId: AgentBlueprintsController_create parameters: [] requestBody: required: true content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 255 description: Human-readable name of the agent blueprint. example: Prospecting Agent description: type: string minLength: 1 maxLength: 1000 description: Human-readable description of the agent blueprint. example: Finds and qualifies sales prospects. permissions: default: [] type: array items: oneOf: - type: object properties: slug: type: string minLength: 1 description: Slug of a permission in the environment. example: email:send instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 maxItems: 2 description: >- Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. Agent-delegated chaining and refreshes use the type of the presenting instance. example: - delegated required: - slug - instance_types description: >- A permission in the blueprint ceiling and the sessions it applies to. - type: string minLength: 1 deprecated: true description: >- Deprecated: a bare permission slug. An existing permission keeps its instance types; a new one applies to both `delegated` and `autonomous`. Pass an object instead. example: crm:read maxItems: 1000 description: >- Permissions forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment and may appear once. example: - slug: crm:read instance_types: - delegated - autonomous - slug: email:send instance_types: - delegated invocable_by: default: {} type: object properties: role_slugs: default: [] type: array items: type: string minLength: 1 maxItems: 100 description: >- Role slugs whose members may mint user-delegated sessions from this blueprint. An empty list allows any member. example: - manager organization_ids: default: [] type: array items: type: string minLength: 1 maxItems: 1000 description: >- Organizations in which sessions may be minted from this blueprint, enforced on user-delegated, autonomous, and agent-delegated mints. An empty list allows any organization in the environment. example: - org_01EHWNCE74X7JSDV0X3SZ3KJNY description: Who may mint sessions from this blueprint. invocable_as: default: {} type: object properties: instance_types: default: - delegated - autonomous type: array items: type: string enum: - delegated - autonomous minItems: 1 maxItems: 2 description: >- Instance types that may be minted from this blueprint: `delegated` (a user-delegated session, minted with a user access token) and/or `autonomous` (a session acting as the agent itself, minted with an agent registration credential). Agent-delegated chaining and refreshes are checked against the type of the presenting instance. Defaults to both. example: - delegated - autonomous description: How sessions may be minted from this blueprint. session_settings: default: max_age_seconds: 3600 access_token_ttl_seconds: 300 refresh_token_ttl_seconds: 3600 type: object properties: max_age_seconds: type: integer exclusiveMinimum: 0 maximum: 31536000 description: >- Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days). example: 3600 access_token_ttl_seconds: type: integer exclusiveMinimum: 0 maximum: 3600 description: >- Lifetime of each minted access token in seconds. At most 3,600 (1 hour). example: 300 refresh_token_ttl_seconds: type: integer exclusiveMinimum: 0 maximum: 5184000 description: >- Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days). example: 3600 required: - max_age_seconds - access_token_ttl_seconds - refresh_token_ttl_seconds description: >- Token and session lifetimes for sessions minted from this blueprint. required: - name description: Configuration for the new agent blueprint. responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/AgentBlueprint' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an agent blueprint tags: - agents.blueprints x-feature-flag: agent-blueprints-public-api get: description: Lists the agent blueprints in the current environment. operationId: AgentBlueprintsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: agent_blueprint_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: agent_blueprint_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AgentBlueprint' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List agent blueprints tags: - agents.blueprints x-feature-flag: agent-blueprints-public-api /agents/blueprints/{agent_blueprint_id}: get: description: Retrieves an agent blueprint by ID. operationId: AgentBlueprintsController_get parameters: - name: agent_blueprint_id required: true in: path description: The unique ID of the agent blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentBlueprint' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an agent blueprint tags: - agents.blueprints x-feature-flag: agent-blueprints-public-api patch: description: >- Updates an agent blueprint. Omitted fields are left unchanged; provided lists replace the existing configuration. operationId: AgentBlueprintsController_update parameters: - name: agent_blueprint_id required: true in: path description: The unique ID of the agent blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY requestBody: required: true content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 255 description: Human-readable name of the agent blueprint. example: Prospecting Agent description: type: - string - 'null' minLength: 1 maxLength: 1000 description: >- Human-readable description of the agent blueprint. Pass `null` to clear it. example: Finds and qualifies sales prospects. permissions: type: array items: oneOf: - type: object properties: slug: type: string minLength: 1 description: Slug of a permission in the environment. example: email:send instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 maxItems: 2 description: >- Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. Agent-delegated chaining and refreshes use the type of the presenting instance. example: - delegated required: - slug - instance_types description: >- A permission in the blueprint ceiling and the sessions it applies to. - type: string minLength: 1 deprecated: true description: >- Deprecated: a bare permission slug. An existing permission keeps its instance types; a new one applies to both `delegated` and `autonomous`. Pass an object instead. example: crm:read maxItems: 1000 description: >- Permissions forming the ceiling on what sessions minted from this blueprint may do. Each slug must exist in the environment and may appear once. example: - slug: crm:read instance_types: - delegated - autonomous - slug: email:send instance_types: - delegated invocable_by: type: object properties: role_slugs: type: array items: type: string minLength: 1 maxItems: 100 description: >- Role slugs whose members may mint user-delegated sessions from this blueprint. An empty list allows any member. example: - manager organization_ids: type: array items: type: string minLength: 1 maxItems: 1000 description: >- Organizations in which sessions may be minted from this blueprint, enforced on user-delegated, autonomous, and agent-delegated mints. An empty list allows any organization in the environment. example: - org_01EHWNCE74X7JSDV0X3SZ3KJNY description: >- Who may mint sessions from this blueprint. Omitted lists are left unchanged. invocable_as: type: object properties: instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 maxItems: 2 description: >- Instance types that may be minted from this blueprint: `delegated` and/or `autonomous`. At least one is required; existing sessions of a removed type are refused at their next refresh. example: - delegated - autonomous description: >- How sessions may be minted from this blueprint. Omitted lists are left unchanged. session_settings: type: object properties: max_age_seconds: type: integer exclusiveMinimum: 0 maximum: 31536000 description: >- Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days). example: 3600 access_token_ttl_seconds: type: integer exclusiveMinimum: 0 maximum: 3600 description: >- Lifetime of each minted access token in seconds. At most 3,600 (1 hour). example: 300 refresh_token_ttl_seconds: type: integer exclusiveMinimum: 0 maximum: 5184000 description: >- Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days). example: 3600 description: >- Token and session lifetimes for sessions minted from this blueprint. Omitted fields are left unchanged. description: >- Fields to update on the agent blueprint. Omitted fields are left unchanged; provided lists replace the existing configuration. responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentBlueprint' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Update an agent blueprint tags: - agents.blueprints x-feature-flag: agent-blueprints-public-api delete: description: >- Deletes an agent blueprint along with its configuration, instances, and sessions. operationId: AgentBlueprintsController_delete parameters: - name: agent_blueprint_id required: true in: path description: The unique ID of the agent blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '204': description: Agent blueprint deleted. '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an agent blueprint tags: - agents.blueprints x-feature-flag: agent-blueprints-public-api /agents/blueprints/{agent_blueprint_id}/tokens: post: description: >- Mint an agent access token (and backing session) from an agent blueprint. The session can be user-delegated (exchanging a user access token), autonomous (the agent acting as itself in an organization), agent-delegated (the agent exchanging its own access token for a new session on the same instance), or a refresh of a previously issued refresh token. operationId: AgentBlueprintsTokenController_mintToken parameters: - name: agent_blueprint_id required: true in: path description: The unique ID of the agent blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY requestBody: required: true content: application/json: schema: discriminator: propertyName: type oneOf: - type: object properties: type: type: string description: >- How the session is minted: `user_delegated`, `autonomous`, `agent_delegated`, or `refresh`. const: user_delegated user_access_token: type: string minLength: 1 description: >- The access token of the user delegating to the agent. The token identifies the user and organization; effective permissions are resolved server-side. example: eyJhbGciOiJSUzI1NiIsImtpZCI6... intent: type: string minLength: 1 maxLength: 255 description: >- Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token. example: renew-contract-123 required: - type - user_access_token - type: object properties: type: type: string description: >- How the session is minted: `user_delegated`, `autonomous`, `agent_delegated`, or `refresh`. const: autonomous organization_id: type: string minLength: 1 description: >- The organization the agent acts within when operating as itself. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY intent: type: string minLength: 1 maxLength: 255 description: >- Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token. example: renew-contract-123 required: - type - organization_id - type: object properties: type: type: string description: >- How the session is minted: `user_delegated`, `autonomous`, `agent_delegated`, or `refresh`. const: agent_delegated agent_access_token: type: string minLength: 1 description: >- The agent's own access token to exchange for a new session on the same instance. The token must have been minted from this blueprint; permissions are re-derived from current authority. example: eyJhbGciOiJSUzI1NiIsImtpZCI6... intent: type: string minLength: 1 maxLength: 255 description: >- Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token. example: renew-contract-123 required: - type - agent_access_token - type: object properties: type: type: string description: >- How the session is minted: `user_delegated`, `autonomous`, `agent_delegated`, or `refresh`. const: refresh refresh_token: type: string minLength: 1 description: >- The refresh token issued with a previous agent access token. Refresh tokens are single-use: each refresh rotates it. example: njGkA8Wyht0GBEGGA0Zh1Q3wZzL2... intent: type: string minLength: 1 maxLength: 255 description: >- Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token. example: renew-contract-123 required: - type - refresh_token description: >- How to mint the agent session, discriminated by `type`. `intent` is optional on every variant. responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentToken' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Mint an agent token tags: - agents.blueprints.tokens x-feature-flag: agent-blueprints-public-api /agents/blueprints/{agent_blueprint_id}/tokens/validate: post: description: >- Validates an agent access token: verifies its signature against the environment, that it was minted under this blueprint, and that the backing session is live (not revoked or expired, and — for delegated sessions — that the delegating user session has not ended). Returns the token claims and session metadata when valid; invalid tokens are reported as errors with stable codes. operationId: AgentBlueprintsTokenController_validateToken parameters: - name: agent_blueprint_id required: true in: path description: The unique ID of the agent blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY requestBody: required: true content: application/json: schema: type: object properties: agent_access_token: type: string minLength: 1 description: The agent access token (a JWT) to validate. example: eyJhbGciOiJSUzI1NiIsImtpZCI6... required: - agent_access_token description: The agent access token to validate. responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentTokenValidation' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Validate an agent token tags: - agents.blueprints.tokens x-feature-flag: agent-blueprints-public-api /agents/claims/attempts: patch: description: >- Link an external user to a claim attempt and retrieve the code needed for the agent to complete the claim. The user is looked up by external ID; if no user exists, one is created. When the user belongs to multiple organizations, an explicit organization must be provided. operationId: AgentAdminController_linkClaimAttemptToExternalUser parameters: [] requestBody: required: true content: application/json: schema: type: object properties: type: type: string description: >- The operation to perform on the claim attempt. Currently only `link_external_user` is supported. example: link_external_user const: link_external_user claim_attempt_token: type: string minLength: 1 description: The token identifying the claim attempt. example: cla_tkn_01EHWNCE74X7JSDV0X3SZ3KJNY user: type: object properties: email: type: string format: email description: The email address of the user. example: alice@example.com external_id: type: string minLength: 1 description: The external ID of the user. example: user_abc123 required: - email - external_id description: >- The user to attach to the claim attempt, identified by email and external ID. example: email: alice@example.com external_id: user_abc123 organization_id: type: string minLength: 1 description: >- The organization to place the agent in. Required when the user belongs to more than one organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - claim_attempt_token - user responses: '200': description: Claim attempt linked to external user. content: application/json: schema: $ref: '#/components/schemas/ClaimViewResponse' '400': description: >- Invalid request, email mismatch, invalid claim, invalid organization, or wrong account. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Claim denied or auth method disabled. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '409': description: >- Organization selection required, email already in use, or claim already completed. content: application/json: schema: anyOf: - $ref: >- #/components/schemas/OrganizationSelectionRequiredErrorBodyWithOrganizations - $ref: '#/components/schemas/EmailAlreadyInUseErrorBody' - $ref: '#/components/schemas/AlreadyClaimedErrorBody' '410': description: Claim or user code has expired. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Link a claim attempt to an external user tags: - agents.registrations /agents/credentials/validate: post: description: >- Validate an agent credential — an API key or access token — against the environment of the API key used to authenticate the request. This is a read-only check: it never consumes or mutates the credential. operationId: AgentAdminController_validateCredential parameters: [] requestBody: required: true content: application/json: schema: discriminator: propertyName: type oneOf: - type: object properties: type: type: string description: >- The kind of credential being validated — an agent API key or an agent access token. const: api_key credential: type: string minLength: 1 format: password description: >- The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`. example: sk_agent_example_1234567890 required: - type - credential - type: object properties: type: type: string description: >- The kind of credential being validated — an agent API key or an agent access token. const: access_token credential: type: string minLength: 1 format: password description: >- The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`. example: eyJhbGciOiJSUzI1NiIsImtpZCI6... audience: type: string minLength: 1 description: >- When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected. example: https://api.example.com required: - type - credential description: >- The agent credential to validate. Either an `api_key` or an `access_token`, discriminated by `type`. responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentCredentialValidation' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Validate an agent credential tags: - agents.registrations /agents/instances: get: description: >- Lists the agent instances in the current environment. Instances are created implicitly when tokens are minted. operationId: AgentInstancesController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: Only return instances acting within this organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: agent_blueprint_id required: false in: query description: Only return instances minted from this blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: agent_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: agent_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AgentInstance' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List agent instances tags: - agents.instances x-feature-flag: agent-blueprints-public-api /agents/instances/{agent_instance_id}: get: description: Retrieves an agent instance by ID. operationId: AgentInstancesController_get parameters: - name: agent_instance_id required: true in: path description: The unique ID of the agent instance. schema: type: string example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentInstance' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an agent instance tags: - agents.instances x-feature-flag: agent-blueprints-public-api delete: description: >- Deletes an agent instance along with its sessions, invalidating their refresh tokens. operationId: AgentInstancesController_delete parameters: - name: agent_instance_id required: true in: path description: The unique ID of the agent instance. schema: type: string example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '204': description: Agent instance deleted. '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an agent instance tags: - agents.instances x-feature-flag: agent-blueprints-public-api /agents/registrations/{id}: get: description: >- Retrieve the details of an agent registration by ID. The registration is scoped to the environment of the API key used to authenticate the request. operationId: AgentAdminController_getRegistration parameters: - name: id required: true in: path description: The unique ID of the agent registration. schema: type: string example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentRegistration' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an agent registration tags: - agents.registrations /agents/registrations/{id}/revoke: post: description: >- Revoke an agent registration by ID. Revocation is permanent: the registration, its identity assertions, and every access token or API key issued from it stop working, and the agent must register again. Revoking an already revoked registration succeeds and returns the original `revoked_at`. The registration is scoped to the environment of the API key used to authenticate the request. operationId: AgentAdminController_revokeRegistration parameters: - name: id required: true in: path description: The unique ID of the agent registration. schema: type: string example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentRegistration' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Revoke an agent registration tags: - agents.registrations /agents/sessions: get: description: >- Lists the agent instance sessions in the current environment. Sessions are created when tokens are minted. operationId: AgentInstanceSessionsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: Only return sessions of instances acting within this organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: agent_blueprint_id required: false in: query description: Only return sessions of instances minted from this blueprint. schema: type: string example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY - name: agent_instance_id required: false in: query description: Only return sessions belonging to this agent instance. schema: type: string example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: agent_session_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: agent_session_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AgentInstanceSession' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeFieldErrors' summary: List agent instance sessions tags: - agents.sessions x-feature-flag: agent-blueprints-public-api /agents/sessions/{agent_instance_session_id}: get: description: Retrieves an agent instance session by ID. operationId: AgentInstanceSessionsController_get parameters: - name: agent_instance_session_id required: true in: path description: The unique ID of the agent instance session. schema: type: string example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentInstanceSession' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an agent instance session tags: - agents.sessions x-feature-flag: agent-blueprints-public-api /agents/sessions/{agent_instance_session_id}/revoke: post: description: >- Revokes an agent instance session, invalidating its refresh token and every access token minted under it. Revocation is idempotent: revoking an already-revoked session keeps the original `revoked_at`, and revoking an already-expired session returns the session with `status: expired` and a null `revoked_at`. operationId: AgentInstanceSessionsController_revoke parameters: - name: agent_instance_session_id required: true in: path description: The unique ID of the agent instance session. schema: type: string example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AgentInstanceSession' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Revoke an agent instance session tags: - agents.sessions x-feature-flag: agent-blueprints-public-api /api_keys/validations: post: description: Validate an API key value and return the API key object if valid. operationId: ApiKeysController_validateApiKey parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ValidateApiKeyDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ApiKeyValidationResponse' '401': description: Unauthorized '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Validate API key tags: - api_keys /api_keys/{id}: delete: description: >- Permanently deletes an API key. This action cannot be undone. Once deleted, any requests using this API key will fail authentication. operationId: ApiKeysController_delete parameters: - name: id required: true in: path description: The unique ID of the API key. schema: type: string example: api_key_01EHZNVPK3SFK441A1RGBFSHRT responses: '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an API key tags: - api_keys /api_keys/{id}/expire: post: description: >- Expire an API key immediately, schedule a future expiration, or clear a scheduled future expiration. operationId: ApiKeysController_expire parameters: - name: id required: true in: path description: The unique ID of the API key. schema: type: string example: api_key_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/ExpireApiKeyDto' examples: immediateExpiration: summary: Expire immediately value: {} scheduleExpiration: summary: Schedule an expiration value: expires_at: '2030-01-01T00:00:00.000Z' clearExpiration: summary: Clear a scheduled expiration value: expires_at: null responses: '200': content: application/json: schema: $ref: '#/components/schemas/ApiKey' example: object: api_key id: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: type: organization id: org_01EHZNVPK3SFK441A1RGBFSHRT name: Production API Key obfuscated_value: sk_...3456 last_used_at: null expires_at: '2030-01-01T00:00:00.000Z' permissions: - posts:read - posts:write created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' description: OK '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: Conflict content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Expire an API key tags: - api_keys /audit_logs/actions: get: description: Get a list of all Audit Log actions in the current environment. operationId: AuditLogValidatorsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: ala_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: ala_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AuditLogActionJson' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Actions tags: - audit-logs /audit_logs/actions/{actionName}/schemas: post: description: >- Creates an Audit Log schema used to validate incoming Audit Log events, or returns the latest version if the submitted schema matches it. If the schema differs from the latest version, creates and returns a new version. If the action does not exist, creates the action and its first schema version. operationId: AuditLogValidatorVersionsController_create parameters: - name: actionName required: true in: path description: The name of the Audit Log action. schema: example: user.logged_in type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuditLogSchemaDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/AuditLogSchemaJson' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create Schema tags: - audit-logs get: description: >- Get a list of all schemas for the Audit Logs action identified by `:name`. operationId: AuditLogValidatorVersionsController_schemas parameters: - name: actionName required: true in: path description: The name of the Audit Log action. schema: example: user.logged_in type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: als_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: als_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AuditLogSchemaJson' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Schemas tags: - audit-logs /audit_logs/events: post: description: >- Create an Audit Log Event. This API supports idempotency which guarantees that performing the same operation multiple times will have the same result as if the operation were performed only once. This is handy in situations where you may need to retry a request due to a failure or prevent accidental duplicate requests from creating more than one resource. To achieve idempotency, you can add `Idempotency-Key` request header to a Create Event request with a unique string as the value. Each subsequent request matching this unique string will return the same response. We suggest using [v4 UUIDs](https://en.wikipedia.org/wiki/Universally_unique_identifier) for idempotency keys to avoid collisions. operationId: AuditLogEventsController_create parameters: - name: idempotency-key in: header description: >- A unique string to prevent duplicate requests. Each subsequent request matching this unique string will return the same response. We suggest using v4 UUIDs. required: false schema: type: string example: 884793cd-bef4-46cf-8790-e3d4957a09ce requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuditLogEventIngestionDto' responses: '200': content: application/json: schema: $ref: '#/components/schemas/AuditLogEventCreateResponse' example: success: true description: OK '400': content: application/json: schema: anyOf: - $ref: '#/components/schemas/ErrorBodyWithCodeInstancePathErrors' - $ref: '#/components/schemas/ErrorBody' example: message: Invalid Audit Log event. code: invalid_audit_log_event errors: - instancePath: /targets description: Bad Request '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeFieldErrors' example: message: Validation failed. errors: - code: required field: event.action description: Unprocessable Entity '429': content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' example: message: Too many requests. code: rate_limit_exceeded description: '' summary: Create Event tags: - audit-logs /audit_logs/exports: post: description: >- Create an Audit Log Export. Exports are scoped to a single organization within a specified date range. operationId: AuditLogExportsController_exports parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuditLogExportCreationDto' responses: '201': description: The created Audit Log Export object. content: application/json: schema: $ref: '#/components/schemas/AuditLogExportJson' example: object: audit_log_export id: audit_log_export_01GBZK5MP7TD1YCFQHFR22180V state: pending created_at: '2022-09-02T17:14:57.094Z' updated_at: '2022-09-02T17:14:57.094Z' '400': description: Invalid request parameters or date range. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ErrorBody' - $ref: '#/components/schemas/ErrorBodyWithErrorMessageList' example: message: Invalid date range code: invalid_audit_log_export_range_date '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create Export tags: - audit-logs /audit_logs/exports/{auditLogExportId}: get: description: >- Get an Audit Log Export. The URL will expire after 10 minutes. If the export is needed again at a later time, refetching the export will regenerate the URL. operationId: AuditLogExportsController_export parameters: - name: auditLogExportId required: true in: path description: The unique ID of the Audit Log Export. schema: type: string example: audit_log_export_01GBZK5MP7TD1YCFQHFR22180V responses: '200': description: The Audit Log Export object. content: application/json: schema: $ref: '#/components/schemas/AuditLogExportJson' example: object: audit_log_export id: audit_log_export_01GBZK5MP7TD1YCFQHFR22180V state: ready url: https://exports.audit-logs.com/audit-log-exports/export.csv created_at: '2022-09-02T17:14:57.094Z' updated_at: '2022-09-02T17:14:57.094Z' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Audit Log Export not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: >- Audit Log Export not found: 'audit_log_export_01GBZK5MP7TD1YCFQHFR22180V'. summary: Get Export tags: - audit-logs /auth/challenges/{id}/verify: post: description: Verifies an Authentication Challenge. operationId: AuthenticationChallengesController_verify parameters: - name: id required: true in: path description: The unique ID of the Authentication Challenge. schema: type: string example: auth_challenge_01FVYZ5QM8N98T9ME5BCB2BBMJ requestBody: required: true content: application/json: schema: type: object properties: code: type: string format: password description: The one-time code to verify. example: '123456' required: - code responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/AuthenticationChallengeVerifyResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '429': headers: Retry-After: description: How many seconds to wait before verification can be retried. schema: type: integer description: '' content: application/json: schema: $ref: >- #/components/schemas/TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter summary: Verify Challenge tags: - multi-factor-auth.challenges /auth/factors/enroll: post: description: >- Enrolls an Authentication Factor to be used as an additional factor of authentication. The returned ID should be used to create an authentication Challenge. operationId: AuthenticationFactorsController_create parameters: [] requestBody: required: true content: application/json: schema: type: object properties: type: type: string enum: - generic_otp - sms - totp description: The type of factor to enroll. example: totp phone_number: type: string description: Required when type is 'sms'. example: '+15555555555' totp_issuer: type: string description: Required when type is 'totp'. example: Foo Corp totp_user: type: string description: Required when type is 'totp'. example: alan.turing@example.com user_id: type: string description: The ID of the user to associate the factor with. example: user_01E4ZCR3C56J083X43JQXF3JK5 required: - type responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/AuthenticationFactorEnrolled' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Enroll Factor tags: - multi-factor-auth /auth/factors/{id}: get: description: Gets an Authentication Factor. operationId: AuthenticationFactorsController_get parameters: - name: id required: true in: path description: The unique ID of the Factor. schema: type: string example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ responses: '200': content: application/json: schema: $ref: '#/components/schemas/AuthenticationFactor' example: object: authentication_factor id: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ type: totp user_id: user_01E4ZCR3C56J083X43JQXF3JK5 totp: issuer: WorkOS user: user@example.com created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' description: OK '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get Factor tags: - multi-factor-auth delete: description: Permanently deletes an Authentication Factor. It cannot be undone. operationId: AuthenticationFactorsController_delete parameters: - name: id required: true in: path description: The unique ID of the Factor. schema: type: string example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ responses: '200': description: OK '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete Factor tags: - multi-factor-auth /auth/factors/{id}/challenge: post: description: Creates a Challenge for an Authentication Factor. operationId: AuthenticationFactorsController_challenge parameters: - name: id required: true in: path description: The unique ID of the Authentication Factor to be challenged. schema: type: string example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChallengeAuthenticationFactorDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/AuthenticationChallenge' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '429': description: '' content: application/json: schema: anyOf: - $ref: >- #/components/schemas/RateLimitExceededErrorBodyWithRetryAfter - $ref: '#/components/schemas/SmsChallengeRateLimitedErrorBody' - $ref: '#/components/schemas/SmsChallengeQuotaReachedErrorBody' summary: Challenge Factor tags: - multi-factor-auth /authkit/oauth2/complete: post: description: >- Completes a [Standalone Connect](/authkit/connect/standalone) login by creating or updating the AuthKit user and returning a `redirect_uri` your application should redirect to so AuthKit can finish the flow. The user is matched by `id`, stored as its `external_id`, and updated if found. Otherwise: - If a user with the given `email` has no `external_id`, it is linked to `id`. - If a user with the given `email` has a different `external_id`, the request fails. - If no user has the given `email`, a new user is created. operationId: ExternalAuthController_completeLogin parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UserManagementLoginRequest' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ExternalAuthCompleteResponse' '400': description: Bad Request content: application/json: schema: anyOf: - $ref: >- #/components/schemas/ExternalAuthSessionAlreadyCompletedErrorBody - $ref: >- #/components/schemas/UserConsentOptionsNotSupportedErrorBody - $ref: '#/components/schemas/EmailChangeNotAllowedErrorBody' - $ref: '#/components/schemas/EmailNotAvailableErrorBody' - $ref: '#/components/schemas/InvalidEmailErrorBody' - $ref: '#/components/schemas/ErrorBodyWithError' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Complete external authentication tags: - workos-connect /authorization/groups/{group_id}/role_assignments: get: description: >- List all role assignments granted to a group. Each assignment represents a role granted to the group on a resource. operationId: AuthorizationGroupRoleAssignmentsController_list parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/GroupRoleAssignmentList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List role assignments for a group tags: - authorization post: description: Assign a role to a group on a specific resource. operationId: AuthorizationGroupRoleAssignmentsController_create parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGroupRoleAssignmentDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/GroupRoleAssignment' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Assign a role to a group tags: - authorization patch: description: >- Add and remove role assignments for a group in a single atomic operation. Additions that already exist and removals that match no assignment are skipped. An assignment in both lists is rejected. `add` and `remove` must contain between 1 and 100 entries combined. operationId: AuthorizationGroupRoleAssignmentsController_patchGroupRoleAssignments parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchGroupRoleAssignmentsDto' responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update role assignments for a group tags: - authorization put: description: >- Replace all role assignments for a group with the provided list. Existing assignments not in the list will be removed. operationId: AuthorizationGroupRoleAssignmentsController_replaceGroupRoleAssignments parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceGroupRoleAssignmentsDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/GroupRoleAssignmentList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Replace all role assignments for a group tags: - authorization delete: description: >- Remove role assignments from a group that match the provided criteria. Returns 404 when no matching active assignment is found. operationId: AuthorizationGroupRoleAssignmentsController_removeGroupRoleAssignments parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteGroupRoleAssignmentsByCriteriaDto' responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove group role assignments by criteria tags: - authorization /authorization/groups/{group_id}/role_assignments/{role_assignment_id}: get: description: Get a specific role assignment for a group by its ID. operationId: AuthorizationGroupRoleAssignmentsController_get parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ - name: role_assignment_id required: true in: path description: The ID of the group role assignment. schema: type: string example: gra_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/GroupRoleAssignment' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a group role assignment tags: - authorization delete: description: Remove a specific role assignment from a group by its ID. operationId: AuthorizationGroupRoleAssignmentsController_removeGroupRoleAssignment parameters: - name: group_id required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ - name: role_assignment_id required: true in: path description: The ID of the group role assignment to remove. schema: type: string example: gra_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a group role assignment tags: - authorization /authorization/organization_memberships/{organization_membership_id}/check: post: description: >- Check if an organization membership has a specific permission on a resource. Supports identification by resource_id OR by resource_external_id + resource_type_slug. operationId: AuthorizationController_check parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership to check. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckAuthorizationDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationCheck' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Check authorization tags: - authorization x-mutually-exclusive-body-groups: &ref_5 resource_target: optional: false variants: by_id: - resource_id by_external_id: - resource_external_id - resource_type_slug /authorization/organization_memberships/{organization_membership_id}/resources: get: description: >- Returns all child resources of a parent resource where the organization membership has a specific permission. This is useful for resource discovery—answering "What projects can this user access in this workspace?" You must provide either `parent_resource_id` or both `parent_resource_external_id` and `parent_resource_type_slug` to identify the parent resource. operationId: AuthorizationController_listResourcesForMembership parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: permission_slug required: true in: query description: >- The permission slug to filter by. Only child resources where the organization membership has this permission are returned. schema: type: string example: project:read - name: parent_resource_id required: false in: query description: >- The WorkOS ID of the parent resource. Provide this or both `parent_resource_external_id` and `parent_resource_type_slug`, but not both. Mutually exclusive with `parent_resource_type_slug` and `parent_resource_external_id`. schema: type: string example: authz_resource_01XYZ789 - name: parent_resource_type_slug required: false in: query description: >- The slug of the parent resource type. Must be provided together with `parent_resource_external_id`. Required with `parent_resource_external_id`. Mutually exclusive with `parent_resource_id`. schema: type: string example: project - name: parent_resource_external_id required: false in: query description: >- The application-specific external identifier of the parent resource. Must be provided together with `parent_resource_type_slug`. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`. schema: type: string example: external_project_123 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationResourceList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List resources for organization membership tags: - authorization x-mutually-exclusive-parameter-groups: parent_resource: optional: false variants: by_id: - parent_resource_id by_external_id: - parent_resource_type_slug - parent_resource_external_id /authorization/organization_memberships/{organization_membership_id}/resources/{resource_id}/permissions: get: description: >- Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources. Results are not filtered by the resource type: a permission is returned whenever a check for it on this resource would be authorized, and each permission is labeled with the resource type it is declared on. operationId: AuthorizationController_listEffectivePermissions parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationPermissionList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List effective permissions for an organization membership on a resource tags: - authorization /authorization/organization_memberships/{organization_membership_id}/resources/{resource_type_slug}/{external_id}/permissions: get: description: >- Returns all permissions the organization membership effectively has on a resource identified by its external ID, including permissions inherited through roles assigned to ancestor resources. Results are not filtered by the resource type: a permission is returned whenever a check for it on this resource would be authorized, and each permission is labeled with the resource type it is declared on. operationId: AuthorizationController_listEffectivePermissionsByExternalId parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: resource_type_slug required: true in: path description: The slug of the resource type. schema: type: string example: document - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: type: string example: doc-456 - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationPermissionList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: >- List effective permissions for an organization membership on a resource by external ID tags: - authorization /authorization/organization_memberships/{organization_membership_id}/role_assignments: get: description: >- List all role assignments for an organization membership. This returns all roles that have been assigned to the user on resources, including organization-level and sub-resource roles. operationId: AuthorizationRoleAssignmentsController_listRoleAssignments parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: resource_id required: false in: query description: Filter assignments by the ID of the resource. schema: example: authz_resource_01HXYZ123456789ABCDEFGH type: string - name: resource_external_id required: false in: query description: Filter assignments by the external ID of the resource. schema: example: project-ext-456 type: string - name: resource_type_slug required: false in: query description: Filter assignments by the slug of the resource type. schema: example: project type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserRoleAssignmentList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List role assignments tags: - authorization post: description: >- Assign a role to an organization membership on a specific resource. If the role is already assigned to the membership on that resource, the existing role assignment is returned and no changes are made. operationId: AuthorizationRoleAssignmentsController_assignRole parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssignRoleDto' responses: '201': content: application/json: schema: $ref: '#/components/schemas/UserRoleAssignment' example: object: role_assignment id: role_assignment_01HXYZ123456789ABCDEFGH organization_membership_id: om_01HXYZ123456789ABCDEFGHIJ role: slug: editor resource: id: authz_resource_01HXYZ123456789ABCDEFGH external_id: project-ext-456 resource_type_slug: project source: type: direct group_role_assignment_id: null group: null created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' description: Created '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Assign a role tags: - authorization x-mutually-exclusive-body-groups: &ref_6 resource_target: optional: false variants: by_id: - resource_id by_external_id: - resource_external_id - resource_type_slug patch: description: >- Add and remove role assignments for an organization membership in a single atomic operation. Each entry identifies a role and a resource, either by `resource_id` or by `resource_type_slug` and `resource_external_id`; to change an organization-level role, target the organization resource. Additions that already exist and removals that match no assignment are skipped. An assignment in both lists is rejected, as is a removal of a role granted only through a group. `add` and `remove` must contain between 1 and 100 entries combined. operationId: AuthorizationRoleAssignmentsController_patchRoleAssignments parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchRoleAssignmentsDto' responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: anyOf: - $ref: '#/components/schemas/RoleAssignmentUpdateOverlapErrorBody' - $ref: '#/components/schemas/ErrorBodyWithError' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update role assignments for an organization membership tags: - authorization delete: description: Remove a role assignment by role slug and resource. operationId: AuthorizationRoleAssignmentsController_removeRoleByCriteria parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RemoveRoleDto' responses: '204': description: Role assignment removed successfully. '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a role assignment tags: - authorization x-mutually-exclusive-body-groups: &ref_7 resource_target: optional: false variants: by_id: - resource_id by_external_id: - resource_external_id - resource_type_slug /authorization/organization_memberships/{organization_membership_id}/role_assignments/{role_assignment_id}: delete: description: Remove a role assignment using its ID. operationId: AuthorizationRoleAssignmentsController_removeRoleById parameters: - name: organization_membership_id required: true in: path description: The ID of the organization membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: role_assignment_id required: true in: path description: The ID of the role assignment to remove. schema: type: string example: role_assignment_01HXYZ123456789ABCDEFGH responses: '204': description: Role assignment removed successfully. '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a role assignment by ID tags: - authorization /authorization/organizations/{organizationId}/roles: post: description: Create a new custom role for this organization. operationId: AuthorizationOrganizationRolesController_create parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationRoleDto' responses: '201': description: Created content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: org-billing-admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Billing Administrator description: type: - string - 'null' description: An optional description of the role. example: Can manage billing and invoices type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: OrganizationRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a custom role tags: - authorization get: description: >- Get a list of all roles that apply to an organization. This includes both environment roles and custom roles, returned in priority order. operationId: AuthorizationOrganizationRolesController_list parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RoleList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List custom roles tags: - authorization /authorization/organizations/{organizationId}/roles/{slug}: get: description: >- Retrieve a role that applies to an organization by its slug. This can return either an environment role or a custom role. operationId: AuthorizationOrganizationRolesController_get parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-billing-admin responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: org-billing-admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Billing Manager description: type: - string - 'null' description: An optional description of the role. example: Can view and export billing reports type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: OrganizationRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a custom role tags: - authorization patch: description: >- Update an existing custom role. Only the fields provided in the request body will be updated. operationId: AuthorizationOrganizationRolesController_update parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-billing-admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationRoleDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: org-billing-admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Finance Administrator description: type: - string - 'null' description: An optional description of the role. example: Can manage all financial operations type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: OrganizationRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a custom role tags: - authorization delete: description: Delete an existing custom role. operationId: AuthorizationOrganizationRolesController_delete parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-admin responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete a custom role tags: - authorization /authorization/organizations/{organizationId}/roles/{slug}/permissions: put: description: Replace all permissions on a custom role with the provided list. operationId: AuthorizationOrganizationRolePermissionsController_setPermissions parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SetRolePermissionsDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: org-admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Organization Admin description: type: - string - 'null' description: An optional description of the role. example: Can manage all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: OrganizationRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - billing:read - billing:write - invoices:manage - reports:view created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Set permissions for a custom role tags: - authorization post: description: >- Add a single permission to a custom role. If the permission is already assigned to the role, this operation has no effect. operationId: AuthorizationOrganizationRolePermissionsController_addPermission parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AddRolePermissionDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: org-admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Organization Admin description: type: - string - 'null' description: An optional description of the role. example: Can manage all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: OrganizationRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - reports:export created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Add a permission to a custom role tags: - authorization /authorization/organizations/{organizationId}/roles/{slug}/permissions/{permissionSlug}: delete: description: Remove a single permission from a custom role by its slug. operationId: AuthorizationOrganizationRolePermissionsController_removePermission parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: slug required: true in: path description: The slug of the role. schema: type: string example: org-admin - name: permissionSlug required: true in: path description: The slug of the permission to remove. schema: type: string example: documents:read responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Role' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a permission from a custom role tags: - authorization /authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}: get: description: >- Retrieve the details of an authorization resource by its external ID, organization, and resource type. This is useful when you only have the external ID from your system and need to fetch the full resource details. operationId: AuthorizationResourcesByExternalIdController_getByExternalId parameters: - name: organization_id required: true in: path description: The ID of the organization that owns the resource. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: resource_type_slug required: true in: path description: The slug of the resource type. schema: type: string example: project - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: type: string example: proj-456 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationResource' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a resource by external ID tags: - authorization patch: description: Update an existing authorization resource using its external ID. operationId: AuthorizationResourcesByExternalIdController_updateByExternalId parameters: - name: organization_id required: true in: path description: The ID of the organization that owns the resource. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: resource_type_slug required: true in: path description: The slug of the resource type. schema: type: string example: project - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: type: string example: proj-456 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAuthorizationResourceDto' responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Resource object. const: authorization_resource name: type: string description: A human-readable name for the Resource. example: Updated Name description: type: - string - 'null' description: An optional description of the Resource. example: Updated description organization_id: type: string description: The ID of the organization that owns the resource. example: org_01EHZNVPK3SFK441A1RGBFSHRT parent_resource_id: type: - string - 'null' description: The ID of the parent resource, if this resource is nested. example: authz_resource_01HXYZ123456789ABCDEFGHIJ id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: >- An identifier you provide to reference the resource in your system. example: proj-456 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: project created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - name - description - organization_id - parent_resource_id - id - external_id - resource_type_slug - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a resource by external ID tags: - authorization x-mutually-exclusive-body-groups: &ref_0 parent_resource: optional: true variants: by_id: - parent_resource_id by_external_id: - parent_resource_external_id - parent_resource_type_slug delete: description: >- Delete an authorization resource by organization, resource type, and external ID. This also deletes all descendant resources. operationId: AuthorizationResourcesByExternalIdController_deleteByExternalId parameters: - name: organization_id required: true in: path description: The ID of the organization that owns the resource. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: resource_type_slug required: true in: path description: The slug of the resource type. schema: type: string example: project - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: type: string example: proj-456 - name: cascade_delete required: false in: query description: >- If true, deletes all descendant resources and role assignments. If not set and the resource has children or assignments, the request will fail. schema: type: boolean default: false example: false responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete an authorization resource by external ID tags: - authorization /authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}/organization_memberships: get: description: >- Returns all organization memberships that have a specific permission on a resource, using the resource's external ID. This is useful for answering "Who can access this resource?" when you only have the external ID. operationId: >- AuthorizationResourcesByExternalIdController_listOrganizationMembershipsForResourceByExternalId parameters: - name: organization_id required: true in: path description: The ID of the organization that owns the resource. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: resource_type_slug required: true in: path description: The slug of the resource type this resource belongs to. schema: example: project type: string - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: example: proj-456 type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: permission_slug required: true in: query description: >- The permission slug to filter by. Only users with this permission on the resource are returned. schema: type: string example: project:read - name: assignment required: false in: query description: >- Filter by assignment type. Use "direct" for direct assignments only, or "indirect" to include inherited assignments. schema: type: string enum: - direct - indirect example: direct responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/UserlandUserOrganizationMembershipBaseWithUserList '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List memberships for a resource by external ID tags: - authorization /authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}/role_assignments: get: description: >- List all role assignments granted on a resource, identified by its external ID. Each assignment includes the organization membership it was granted to. operationId: >- AuthorizationRoleAssignmentsController_listRoleAssignmentsForResourceByExternalId parameters: - name: organization_id required: true in: path description: The ID of the organization that owns the resource. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: resource_type_slug required: true in: path description: The slug of the resource type. schema: type: string example: project - name: external_id required: true in: path description: An identifier you provide to reference the resource in your system. schema: type: string example: proj-456 - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: role_slug required: false in: query description: Filter assignments by the slug of the role. schema: example: editor type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserRoleAssignmentList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List role assignments for a resource by external ID tags: - authorization /authorization/permissions: get: description: Get a list of all permissions in your WorkOS environment. operationId: AuthorizationPermissionsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationPermissionList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List permissions tags: - permissions post: description: >- Create a new permission in your WorkOS environment. The permission can then be assigned to environment roles and custom roles. operationId: AuthorizationPermissionsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAuthorizationPermissionDto' responses: '201': description: Created content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Permission object. const: permission id: type: string description: Unique identifier of the Permission. example: perm_01HXYZ123456789ABCDEFGHIJ slug: type: string description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. example: documents:read name: type: string description: A descriptive name for the Permission. example: View Documents description: type: - string - 'null' description: An optional description of the Permission. example: Allows viewing document contents system: type: boolean description: >- Whether the permission is a system permission. System permissions are managed by WorkOS and cannot be deleted. example: false resource_type_slug: type: string description: >- The slug of the resource type associated with the permission. example: document created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - system - resource_type_slug - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a permission tags: - permissions /authorization/permissions/{slug}: get: description: Retrieve a permission by its unique slug. operationId: AuthorizationPermissionsController_find parameters: - name: slug required: true in: path description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. schema: example: documents:read type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationPermission' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a permission tags: - permissions patch: description: >- Update an existing permission. Only the fields provided in the request body will be updated. operationId: AuthorizationPermissionsController_update parameters: - name: slug required: true in: path description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. schema: example: documents:read type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAuthorizationPermissionDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationPermission' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a permission tags: - permissions delete: description: Delete an existing permission. System permissions cannot be deleted. operationId: AuthorizationPermissionsController_delete parameters: - name: slug required: true in: path description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. schema: example: documents:read type: string responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a permission tags: - permissions /authorization/resources: get: description: Get a paginated list of authorization resources. operationId: AuthorizationResourcesController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: Filter resources by organization ID. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: resource_type_slug required: false in: query description: Filter resources by resource type slug. schema: type: string example: project - name: resource_external_id required: false in: query description: Filter resources by external ID. schema: type: string example: my-project-123 - name: parent_resource_id required: false in: query description: >- Filter resources by parent resource ID. Mutually exclusive with `parent_resource_type_slug` and `parent_external_id`. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ - name: parent_resource_type_slug required: false in: query description: >- Filter resources by parent resource type slug. Required with `parent_external_id`. Mutually exclusive with `parent_resource_id`. schema: type: string example: workspace - name: parent_external_id required: false in: query description: >- Filter resources by parent external ID. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`. schema: type: string example: ext-workspace-123 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationResourceList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List resources tags: - authorization x-mutually-exclusive-parameter-groups: parent: optional: true variants: by_id: - parent_resource_id by_external_id: - parent_resource_type_slug - parent_external_id post: description: Create a new authorization resource. operationId: AuthorizationResourcesController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAuthorizationResourceDto' responses: '201': description: Created content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Resource object. const: authorization_resource name: type: string description: A human-readable name for the Resource. example: Acme Workspace description: type: - string - 'null' description: An optional description of the Resource. example: Primary workspace for the Acme team organization_id: type: string description: The ID of the organization that owns the resource. example: org_01EHQMYV6MBK39QC5PZXHY59C3 parent_resource_id: type: - string - 'null' description: The ID of the parent resource, if this resource is nested. example: authz_resource_01HXYZ123456789ABCDEFGHIJ id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: >- An identifier you provide to reference the resource in your system. example: my-workspace-01 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: workspace created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - name - description - organization_id - parent_resource_id - id - external_id - resource_type_slug - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create an authorization resource tags: - authorization x-mutually-exclusive-body-groups: &ref_8 parent_resource: optional: true variants: by_id: - parent_resource_id by_external_id: - parent_resource_external_id - parent_resource_type_slug /authorization/resources/{resource_id}: get: description: Retrieve the details of an authorization resource by its ID. operationId: AuthorizationResourcesController_findById parameters: - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizationResource' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a resource tags: - authorization patch: description: Update an existing authorization resource. operationId: AuthorizationResourcesController_update parameters: - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAuthorizationResourceDto' responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Resource object. const: authorization_resource name: type: string description: A human-readable name for the Resource. example: Updated Name description: type: - string - 'null' description: An optional description of the Resource. example: Updated description organization_id: type: string description: The ID of the organization that owns the resource. example: org_01EHZNVPK3SFK441A1RGBFSHRT parent_resource_id: type: - string - 'null' description: The ID of the parent resource, if this resource is nested. example: authz_resource_01HXYZ123456789ABCDEFGHIJ id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: >- An identifier you provide to reference the resource in your system. example: proj-456 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: project created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - name - description - organization_id - parent_resource_id - id - external_id - resource_type_slug - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a resource tags: - authorization x-mutually-exclusive-body-groups: *ref_0 delete: description: Delete an authorization resource and all its descendants. operationId: AuthorizationResourcesController_delete parameters: - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ - name: cascade_delete required: false in: query description: >- If true, deletes all descendant resources and role assignments. If not set and the resource has children or assignments, the request will fail. schema: type: boolean default: false example: false responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete an authorization resource tags: - authorization /authorization/resources/{resource_id}/organization_memberships: get: description: >- Returns all organization memberships that have a specific permission on a resource instance. This is useful for answering "Who can access this resource?". operationId: AuthorizationResourcesController_listOrganizationMembershipsForResource parameters: - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: permission_slug required: true in: query description: >- The permission slug to filter by. Only users with this permission on the resource are returned. schema: type: string example: document:edit - name: assignment required: false in: query description: >- Filter by assignment type. Use `direct` for direct assignments only, or `indirect` to include inherited assignments. schema: type: string enum: - direct - indirect example: direct responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/UserlandUserOrganizationMembershipBaseWithUserList '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List organization memberships for resource tags: - authorization /authorization/resources/{resource_id}/role_assignments: get: description: >- List all role assignments granted on a specific resource instance. Each assignment includes the organization membership it was granted to. operationId: AuthorizationRoleAssignmentsController_listRoleAssignmentsForResource parameters: - name: resource_id required: true in: path description: The ID of the authorization resource. schema: type: string example: authz_resource_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: role_slug required: false in: query description: Filter assignments by the slug of the role. schema: example: editor type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserRoleAssignmentList' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List role assignments for a resource tags: - authorization /authorization/roles: post: description: Create a new environment role. operationId: AuthorizationRolesController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateRoleDto' responses: '201': description: Created content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: editor object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Editor description: type: - string - 'null' description: An optional description of the role. example: Can edit resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: EnvironmentRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create an environment role tags: - authorization get: description: List all environment roles in priority order. operationId: AuthorizationRolesController_list parameters: [] responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RoleList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List environment roles tags: - authorization /authorization/roles/{slug}: get: description: Get an environment role by its slug. operationId: AuthorizationRolesController_get parameters: - name: slug required: true in: path description: The slug of the environment role. schema: type: string example: admin responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Role' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an environment role tags: - authorization patch: description: Update an existing environment role. operationId: AuthorizationRolesController_update parameters: - name: slug required: true in: path description: The slug of the environment role. schema: type: string example: admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateRoleDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Super Administrator description: type: - string - 'null' description: An optional description of the role. example: Full administrative access to all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: EnvironmentRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update an environment role tags: - authorization /authorization/roles/{slug}/permissions: put: description: Replace all permissions on an environment role with the provided list. operationId: AuthorizationRolePermissionsController_setPermissions parameters: - name: slug required: true in: path description: The slug of the environment role. schema: type: string example: admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SetRolePermissionsDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Admin description: type: - string - 'null' description: An optional description of the role. example: Can manage all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: EnvironmentRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - billing:read - billing:write - invoices:manage - reports:view created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Set permissions for an environment role tags: - authorization post: description: >- Add a single permission to an environment role. If the permission is already assigned to the role, this operation has no effect. operationId: AuthorizationRolePermissionsController_addPermission parameters: - name: slug required: true in: path description: The slug of the environment role. schema: type: string example: admin requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AddRolePermissionDto' responses: '200': description: OK content: application/json: schema: type: object properties: slug: type: string description: A unique slug for the role. example: admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Admin description: type: - string - 'null' description: An optional description of the role. example: Can manage all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: EnvironmentRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - reports:export created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Add a permission to an environment role tags: - authorization /client/token: post: description: >- Generate a short-lived, session-bound token for the Widgets API, scoped to an organization and user. operationId: ClientApiTokenController_issueClientApiToken parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ClientApiTokenDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/ClientApiTokenResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Generate a Widgets API token tags: - client /connect/applications: get: description: >- List all Connect Applications in the current environment with optional filtering. operationId: ApplicationsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: registration_types required: false in: query description: >- Filter Connect Applications by registration type. Specify multiple as a comma-separated list (e.g. `registration_types=dynamic,authenticated`). Defaults to `authenticated` only when not specified. style: form explode: false schema: type: array items: type: string enum: - dynamic - authenticated example: - authenticated - name: organization_id required: false in: query description: Filter Connect Applications by organization ID. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConnectApplicationList' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Connect Applications tags: - applications post: description: >- Create a new Connect Application. Supports both OAuth and Machine-to-Machine (M2M) application types. operationId: ApplicationsController_create parameters: [] requestBody: required: true content: application/json: schema: oneOf: - $ref: '#/components/schemas/CreateOAuthApplicationDto' - $ref: '#/components/schemas/CreateM2MApplicationDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/ConnectApplication' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a Connect Application tags: - applications /connect/applications/{id}: get: description: Retrieve details for a specific Connect Application by ID or client ID. operationId: ApplicationsController_find parameters: - name: id required: true in: path description: The application ID or client ID of the Connect Application. schema: type: string example: conn_app_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConnectApplication' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Connect Application tags: - applications put: description: >- Update an existing Connect Application. For OAuth applications, you can update redirect URIs. For all applications, you can update the name, description, and scopes. operationId: ApplicationsController_update parameters: - name: id required: true in: path description: The application ID or client ID of the Connect Application. schema: type: string example: conn_app_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOAuthApplicationDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConnectApplication' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a Connect Application tags: - applications delete: description: Delete an existing Connect Application. operationId: ApplicationsController_delete parameters: - name: id required: true in: path description: The application ID or client ID of the Connect Application. schema: type: string example: conn_app_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a Connect Application tags: - applications /connect/applications/{id}/client_secrets: get: description: List all client secrets associated with a Connect Application. operationId: ApplicationCredentialsController_list parameters: - name: id required: true in: path description: The application ID or client ID of the Connect Application. schema: type: string example: conn_app_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: type: array items: type: object properties: object: type: string description: Distinguishes the connect application secret object. const: connect_application_secret id: type: string description: The unique ID of the client secret. example: secret_01J9Q2Z3X4Y5W6V7U8T9S0R1Q secret_hint: type: string description: >- A hint showing the last few characters of the secret value. example: abc123 last_used_at: format: date-time type: - string - 'null' description: >- The timestamp when the client secret was last used, or null if never used. example: null created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - secret_hint - last_used_at - created_at - updated_at '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Client Secrets for a Connect Application tags: - application.client-secrets post: description: Create new secrets for a Connect Application. operationId: ApplicationCredentialsController_create parameters: - name: id required: true in: path description: The application ID or client ID of the Connect Application. schema: type: string example: conn_app_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateApplicationSecretDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/NewConnectApplicationSecret' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a new client secret for a Connect Application tags: - application.client-secrets /connect/client_secrets/{id}: delete: description: Delete (revoke) an existing client secret. operationId: ApplicationCredentialsController_delete parameters: - name: id required: true in: path description: The unique ID of the client secret. schema: type: string example: secret_01J9Q2Z3X4Y5W6V7U8T9S0R1Q responses: '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a Client Secret tags: - application.client-secrets /connections: post: description: >- Creates a new connection for an organization. Provide `saml_options` or `oidc_options` to configure the identity provider. When `external_id` matches an existing connection in the organization, that connection is returned instead of creating a duplicate. operationId: ConnectionsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateConnectionDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Connection' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/ErrorBody' - $ref: '#/components/schemas/IdpMetadataFetchFailedErrorBody' - $ref: '#/components/schemas/ConnectionCouldNotBeVerifiedErrorBody' - $ref: '#/components/schemas/InvalidIdpSsoUrlErrorBody' summary: Create a Connection tags: - connections x-feature-flag: connections-api-migrations-capabilities-api x-mutually-exclusive-body-groups: &ref_9 protocol_options: optional: false variants: saml: - saml_options oidc: - oidc_options get: description: >- Get a list of all of your existing connections matching the criteria specified. operationId: ConnectionsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: connection_type required: false in: query description: Filter Connections by their type. schema: example: GithubOAuth enum: - ADFSSAML - AdpOidc - AppleOAuth - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - CloudflareSAML - ClassLinkSAML - CleverOIDC - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GithubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth type: string - name: domain required: false in: query description: Filter Connections by their associated domain. schema: example: foo-corp.com type: string - name: organization_id required: false in: query description: Filter Connections by their associated organization. schema: example: org_01EHWNCE74X7JSDV0X3SZ3KJNY type: string - name: search required: false in: query description: Searchable text to match against Connection names. schema: example: Foo Corp type: string - name: state required: false in: query description: Filter Connections by their state. schema: example: active enum: - active - inactive - validating type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ConnectionList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Connections tags: - connections /connections/{connectionId}/saml_idp_signing_certs: get: description: >- Lists every Identity Provider signing certificate on the connection, including expired ones, oldest first. operationId: SamlIdpSigningCertificatesController_list parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SamlIdpSigningCertificateList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List IdP signing certificates tags: - connections x-feature-flag: connections-api-migrations-capabilities-api post: description: >- Adds an Identity Provider signing certificate to the connection, so SAML responses signed with its key can be verified. Use this to import a new certificate ahead of an Identity Provider rotation — the existing certificates keep working until they are deleted or expire. operationId: SamlIdpSigningCertificatesController_create parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateSamlIdpSigningCertificateDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/SamlIdpSigningCertificate' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create an IdP signing certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{connectionId}/saml_idp_signing_certs/{certificateId}: delete: description: >- Removes an Identity Provider signing certificate from the connection. The last remaining certificate cannot be deleted. A certificate still published in the Identity Provider metadata may be restored by a metadata refresh. operationId: SamlIdpSigningCertificatesController_delete parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: certificateId required: true in: path description: Unique identifier for the Identity Provider signing certificate. schema: example: saml_x509_cert_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an IdP signing certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{connectionId}/saml_sp_encryption_certs: get: description: >- Lists the public certificates the Identity Provider can use to encrypt SAML responses sent to WorkOS, including expired ones, oldest first. operationId: SamlSpEncryptionCertificatesController_list parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SamlSpEncryptionCertificateList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List SP encryption certificates tags: - connections x-feature-flag: connections-api-migrations-capabilities-api post: description: >- Generates a new encryption key pair for the connection and returns its public certificate. WorkOS holds the private key, so the request takes no body — to bring your own key pairs, provide `saml_options.sp_encryption_key_pairs` when creating the connection instead. Creating a certificate appends rather than replaces: every active private key is tried when decrypting, which lets a rotation overlap the old and new certificates. operationId: SamlSpEncryptionCertificatesController_create parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/SamlSpEncryptionCertificate' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an SP encryption certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{connectionId}/saml_sp_encryption_certs/{certificateId}: delete: description: >- Removes an encryption key pair from the connection. SAML responses encrypted with its certificate can no longer be decrypted, so remove the certificate from the Identity Provider first when rotating. operationId: SamlSpEncryptionCertificatesController_delete parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: certificateId required: true in: path description: >- Unique identifier for the Service Provider encryption key pair. WorkOS holds the corresponding private key, which is never exposed. schema: example: saml_enc_key_pair_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an SP encryption certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{connectionId}/saml_sp_signing_cert: get: description: >- Returns the public certificate the Identity Provider can use to verify the signature of SAML requests sent by WorkOS. Responds with `404` when the connection has no request signing key pair. operationId: SamlSpSigningCertificatesController_get parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SamlSpSigningCertificate' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get the SP signing certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api post: description: >- Generates a new request signing key pair for the connection and returns its public certificate. WorkOS holds the private key, so the request takes no body — to bring your own key pair, provide `saml_options.sp_signing_key_pair` when creating the connection instead. A connection signs with one key pair at a time: delete the existing certificate before creating its replacement. operationId: SamlSpSigningCertificatesController_create parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/SamlSpSigningCertificate' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an SP signing certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{connectionId}/saml_sp_signing_cert/{certificateId}: delete: description: >- Removes the request signing key pair from the connection, after which SAML requests are sent unsigned. Delete the certificate before creating its replacement when rotating. operationId: SamlSpSigningCertificatesController_delete parameters: - name: connectionId required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: certificateId required: true in: path description: >- Unique identifier for the Service Provider signing key pair. WorkOS holds the corresponding private key, which is never exposed. schema: example: saml_party_trust_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete the SP signing certificate tags: - connections x-feature-flag: connections-api-migrations-capabilities-api /connections/{id}: patch: description: >- Updates an existing connection. Only the provided fields are changed; fields that accept `null` are reset to their default behavior. operationId: ConnectionsController_patch parameters: - name: id required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchConnectionDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Connection' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/ErrorBody' - $ref: '#/components/schemas/ConnectionTypeNotUpdatableErrorBody' - $ref: '#/components/schemas/IdpMetadataFetchFailedErrorBody' - $ref: '#/components/schemas/ConnectionCouldNotBeVerifiedErrorBody' summary: Update a Connection tags: - connections x-feature-flag: connections-api-migrations-capabilities-api x-mutually-exclusive-body-groups: &ref_12 protocol_options: optional: true variants: saml: - saml_options oidc: - oidc_options get: description: Get the details of an existing connection. operationId: ConnectionsController_find parameters: - name: id required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Connection' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Connection tags: - connections delete: description: Permanently deletes an existing connection. It cannot be undone. operationId: ConnectionsController_delete parameters: - name: id required: true in: path description: Unique identifier for the Connection. schema: example: conn_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a Connection tags: - connections /data-integrations: post: description: >- Creates a data integration for a provider. Set `credentials.type` to `custom` to use your own OAuth app credentials or `organization` to have each organization supply its own. Set `auth_methods` to `["api_key"]` to create an API key integration; you may optionally supply an `api_key` block to install a first tenant in the same call. Set `auth_methods` to `["client_credentials"]` to create a client-credentials integration; client credentials are installed per-tenant afterwards. Set `ownership` to `organization` to create the integration organizations connect to instead of the default user-owned one; a provider may have one of each. For a built-in provider, pass its slug as `provider`. For a custom provider, pass a new slug plus a `custom_provider` definition, or the slug of an existing custom provider (without `custom_provider`) to add the other ownership. operationId: DataIntegrationsManagementController_createDataIntegration parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateDataIntegrationDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/DataIntegration' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: A data integration with this slug already exists in the environment. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a data integration tags: - pipes get: description: >- Lists the environment's data integrations configured with `custom` or `organization` credentials, including custom providers and API key integrations. Both user-owned and organization-owned roots are returned, each as its own row with an `ownership`; filter with `ownership` to return only one kind. operationId: DataIntegrationsManagementController_listDataIntegrations parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: ownership required: false in: query description: >- Only return Data Integrations with this ownership: `user` for the integrations users connect their own accounts to, or `organization` for the roots organizations connect to. Omit to return both. schema: example: user enum: - user - organization type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegrationList' '401': description: Unauthorized '404': description: >- Organization-owned data integrations are not available for this environment. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List data integrations tags: - pipes /data-integrations/finish: post: description: >- Saves a connection that was started with `code_challenge`. After the user authorizes, WorkOS redirects them to `return_to` with a `connect_code` and `state`. Call this endpoint from your server with that `connect_code` and the `code_verifier` behind the challenge to save the connected account. operationId: DataIntegrationsController_finishConnection parameters: [] requestBody: required: true content: application/json: schema: type: object properties: connect_code: type: string pattern: ^[A-Za-z0-9_-]{43}$ description: >- The `connect_code` WorkOS added to `return_to` when the user finished authorizing. It can be used once and expires 90 seconds after the redirect. example: Q3n0bWh2b0tqZ1VtV2ZsYkJ3cE9aV0J6T1hGb1lYaGo code_verifier: type: string pattern: ^[A-Za-z0-9._~-]{43,128}$ description: >- The code verifier `code_challenge` was derived from: 43 to 128 characters from `A-Z`, `a-z`, `0-9`, `-`, `.`, `_` and `~`. A wrong verifier uses up the `connect_code`, and the user has to connect again. example: dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk state: type: string description: >- The `state` WorkOS added to `return_to` alongside `connect_code`. Optional; it is only used to correlate the request in logs. example: q2czJKmVAraSBg8xFpT7M9uR required: - connect_code - code_verifier responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegrationFinishConnectionResponse' '400': description: >- The connection could not be completed, and the user must connect again. `invalid_connect_code` when the `connect_code` is unknown, expired, already used, or from another environment, or the `code_verifier` does not match the `code_challenge`. Other codes report why saving the connection failed, such as `target_deleted` when the connected account being reauthorized was deleted in the meantime. A malformed request body returns validation messages instead. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionFinishErrorBody' - $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Finish connection tags: - pipes /data-integrations/{slug}: get: description: Retrieves the user-owned data integration by its slug. operationId: DataIntegrationsManagementController_getDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegration' '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a data integration tags: - pipes put: description: >- Updates the description, enabled state, or custom credentials of the user-owned data integration. For custom providers, `custom_provider` updates the OAuth definition. operationId: DataIntegrationsManagementController_updateDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateDataIntegrationDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegration' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a data integration tags: - pipes delete: description: >- Deletes the user-owned data integration and all of its connected installations. For a custom provider, the provider definition is deleted once no organization-owned root references it either. operationId: DataIntegrationsManagementController_deleteDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string responses: '204': description: No Content '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a data integration tags: - pipes /data-integrations/{slug}/api-key: post: description: >- Creates another API key-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection. operationId: DataIntegrationsController_createApiKeyConnection parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: github type: string - name: idempotency-key in: header description: >- Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. required: false schema: type: string example: 0b6c3f0e-7a51-4c3a-9d8e-2f1b5a6c7d80 requestBody: required: true content: application/json: schema: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' minLength: 1 description: >- A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. example: workspace_123 user_id: type: string description: A [User](/reference/authkit/user) identifier. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. example: user secret: type: string minLength: 1 description: The API key secret to store for this integration. example: sk-1234567890abcdef connection_intent: type: string description: >- Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. example: add const: add required: - user_id - secret - connection_intent additionalProperties: false responses: '201': description: The connected account that was created. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: standard account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT scopes: [] auth_method: api_key api_key_last_4: cdef state: connected created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: >- The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The data integration was not found, or `multiple_connections_unavailable` when additional connections are turned off for the team. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- `connected_account_limit_reached` when the provider and owner already have 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationConflictErrorBody' - $ref: '#/components/schemas/ErrorBody' '503': description: >- Another connection is being created for this owner and provider. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create another API key connected account tags: - pipes put: description: >- Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value. To create another connection, use POST. operationId: DataIntegrationsController_upsertApiKey parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: github type: string requestBody: required: true content: application/json: schema: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' minLength: 1 description: >- A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. example: workspace_123 user_id: type: string description: A [User](/reference/authkit/user) identifier. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. example: user secret: type: string minLength: 1 description: The API key secret to store for this integration. example: sk-1234567890abcdef connection_intent: type: string description: >- Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. Omit it to use the compatibility connection; creating another connection lives on the POST route. example: reauthorize const: reauthorize connected_account_id: type: string pattern: ^data_installation_.+$ description: >- The exact connected account to reauthorize. Required with `connection_intent: reauthorize`; it may also be sent on its own to reauthorize that connection. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT required: - user_id - secret additionalProperties: false responses: '200': description: The resulting connected account after the upsert. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT scopes: [] auth_method: api_key api_key_last_4: cdef state: connected created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The data integration or selected connected account was not found (`entity_not_found`). content: application/json: schema: anyOf: - $ref: '#/components/schemas/EntityNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match the connection owner for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '422': description: >- The matched installation uses a different auth method than this endpoint expects. content: application/json: schema: $ref: '#/components/schemas/AuthMethodMismatchErrorBody' summary: Upsert an API key for a connected account tags: - pipes /data-integrations/{slug}/authorize: post: description: >- Generates an OAuth authorization URL to initiate the connection flow for a user. Redirect the user to the returned URL to begin the OAuth flow with the third-party provider. operationId: DataIntegrationsController_getDataIntegrationAuthorizeUrl parameters: - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string requestBody: required: true content: application/json: schema: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. maxLength: 255 example: Acme production user_id: type: string description: >- The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`. example: user return_to: type: string format: uri description: >- The URL to redirect the user to after authorization. Required with `code_challenge`, and must then exactly match a redirect URI registered on one of the environment's applications. Loopback URLs match on any port; wildcard redirect URIs are not honored, and a `return_to` with a query string or fragment never matches. example: https://example.com/callback code_challenge: type: string pattern: ^[A-Za-z0-9_-]{43}$ description: >- A PKCE-style code challenge: the base64url-encoded SHA-256 of a `code_verifier` your app keeps. When set, the connection isn't saved when the user finishes authorizing. Instead, the user is redirected to `return_to` with a `connect_code` and `state`, and your app must call [Finish connection](/reference/pipes/connected-account/finish-connection) with the `connect_code` and `code_verifier` within 90 seconds to save it. example: E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM code_challenge_method: type: string description: >- The method used to derive `code_challenge`. Only `S256` is supported, and it is the default. Requires `code_challenge`. example: S256 const: S256 config: type: object additionalProperties: type: string description: >- Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration. example: subdomain: acme connection_intent: type: string enum: - add - reauthorize description: >- Which connection the request targets. Omit it to use the compatibility connection. Send `add` to create another connection: the first connection for an owner shape fills the compatibility slot, and later connections are standard. Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. example: add connected_account_id: type: string pattern: ^data_installation_.+$ description: >- The exact connected account to reauthorize. Required with `connection_intent: reauthorize` and not accepted otherwise. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT required: - user_id additionalProperties: false responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegrationAuthorizeUrlResponse' '400': description: >- The request was invalid. With `code_challenge`: `invalid_return_to` when `return_to` is missing or does not exactly match a registered redirect URI, `return_to_requires_exact_match` when only a wildcard redirect URI matches it, and `connect_finish_unavailable` when `code_challenge` is not available for the environment. content: application/json: schema: anyOf: - $ref: '#/components/schemas/AuthorizationUrlRequestErrorBody' - $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The integration or user was not found (`entity_not_found`); `connected_account_not_found` when `connected_account_id` does not name a connection for this owner and integration; or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection while additional connections are turned off for the team. content: application/json: schema: anyOf: - $ref: '#/components/schemas/AuthorizationUrlNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- `connected_account_limit_reached` when explicit add would create a standard connection for a provider and owner that already has 25 connections. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectedAccountLimitReachedErrorBody' - $ref: '#/components/schemas/ErrorBody' '422': description: The selected connected account does not use OAuth authentication. content: application/json: schema: $ref: '#/components/schemas/AuthMethodMismatchError' summary: Get authorization URL tags: - pipes /data-integrations/{slug}/client-credentials: post: description: >- Creates another client credentials-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection. operationId: DataIntegrationsController_createClientCredentialsConnection parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: salesforce type: string - name: idempotency-key in: header description: >- Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. required: false schema: type: string example: 0b6c3f0e-7a51-4c3a-9d8e-2f1b5a6c7d80 requestBody: required: true content: application/json: schema: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' minLength: 1 description: >- A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. example: workspace_123 user_id: type: string description: A [User](/reference/authkit/user) identifier. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. example: user client_id: type: string minLength: 1 description: The OAuth client ID to store for this integration. example: 3MVG9... client_secret: type: string minLength: 1 description: The OAuth client secret to store for this integration. example: shhh-secret config: type: object additionalProperties: type: string description: >- Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. example: salesforce_host: acme.my.salesforce.com connection_intent: type: string description: >- Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. example: add const: add required: - user_id - client_id - client_secret - connection_intent additionalProperties: false responses: '201': description: The connected account that was created. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: standard account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT scopes: [] auth_method: client_credentials state: connected created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: >- The request is invalid, including a missing `connection_intent: add` or a supplied `connected_account_id`. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The data integration was not found, or `multiple_connections_unavailable` when additional connections are turned off for the team. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- `connected_account_limit_reached` when the provider and owner already have 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationConflictErrorBody' - $ref: '#/components/schemas/ErrorBody' '503': description: >- Another connection is being created for this owner and provider. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create another client credentials connected account tags: - pipes put: description: >- Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values. To create another connection, use POST. operationId: DataIntegrationsController_upsertClientCredentials parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: salesforce type: string requestBody: required: true content: application/json: schema: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' minLength: 1 description: >- A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. example: workspace_123 user_id: type: string description: A [User](/reference/authkit/user) identifier. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. example: user client_id: type: string minLength: 1 description: The OAuth client ID to store for this integration. example: 3MVG9... client_secret: type: string minLength: 1 description: The OAuth client secret to store for this integration. example: shhh-secret config: type: object additionalProperties: type: string description: >- Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. example: salesforce_host: acme.my.salesforce.com connection_intent: type: string description: >- Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. Omit it to use the compatibility connection; creating another connection lives on the POST route. example: reauthorize const: reauthorize connected_account_id: type: string pattern: ^data_installation_.+$ description: >- The exact connected account to reauthorize. Required with `connection_intent: reauthorize`; it may also be sent on its own to reauthorize that connection. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT required: - user_id - client_id - client_secret additionalProperties: false responses: '200': description: The resulting connected account after the upsert. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT scopes: [] auth_method: client_credentials state: connected created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithMessageOrMessageList' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The data integration or selected connected account was not found (`entity_not_found`). content: application/json: schema: anyOf: - $ref: '#/components/schemas/EntityNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match the connection owner for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '422': description: >- The matched installation uses a different auth method than this endpoint expects. content: application/json: schema: $ref: '#/components/schemas/AuthMethodMismatchErrorBody' summary: Upsert client credentials for a connected account tags: - pipes /data-integrations/{slug}/credentials: post: description: >- Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret. Every active credential includes `config`: provider-declared, non-secret values from the installation snapshot, with current provider defaults for unset fields. Editing integration or organization configuration does not change the snapshot; reconnect or explicitly rebind the connection to adopt those edits. Defaults remain live, so a changed default can appear in `config` before a cached token is refreshed or re-minted. Credentials that never refresh require a reconnect or rebind when a default changes their routing. operationId: DataIntegrationsController_vendCredentials parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: github type: string requestBody: required: true content: application/json: schema: type: object properties: user_id: type: string description: >- A [User](/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connected_account_id: type: string minLength: 1 description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`. example: user supports_multiple_connections: type: boolean description: >- Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered. example: true required: - user_id responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegrationCredentialsResponse' example: active: true credential: object: credential auth_method: oauth value: gho_16C7e42F292c6912E7710c838347Ae178B4a expires_at: '2025-12-31T23:59:59.000Z' scopes: - repo - user:email missing_scopes: [] metadata: {} config: {} '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: Unauthorized '403': description: >- The user is not an active member of the organization named for an organization connection or an organization-scoped personal connection. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: The data integration or selected connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user or organization for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredError' '422': description: >- The installation uses an auth method that is not yet supported by this endpoint. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Vend credentials for a connected account tags: - pipes /data-integrations/{slug}/organization: get: description: >- Retrieves the organization-owned data integration for a provider by its slug. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization. operationId: DataIntegrationsManagementController_getOrganizationDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/DataIntegration' example: object: data_integration id: data_integration_01EHZNVPK3SFK441A1RGBFSHRT slug: github integration_type: github ownership: organization description: Production GitHub app enabled: true state: valid scopes: - repo - read:org redirect_uri: >- https://api.workos.com/data-integrations/github/dik_01EHZNVPK3SFK441A1RGBFSHRT/callback auth_methods: - oauth credentials: type: custom client_id: Iv1.abc123 redacted_client_secret: '6789' installation: null config: account: myorg-myaccount custom_provider: name: My OAuth App authorization_url: https://provider.example.com/oauth/authorize token_url: https://provider.example.com/oauth/token refresh_token_url: https://provider.example.com/oauth/token pkce_enabled: true request_scope_separator: ' ' scopes_required: false client_secret_required: true additional_authorization_parameters: prompt: consent token_body_content_type: application/x-www-form-urlencoded authenticate_via: request_body created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' description: OK '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an organization-owned data integration tags: - pipes put: description: >- Updates the description, enabled state, or custom credentials of the organization-owned data integration for a provider. For custom providers, `custom_provider` updates the OAuth definition, which is shared with the user-owned root. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization. operationId: DataIntegrationsManagementController_updateOrganizationDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateDataIntegrationDto' responses: '200': content: application/json: schema: $ref: '#/components/schemas/DataIntegration' example: object: data_integration id: data_integration_01EHZNVPK3SFK441A1RGBFSHRT slug: github integration_type: github ownership: organization description: Production GitHub app enabled: true state: valid scopes: - repo - read:org redirect_uri: >- https://api.workos.com/data-integrations/github/dik_01EHZNVPK3SFK441A1RGBFSHRT/callback auth_methods: - oauth credentials: type: custom client_id: Iv1.abc123 redacted_client_secret: '6789' installation: null config: account: myorg-myaccount custom_provider: name: My OAuth App authorization_url: https://provider.example.com/oauth/authorize token_url: https://provider.example.com/oauth/token refresh_token_url: https://provider.example.com/oauth/token pkce_enabled: true request_scope_separator: ' ' scopes_required: false client_secret_required: true additional_authorization_parameters: prompt: consent token_body_content_type: application/x-www-form-urlencoded authenticate_via: request_body created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' description: OK '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: Unauthorized '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update an organization-owned data integration tags: - pipes delete: description: >- Deletes the organization-owned data integration for a provider and all of its connected installations. For a custom provider, the provider definition is deleted once no user-owned root references it either. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization. operationId: DataIntegrationsManagementController_deleteOrganizationDataIntegration parameters: - name: slug required: true in: path description: The slug identifier of the data integration. schema: example: github type: string responses: '204': description: No Content '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an organization-owned data integration tags: - pipes /data-integrations/{slug}/token: post: description: >- Fetches a valid OAuth access token for a user's connected account. WorkOS automatically handles token refresh, ensuring you always receive a valid, non-expired token. operationId: DataIntegrationsController_getUserlandUserToken parameters: - name: slug required: true in: path description: The identifier of the integration. schema: example: github type: string requestBody: required: true content: application/json: schema: type: object properties: user_id: type: string description: >- A [User](/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An [Organization](/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. example: org_01EHZNVPK3SFK441A1RGBFSHRT connected_account_id: type: string minLength: 1 description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_owner: type: string enum: - user - organization description: >- Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`. example: user supports_multiple_connections: type: boolean description: >- Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered. example: true required: - user_id responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DataIntegrationAccessTokenResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: Unauthorized '403': description: >- The user is not an active member of the organization named for an organization connection or an organization-scoped personal connection. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: The data integration or selected connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user or organization for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredError' '422': description: >- The matched installation uses a different auth method than this endpoint expects. content: application/json: schema: $ref: '#/components/schemas/AuthMethodMismatchError' summary: Get an access token for a connected account tags: - pipes /directories: get: description: >- Get a list of all of your existing directories matching the criteria specified. operationId: DirectoriesController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: Filter Directories by their associated organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: search required: false in: query description: Searchable text to match against Directory names. schema: example: Foo Corp type: string - name: domain required: false in: query description: Filter Directories by their associated domain. deprecated: true schema: example: foo-corp.com type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Directories tags: - directories /directories/{directoryId}/groups: get: description: >- Get a list of the Directory Groups in a Directory, optionally filtered to the groups a Directory User belongs to. operationId: DirectoriesGroupsController_list parameters: - name: directoryId required: true in: path description: Unique identifier of the Directory. schema: type: string example: directory_01ECAZ4NV9QMV47GW873HDCX74 - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: user required: false in: query description: Filter Directory Groups to those this Directory User belongs to. schema: example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ type: string responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: directory_group_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: directory_group_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/DirectoryGroup' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Groups for a Directory tags: - directory-groups /directories/{directoryId}/groups/{groupId}: get: description: Get the details of a Directory Group in a Directory. operationId: DirectoriesGroupsController_find parameters: - name: directoryId required: true in: path description: Unique identifier of the Directory. schema: type: string example: directory_01ECAZ4NV9QMV47GW873HDCX74 - name: groupId required: true in: path description: Unique identifier for the Directory Group. schema: example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryGroup' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Group for a Directory tags: - directory-groups /directories/{directoryId}/users: get: description: >- Get a list of the Directory Users in a Directory, optionally filtered to the members of a Directory Group. operationId: DirectoriesUsersController_list parameters: - name: directoryId required: true in: path description: Unique identifier of the Directory. schema: type: string example: directory_01ECAZ4NV9QMV47GW873HDCX74 - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: group required: false in: query description: Filter Directory Users to the members of this Directory Group. schema: example: directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT type: string - name: idp_id required: false in: query description: >- Filter Directory Users by the identity provider's unique identifier (`idp_id`). schema: example: '2836' type: string - name: email required: false in: query description: Filter Directory Users by their primary email address. schema: example: jane.doe@example.com type: string responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: directory_user_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: directory_user_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/DirectoryUser' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Users for a Directory tags: - directory-users /directories/{directoryId}/users/{userId}: get: description: Get the details of a Directory User in a Directory. operationId: DirectoriesUsersController_find parameters: - name: directoryId required: true in: path description: Unique identifier of the Directory. schema: type: string example: directory_01ECAZ4NV9QMV47GW873HDCX74 - name: userId required: true in: path description: Unique identifier for the Directory User. schema: example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryUser' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a User for a Directory tags: - directory-users /directories/{id}: get: description: Get the details of an existing directory. operationId: DirectoriesController_find parameters: - name: id required: true in: path description: Unique identifier for the Directory. schema: example: directory_01ECAZ4NV9QMV47GW873HDCX74 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Directory' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Directory tags: - directories delete: description: Permanently deletes an existing directory. It cannot be undone. operationId: DirectoriesController_deleteDirectory parameters: - name: id required: true in: path description: Unique identifier for the Directory. schema: example: directory_01ECAZ4NV9QMV47GW873HDCX74 type: string responses: '200': description: OK '202': description: '' content: application/json: schema: {} '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a Directory tags: - directories /directories/{id}/sync: post: description: >- Request an asynchronous sync from the directory provider. Currently supports Google Workspace directories in linked or validating state. Manual requests share a five-minute per-directory cooldown across the API, Dashboard, Admin Portal, and MCP. Acceptance means the request was queued, not that the sync has started or completed. A running sync prevents another request from being queued. operationId: DirectoriesController_syncDirectory parameters: - name: id required: true in: path description: Unique identifier for the Directory. schema: example: directory_01ECAZ4NV9QMV47GW873HDCX74 type: string responses: '202': description: '' content: application/json: schema: $ref: '#/components/schemas/DirectorySyncResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: A sync is already in progress. No additional sync was queued. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: The directory provider or state does not support manual sync. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: The directory is within the manual-sync cooldown window. headers: Retry-After: description: Seconds to wait before requesting another manual sync. schema: type: integer minimum: 1 content: application/json: schema: $ref: '#/components/schemas/DirectorySyncRateLimitError' '503': description: Directory syncing is temporarily paused. No sync was queued. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Sync a Directory tags: - directories /directory_groups: get: deprecated: true description: >- Get a list of all of existing directory groups matching the criteria specified. Deprecated: use `GET /directories/{directoryId}/groups` instead. operationId: DirectoryGroupsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: directory required: false in: query description: >- Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API. schema: example: directory_01ECAZ4NV9QMV47GW873HDCX74 type: string - name: user required: false in: query description: >- Unique identifier of the WorkOS Directory User. This value can be obtained from the WorkOS API. schema: example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryGroupList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Directory Groups tags: - directory-groups /directory_groups/{id}: get: deprecated: true description: >- Get the details of an existing Directory Group. Deprecated: use `GET /directories/{directoryId}/groups/{groupId}` instead. operationId: DirectoryGroupsController_find parameters: - name: id required: true in: path description: Unique identifier for the Directory Group. schema: example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryGroup' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Directory Group tags: - directory-groups /directory_users: get: deprecated: true description: >- Get a list of all of existing Directory Users matching the criteria specified. Deprecated: use `GET /directories/{directoryId}/users` instead. operationId: DirectoryUsersController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: directory required: false in: query description: >- Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API. schema: example: directory_01ECAZ4NV9QMV47GW873HDCX74 type: string - name: group required: false in: query description: >- Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API. schema: example: directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT type: string - name: idp_id required: false in: query description: >- Filter Directory Users by the identity provider's unique identifier (`idp_id`). Requires the `directory` parameter to also be provided. schema: example: '2836' type: string - name: email required: false in: query description: >- Filter Directory Users by their primary email address. Requires the `directory` parameter to also be provided. schema: example: jane.doe@example.com type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryUserList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '429': description: '' content: application/json: schema: type: string const: Ratelimited summary: List Directory Users tags: - directory-users /directory_users/{id}: get: deprecated: true description: >- Get the details of an existing Directory User. Deprecated: use `GET /directories/{directoryId}/users/{userId}` instead. operationId: DirectoryUsersController_find parameters: - name: id required: true in: path description: Unique identifier for the Directory User. schema: example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DirectoryUserWithGroups' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a Directory User tags: - directory-users /events: get: description: >- List events for the current environment. Events are returned oldest first; use `after` to page forward. operationId: EventsController_list parameters: - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: events required: true in: query description: >- Filter events by one or more event types (e.g. `dsync.user.created`). style: form explode: false schema: example: - dsync.user.created - dsync.user.updated type: array items: type: string - name: range_start required: false in: query description: >- ISO 8601 UTC timestamp with a `Z` suffix to filter events created after this date. Timezone offsets such as `+00:00` are not accepted. schema: format: date-time pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$ example: '2025-01-01T00:00:00Z' type: string - name: range_end required: false in: query description: >- ISO 8601 UTC timestamp with a `Z` suffix to filter events created before this date. Timezone offsets such as `+00:00` are not accepted. schema: format: date-time pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$ example: '2025-12-31T23:59:59Z' type: string - name: organization_id required: false in: query description: >- Filter events by the [Organization](/reference/organization) that the event is associated with. schema: example: org_01EHQMYV6MBK39QC5PZXHY59C3 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EventList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeFieldErrors' summary: List events tags: - events /feature-flags: get: description: >- Get a list of all of your existing feature flags matching the criteria specified. operationId: FeatureFlagsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FlagList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List feature flags tags: - feature-flags /feature-flags/{slug}: get: description: Get the details of an existing feature flag by its slug. operationId: FeatureFlagsController_findBySlug parameters: - name: slug required: true in: path description: A unique key to reference the Feature Flag. schema: type: string example: advanced-analytics responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Flag' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a feature flag tags: - feature-flags /feature-flags/{slug}/disable: put: description: Disables a feature flag in the current environment. operationId: FeatureFlagsController_disableFlag parameters: - name: slug required: true in: path description: A unique key to reference the Feature Flag. schema: type: string example: advanced-analytics responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Feature Flag object. const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: >- A descriptive name for the Feature Flag. This field does not need to be unique. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: - reports enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: false default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at x-inline-with-overrides: true '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Disable a feature flag tags: - feature-flags /feature-flags/{slug}/enable: put: description: Enables a feature flag in the current environment. operationId: FeatureFlagsController_enableFlag parameters: - name: slug required: true in: path description: A unique key to reference the Feature Flag. schema: type: string example: advanced-analytics responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the Feature Flag object. const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: >- A descriptive name for the Feature Flag. This field does not need to be unique. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: - reports enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at x-inline-with-overrides: true '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Enable a feature flag tags: - feature-flags /feature-flags/{slug}/targets/{resourceId}: post: description: >- Enables a feature flag for a specific target in the current environment. Currently, supported targets include users and organizations. operationId: FlagTargetsController_createTarget parameters: - name: resourceId required: true in: path description: The resource ID in format "user_" or "org_". schema: example: user_01234567890abcdef type: string - name: slug required: true in: path description: The unique slug identifier of the feature flag. schema: example: beta-feature type: string responses: '204': description: Target created or updated successfully. '400': description: Invalid resourceId format. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeStatusCode' '403': description: Access denied. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Feature flag, user, or organization not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Add a feature flag target tags: - feature-flags.targets delete: description: >- Removes a target from the feature flag's target list in the current environment. Currently, supported targets include users and organizations. operationId: FlagTargetsController_deleteTarget parameters: - name: resourceId required: true in: path description: The resource ID in format "user_" or "org_". schema: example: user_01234567890abcdef type: string - name: slug required: true in: path description: The unique slug identifier of the feature flag. schema: example: beta-feature type: string responses: '204': description: Target deleted successfully. '400': description: Invalid resourceId format. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeStatusCode' '403': description: Access denied. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Feature flag, user, or organization not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a feature flag target tags: - feature-flags.targets /organization_domains: post: description: Creates a new Organization Domain. operationId: OrganizationDomainsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationDomainDto' responses: '201': description: Created content: application/json: schema: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01EHQMYV6MBK39QC5PZXHY59C3 domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at x-inline-with-overrides: true '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an Organization Domain tags: - organization-domains /organization_domains/{id}: get: description: Get the details of an existing organization domain. operationId: OrganizationDomainsController_get parameters: - name: id required: true in: path description: Unique identifier of the organization domain. schema: type: string example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OrganizationDomainStandAlone' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an Organization Domain tags: - organization-domains delete: description: Permanently deletes an organization domain. It cannot be undone. operationId: OrganizationDomainsController_delete parameters: - name: id required: true in: path description: Unique identifier of the organization domain. schema: type: string example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A responses: '204': description: Organization domain deleted successfully. '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an Organization Domain tags: - organization-domains /organization_domains/{id}/verify: post: description: Initiates verification process for an Organization Domain. operationId: OrganizationDomainsController_verify parameters: - name: id required: true in: path description: Unique identifier of the organization domain. schema: type: string example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/OrganizationDomainStandAlone' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Verify an Organization Domain tags: - organization-domains /organizations: get: description: >- Get a list of all of your existing organizations matching the criteria specified. operationId: OrganizationsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: domains required: false in: query description: >- The domains of an Organization. Any Organization with a matching domain will be returned. style: form explode: false schema: type: array items: type: string example: - foo-corp.com - name: search required: false in: query description: >- Searchable text for an Organization. Matches against the organization name. schema: type: string example: Acme Corp responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OrganizationList' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Organizations tags: - organizations post: description: Creates a new organization in the current environment. operationId: OrganizationsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OrganizationDto' responses: '201': content: application/json: schema: $ref: '#/components/schemas/Organization' example: object: organization name: Foo Corp domains: - object: organization_domain id: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: org_01HE8GSH8FQPASKSY27THRKRBP domain: foo-corp.com state: pending verification_prefix: superapp-domain-verification-z3kjny verification_token: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: dns created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' metadata: tier: diamond stripe_customer_id: cus_R9qWAGMQ6nGE7V created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' allow_profiles_outside_organization: false id: org_01EHWNCE74X7JSDV0X3SZ3KJNY external_id: ext_12345 description: Created '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create an Organization tags: - organizations /organizations/external_id/{external_id}: get: description: >- Get the details of an existing organization by an [external identifier](/authkit/metadata/external-identifiers). operationId: OrganizationsController_getByExternalId parameters: - name: external_id required: true in: path description: The external ID of the Organization. schema: type: string example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Organization' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an Organization by External ID tags: - organizations /organizations/{id}: get: description: Get the details of an existing organization. operationId: OrganizationsController_find parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Organization' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an Organization tags: - organizations put: description: Updates an organization in the current environment. operationId: OrganizationsController_updateOrganization parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationDto' responses: '200': content: application/json: schema: $ref: '#/components/schemas/Organization' example: object: organization name: Foo Corp domains: - object: organization_domain id: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: org_01HE8GSH8FQPASKSY27THRKRBP domain: foo-corp.com state: pending verification_prefix: superapp-domain-verification-z3kjny verification_token: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: dns created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' metadata: tier: diamond stripe_customer_id: cus_R9qWAGMQ6nGE7V created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' allow_profiles_outside_organization: false id: org_01EHZNVPK3SFK441A1RGBFSHRT external_id: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 description: OK '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update an Organization tags: - organizations delete: description: >- Permanently deletes an organization in the current environment. It cannot be undone. operationId: OrganizationsController_deleteOrganization parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK '202': description: '' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an Organization tags: - organizations /organizations/{id}/audit_log_configuration: get: description: >- Get the unified view of audit log trail and stream configuration for an organization. operationId: OrganizationsController_getAuditLogConfiguration parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuditLogConfiguration' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get Audit Log Configuration tags: - organizations /organizations/{id}/audit_logs_retention: get: description: Get the configured event retention period for the given Organization. operationId: AuditLogsRetentionController_auditLogsRetention parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuditLogsRetentionJson' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get Retention tags: - audit-logs put: description: Set the event retention period for the given Organization. operationId: AuditLogsRetentionController_updateAuditLogsRetention parameters: - name: id required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAuditLogsRetentionDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuditLogsRetentionJson' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Set Retention tags: - audit-logs x-mutually-exclusive-body-groups: &ref_4 retention: optional: false variants: period: - retention_period period_in_days: - retention_period_in_days /organizations/{organizationId}/api_keys: get: description: Get a list of all API keys for an organization. operationId: OrganizationApiKeysController_list parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/OrganizationApiKeyList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List API keys for an organization tags: - organizations.api_keys post: description: Create a new API key for an organization. operationId: OrganizationApiKeysController_create parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationApiKeyDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/OrganizationApiKeyWithValue' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeFieldErrors' summary: Create an API key for an organization tags: - organizations.api_keys /organizations/{organizationId}/data_integration_configurations: get: description: >- Returns a list of all providers available to the specified organization, along with any configured custom OAuth scopes, enabled state, and organization-managed credentials where applicable. operationId: ProviderController_listForOrganization parameters: - name: organizationId required: true in: path description: >- An [Organization](/reference/organization) identifier to list provider configurations for. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: ownership required: false in: query description: >- Select the provider configuration for `user` connections or `organization` shared connections. Defaults to `user`; never falls back to the other ownership. schema: default: user example: user enum: - user - organization type: string responses: '200': description: A list of provider configurations for the organization. content: application/json: schema: $ref: '#/components/schemas/DataIntegrationConfigurationListResponse' '401': description: The request is missing a valid API key. '404': description: The organization was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: The ownership selector is invalid. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List providers for an organization tags: - pipes.provider /organizations/{organizationId}/data_integration_configurations/{slug}: put: description: >- Creates or updates an organization's provider configuration. Use this endpoint to enable or disable a provider, set custom OAuth scopes, or supply organization-managed OAuth credentials. operationId: ProviderController_configure parameters: - name: organizationId required: true in: path description: >- An [Organization](/reference/organization) identifier to configure the provider for. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider to configure (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: ownership required: false in: query description: >- Select the provider configuration for `user` connections or `organization` shared connections. Defaults to `user`; never falls back to the other ownership. schema: default: user example: user enum: - user - organization type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfigureDataIntegrationBody' responses: '200': description: The provider configuration that was created or updated. content: application/json: schema: $ref: '#/components/schemas/DataIntegrationConfigurationResponse' '400': description: >- The request body is invalid. Possible reasons: the body is empty (at least one of `enabled`, `scopes`, `client_id`, or `config` must be provided); `client_id` and `client_secret` are not provided together; `client_id`/`client_secret` were supplied for a provider that does not support organization-managed credentials; or `config` contains a field the provider does not declare, a value that does not match that field's pattern, or was supplied for a provider whose credentials are not organization-managed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The organization or selected provider was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: >- The ownership selector is invalid, or one or more of the supplied `scopes` are not valid for the provider. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Configure a provider for an organization tags: - pipes.provider /organizations/{organizationId}/feature-flags: get: description: Get a list of all enabled feature flags for an organization. operationId: OrganizationFeatureFlagsController_list parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHZNVPK3SFK441A1RGBFSHRT - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FlagList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List enabled feature flags for an organization tags: - organizations.feature-flags /organizations/{organizationId}/groups: post: description: Create a new group within an organization. operationId: GroupsController_create parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGroupDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Group' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a group tags: - groups get: description: Get a paginated list of groups within an organization. operationId: GroupsController_list parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: search required: false in: query description: Search groups by name or by group ID. schema: example: Engineering type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/GroupList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List groups tags: - groups /organizations/{organizationId}/groups/{groupId}: get: description: Retrieve a group by its ID within an organization. operationId: GroupsController_get parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Group' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a group tags: - groups patch: description: >- Update an existing group. Only the fields provided in the request body will be updated. operationId: GroupsController_update parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateGroupDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Group' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a group tags: - groups delete: description: Delete a group from an organization. operationId: GroupsController_delete parameters: - name: organizationId required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: The ID of the group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a group tags: - groups /organizations/{organizationId}/groups/{groupId}/organization-memberships: post: description: Add an organization membership to a group. operationId: GroupMembershipsController_addMember parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: Unique identifier of the Group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGroupMembershipDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Group' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Add a member to a Group tags: - groups get: description: Get a list of organization memberships in a group. operationId: GroupMembershipsController_listMembers parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: Unique identifier of the Group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/UserlandUserOrganizationMembershipBaseList '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List Group members tags: - groups patch: description: >- Adds and removes organization memberships for a group in a single atomic operation. Organization memberships not listed in `add` or `remove` are left unchanged. Adding a member that is already in the group or removing a member that isn't in the group has no effect. A membership listed in both `add` and `remove` is rejected. `add` and `remove` must contain between 1 and 100 entries combined. operationId: GroupMembershipsController_updateMembers parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: Unique identifier of the Group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PatchGroupMembershipsDto' responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update Group members tags: - groups /organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}: delete: description: Remove an organization membership from a group. operationId: GroupMembershipsController_removeMember parameters: - name: organizationId required: true in: path description: Unique identifier of the Organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: groupId required: true in: path description: Unique identifier of the Group. schema: type: string example: group_01HXYZ123456789ABCDEFGHIJ - name: omId required: true in: path description: Unique identifier of the Organization Membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove a member from a Group tags: - groups /organizations/{organization_id}/authorized_applications: get: description: >- Get a list of all Connect applications that users in the organization have authorized. operationId: OrganizationAuthorizedApplicationsController_list parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: >- #/components/schemas/OrganizationAuthorizedConnectApplicationList '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List authorized applications tags: - organizations.authorized-applications /organizations/{organization_id}/connected_accounts/{slug}: get: description: >- Retrieves an organization's [connected account](/reference/pipes/connected-account) for a specific provider. operationId: DataIntegrationsOrganizationController_getOrganizationDataInstallation parameters: - name: organization_id required: true in: path description: An [Organization](/reference/organization) identifier. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select a specific connection when the organization has several for this provider. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string responses: '200': description: The connected account was retrieved successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT user_id: null organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The organization or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this organization for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' summary: Get an organization connected account tags: - organizations.data-providers x-feature-flag: pipes-org-integrations delete: description: >- Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. A member will need to reauthorize if the organization wants to reconnect. This does not revoke access on the provider side. operationId: >- DataIntegrationsOrganizationController_deleteOrganizationDataInstallation parameters: - name: organization_id required: true in: path description: An [Organization](/reference/organization) identifier. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to delete. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string responses: '204': description: The connected account was deleted successfully. '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The organization or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this organization for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '503': description: >- The connected account or its WorkOS OAuth grant is being changed by another request. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete an organization connected account tags: - organizations.data-providers x-feature-flag: pipes-org-integrations post: description: >- Imports an organization-owned [connected account](/reference/pipes/connected-account) by providing OAuth tokens directly. Omit `connection_intent` to create only the compatibility connection, or set it to `add` to explicitly create another connection. This creation-only endpoint does not accept `connected_account_id` or reauthorization intent. operationId: >- DataIntegrationsOrganizationController_createOrganizationDataInstallation parameters: - name: organization_id required: true in: path description: An [Organization](/reference/organization) identifier. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: idempotency-key in: header description: >- Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. required: false schema: type: string example: 0b6c3f0e-7a51-4c3a-9d8e-2f1b5a6c7d80 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationConnectedAccountDto' responses: '201': description: The connected account was created successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT user_id: null organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '401': description: The request is missing a valid API key. '403': description: The `user_id` is not an active member of the organization. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: >- The organization, user, or data integration was not found, or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection while additional connections are turned off for the team. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- The compatibility connection already exists for this organization and integration, `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationConflictErrorBody' - $ref: '#/components/schemas/ErrorBody' '422': description: >- The request body is malformed (`invalid_request_parameters`), the data integration is not in a valid state (`invalid_data_integration_state`), the token combination is invalid (`invalid_token_combination`), or no client credentials are configured for the data integration (`client_credentials_not_configured`). content: application/json: schema: anyOf: - $ref: >- #/components/schemas/OrganizationConnectedAccountImportErrorBody - $ref: >- #/components/schemas/InvalidRequestParametersErrorBodyWithErrors '503': description: >- Another connection is being created for this owner and provider. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Import an organization connected account tags: - organizations.data-providers x-feature-flag: pipes-org-integrations put: description: >- Updates an organization's [connected account](/reference/pipes/connected-account) tokens, scopes, state, or provider configuration for a specific provider. operationId: >- DataIntegrationsOrganizationController_updateOrganizationDataInstallation parameters: - name: organization_id required: true in: path description: An [Organization](/reference/organization) identifier. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: supports_multiple_connections required: false in: query description: >- Accepted for compatibility; does not change update targeting. Omit intent and selector to update the compatibility connection, or supply `connected_account_id` to update an exact connection. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to update. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: connection_intent required: false in: query description: >- Set to `reauthorize` with `connected_account_id` to update one exact connection. The intent may be omitted when supplying an ID. Omit both for permanent compatibility behavior. schema: type: string example: reauthorize const: reauthorize requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OrganizationConnectedAccountDto' responses: '200': description: The connected account was updated successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT user_id: null organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '403': description: The `user_id` is not an active member of the organization. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: The organization, user, or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this organization for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '422': description: The request body is malformed (`invalid_request_parameters`). content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeErrors' summary: Update an organization connected account tags: - organizations.data-providers x-feature-flag: pipes-org-integrations /organizations/{organization_id}/data_providers: get: description: >- Retrieves the organization-owned providers configured for your environment and the organization's [connected account](/reference/pipes/connected-account) information for each. Providers owned by individual users are not included. operationId: DataIntegrationsOrganizationController_getOrganizationDataIntegrations parameters: - name: organization_id required: true in: path description: >- An [Organization](/reference/organization) identifier to list providers and connected accounts for. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean responses: '200': description: The list of data providers was retrieved successfully. content: application/json: schema: $ref: '#/components/schemas/DataIntegrationsListResponse' example: object: list data: - object: data_provider id: data_integration_01EHZNVPK3SFK441A1RGBFSHRT name: GitHub description: Connect your GitHub account to access repositories. slug: github integration_type: github credentials_type: oauth2 scopes: - repo - user:email auth_methods: - oauth connection_owner: organization ownership: organization created_at: '2024-01-15T10:30:00.000Z' updated_at: '2024-01-15T10:30:00.000Z' integrationType: github credentialsType: oauth2 createdAt: '2024-01-15T10:30:00.000Z' updatedAt: '2024-01-15T10:30:00.000Z' connected_account: &ref_1 object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT user_id: null organization_id: org_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' userlandUserId: null organizationId: org_01EHZNVPK3SFK441A1RGBFSHRT createdAt: '2024-01-16T14:20:00.000Z' updatedAt: '2024-01-16T14:20:00.000Z' connected_accounts: - *ref_1 '401': description: The request is missing a valid API key. '404': description: The organization was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List providers for an organization tags: - organizations.data-providers x-feature-flag: pipes-org-integrations /organizations/{organization_id}/it_contacts: get: description: Get the IT contacts for an organization. operationId: ItContactsController_list parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ItContactList' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List IT contacts tags: - organizations.it-contacts post: description: >- Add an IT contact to an organization. No Admin Portal invitation is sent, though the contact is notified if the organization has a connection certificate nearing expiry. operationId: ItContactsController_create parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateItContactDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/ItContact' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: The email address is already an IT contact of the organization. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an IT contact tags: - organizations.it-contacts /organizations/{organization_id}/it_contacts/{contact_id}: delete: description: >- Remove an IT contact from an organization and revoke the contact's active setup links. operationId: ItContactsController_delete parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: contact_id required: true in: path description: The ID of the IT contact. schema: type: string example: it_contact_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete an IT contact tags: - organizations.it-contacts /organizations/{organization_id}/it_contacts/{contact_id}/invite: post: description: >- Create an Admin Portal setup link and email it to the IT contact. An organization can have at most one active invitation. operationId: ItContactsController_invite parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: contact_id required: true in: path description: The ID of the IT contact. schema: type: string example: it_contact_01HXYZ123456789ABCDEFGHIJ requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/InviteItContactDto' responses: '204': description: No Content '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Another IT contact invitation is already active for the organization. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Invite an IT contact tags: - organizations.it-contacts x-sends-email: true /organizations/{organization_id}/it_contacts/{contact_id}/revoke: post: description: Revoke the organization's active Admin Portal invitation. operationId: ItContactsController_revoke parameters: - name: organization_id required: true in: path description: The ID of the organization. schema: type: string example: org_01EHWNCE74X7JSDV0X3SZ3KJNY - name: contact_id required: true in: path description: The ID of the IT contact. schema: type: string example: it_contact_01HXYZ123456789ABCDEFGHIJ responses: '204': description: No Content '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '503': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Revoke an IT contact's invitation tags: - organizations.it-contacts /platform/teams: post: description: >- Creates a team along with its default project, a staging environment, and a production environment. An admin invitation is sent to `admin_email`, onboarding is marked complete with AuthKit enabled, and the calling platform is authorized to act inside the team. operationId: TeamsController_createTeam parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Team' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create a team tags: - platform.teams /platform/teams/{team_id}: get: description: >- Returns a team, and doubles as a health check on the platform's access to it. Read `production_state` before attempting to create a production environment. operationId: TeamsController_getTeam parameters: - name: team_id required: true in: path description: The ID of the team. schema: type: string example: team_01JX9AN6E02HAG2Q2CKGC1XT5W responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Team' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Get a team tags: - platform.teams /portal/generate_link: post: description: Generate a Portal Link scoped to an Organization. operationId: PortalSessionsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GenerateLinkDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/PortalLinkResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Generate a Portal Link tags: - admin-portal /portal/revoke_link: post: description: >- Revokes every Portal Link generated for the given organization with the given `external_user_id`, and immediately ends any Admin Portal sessions that were started from those links. Use this when an admin is deprovisioned from your application: unopened links stop working, and their already-open portal sessions are ended. Only links that were generated with an `external_user_id` can be revoked, so pass one to `generate_link` for every admin you may later need to deprovision. operationId: PortalSessionsController_revokeLink parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RevokeLinkDto' responses: '200': description: OK '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Revoke a Portal Link tags: - admin-portal /radar/attempts: post: description: Assess a request for risk using the Radar engine and receive a verdict. operationId: RadarStandaloneController_assess parameters: [] requestBody: required: true content: application/json: schema: type: object properties: ip_address: type: string description: The IP address of the request to assess. example: 49.78.240.97 user_agent: type: string description: The user agent string of the request to assess. example: Mozilla/5.0 email: type: string format: email description: The email address of the user making the request. example: user@example.com auth_method: type: string enum: - Password - Passkey - Authenticator - SMS_OTP - Email_OTP - Social - SSO - Other description: The authentication method being used. example: Password action: description: The action being performed. example: sign-in type: string enum: - sign-up - sign-in signals_id: type: string description: An optional Radar signals ID for the request. example: 01JBS0GN92GC2RJQS4X9DBPQ2A required: - ip_address - user_agent - email - auth_method - action responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RadarStandaloneResponse' '400': description: Standalone radar is not enabled. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create an attempt tags: - radar /radar/attempts/{id}: put: description: >- You may optionally inform Radar that an authentication attempt or challenge was successful using this endpoint. Some Radar controls depend on tracking recent successful attempts, such as impossible travel. operationId: RadarStandaloneController_updateRadarAttempt parameters: - name: id required: true in: path description: The unique identifier of the Radar attempt to update. schema: example: radar_att_01HZBC6N1EB1ZY7KG32X type: string requestBody: required: true content: application/json: schema: type: object properties: challenge_status: type: string description: Set to `"success"` to mark the challenge as completed. example: success const: success attempt_status: type: string description: >- Set to `"success"` to mark the authentication attempt as successful. example: success const: success responses: '204': description: Radar attempt updated. '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Update a Radar attempt tags: - radar /radar/lists/{type}/{action}: post: description: Add an entry to a Radar list. operationId: RadarStandaloneController_updateRadarList parameters: - name: type required: true in: path description: The type of the Radar list (e.g. ip_address, domain, email). schema: type: string enum: - ip_address - domain - email - device - user_agent - device_fingerprint - country example: ip_address - name: action required: true in: path description: >- The list action indicating whether to add the entry to the allow or block list. schema: type: string enum: - block - allow example: block requestBody: required: true content: application/json: schema: type: object properties: entry: type: string description: >- The value to add to the list. Must match the format of the list type (e.g. a valid IP address for `ip_address`, a valid email for `email`). example: 198.51.100.42 required: - entry responses: '200': description: Entry already present in the list. content: application/json: schema: $ref: '#/components/schemas/RadarListEntryAlreadyPresentResponse' '201': description: Created '204': description: Entry successfully added to the list. '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '402': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Add an entry to a Radar list tags: - radar delete: description: Remove an entry from a Radar list. operationId: RadarStandaloneController_deleteRadarListEntry parameters: - name: type required: true in: path description: The type of the Radar list (e.g. ip_address, domain, email). schema: type: string enum: - ip_address - domain - email - device - user_agent - device_fingerprint - country example: ip_address - name: action required: true in: path description: >- The list action indicating whether to remove the entry from the allow or block list. schema: type: string enum: - block - allow example: block requestBody: required: true content: application/json: schema: type: object properties: entry: type: string description: >- The value to remove from the list. Must match an existing entry. example: 198.51.100.42 required: - entry responses: '204': description: Radar list updated. '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Remove an entry from a Radar list tags: - radar /sso/authorize: get: description: Initiates the single sign-on flow. operationId: SsoController_authorize parameters: - name: provider_scopes required: false in: query description: >- Additional scopes to request from the identity provider. Applicable when using OAuth or OpenID Connect connections. style: form explode: false schema: type: array items: type: string example: - openid - profile - email - name: provider_query_params required: false in: query description: >- Key/value pairs of query parameters to pass to the OAuth provider. Only applicable when using OAuth connections. schema: additionalProperties: type: string example: hd: example.com access_type: offline type: object - name: client_id required: true in: query schema: type: string example: client_01HZBC6N1EB1ZY7KG32X description: The unique identifier of the WorkOS environment client. - name: domain required: false in: query deprecated: true schema: type: string example: example.com description: >- Deprecated. Use `connection` or `organization` instead. Used to initiate SSO for a connection by domain. The domain must be associated with a connection in your WorkOS environment. - name: provider required: false in: query schema: type: string enum: - AppleOAuth - BitbucketOAuth - GitHubOAuth - GitLabOAuth - GoogleOAuth - IntuitOAuth - LinkedInOAuth - MicrosoftOAuth - SalesforceOAuth - SlackOAuth - VercelMarketplaceOAuth - VercelOAuth - XeroOAuth example: GoogleOAuth description: Used to initiate OAuth authentication with various providers. - name: redirect_uri required: true in: query schema: type: string format: uri example: https://example.com/callback description: >- Where to redirect the user after they complete the authentication process. You must use one of the redirect URIs configured via the [Redirects](https://dashboard.workos.com/redirects) page on the dashboard. - name: response_type required: true in: query schema: type: string example: code const: code description: >- The only valid option for the response type parameter is `"code"`. The `"code"` parameter value initiates an [authorization code grant type](https://tools.ietf.org/html/rfc6749#section-4.1). This grant type allows you to exchange an authorization code for an access token during the redirect that takes place after a user has authenticated with an identity provider. - name: state required: false in: query schema: type: string example: dj1kUXc0dzlXZ1hjUQ== description: >- An optional parameter that can be used to encode arbitrary information to help restore application state between redirects. If included, the redirect URI received from WorkOS will contain the exact `state` that was passed. - name: connection required: false in: query schema: type: string example: conn_01E4ZCR3C56J083X43JQXF3JK5 description: >- Used to initiate SSO for a connection. The value should be a WorkOS connection ID. You can persist the WorkOS connection ID with application user or team identifiers. WorkOS will use the connection indicated by the connection parameter to direct the user to the corresponding IdP for authentication. - name: organization required: false in: query schema: type: string example: org_01EHQMYV6MBK39QC5PZXHY59C3 description: >- Used to initiate SSO for an organization. The value should be a WorkOS organization ID. You can persist the WorkOS organization ID with application user or team identifiers. WorkOS will use the organization ID to determine the appropriate connection and the IdP to direct the user to for authentication. - name: domain_hint required: false in: query schema: type: string example: example.com description: >- Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth or with a Google SAML connection type. - name: login_hint required: false in: query schema: type: string example: user@example.com description: >- Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and custom SAML connections. - name: nonce required: false in: query schema: type: string example: abc123def456 description: >- A random string generated by the client that is used to mitigate replay attacks. - name: prompt required: false in: query schema: type: string example: login const: login description: >- If set to `login`, forces re-authentication at the identity provider. For supported SAML providers this sets `ForceAuthn="true"` in the SAML request; providers that don't support it are unaffected. responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SsoAuthorizeUrlResponse' '302': headers: Location: schema: type: string format: uri description: '' security: [] summary: Initiate SSO tags: - sso /sso/jwks/{clientId}: get: description: >- Returns the JSON Web Key Set (JWKS) containing the public keys used for verifying access tokens. operationId: SsoController_jsonWebKeySet parameters: - name: clientId required: true in: path description: >- Identifies the application making the request to the WorkOS server. You can obtain your client ID from the [API Keys](https://dashboard.workos.com/api-keys) page in the dashboard. schema: type: string example: client_01HXYZ123456789ABCDEFGHIJ responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/JwksResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' security: [] summary: Get JWKS tags: - user-management.session-tokens /sso/logout: get: description: >- Logout allows to sign out a user from your application by triggering the identity provider sign out flow. This `GET` endpoint should be a redirection, since the identity provider user will be identified in the browser session. Before redirecting to this endpoint, you need to generate a short-lived logout token using the [Logout Authorize](/reference/sso/logout/authorize) endpoint. operationId: SsoController_logout parameters: - name: token required: true in: query description: >- The logout token returned from the [Logout Authorize](/reference/sso/logout/authorize) endpoint. schema: type: string example: >- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9maWxlX2lkIjoicHJvZl8wMUdXUTFHMEgyRk02QVNFRjBIUzEzSENXOS0zMDRrZzAzZyIsImV4cCI6IjE1MTYyMzkwMjIifQ.Wru9Qlnf5DpohtGCKhZU4cVOd3zpiu7QQ-XEX--5A_4 responses: '200': description: OK '302': headers: Location: schema: type: string format: uri description: '' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' security: [] servers: - url: https://auth.workos.com summary: Logout Redirect tags: - sso /sso/logout/authorize: post: description: >- You should call this endpoint from your server to generate a logout token which is required for the [Logout Redirect](/reference/sso/logout) endpoint. operationId: SsoController_logoutAuthorize parameters: [] requestBody: required: true content: application/json: schema: type: object properties: profile_id: type: string description: The unique ID of the profile to log out. example: prof_01HXYZ123456789ABCDEFGHIJ required: - profile_id responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SsoLogoutAuthorizeResponse' '201': description: Created '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/OAuthErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' servers: - url: https://auth.workos.com summary: Logout Authorize tags: - sso /sso/profile: get: description: >- Exchange an access token for a user's [Profile](/reference/sso/profile). Because this profile is returned in the [Get a Profile and Token endpoint](/reference/sso/profile/get-profile-and-token) your application usually does not need to call this endpoint. It is available for any authentication flows that require an additional endpoint to retrieve a user's profile. operationId: SsoController_getProfile parameters: [] responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Profile' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/UnauthorizedErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' security: - access_token: [] summary: Get a User Profile tags: - sso /sso/token: post: description: >- Get an access token along with the user [Profile](/reference/sso/profile) using the code passed to your [Redirect URI](/reference/sso/get-authorization-url/redirect-uri). operationId: SsoController_token parameters: - name: client_id required: true in: query description: The client ID of the WorkOS environment. schema: example: client_01HZBC6N1EB1ZY7KG32X type: string - name: client_secret required: true in: query description: The client secret of the WorkOS environment. schema: example: sk_example_123456789 type: string - name: code required: false in: query description: >- The authorization code received from the authorization callback. Required when `grant_type` is `authorization_code`. schema: format: password example: authorization_code_value type: string - name: grant_type required: true in: query description: The grant type for the token request. schema: example: authorization_code enum: - authorization_code - urn:ietf:params:oauth:grant-type:token-exchange type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TokenQueryDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SsoTokenResponse' '201': description: Created '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/OAuthErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' security: [] summary: Get a Profile and Token tags: - sso /user_management/authenticate: post: description: >- Authenticate a user with a specified [authentication method](/reference/authkit/authentication). operationId: UserlandSessionsController_authenticate[0] parameters: [] requestBody: required: true content: application/json: schema: oneOf: - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: >- The client secret of the application. May be omitted by public clients that authenticate through other means, such as a PKCE `code_verifier`. example: sk_test_.... grant_type: type: string const: authorization_code code: type: string format: password description: The authorization code received from the redirect. example: vBqZKaPpsnJlPfXiDqN7b6VTz code_verifier: type: string format: password description: >- The PKCE code verifier used to derive the code challenge passed to the authorization URL. example: dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk invitation_token: type: string description: An invitation token to accept during authentication. example: inv_tok_01HXYZ123456789ABCDEFGHIJ ip_address: type: string description: >- The IP address of the user's request. Required when Radar is in Decision mode. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 signals_id: type: string description: >- An optional Radar signals ID to correlate client-side signals with this authentication attempt. example: 01JBS0GN92GC2RJQS4X9DBPQ2A required: - client_id - grant_type - code - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: password email: type: string description: The user's email address. example: user@example.com password: type: string description: The user's password. example: strong_password_123! invitation_token: type: string description: An invitation token to accept during authentication. example: inv_tok_01HXYZ123456789ABCDEFGHIJ ip_address: type: string description: >- The IP address of the user's request. Required when Radar is in Decision mode. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 signals_id: type: string description: >- An optional Radar signals ID to correlate client-side signals with this authentication attempt. example: 01JBS0GN92GC2RJQS4X9DBPQ2A radar_auth_attempt_id: type: string description: >- The ID of an existing Radar authentication attempt to associate with this authentication. example: radar_auth_attempt_01HXYZ123456789ABCDEFGHIJ required: - client_id - client_secret - grant_type - email - password - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: >- The client secret of the application. May be omitted by public clients that authenticate through other means, such as a PKCE `code_verifier`. example: sk_test_.... grant_type: type: string const: refresh_token refresh_token: type: string description: The refresh token to exchange for new tokens. example: yAjhKk23hJMM3DaR... organization_id: type: string description: The ID of the organization to scope the session to. example: org_01EHQMYV6MBK39QC5PZXHY59C3 ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - grant_type - refresh_token - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:magic-auth:code code: type: string format: password description: The one-time code for Magic Auth authentication. example: '123456' email: type: string description: The user's email address. example: user@example.com invitation_token: type: string description: An invitation token to accept during authentication. example: inv_tok_01HXYZ123456789ABCDEFGHIJ ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 radar_auth_attempt_id: type: string description: >- The ID of an existing Radar authentication attempt to associate with this authentication. example: radar_auth_attempt_01HXYZ123456789ABCDEFGHIJ required: - client_id - client_secret - grant_type - code - email - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:email-verification:code code: type: string format: password description: The email verification code. example: '123456' pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt. example: cTDQJTTkTkkVYxbn... ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - client_secret - grant_type - code - pending_authentication_token - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:mfa-totp code: type: string format: password description: The TOTP code from the authenticator app. example: '123456' pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt. example: cTDQJTTkTkkVYxbn... authentication_challenge_id: type: string description: The ID of the MFA authentication challenge. example: auth_challenge_01HXYZ123456789ABCDEFGHIJ ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - client_secret - grant_type - code - pending_authentication_token - authentication_challenge_id - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:email-completion email_completion_token: type: string description: The token from the `email_completion_required` response. example: JZ8kQ2mR5vT7wX1yA3bC6dE9f email: type: string description: >- The email address the user supplied for a profile the identity provider left without one. example: marcelina@example.com ip_address: type: string description: >- The IP address of the user's request. Required when Radar is in Decision mode. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 signals_id: type: string description: >- An optional Radar signals ID to correlate client-side signals with this authentication attempt. example: 01JBS0GN92GC2RJQS4X9DBPQ2A required: - client_id - client_secret - grant_type - email_completion_token - email - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:organization-selection pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt. example: cTDQJTTkTkkVYxbn... organization_id: type: string description: The ID of the organization the user selected. example: org_01EHQMYV6MBK39QC5PZXHY59C3 ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - client_secret - grant_type - pending_authentication_token - organization_id - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:radar-email-challenge:code code: type: string format: password description: The one-time code from the Radar email challenge. example: '123456' radar_challenge_id: type: string description: The ID of the Radar email challenge being verified. example: radar_challenge_01HXYZ123456789ABCDEFGHIJ pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt. example: cTDQJTTkTkkVYxbn... ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - client_secret - grant_type - code - radar_challenge_id - pending_authentication_token - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ client_secret: type: string description: The client secret of the application. example: sk_test_.... grant_type: type: string const: urn:workos:oauth:grant-type:radar-sms-challenge:code code: type: string format: password description: The one-time code from the Radar SMS challenge. example: '123456' verification_id: type: string description: >- The ID of the Radar SMS verification being confirmed. Required for sign-up challenges; omitted for sign-in challenges, where the verification is resolved server-side. example: vrf_01HXYZ123456789ABCDEFGHIJ phone_number: type: string description: >- The phone number the Radar SMS challenge was sent to. Required for sign-up challenges; omitted for sign-in challenges, where the phone number on file is resolved server-side. example: '+15555550123' pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt. example: cTDQJTTkTkkVYxbn... ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - client_secret - grant_type - code - pending_authentication_token - type: object properties: client_id: type: string description: The client ID of the application. example: client_01HXYZ123456789ABCDEFGHIJ grant_type: type: string const: urn:ietf:params:oauth:grant-type:device_code device_code: type: string format: password description: The device verification code. example: Ao4fMrDS... ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 device_id: type: string description: A unique identifier for the device. example: device_01HXYZ123456789ABCDEFGHIJ user_agent: type: string description: The user agent string from the user's browser. example: Mozilla/5.0 required: - client_id - grant_type - device_code responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandAuthenticateResponse' '400': description: Bad Request content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidOrganizationIdErrorBody' - $ref: '#/components/schemas/CodeChallengeNotFoundErrorBody' - $ref: '#/components/schemas/InvalidCredentialsErrorBody' - $ref: '#/components/schemas/InvalidOneTimeCodeErrorBody' - $ref: '#/components/schemas/OneTimeCodePreviouslyUsedErrorBody' - $ref: '#/components/schemas/OneTimeCodeExpiredErrorBody' - $ref: '#/components/schemas/OneTimeCodeTooManyAttemptsErrorBody' - $ref: >- #/components/schemas/InvalidPendingAuthenticationTokenErrorBody - $ref: '#/components/schemas/UserMismatchErrorBody' - $ref: '#/components/schemas/PhoneNumberRequiredErrorBody' - $ref: '#/components/schemas/VerificationIdRequiredErrorBody' - $ref: '#/components/schemas/InvalidClientOAuthErrorBody' - $ref: '#/components/schemas/UnauthorizedClientOAuthErrorBody' - $ref: '#/components/schemas/InvalidProfileOAuthErrorBody' - $ref: '#/components/schemas/InvitationInvalidOAuthErrorBody' - $ref: >- #/components/schemas/InvitationCannotBeUsedForEmailOAuthErrorBody - $ref: >- #/components/schemas/AuthenticationMethodNotAllowedOAuthErrorBody - $ref: '#/components/schemas/InvalidConnectionOAuthErrorBody' - $ref: '#/components/schemas/SignUpNotAllowedOAuthErrorBody' - $ref: >- #/components/schemas/OrganizationAuthenticationMethodsRequiredOAuthErrorBody - $ref: >- #/components/schemas/InvalidLinkAuthorizationCodeOAuthErrorBody - $ref: '#/components/schemas/ExtraAttributesRequiredOAuthErrorBody' - $ref: '#/components/schemas/PkceNotSupportedOAuthErrorBody' - $ref: '#/components/schemas/ExpiredTokenOAuthErrorBody' - $ref: '#/components/schemas/AuthorizationPendingOAuthErrorBody' - $ref: '#/components/schemas/AccessDeniedOAuthErrorBody' - $ref: '#/components/schemas/SlowDownOAuthErrorBody' - $ref: >- #/components/schemas/MustUseSsoForSelectedOrganizationMessageErrorBody - $ref: '#/components/schemas/InvalidGrantOAuthErrorBody' - $ref: '#/components/schemas/InvalidRequestOAuthErrorBody' - $ref: '#/components/schemas/OrganizationNotFoundOAuthErrorBody' - $ref: >- #/components/schemas/OrganizationMembershipNotFoundOAuthErrorBody - $ref: '#/components/schemas/MfaEnrollmentOAuthErrorBody' - $ref: '#/components/schemas/TokenTooBigOAuthErrorBody' - allOf: - type: object properties: error: type: string description: The OAuth error code. example: sso_required const: sso_required error_description: type: string description: A human-readable description of the error. example: 'The request failed due to: sso_required.' required: - error - error_description - type: object properties: connection_ids: type: array items: type: string example: conn_01FVYZ... description: >- The IDs of the SSO connections the user must authenticate through. email: type: string description: >- The email address of the user that must authenticate via SSO. example: user@example.com pending_authentication_token: type: string description: >- A token that links the subsequent SSO authentication back to the pending authentication so the authorization session can be completed. example: pat_01FVYZ... required: - connection_ids - email '403': description: Forbidden content: application/json: schema: anyOf: - $ref: '#/components/schemas/MfaEnrollmentErrorBody' - $ref: '#/components/schemas/MfaChallengeErrorBody' - $ref: >- #/components/schemas/AuthenticationMethodNotAllowedErrorBody - $ref: >- #/components/schemas/EmailCompletionRequiredErrorBodyWithEmailCompletionToken - $ref: '#/components/schemas/EmailVerificationRequiredErrorBody' - $ref: '#/components/schemas/EmailPasswordAuthDisabledErrorBody' - $ref: >- #/components/schemas/OrganizationSelectionRequiredErrorBody - $ref: '#/components/schemas/PasskeyProgressiveEnrollmentErrorBody' - $ref: '#/components/schemas/RadarChallengeErrorBody' - $ref: '#/components/schemas/RadarSignUpChallengeErrorBody' - $ref: '#/components/schemas/RadarSmsSignInChallengeErrorBody' - $ref: '#/components/schemas/ApplicationConsentRequiredErrorBody' - $ref: '#/components/schemas/PolicyDeniedErrorBody' - $ref: '#/components/schemas/ActionDeniedErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: anyOf: - $ref: '#/components/schemas/DailyQuotaExceededErrorBody' - $ref: >- #/components/schemas/TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter - $ref: '#/components/schemas/TooManyRequestsOAuthErrorBody' summary: Authenticate tags: - user-management.authentication /user_management/authkit_oauth_resources: post: description: >- Adds an MCP resource indicator (RFC 8707) to an environment, leaving any others in place. operationId: AuthkitOauthResourcesController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAuthkitOauthResourceDto' responses: '201': description: MCP resource indicator created successfully. content: application/json: schema: $ref: '#/components/schemas/AuthkitOauthResource' example: object: authkit_oauth_resource id: authkit_oauth_resource_01EHZNVPK3SFK441A1RGBFSHRT uri: https://api.example.com default: false created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized '422': description: Validation failed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: >- AuthKit OAuth resource 'https://api.example.com' already exists. summary: Create an MCP resource indicator tags: - user-management.authkit-oauth-resources get: description: Lists the MCP resource indicators configured for an environment. operationId: AuthkitOauthResourcesController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: MCP resource indicators listed successfully. content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: authkit_oauth_resource_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: authkit_oauth_resource_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/AuthkitOauthResource' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized summary: List MCP resource indicators tags: - user-management.authkit-oauth-resources /user_management/authkit_oauth_resources/{id}: delete: description: >- Removes an MCP resource indicator from an environment. Any application consents granted against it are removed too. operationId: AuthkitOauthResourcesController_delete parameters: - name: id required: true in: path description: The ID of the MCP resource indicator to delete. schema: type: string example: authkit_oauth_resource_01EHZNVPK3SFK441A1RGBFSHRT responses: '204': description: MCP resource indicator deleted successfully. '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized '404': description: MCP resource indicator not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: >- AuthKit OAuth resource not found: 'authkit_oauth_resource_01EHZNVPK3SFK441A1RGBFSHRT'. summary: Delete an MCP resource indicator tags: - user-management.authkit-oauth-resources /user_management/authorize: get: description: >- Generates an OAuth 2.0 authorization URL to authenticate a user with AuthKit or SSO. operationId: UserlandSsoController_authorize parameters: - name: code_challenge_method required: false in: query schema: type: string example: S256 const: S256 description: >- The only valid PKCE code challenge method is `"S256"`. Required when specifying a `code_challenge`. - name: code_challenge required: false in: query schema: type: string example: E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM description: >- Code challenge derived from the code verifier used for the PKCE flow. - name: domain_hint required: false in: query schema: type: string example: example.com description: A domain hint for SSO connection lookup. - name: connection_id required: false in: query schema: type: string example: conn_01EHQMYV6MBK39QC5PZXHY59C3 description: The ID of an SSO connection to use for authentication. - name: provider_query_params required: false in: query schema: type: object additionalProperties: type: string example: hd: example.com access_type: offline description: Key/value pairs of query parameters to pass to the OAuth provider. - name: provider_scopes required: false in: query style: form explode: false schema: type: array items: type: string example: - openid - profile - email description: Additional OAuth scopes to request from the identity provider. - name: invitation_token required: false in: query schema: type: string example: inv_token_abc123 description: >- A token representing a user invitation to redeem during authentication. - name: max_age required: false in: query schema: type: integer minimum: 0 example: 3600 description: >- Maximum allowable elapsed time, in seconds, since the user last actively authenticated. If the last authentication is older than this value, the user is prompted to re-authenticate; a value of `0` forces re-authentication. Only supported when the provider is `authkit`. - name: screen_hint required: false in: query schema: type: string enum: - sign-up - sign-in default: sign-in example: sign-in description: >- Used to specify which screen to display when the provider is `authkit`. - name: login_hint required: false in: query schema: type: string example: user@example.com description: >- A hint to the authorization server about the login identifier the user might use. - name: provider required: false in: query schema: type: string enum: - authkit - AppleOAuth - BitbucketOAuth - GitHubOAuth - GitLabOAuth - GoogleOAuth - IntuitOAuth - LinkedInOAuth - MicrosoftOAuth - SalesforceOAuth - SlackOAuth - VercelMarketplaceOAuth - VercelOAuth - XeroOAuth example: GoogleOAuth description: >- The OAuth provider to authenticate with (e.g., GoogleOAuth, MicrosoftOAuth, GitHubOAuth). - name: prompt required: false in: query schema: type: string example: login description: Controls the authentication flow behavior for the user. - name: state required: false in: query schema: type: string example: eyJyZXR1cm5UbyI6ICIvZGFzaGJvYXJkIn0= description: >- An opaque value used to maintain state between the request and the callback. - name: organization_id required: false in: query schema: type: string example: org_01EHQMYV6MBK39QC5PZXHY59C3 description: The ID of the organization to authenticate the user against. - name: response_type required: true in: query schema: type: string example: code const: code description: The response type of the application. - name: redirect_uri required: true in: query schema: type: string format: uri example: https://example.com/callback description: >- The callback URI where the authorization code will be sent after authentication. - name: client_id required: true in: query schema: type: string example: client_01HZBC6N1EB1ZY7KG32X description: The unique identifier of the WorkOS environment client. responses: '200': headers: location: schema: type: string format: uri description: OK '302': headers: location: schema: type: string format: uri description: '' security: [] summary: Get an authorization URL tags: - user-management.authentication /user_management/authorize/device: post: description: >- Initiates the CLI Auth flow by requesting a device code and verification URLs. This endpoint implements the OAuth 2.0 Device Authorization Flow ([RFC 8628](https://datatracker.ietf.org/doc/html/rfc8628)) and is designed for command-line applications or other devices with limited input capabilities. operationId: UserlandSsoController_deviceAuthorization parameters: [] requestBody: required: true content: application/json: schema: type: object properties: client_id: type: string description: The WorkOS client ID for your application. example: client_01HZBC6N1EB1ZY7KG32X required: - client_id responses: '200': description: Device authorization response with codes and verification URI. content: application/json: schema: $ref: '#/components/schemas/DeviceAuthorizationResponse' '400': description: Invalid request parameters. content: application/json: schema: $ref: '#/components/schemas/OAuthErrorBody' '403': description: Feature not enabled for team. content: application/json: schema: $ref: '#/components/schemas/OAuthErrorBody' security: [] summary: Get device authorization URL tags: - user-management.authentication /user_management/cors_origins: post: description: >- Creates a new CORS origin for the API key's application. CORS origins allow browser-based applications to make requests to the WorkOS API. operationId: CorsOriginsController_createCorsOrigin parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateCorsOriginDto' responses: '201': description: CORS origin created successfully. content: application/json: schema: $ref: '#/components/schemas/CorsOriginResponse' '409': description: Duplicate CORS origin. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Validation error. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithConstraintsPropertyErrors' summary: Create a CORS origin tags: - user-management.cors-origins get: description: Lists the CORS origins for the current environment. operationId: CorsOriginsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: CORS origins listed successfully. content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: cors_origin_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: cors_origin_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/CorsOriginResponse' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List CORS origins tags: - user-management.cors-origins /user_management/email_verification/{id}: get: description: >- Get the details of an existing email verification code that can be used to send an email to a user for verification. operationId: UserlandUsersController_getEmailVerification parameters: - name: id required: true in: path description: The ID of the email verification code. schema: type: string example: email_verification_01E4ZCR3C56J083X43JQXF3JK5 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EmailVerification' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an email verification code tags: - user-management.users /user_management/invitations: get: description: Get a list of all of invitations matching the criteria specified. operationId: UserlandUserInvitesController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: >- The ID of the [organization](/reference/organization) that the recipient will join. schema: example: org_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: email required: false in: query description: The email address of the recipient. schema: format: email example: marcelina.davis@example.com type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserInviteList' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: List invitations tags: - user-management.invitations post: description: Sends an invitation email to the recipient. operationId: UserlandUserInvitesController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateUserlandUserInviteOptionsDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/UserlandUserInvite' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Send an invitation tags: - user-management.invitations x-sends-email: true /user_management/invitations/by_token/{token}: get: description: Retrieve an existing invitation using the token. operationId: UserlandUserInvitesController_getByToken parameters: - name: token required: true in: path description: The token used to accept the invitation. schema: example: Z1uX3RbwcIl5fIGJJJCXXisdI type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserInvite' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Find an invitation by token tags: - user-management.invitations /user_management/invitations/{id}: get: description: Get the details of an existing invitation. operationId: UserlandUserInvitesController_get parameters: - name: id required: true in: path description: The unique ID of the invitation. schema: example: invitation_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserInvite' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an invitation tags: - user-management.invitations /user_management/invitations/{id}/accept: post: description: >- Accepts an invitation and, if linked to an organization, activates the user's membership in that organization. operationId: UserlandUserInvitesController_accept parameters: - name: id required: true in: path description: The unique ID of the invitation. schema: example: invitation_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: accepted accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: '2026-01-15T12:00:00.000Z' revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: user_01E4ZCR3C56J083X43JQXF3JK5 role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' token: type: string description: The token used to accept the invitation. example: Z1uX3RbwcIl5fIGJJJCXXisdI accept_invitation_url: type: string format: password description: The URL where the recipient can accept the invitation. example: >- https://your-app.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at - token - accept_invitation_url x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Accept an invitation tags: - user-management.invitations /user_management/invitations/{id}/resend: post: description: >- Resends an invitation email to the recipient. The invitation must be in a pending state. operationId: UserlandUserInvitesController_resend parameters: - name: id required: true in: path description: The unique ID of the invitation. schema: example: invitation_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ResendUserlandUserInviteOptionsDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserInvite' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Resend an invitation tags: - user-management.invitations x-sends-email: true /user_management/invitations/{id}/revoke: post: description: Revokes an existing invitation. operationId: UserlandUserInvitesController_revoke parameters: - name: id required: true in: path description: The unique ID of the invitation. schema: example: invitation_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: revoked accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: '2026-01-15T12:00:00.000Z' expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' token: type: string description: The token used to accept the invitation. example: Z1uX3RbwcIl5fIGJJJCXXisdI accept_invitation_url: type: string format: password description: The URL where the recipient can accept the invitation. example: >- https://your-app.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at - token - accept_invitation_url x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Revoke an invitation tags: - user-management.invitations /user_management/jwt_template: get: description: Get the JWT template for the current environment. operationId: JwtTemplatesController_getJwtTemplate parameters: [] responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/JwtTemplate' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get JWT template tags: - user-management.jwt-template put: description: Update the JWT template for the current environment. operationId: JwtTemplatesController_updateJwtTemplate parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateJwtTemplateDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/JwtTemplate' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Update JWT template tags: - user-management.jwt-template /user_management/magic_auth: post: description: >- Creates a one-time authentication code that can be sent to the user's email address. The code expires in 10 minutes. To verify the code, [authenticate the user with Magic Auth](/reference/authkit/authentication/magic-auth). operationId: UserlandMagicAuthController_sendMagicAuthCodeAndReturn parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateUserlandMagicCodeAndReturnDto' responses: '201': description: Created content: application/json: schema: allOf: - $ref: '#/components/schemas/MagicAuth' - type: object properties: radar_auth_attempt_id: type: string description: >- The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt. example: radar_auth_attempt_01HXYZ123456789ABCDEFGHIJ '400': description: Bad Request content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvitationInvalidOAuthErrorBody' - $ref: >- #/components/schemas/AuthenticationMethodNotAllowedOAuthErrorBody - $ref: '#/components/schemas/SignUpNotAllowedOAuthErrorBody' - $ref: '#/components/schemas/EmailDomainNotDeliverableErrorBody' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/PolicyDeniedErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create a Magic Auth code tags: - user-management.magic-auth x-sends-email: true /user_management/magic_auth/{id}: get: description: >- Get the details of an existing [Magic Auth](/reference/authkit/magic-auth) code that can be used to send an email to a user for authentication. operationId: UserlandMagicAuthController_get parameters: - name: id required: true in: path description: The unique ID of the Magic Auth code. schema: example: magic_auth_01HWZBQZY2M3AMQW166Q22K88F type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/MagicAuth' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get Magic Auth code details tags: - user-management.magic-auth /user_management/organization_memberships: get: description: >- Get a list of all organization memberships matching the criteria specified. At least one of `user_id` or `organization_id` must be provided. By default only active memberships are returned. Use the `statuses` parameter to filter by other statuses. operationId: UserlandUserOrganizationMembershipsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: >- The ID of the [organization](/reference/organization) which the user belongs to. schema: example: org_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: statuses required: false in: query description: >- Filter by the status of the organization membership. Array including any of `active`, `inactive`, or `pending`. style: form explode: false schema: example: - active type: array items: type: string enum: - active - inactive - pending - name: user_id required: false in: query description: The ID of the [user](/reference/authkit/user). schema: example: user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserOrganizationMembershipList' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List organization memberships tags: - user-management.organization-membership post: description: >- Creates a new `active` organization membership for the given organization and user. Calling this API with an organization and user that match an `inactive` organization membership will activate the membership with the specified role(s). operationId: UserlandUserOrganizationMembershipsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateUserlandUserOrganizationMembershipDto' responses: '201': description: Created content: application/json: schema: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: The unique ID of the organization membership. example: om_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user. example: user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E organization_id: type: string description: The ID of the organization which the user belongs to. example: org_01E4ZCR3C56J083X43JQXF3JK5 status: type: string enum: - active - inactive - pending description: >- The status of the organization membership. One of `active`, `inactive`, or `pending`. example: active directory_managed: type: boolean description: >- Whether this organization membership is managed by a directory sync connection. example: false organization_name: type: string description: The name of the organization which the user belongs to. example: Acme Corp custom_attributes: type: object additionalProperties: {} description: >- An object containing IdP-sourced attributes from the linked [Directory User](/reference/directory-sync/directory-user) or [SSO Profile](/reference/sso/profile). Directory User attributes take precedence when both are linked. example: department: Engineering title: Developer Experience Engineer location: Brooklyn created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' role: $ref: '#/components/schemas/SlimRole' description: >- The primary role assigned to the user within the organization. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: >- The list of roles assigned to the user within the organization. user: $ref: '#/components/schemas/UserlandUser' description: >- The user that belongs to the organization through this membership. required: - object - id - user_id - organization_id - status - directory_managed - created_at - updated_at - role - roles - user x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidRequestParametersErrorBody' - $ref: '#/components/schemas/InvalidRoleErrorBody' - $ref: '#/components/schemas/MultipleRolesNotEnabledErrorBody' - $ref: >- #/components/schemas/SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug summary: Create an organization membership tags: - user-management.organization-membership x-mutually-exclusive-body-groups: &ref_21 role: optional: true variants: single: - role_slug multiple: - role_slugs /user_management/organization_memberships/{id}: get: description: Get the details of an existing organization membership. operationId: UserlandUserOrganizationMembershipsController_get parameters: - name: id required: true in: path description: The unique ID of the organization membership. schema: example: om_01HXYZ123456789ABCDEFGHIJ type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserOrganizationMembership' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get an organization membership tags: - user-management.organization-membership delete: description: >- Permanently deletes an existing organization membership. It cannot be undone. operationId: UserlandUserOrganizationMembershipsController_delete parameters: - name: id required: true in: path description: The unique ID of the organization membership. schema: example: om_01HXYZ123456789ABCDEFGHIJ type: string responses: '200': description: OK '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete an organization membership tags: - user-management.organization-membership put: description: Update the details of an existing organization membership. operationId: UserlandUserOrganizationMembershipsController_update parameters: - name: id required: true in: path description: The unique ID of the organization membership. schema: example: om_01HXYZ123456789ABCDEFGHIJ type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateUserlandUserOrganizationMembershipDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserOrganizationMembership' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidRequestParametersErrorBody' - $ref: '#/components/schemas/InvalidRoleErrorBody' - $ref: '#/components/schemas/MultipleRolesNotEnabledErrorBody' - $ref: >- #/components/schemas/SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug summary: Update an organization membership tags: - user-management.organization-membership x-mutually-exclusive-body-groups: &ref_22 role: optional: true variants: single: - role_slug multiple: - role_slugs /user_management/organization_memberships/{id}/deactivate: put: description: >- Deactivates an `active` organization membership. Emits an [organization_membership.updated](/events/organization-membership) event upon successful deactivation. - Deactivating an `inactive` membership is a no-op and does not emit an event. - Deactivating a `pending` membership returns an error. This membership should be [deleted](/reference/authkit/organization-membership/delete) instead. See the [membership management documentation](/authkit/users-organizations/organizations/membership-management) for additional details. operationId: UserlandUserOrganizationMembershipsController_deactivate parameters: - name: id required: true in: path description: The unique ID of the organization membership. schema: example: om_01HXYZ123456789ABCDEFGHIJ type: string responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: The unique ID of the organization membership. example: om_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 organization_id: type: string description: The ID of the organization which the user belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT status: type: string enum: - active - inactive - pending description: >- The status of the organization membership. One of `active`, `inactive`, or `pending`. example: inactive directory_managed: type: boolean description: >- Whether this organization membership is managed by a directory sync connection. example: false organization_name: type: string description: The name of the organization which the user belongs to. example: Acme Corp custom_attributes: type: object additionalProperties: {} description: >- An object containing IdP-sourced attributes from the linked [Directory User](/reference/directory-sync/directory-user) or [SSO Profile](/reference/sso/profile). Directory User attributes take precedence when both are linked. example: department: Engineering title: Developer Experience Engineer location: Brooklyn created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' role: $ref: '#/components/schemas/SlimRole' description: >- The primary role assigned to the user within the organization. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: >- The list of roles assigned to the user within the organization. user: $ref: '#/components/schemas/UserlandUser' description: >- The user that belongs to the organization through this membership. required: - object - id - user_id - organization_id - status - directory_managed - created_at - updated_at - role - roles - user x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Deactivate an organization membership tags: - user-management.organization-membership /user_management/organization_memberships/{id}/reactivate: put: description: >- Reactivates an `inactive` organization membership, retaining the pre-existing role(s). Emits an [organization_membership.updated](/events/organization-membership) event upon successful reactivation. - Reactivating an `active` membership is a no-op and does not emit an event. - Reactivating a `pending` membership returns an error. The user needs to [accept the invitation](/authkit/invitations) instead. See the [membership management documentation](/authkit/users-organizations/organizations/membership-management) for additional details. operationId: UserlandUserOrganizationMembershipsController_reactivate parameters: - name: id required: true in: path description: The unique ID of the organization membership. schema: example: om_01HXYZ123456789ABCDEFGHIJ type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserOrganizationMembership' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Reactivate an organization membership tags: - user-management.organization-membership /user_management/organization_memberships/{omId}/groups: get: description: Get a list of groups that an organization membership belongs to. operationId: OrganizationMembershipGroupsController_listGroups parameters: - name: omId required: true in: path description: Unique identifier of the Organization Membership. schema: type: string example: om_01HXYZ123456789ABCDEFGHIJ - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/GroupList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List groups tags: - user-management.organization-membership.groups /user_management/password_reset: post: description: Creates a one-time token that can be used to reset a user's password. operationId: UserlandUsersController_createPasswordResetToken parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreatePasswordResetTokenDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/PasswordReset' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create a password reset token tags: - user-management.users x-sends-email: true /user_management/password_reset/confirm: post: description: >- Sets a new password using the `token` query parameter from the link that the user received. Successfully resetting the password will verify a user's email, if it hasn't been verified yet. operationId: UserlandUsersController_resetPassword[0] parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreatePasswordResetDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResetPasswordResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeErrors' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Reset the password tags: - user-management.users /user_management/password_reset/{id}: get: description: >- Get the details of an existing password reset token that can be used to reset a user's password. operationId: UserlandUsersController_getPasswordReset parameters: - name: id required: true in: path description: The ID of the password reset token. schema: type: string example: password_reset_01E4ZCR3C56J083X43JQXF3JK5 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/PasswordReset' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a password reset token tags: - user-management.users /user_management/radar_challenges: post: description: >- Sends a one-time verification code over SMS to a user as part of a Radar challenge. Use the returned `verification_id` to authenticate the user with the `urn:workos:oauth:grant-type:radar-sms-challenge:code` grant type. operationId: PublicRadarChallengesController_sendRadarSmsChallenge parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendRadarSmsChallengeDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/SendRadarSmsChallengeResponse' summary: Send a Radar SMS challenge tags: - user-management.authentication /user_management/radar_challenges/{id}: get: description: Get the details of an existing Radar Challenge, including the OTP code. operationId: PublicRadarChallengesController_get parameters: - name: id required: true in: path description: The unique ID of the Radar Challenge. schema: example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RadarChallenge' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get Radar Challenge details tags: - user-management.authentication /user_management/redirect_uris: post: description: Creates a new redirect URI for an application. operationId: RedirectUrisController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateRedirectUriDto' responses: '201': description: Redirect URI created successfully. content: application/json: schema: $ref: '#/components/schemas/RedirectUri' example: object: redirect_uri id: redir_01EHZNVPK3SFK441A1RGBFSHRT uri: https://example.com/callback default: true created_at: '2026-01-15T12:00:00.000Z' updated_at: '2026-01-15T12:00:00.000Z' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Bad Request '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized '422': description: Validation failed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Redirect URI 'https://example.com/callback' already exists. summary: Create a redirect URI tags: - user-management.redirect-uris get: description: Lists the redirect URIs for an environment. operationId: RedirectUrisController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: Redirect URIs listed successfully. content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: redir_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: redir_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/RedirectUri' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized summary: List redirect URIs tags: - user-management.redirect-uris /user_management/redirect_uris/{id}: delete: description: Deletes a redirect URI from an application. operationId: RedirectUrisController_delete parameters: - name: id required: true in: path description: The ID of the redirect URI to delete. schema: type: string example: redir_01EHZNVPK3SFK441A1RGBFSHRT responses: '204': description: Redirect URI deleted successfully. '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Unauthorized '404': description: Redirect URI not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: 'Redirect URI not found: ''redir_01EHZNVPK3SFK441A1RGBFSHRT''.' '409': description: The redirect URI is the default and cannot be deleted. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' example: message: Cannot delete the default redirect URI. summary: Delete a redirect URI tags: - user-management.redirect-uris /user_management/sessions/logout: get: description: Logout a user from the current [session](/reference/authkit/session). operationId: UserlandSessionsController_logout parameters: - name: session_id required: true in: query description: >- The ID of the session. This can be extracted from the `sid` claim of the access token. schema: example: session_01H93ZY4F80QPBEZ1R5B2SHQG8 type: string - name: return_to required: false in: query description: The URL to redirect the user to after logout. schema: example: https://example.com type: string responses: '200': headers: location: schema: type: string format: uri description: OK '302': headers: location: schema: type: string format: uri description: '' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' security: [] summary: Logout tags: - user-management.authentication /user_management/sessions/revoke: post: description: Revoke a [user session](/reference/authkit/session). operationId: UserlandSessionsController_revokeSession parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UserlandRevokeSessionDto' responses: '200': description: OK '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Revoke Session tags: - user-management.authentication /user_management/users: get: description: >- Get a list of all of your existing users matching the criteria specified. operationId: UserlandUsersController_list[0] parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization required: false in: query deprecated: true description: >- Filter users by the organization they are a member of. Deprecated in favor of `organization_id`. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: organization_id required: false in: query description: Filter users by the organization they are a member of. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: email required: false in: query description: Filter users by their email address. schema: example: user@example.com type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserList' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List users tags: - user-management.users post: description: Create a new user in the current environment. operationId: UserlandUsersController_create[0] parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateUserlandUserDto' responses: '201': description: Created content: application/json: schema: allOf: - $ref: '#/components/schemas/UserlandUser' - type: object properties: radar_auth_attempt_id: type: string description: >- The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt. example: radar_auth_attempt_01HXYZ123456789ABCDEFGHIJ '400': description: Bad Request content: application/json: schema: anyOf: - $ref: >- #/components/schemas/PasswordStrengthErrorErrorBodyWithErrors - $ref: '#/components/schemas/UserCreationErrorErrorBodyWithErrors' - $ref: '#/components/schemas/InvalidPasswordHashErrorBody' - $ref: >- #/components/schemas/PasswordAndPasswordHashProvidedErrorBody - $ref: >- #/components/schemas/PasswordAndPasswordHashTypeProvidedErrorBody - $ref: >- #/components/schemas/PasswordSaltPositionRequiresPasswordHashErrorBody - $ref: '#/components/schemas/InvalidMetadataErrorBody' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/PolicyDeniedErrorBody' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create a user tags: - user-management.users x-mutually-exclusive-body-groups: &ref_23 password: optional: true variants: plaintext: - password hashed: - password_hash - password_hash_type - password_salt_position optionalFields: hashed: - password_salt_position /user_management/users/external_id/{external_id}: get: description: >- Get the details of an existing user by an [external identifier](/authkit/metadata/external-identifiers). operationId: UserlandUsersController_getByExternalId parameters: - name: external_id required: true in: path description: The external ID of the user. schema: example: f1ffa2b2-c20b-4d39-be5c-212726e11222 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUser' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a user by external ID tags: - user-management.users /user_management/users/{id}: put: description: >- Updates properties of a user. The omitted properties will be left unchanged. operationId: UserlandUsersController_update[0] parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateUserlandUserDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUser' '400': description: Bad Request content: application/json: schema: anyOf: - $ref: >- #/components/schemas/PasswordStrengthErrorErrorBodyWithErrors - $ref: '#/components/schemas/InvalidPasswordHashErrorBody' - $ref: >- #/components/schemas/PasswordAndPasswordHashProvidedErrorBody - $ref: >- #/components/schemas/PasswordAndPasswordHashTypeProvidedErrorBody - $ref: >- #/components/schemas/PasswordSaltPositionRequiresPasswordHashErrorBody - $ref: '#/components/schemas/EmailAlreadyVerifiedErrorBody' - $ref: '#/components/schemas/InvalidMetadataErrorBody' - $ref: '#/components/schemas/ExternalIdAlreadyUsedErrorBody' - $ref: '#/components/schemas/EmailChangeNotAllowedErrorBody' - $ref: '#/components/schemas/EmailNotAvailableErrorBody' - $ref: '#/components/schemas/InvalidEmailErrorBody' - $ref: '#/components/schemas/InvalidLocaleErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '503': description: Another request is updating the same user. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Update a user tags: - user-management.users x-mutually-exclusive-body-groups: &ref_27 password: optional: true variants: plaintext: - password hashed: - password_hash - password_hash_type - password_salt_position optionalFields: hashed: - password_salt_position get: description: Get the details of an existing user. operationId: UserlandUsersController_get[0] parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUser' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a user tags: - user-management.users delete: description: >- Permanently deletes a user in the current environment. It cannot be undone. operationId: UserlandUsersController_delete[0] parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a user tags: - user-management.users /user_management/users/{id}/email_change/confirm: post: description: Confirms an email change using the one-time code received by the user. operationId: UserlandUsersController_confirmEmailChange parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmEmailChangeDto' responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Distinguishes the email change confirmation object. const: email_change_confirmation user: type: object properties: object: type: string description: Distinguishes the user object. const: user id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The user's full name. example: Marcelina Davis profile_picture_url: type: - string - 'null' description: A URL reference to an image representing the user. example: https://workoscdn.com/images/v1/123abc email: type: string description: The email address of the user. example: new.email@example.com email_verified: type: boolean description: Whether the user's email has been verified. example: true external_id: type: - string - 'null' description: The external ID of the user. example: f1ffa2b2-c20b-4d39-be5c-212726e11222 metadata: type: object additionalProperties: type: string maxLength: 600 description: >- Object containing metadata key/value pairs associated with the user. example: timezone: America/New_York propertyNames: maxLength: 40 maxProperties: 50 last_sign_in_at: format: date-time type: - string - 'null' description: The timestamp when the user last signed in. example: '2025-06-25T19:07:33.155Z' locale: type: - string - 'null' description: The user's preferred locale. example: en-US created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - first_name - last_name - profile_picture_url - email - email_verified - external_id - last_sign_in_at - created_at - updated_at description: The user object. required: - object - user x-inline-with-overrides: true '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Confirm email change tags: - user-management.users /user_management/users/{id}/email_change/send: post: description: >- Sends an email that contains a one-time code used to change a user's email address. operationId: UserlandUsersController_sendEmailChange parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendEmailChangeDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/EmailChange' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Send email change code tags: - user-management.users x-sends-email: true /user_management/users/{id}/email_verification/confirm: post: description: Verifies an email address using the one-time code received by the user. operationId: UserlandUsersController_emailVerification[0] parameters: - name: id required: true in: path description: The ID of the user. schema: type: string example: user_01E4ZCR3C56J083X43JQXF3JK5 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifyEmailAddressDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/VerifyEmailResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Verify email tags: - user-management.users /user_management/users/{id}/email_verification/send: post: description: >- Sends an email that contains a one-time code used to verify a user's email address. operationId: UserlandUsersController_sendVerificationEmail[0] parameters: - name: id required: true in: path description: The ID of the user. schema: type: string example: user_01E4ZCR3C56J083X43JQXF3JK5 requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/SendVerificationEmailDto' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SendVerificationEmailResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '429': description: '' content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Send verification email tags: - user-management.users /user_management/users/{id}/identities: get: description: >- Get a list of identities associated with the user. A user can have multiple associated identities after going through [identity linking](/authkit/identity-linking). Currently only OAuth identities are supported. More provider types may be added in the future. operationId: UserlandUserIdentitiesController_get parameters: - name: id required: true in: path description: The unique ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: type: array items: type: object properties: idp_id: type: string description: >- The unique ID of the user in the external identity provider. example: 4F42ABDE-1E44-4B66-824A-5F733C037A6D type: type: string description: The type of the identity. const: OAuth provider: description: The type of OAuth provider for the identity. example: MicrosoftOAuth type: string enum: - AppleOAuth - BitbucketOAuth - GithubOAuth - GitLabOAuth - GoogleOAuth - IntuitOAuth - LinkedInOAuth - MicrosoftOAuth - SalesforceOAuth - SlackOAuth - VercelMarketplaceOAuth - VercelOAuth - XeroOAuth required: - idp_id - type - provider '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get user identities tags: - user-management.users /user_management/users/{id}/sessions: get: description: Get a list of all active sessions for a specific user. operationId: UserlandUserSessionsController_list parameters: - name: id required: true in: path description: The ID of the user. schema: type: string example: user_01EHZNVPK3SFK441A1RGBFSHRT - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: session_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: session_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: type: object properties: object: type: string description: Distinguishes the session object. const: session id: type: string description: The unique ID of the session. example: session_01H93ZY4F80QPBEZ1R5B2SHQG8 impersonator: type: object properties: email: type: string description: >- The email address of the WorkOS Dashboard user who is impersonating the user. example: admin@foocorp.com reason: type: - string - 'null' description: >- The justification the impersonator gave for impersonating the user. example: >- Investigating an issue with the customer's account. required: - email - reason description: >- Information about the impersonator if this session was created via impersonation. ip_address: type: - string - 'null' description: >- The IP address from which the session was created. example: 198.51.100.42 organization_id: type: string description: >- The ID of the organization this session is associated with. example: org_01H945H0YD4F97JN9MATX7BYAG user_agent: type: - string - 'null' description: >- The user agent string from the device that created the session. example: >- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 user_id: type: string description: The ID of the user this session belongs to. example: user_01E4ZCR3C56J083X43JQXF3JK5 auth_method: type: string enum: - cross_app_auth - external_auth - impersonation - magic_code - migrated_session - oauth - passkey - password - sso - unknown description: >- The authentication method used to create this session. example: sso status: type: string enum: - active - expired - revoked description: The current status of the session. example: active expires_at: format: date-time type: string description: The timestamp when the session expires. example: '2026-01-15T12:00:00.000Z' ended_at: format: date-time type: - string - 'null' description: The timestamp when the session ended. example: null created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - ip_address - user_agent - user_id - auth_method - status - expires_at - ended_at - created_at - updated_at '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: List sessions tags: - user-management.users /user_management/users/{userId}/api_keys: get: description: Get a list of API keys owned by a specific user. operationId: UserApiKeysController_list parameters: - name: userId required: true in: path description: Unique identifier of the user. schema: type: string example: user_01EHZNVPK3SFK441A1RGBFSHRT - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: organization_id required: false in: query description: >- The ID of the organization to filter user API keys by. When provided, only API keys created against that organization membership are returned. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserApiKeyList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List API keys for a user tags: - api_keys x-feature-flag: user-api-keys post: description: >- Create a new API key owned by a user. The user must have an active membership in the specified organization. operationId: UserApiKeysController_create parameters: - name: userId required: true in: path description: Unique identifier of the user. schema: type: string example: user_01EHZNVPK3SFK441A1RGBFSHRT requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateUserApiKeyDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/UserApiKeyWithValue' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCodeFieldErrors' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Create an API key for a user tags: - api_keys x-feature-flag: user-api-keys /user_management/users/{userId}/feature-flags: get: description: >- Get a list of all enabled feature flags for the provided user. This includes feature flags enabled specifically for the user as well as any organizations that the user is a member of. operationId: UserlandUserFeatureFlagsController_list parameters: - name: userId required: true in: path description: The ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `desc`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/FlagList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List enabled feature flags for a user tags: - user-management.users.feature-flags /user_management/users/{user_id}/authorized_applications: get: description: Get a list of all Connect applications that the user has authorized. operationId: AuthorizedApplicationsController_list parameters: - name: user_id required: true in: path description: The ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/AuthorizedConnectApplicationList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List authorized applications tags: - user-management.users.authorized-applications /user_management/users/{user_id}/authorized_applications/{application_id}: delete: description: Delete an existing Authorized Connect Application. operationId: AuthorizedApplicationsController_delete parameters: - name: application_id required: true in: path description: The ID or client ID of the application. schema: example: conn_app_01HXYZ123456789ABCDEFGHIJ type: string - name: user_id required: true in: path description: The ID of the user. schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete an authorized application tags: - user-management.users.authorized-applications /user_management/users/{user_id}/connected_accounts/{slug}: get: description: >- Retrieves a user's [connected account](/reference/pipes/connected-account) for a specific provider. operationId: DataIntegrationsUserManagementController_getUserDataInstallation parameters: - name: user_id required: true in: path description: A [User](/reference/authkit/user) identifier. schema: example: user_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: organization_id required: false in: query description: >- An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string responses: '200': description: The connected account was retrieved successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The user, organization, or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' summary: Get a connected account tags: - user-management.data-providers delete: description: >- Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. Access is not revoked on the provider side, except for the WorkOS OAuth provider, whose underlying AuthKit grant is revoked. operationId: DataIntegrationsUserManagementController_deleteUserDataInstallation parameters: - name: user_id required: true in: path description: A [User](/reference/authkit/user) identifier. schema: example: user_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: organization_id required: false in: query description: >- An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to delete. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string responses: '204': description: The connected account was deleted successfully. '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The user, organization, or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '503': description: >- The connected account or its WorkOS OAuth grant is being changed by another request. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete a connected account tags: - user-management.data-providers post: description: >- Imports a [connected account](/reference/pipes/connected-account) for a user by providing OAuth tokens directly. Use this to migrate existing connections or set up connections without going through the OAuth flow. operationId: DataIntegrationsUserManagementController_createUserDataInstallation parameters: - name: user_id required: true in: path description: A [User](/reference/authkit/user) identifier. schema: example: user_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: organization_id required: false in: query description: >- An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: idempotency-key in: header description: >- Makes retries of this explicit add return the connection the first attempt created instead of creating another. Reuse the same key for every retry of one request. A matching retry within 24 hours returns the existing connection; reusing the key for a different owner, integration, or authentication method, or after 24 hours while that connection exists, returns 409 `idempotency_key_conflict`. If that connection was deleted, the key creates a new one. Requests without a key are not retry-safe. required: false schema: type: string example: 0b6c3f0e-7a51-4c3a-9d8e-2f1b5a6c7d80 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateConnectedAccountDto' responses: '201': description: The connected account was created successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' '401': description: The request is missing a valid API key. '404': description: >- The user, organization, or data integration was not found, or `multiple_connections_unavailable` when `connection_intent: add` would create an additional connection while additional connections are turned off for the team. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationNotFoundErrorBody' - $ref: '#/components/schemas/ErrorBody' '409': description: >- The compatibility connection already exists for this user, integration, and organization, `connected_account_limit_reached` when `connection_intent: add` would create a standard connection and the owner already has 25 connections, or `idempotency_key_conflict` when the `Idempotency-Key` was already used for a different connection request or its replay window has passed. content: application/json: schema: anyOf: - $ref: '#/components/schemas/ConnectionCreationConflictErrorBody' - $ref: '#/components/schemas/ErrorBody' '422': description: >- The request body is malformed (`invalid_request_parameters`), the data integration is not in a valid state (`invalid_data_integration_state`), the token combination is invalid (`invalid_token_combination`), no client credentials are configured for the data integration (`client_credentials_not_configured`), or `refresh_token` is not an active WorkOS OAuth grant of this user (`invalid_refresh_token`). content: application/json: schema: anyOf: - $ref: '#/components/schemas/UserConnectedAccountImportErrorBody' - $ref: >- #/components/schemas/InvalidRequestParametersErrorBodyWithErrors '503': description: >- Another connection is being created for this owner and provider, or the WorkOS OAuth grant behind `refresh_token` is being changed. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Import a connected account tags: - user-management.data-providers put: description: >- Updates a user's [connected account](/reference/pipes/connected-account) tokens, scopes, state, or provider configuration for a specific provider. operationId: DataIntegrationsUserManagementController_updateUserDataInstallation parameters: - name: user_id required: true in: path description: A [User](/reference/authkit/user) identifier. schema: example: user_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: slug required: true in: path description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). schema: example: github type: string - name: organization_id required: false in: query description: >- An [Organization](/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: supports_multiple_connections required: false in: query description: >- Accepted for compatibility; does not change update targeting. Omit intent and selector to update the compatibility connection, or supply `connected_account_id` to update an exact connection. schema: example: true type: boolean - name: connected_account_id required: false in: query description: >- A [connected account](/reference/pipes/connected-account) identifier. Use this to select the connection to update. schema: minLength: 1 example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: connection_intent required: false in: query description: >- Set to `reauthorize` with `connected_account_id` to update one exact connection. The intent may be omitted when supplying an ID. Omit both for permanent compatibility behavior. schema: type: string example: reauthorize const: reauthorize requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConnectedAccountDto' responses: '200': description: The connected account was updated successfully. content: application/json: schema: $ref: '#/components/schemas/ConnectedAccount' '400': description: The connected account selector is malformed. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '401': description: The request is missing a valid API key. '404': description: The user, organization, or connected account was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '409': description: >- Several connected accounts match this user for the provider; one must be named. content: application/json: schema: $ref: '#/components/schemas/AccountSelectionRequiredErrorBody' '422': description: >- The request body is malformed (`invalid_request_parameters`), or `refresh_token` is not an active WorkOS OAuth grant of this user (`invalid_refresh_token`). content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidRefreshTokenErrorBody' - $ref: >- #/components/schemas/InvalidRequestParametersErrorBodyWithErrors '503': description: >- The WorkOS OAuth grant behind `refresh_token` is being changed by another request. Retry the request. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Update a connected account tags: - user-management.data-providers /user_management/users/{user_id}/data_providers: get: description: >- Retrieves a list of available providers and the user's connection status for each. Returns all providers configured for your environment, along with the user's [connected account](/reference/pipes/connected-account) information where applicable. operationId: DataIntegrationsUserManagementController_getUserDataIntegrations parameters: - name: user_id required: true in: path description: >- A [User](/reference/authkit/user) identifier to list providers and connected accounts for. schema: example: user_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: organization_id required: false in: query description: >- An [Organization](/reference/organization) identifier. Optional parameter to filter connections for a specific organization. schema: example: org_01EHZNVPK3SFK441A1RGBFSHRT type: string - name: supports_multiple_connections required: false in: query description: >- Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. schema: example: true type: boolean responses: '200': description: The list of data providers was retrieved successfully. content: application/json: schema: $ref: '#/components/schemas/DataIntegrationsListResponse' '401': description: The request is missing a valid API key. '404': description: The user or organization was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List providers for a user tags: - user-management.data-providers /user_management/users/{userlandUserId}/auth_factors: post: description: >- Enrolls a user in a new [authentication factor](/reference/authkit/mfa/authentication-factor). operationId: UserlandUserAuthenticationFactorsController_create[0] parameters: - name: userlandUserId required: true in: path description: The ID of the [user](/reference/authkit/user). schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EnrollUserlandUserAuthenticationFactorDto' responses: '201': description: Created content: application/json: schema: $ref: >- #/components/schemas/UserlandUserAuthenticationFactorEnrollResponse '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Enroll an authentication factor tags: - user-management.multi-factor-authentication get: description: >- Lists the [authentication factors](/reference/authkit/mfa/authentication-factor) for a user. operationId: UserlandUserAuthenticationFactorsController_list[0] parameters: - name: userlandUserId required: true in: path description: The ID of the [user](/reference/authkit/user). schema: example: user_01E4ZCR3C56J083X43JQXF3JK5 type: string - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. schema: example: obj_1234567890 type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: Order the results by the creation time. Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserlandUserAuthenticationFactorList' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: List authentication factors tags: - user-management.multi-factor-authentication /user_management/waitlist_entries/{id}: delete: description: >- Remove the entry from the waitlist. Its email address can join again unless a user with that email now exists in the environment. Deleting the entry does not revoke an invitation created by approving it — [revoke that invitation](/reference/authkit/invitation/revoke) separately to withdraw access. operationId: WaitlistEntriesController_delete parameters: - name: id required: true in: path description: The unique ID of the waitlist entry. schema: example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '204': description: No Content '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Delete a waitlist entry tags: - user-management.waitlists /user_management/waitlist_entries/{id}/approve: post: description: >- Approve a waitlist entry, create an invitation for its email address, and send the invitation email. Approving a denied entry reverses the denial. The approval is saved even when the invitation steps fail, so instead of retrying the approval, recover based on the outcome: - `200` — the entry is approved. If invitation creation failed, no invitation exists yet; [send](/reference/authkit/invitation/send) one. - `422` with code `invitation_email_not_sent` — the entry is approved and an invitation exists, but its email was not sent; [resend](/reference/authkit/invitation/resend) it. - `422` with code `invalid_state` — the entry was already approved. operationId: WaitlistEntriesController_approve parameters: - name: id required: true in: path description: The unique ID of the waitlist entry. schema: example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: type: object properties: id: type: string description: The unique ID of the waitlist entry. example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user on the waitlist. example: marcelina.davis@example.com state: type: string enum: - pending - approved - denied description: The state of the waitlist entry. example: approved approved_at: format: date-time type: - string - 'null' description: >- The timestamp when the entry was approved, or null if not yet approved. example: '2026-01-15T12:00:00.000Z' additional_fields: type: object additionalProperties: type: string description: >- Additional fields submitted when the user joined the waitlist. Values are user-provided — treat them as untrusted input when rendering or exporting. example: company: Example Corp waitlist_id: type: - string - 'null' description: The unique ID of the waitlist the entry belongs to. example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Waitlist Entry object. const: waitlist_entry required: - id - email - state - approved_at - created_at - updated_at - object x-inline-with-overrides: true '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Approve a waitlist entry tags: - user-management.waitlists x-sends-email: true /user_management/waitlist_entries/{id}/deny: post: description: >- Deny a pending waitlist entry. Denying an entry that is not pending fails with the code `invalid_state`. A denial can be reversed by approving the entry. operationId: WaitlistEntriesController_deny parameters: - name: id required: true in: path description: The unique ID of the waitlist entry. schema: example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 type: string responses: '200': description: OK content: application/json: schema: type: object properties: id: type: string description: The unique ID of the waitlist entry. example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user on the waitlist. example: marcelina.davis@example.com state: type: string enum: - pending - approved - denied description: The state of the waitlist entry. example: denied approved_at: format: date-time type: - string - 'null' description: >- The timestamp when the entry was approved, or null if not yet approved. example: null additional_fields: type: object additionalProperties: type: string description: >- Additional fields submitted when the user joined the waitlist. Values are user-provided — treat them as untrusted input when rendering or exporting. example: company: Example Corp waitlist_id: type: - string - 'null' description: The unique ID of the waitlist the entry belongs to. example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Waitlist Entry object. const: waitlist_entry required: - id - email - state - approved_at - created_at - updated_at - object x-inline-with-overrides: true '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Deny a waitlist entry tags: - user-management.waitlists /user_management/waitlists: get: description: >- Get a list of the waitlists in the environment. All waitlists are returned in a single response — this endpoint is not paginated, so the `list_metadata` cursors are always `null`. operationId: WaitlistsController_list parameters: [] responses: '200': description: OK content: application/json: schema: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Waitlist' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: null after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: null required: - before - after description: >- Pagination cursors for navigating between pages of results. required: - object - data - list_metadata x-inline-with-overrides: true summary: List waitlists tags: - user-management.waitlists /user_management/waitlists/{id}: get: description: Get the details of an existing waitlist. operationId: WaitlistsController_find parameters: - name: id required: true in: path description: >- The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. The default waitlist is created when its first entry is added, so read requests for `default` return a `404` until then. schema: type: string example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Waitlist' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Get a waitlist tags: - user-management.waitlists /user_management/waitlists/{id}/entries: get: description: Get a list of entries on a waitlist matching the criteria specified. operationId: WaitlistsController_listEntries parameters: - name: id required: true in: path description: >- The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. The default waitlist is created when its first entry is added, so read requests for `default` return a `404` until then. schema: type: string example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' - name: state required: false in: query description: Filter waitlist entries by their state. schema: example: pending enum: - pending - approved - denied type: string - name: email required: false in: query description: Filter waitlist entries by their exact email address. schema: example: marcelina.davis@example.com type: string responses: '200': description: OK content: application/json: schema: allOf: - type: object properties: object: type: string description: Indicates this is a list response. const: list list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: wl_user_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: wl_user_01HXYZ987654321KJIHGFEDCBA required: - before - after description: >- Pagination cursors for navigating between pages of results. - type: object properties: data: type: array description: The list of records for the current page. items: $ref: '#/components/schemas/WaitlistEntry' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: List waitlist entries tags: - user-management.waitlists post: description: >- Add an email address to the waitlist. Email addresses are normalized and unique per environment: a request for an email address already on the waitlist returns the existing entry unchanged (still with status `201`) and does not send another confirmation email. If a user with the email address already exists in the environment, the request fails with the code `user_already_exists`. operationId: WaitlistsController_createEntry parameters: - name: id required: true in: path description: >- The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. Use `default` when adding the first entry — the default waitlist is created automatically. schema: type: string example: default requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWaitlistEntryDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/WaitlistEntry' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Create a waitlist entry tags: - user-management.waitlists x-sends-email: true /vault/v1/keys/data-key: post: description: Generate an isolated encryption key for local encryption operations. operationId: JumpWireWeb.KeyController.create_data_key parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateDataKeyRequest' description: Data key request. required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/CreateDataKeyResponse' description: Data key. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: Validation error. summary: Create a data key tags: - vault /vault/v1/keys/decrypt: post: description: Decrypt a previously encrypted data key from WorkOS Vault. operationId: JumpWireWeb.KeyController.decrypt parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/DecryptRequest' description: Decrypt request. required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/DecryptResponse' description: Decrypted key. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. summary: Decrypt a data key tags: - vault /vault/v1/keys/rekey: post: description: Decrypt an existing data key and re-encrypt it under a new key context. operationId: JumpWireWeb.KeyController.rekey parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/RekeyRequest' description: Rekey request. required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/CreateDataKeyResponse' description: Re-encrypted key. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: Validation error. summary: Re-encrypt a data key tags: - vault /vault/v1/kv: get: description: List all encrypted objects with cursor-based pagination. operationId: JumpWireWeb.DataVaultController.index parameters: - description: Upper limit on the number of objects to return. in: query name: limit required: false schema: default: 10 example: 10 minimum: 1 type: integer - description: Cursor for the previous page of results. in: query name: before required: false schema: example: b21f3a8c-7e4d-4b1a-9c5e-2d8f6a7b3c4e type: string - description: Cursor for the next page of results. in: query name: after required: false schema: example: a10e2b7d-6c3f-4a2b-8d1e-3f9a5b8c7d6e type: string - description: Sort direction for results. in: query name: order required: false schema: enum: - asc - desc example: desc type: string - description: Filter results by name or structured search JSON. in: query name: search required: false schema: example: my-secret type: string - description: ISO 8601 timestamp to filter by last modified time. in: query name: updatedAfter required: false schema: example: '2024-01-01T00:00:00Z' format: date-time type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ObjectListResponse' description: Object list. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. summary: List objects tags: - vault post: description: Encrypt and store a new key-value object. operationId: JumpWireWeb.DataVaultController.create parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateObjectRequest' description: Create object. required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/ObjectMetadata' description: Object created. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '409': content: application/json: schema: $ref: '#/components/schemas/Error' description: Conflict. '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: Validation error. summary: Create an object tags: - vault /vault/v1/kv/name/{name}: get: description: Fetch and decrypt an object by its unique name. operationId: JumpWireWeb.DataVaultController.show_by_name parameters: - description: Unique name of the object. in: path name: name required: true schema: example: my-secret type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Object' description: Object. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: Not found. summary: Read an object by name tags: - vault /vault/v1/kv/{id}: delete: description: Delete an encrypted object. operationId: JumpWireWeb.DataVaultController.delete parameters: - description: Unique identifier of the object. in: path name: id required: true schema: example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string - description: Expected current version for optimistic locking. in: query name: version_check required: false schema: example: c3d4e5f6-7890-abcd-ef12-34567890abcd type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/DeleteObjectResponse' description: Deletion result. '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: Not found. '409': content: application/json: schema: $ref: '#/components/schemas/Error' description: Version mismatch. '500': content: application/json: schema: $ref: '#/components/schemas/Error' description: Internal error. summary: Delete an object tags: - vault get: description: Fetch and decrypt an object by its unique identifier. operationId: JumpWireWeb.DataVaultController.show_by_id parameters: - description: Unique identifier of the object. in: path name: id required: true schema: example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Object' description: Object. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: Not found. summary: Read an object by ID tags: - vault put: description: Update the value of an existing encrypted object. operationId: JumpWireWeb.DataVaultController.update parameters: - description: Unique identifier of the object. in: path name: id required: true schema: example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateObjectRequest' description: Update object. required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/ObjectWithoutValue' description: Object updated. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '409': content: application/json: schema: $ref: '#/components/schemas/Error' description: Version mismatch. summary: Update an object tags: - vault /vault/v1/kv/{id}/metadata: get: description: Fetch metadata for an object without decrypting it. operationId: JumpWireWeb.DataVaultController.describe parameters: - description: Unique identifier of the object. in: path name: id required: true schema: example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/ObjectWithoutValue' description: Object metadata. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: Not found. summary: Describe an object tags: - vault /vault/v1/kv/{id}/versions: get: description: Retrieve all versions for a specific object. operationId: JumpWireWeb.DataVaultController.versions parameters: - description: Unique identifier of the object. in: path name: id required: true schema: example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/VersionListResponse' description: Version list. '400': content: application/json: schema: $ref: '#/components/schemas/Error' description: Bad request. '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: Not found. summary: List object versions tags: - vault /webhook_endpoints: get: description: Get a list of all of your existing webhook endpoints. operationId: WebhookEndpointsController_list parameters: - name: before required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. schema: example: xxx_01HXYZ123456789ABCDEFGHIJ type: string - name: after required: false in: query description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. schema: example: xxx_01HXYZ987654321KJIHGFEDCBA type: string - name: limit required: false in: query description: >- Upper limit on the number of objects to return, between `1` and `100`. schema: minimum: 1 maximum: 100 default: 10 example: 10 type: integer - name: order required: false in: query description: >- Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to `normal`. schema: $ref: '#/components/schemas/PaginationOrder' responses: '200': description: List of webhook endpoints. content: application/json: schema: $ref: '#/components/schemas/WebhookEndpointList' summary: List Webhook Endpoints tags: - webhooks post: description: Create a new webhook endpoint to receive event notifications. operationId: WebhookEndpointsController_create parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebhookEndpointDto' responses: '201': description: Webhook endpoint created successfully. content: application/json: schema: $ref: '#/components/schemas/WebhookEndpointJson' '409': description: A Webhook Endpoint with the same endpoint URL already exists. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidUrlErrorBody' - $ref: >- #/components/schemas/InvalidRequestParametersErrorBodyWithErrors summary: Create a Webhook Endpoint tags: - webhooks /webhook_endpoints/{id}: patch: description: Update the properties of an existing webhook endpoint. operationId: WebhookEndpointsController_update parameters: - name: id required: true in: path description: Unique identifier of the Webhook Endpoint. schema: type: string example: we_0123456789 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWebhookEndpointDto' responses: '200': description: Webhook endpoint updated successfully. content: application/json: schema: $ref: '#/components/schemas/WebhookEndpointJson' '404': description: Webhook endpoint not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '409': description: A Webhook Endpoint with the same endpoint URL already exists. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' '422': description: Unprocessable Entity content: application/json: schema: anyOf: - $ref: '#/components/schemas/InvalidUrlErrorBody' - $ref: >- #/components/schemas/InvalidRequestParametersErrorBodyWithErrors summary: Update a Webhook Endpoint tags: - webhooks delete: description: Delete an existing webhook endpoint. operationId: WebhookEndpointsController_delete parameters: - name: id required: true in: path description: Unique identifier of the Webhook Endpoint. schema: type: string example: we_0123456789 responses: '204': description: Webhook endpoint deleted successfully. '404': description: Webhook endpoint not found. content: application/json: schema: $ref: '#/components/schemas/ErrorBodyWithCode' summary: Delete a Webhook Endpoint tags: - webhooks /widgets/token: post: description: >- Generate a widget token for a user, optionally scoped to an organization. When an organization is specified, org-scoped widgets are enabled; omitting it issues a user-only token for widgets like `UserProfile` and `UserSecurity`. operationId: WidgetsPublicController_issueWidgetSessionToken parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WidgetSessionTokenDto' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/WidgetSessionTokenResponse' '400': description: Bad Request content: application/json: schema: anyOf: - $ref: '#/components/schemas/ErrorBody' - $ref: '#/components/schemas/ErrorBodyWithErrorMessageList' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorBody' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/ErrorBody' summary: Generate a widget token tags: - widgets info: title: WorkOS description: WorkOS REST API version: '1.0' contact: name: WorkOS url: https://workos.com email: support@workos.com license: name: MIT url: https://opensource.org/license/MIT tags: - name: admin-portal description: Endpoints for the Admin Portal API. - name: agents.blueprints description: Manage agent blueprints. - name: agents.blueprints.tokens description: Mint and validate agent access tokens. - name: agents.instances description: Manage agent instances. - name: agents.registrations description: Register agents and validate agent credentials. - name: agents.sessions description: Manage agent instance sessions. - name: api_keys description: Manage API keys for environments. - name: application.client-secrets description: Manage client secrets for Connect Applications. - name: applications description: Manage Connect Applications. - name: audit-logs description: Create and query audit log events. - name: authorization description: Authorization and access control. - name: client description: Widgets API token management. - name: connections description: Manage SSO connections. - name: directories description: Manage directories. - name: directory-groups description: Manage directory groups. - name: directory-users description: Manage directory users. - name: events description: Query events and event streams. - name: feature-flags description: Manage feature flags. - name: feature-flags.targets description: Manage feature flag targets. - name: groups description: Organize and manage user groups within organizations. - name: multi-factor-auth description: Multi-factor authentication factor management. - name: multi-factor-auth.challenges description: Multi-factor authentication challenge verification. - name: organization-domains description: Manage organization domains. - name: organizations description: Manage organizations. - name: organizations.api_keys description: Manage organization-scoped API keys. - name: organizations.authorized-applications description: Manage authorized applications for organizations. - name: organizations.data-providers description: Manage organization-owned data providers and connected accounts. - name: organizations.feature-flags description: Manage organization-scoped feature flags. - name: organizations.it-contacts description: Manage IT contacts for organizations. - name: permissions description: Manage permissions. - name: pipes description: Data integration endpoints. - name: pipes.provider description: Manage organization-scoped provider configurations. - name: platform.teams description: Manage teams for platforms. - name: radar description: Radar fraud detection. - name: sso description: Single Sign-On endpoints. - name: user-management.authentication description: User authentication endpoints. - name: user-management.authkit-oauth-resources description: Manage MCP resource indicators (RFC 8707). - name: user-management.cors-origins description: Manage CORS origins for user management. - name: user-management.data-providers description: Manage data providers. - name: user-management.invitations description: Manage user invitations. - name: user-management.jwt-template description: Manage JWT templates. - name: user-management.magic-auth description: Magic auth endpoints. - name: user-management.multi-factor-authentication description: Multi-factor authentication endpoints. - name: user-management.organization-membership description: Manage user organization memberships. - name: user-management.organization-membership.groups description: Manage groups for a user organization membership. - name: user-management.redirect-uris description: Manage redirect URIs. - name: user-management.session-tokens description: Session token verification keys. - name: user-management.users description: Manage users. - name: user-management.users.authorized-applications description: Manage authorized applications for users. - name: user-management.users.feature-flags description: Manage user-scoped feature flags. - name: user-management.waitlists description: Manage waitlists and waitlist entries. - name: vault description: Vault data encryption endpoints. - name: webhooks description: Manage webhooks. - name: widgets description: Widget endpoints. - name: workos-connect description: >- A unified interface that simplifies authentication and authorization across customers, partners, and external SaaS tools. servers: - url: https://api.workos.com description: Production - url: https://api.workos-test.com description: Staging components: securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http description: >- Your WorkOS API key prefixed with `sk_`. Pass it as a Bearer token: `Authorization: Bearer sk_example_123456789`. access_token: scheme: bearer bearerFormat: JWT type: http description: An SSO access token returned from the Get a Profile and Token endpoint. schemas: UserObject: type: object properties: id: type: string description: >- Your application's user identifier, which will be stored as an [`external_id`](/authkit/metadata/external-identifiers). Used for upserting and deduplication. example: user_12345 email: type: string description: The user's email address. example: marcelina.davis@example.com first_name: type: string description: The user's first name. example: Marcelina last_name: type: string description: The user's last name. example: Davis name: type: string description: The user's full name. example: Marcelina Davis metadata: type: object description: A set of key-value pairs to attach to the user. additionalProperties: type: string maxLength: 600 maxProperties: 50 example: department: Engineering role: Developer propertyNames: maxLength: 40 required: - id - email UserConsentOption: type: object properties: claim: type: string description: The claim name for this consent option. example: tos_accepted type: type: string description: The type of consent option. const: enum label: type: string description: A human-readable label for this consent option. example: Terms of Service choices: type: array description: The available choices for this consent option. items: type: object properties: value: type: string description: The value of this choice. example: accepted label: type: string description: A human-readable label for this choice. example: I accept the Terms of Service example: - value: accepted label: I accept the Terms of Service required: - claim - type - label - choices UserManagementLoginRequest: type: object properties: external_auth_id: type: string description: Identifier provided when AuthKit redirected to your login page. example: ext_auth_01HXYZ123456789ABCDEFGHIJ user: description: The user to create or update in AuthKit. $ref: '#/components/schemas/UserObject' user_consent_options: description: >- Array of [User Consent Options](/reference/workos-connect/standalone/user-consent-options) to store with the session. type: array items: $ref: '#/components/schemas/UserConsentOption' required: - external_auth_id - user PaginationOrder: type: string enum: - normal - desc - asc example: desc ValidateApiKeyDto: type: object properties: value: type: string description: The value for an API key. example: sk_example_1234567890abcdef format: password required: - value ExpireApiKeyDto: type: object properties: expires_at: type: - string - 'null' description: >- When the API key should expire. If omitted or in the past, the key expires immediately. Use null to clear a scheduled future expiration. example: '2030-01-01T00:00:00.000Z' format: date-time RedirectUriDto: type: object properties: uri: type: string description: The redirect URI. example: https://example.com/callback default: type: - boolean - 'null' description: Whether this is the default redirect URI. example: true required: - uri CreateOAuthApplicationDto: type: object properties: name: type: string description: The name of the application. example: My Application application_type: type: string description: The type of application to create. const: oauth description: type: - string - 'null' description: A description for the application. example: An application for managing user access scopes: description: The OAuth scopes granted to the application. example: &ref_2 - openid - profile - email type: - array - 'null' items: type: string redirect_uris: description: Redirect URIs for the application. example: - uri: https://example.com/callback default: true type: - array - 'null' items: $ref: '#/components/schemas/RedirectUriDto' cors_origins: description: >- Origins allowed to call the OAuth token endpoint for this application from a browser. example: - https://app.example.com maxItems: 1000 type: - array - 'null' items: type: string uses_pkce: type: - boolean - 'null' description: Whether the application uses PKCE (Proof Key for Code Exchange). example: true is_first_party: type: boolean description: >- Whether this is a first-party application. Third-party applications require an organization_id. example: true organization_id: type: - string - 'null' description: >- The organization ID this application belongs to. Required when is_first_party is false. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - name - application_type - is_first_party CreateM2MApplicationDto: type: object properties: name: type: string description: The name of the application. example: My Application application_type: type: string description: The type of application to create. const: m2m description: type: - string - 'null' description: A description for the application. example: An application for managing user access scopes: description: The OAuth scopes granted to the application. example: *ref_2 type: - array - 'null' items: type: string organization_id: type: string description: The organization ID this application belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - name - application_type - organization_id UpdateOAuthApplicationDto: type: object properties: name: type: string description: The name of the application. example: My Application description: type: - string - 'null' description: A description for the application. example: An application for managing user access scopes: description: The OAuth scopes granted to the application. example: - openid - profile - email type: - array - 'null' items: type: string redirect_uris: description: Updated redirect URIs for the application. OAuth applications only. example: - uri: https://example.com/callback default: true type: - array - 'null' items: $ref: '#/components/schemas/RedirectUriDto' cors_origins: description: >- Updated origins allowed to call the OAuth token endpoint for this application from a browser. Replaces the existing list. OAuth applications only. example: - https://app.example.com maxItems: 1000 type: - array - 'null' items: type: string CreateApplicationSecretDto: type: object properties: {} AuditLogEventActorDto: type: object properties: id: type: string description: Actor identifier. example: user_TF4C5938 type: type: string description: Actor type. example: user name: type: string description: Optional actor name. example: Jon Smith metadata: type: object description: Additional data associated with the event or entity. example: owner: user_01GBTCQ2 maxProperties: 50 additionalProperties: false patternProperties: &ref_3 ^[a-zA-Z0-9_-]{0,40}$: anyOf: - type: string maxLength: 500 - type: number - type: boolean required: - id - type AuditLogEventTargetDto: type: object properties: id: type: string description: Target identifier. example: user_TF4C5938 type: type: string description: Target type. example: user name: type: string description: Optional target name. example: Jon Smith metadata: type: object description: Additional data associated with the event or entity. example: owner: user_01GBTCQ2 maxProperties: 50 additionalProperties: false patternProperties: *ref_3 required: - id - type AuditLogEventContextDto: type: object properties: location: type: string description: IP Address or some other geolocation identifier. example: 123.123.123.123 user_agent: type: string description: User agent string. example: Chrome/104.0.0.0 required: - location AuditLogEventDto: type: object properties: action: type: string description: Identifier of what happened. example: user.signed_in occurred_at: type: string description: >- ISO-8601 timestamp of when the action occurred. When omitted, defaults to the time WorkOS receives the event. Explicit JSON null is rejected. example: '2026-02-02T16:35:39.317Z' format: date-time actor: description: The entity that performed the action. $ref: '#/components/schemas/AuditLogEventActorDto' targets: description: The resources affected by the action. type: array items: $ref: '#/components/schemas/AuditLogEventTargetDto' context: description: Additional context about where and how the action occurred. $ref: '#/components/schemas/AuditLogEventContextDto' metadata: type: object description: Additional data associated with the event or entity. example: owner: user_01GBTCQ2 maxProperties: 50 additionalProperties: false patternProperties: *ref_3 version: type: integer description: What schema version the event is associated with. example: 1 required: - action - actor - targets - context AuditLogEventIngestionDto: type: object properties: organization_id: type: string description: The unique ID of the Organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY event: description: The audit log event to create. $ref: '#/components/schemas/AuditLogEventDto' required: - organization_id - event AuditLogExportCreationDto: type: object properties: organization_id: type: string description: The unique ID of the Organization. example: org_01EHZNVPK3SFK441A1RGBFSHRT range_start: type: string description: >- ISO-8601 value for start of the export range. The range must span no more than 31 days. example: '2022-07-02T18:09:06.996Z' format: date-time range_end: type: string description: >- ISO-8601 value for end of the export range. Must be no more than 31 days after the start. example: '2022-08-02T18:09:06.996Z' format: date-time actions: description: List of actions to filter against. example: - user.signed_in type: array items: type: string actors: description: Deprecated. Use `actor_names` instead. deprecated: true example: - Jon Smith type: array items: type: string actor_names: description: List of actor names to filter against. example: - Jon Smith type: array items: type: string actor_ids: description: List of actor IDs to filter against. example: - user_01GBZK5MP7TD1YCFQHFR22180V type: array items: type: string targets: description: List of target types to filter against. example: - team type: array items: type: string required: - organization_id - range_start - range_end UpdateAuditLogsRetentionDto: x-mutually-exclusive-body-groups: *ref_4 oneOf: - type: object properties: retention_period: enum: - 1_MONTH - 2_MONTHS - 3_MONTHS - 4_MONTHS - 5_MONTHS - 6_MONTHS - 7_MONTHS - 8_MONTHS - 9_MONTHS - 10_MONTHS - 11_MONTHS - 1_YEAR - 2_YEARS - 3_YEARS - 4_YEARS - 5_YEARS - 6_YEARS - 7_YEARS - 8_YEARS - 9_YEARS - 10_YEARS type: string description: >- The period Audit Log events will be retained. Valid values are `1_MONTH` through `11_MONTHS` in one-month increments and `1_YEAR` through `10_YEARS` in one-year increments. Mutually exclusive with `retention_period_in_days`. example: 1_MONTH required: - retention_period not: anyOf: - properties: retention_period_in_days: x-exclude-from-lint: true required: - retention_period_in_days - type: object properties: retention_period_in_days: type: integer description: >- The number of days Audit Log events will be retained. Valid values are `30` through `330` in 30-day increments and `365` through `3650` in 365-day increments. Deprecated: use `retention_period` instead. Mutually exclusive with `retention_period`. example: 30 deprecated: true required: - retention_period_in_days not: anyOf: - properties: retention_period: x-exclude-from-lint: true required: - retention_period AuditLogSchemaActorDto: type: object properties: metadata: type: object description: JSON schema for actor metadata. example: type: object properties: role: type: string required: - metadata AuditLogSchemaTargetDto: type: object properties: type: type: string description: The type of the target resource. example: invoice metadata: type: object description: Optional JSON schema for target metadata. example: type: object properties: cost: type: number required: - type AuditLogSchemaDto: type: object properties: actor: description: The metadata schema for the actor. $ref: '#/components/schemas/AuditLogSchemaActorDto' targets: minItems: 1 description: The list of targets for the schema. type: array items: $ref: '#/components/schemas/AuditLogSchemaTargetDto' metadata: type: object description: Optional JSON schema for event metadata. example: type: object properties: transactionId: type: string required: - targets ChallengeAuthenticationFactorDto: type: object properties: sms_template: type: string maxLength: 160 description: >- A custom template for the SMS message. Use the {{code}} placeholder to include the verification code. Must not contain URLs or domain names. example: Your verification code is {{code}}. CheckAuthorizationDto: allOf: - type: object properties: permission_slug: type: string description: The slug of the permission to check. example: posts:create required: - permission_slug - oneOf: - type: object properties: resource_id: type: string description: >- The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`. example: resource_01HXYZ123456789ABCDEFGHIJ required: - resource_id not: anyOf: - properties: resource_external_id: x-exclude-from-lint: true required: - resource_external_id - properties: resource_type_slug: x-exclude-from-lint: true required: - resource_type_slug - type: object properties: resource_external_id: type: string description: >- The external ID of the resource. Required with `resource_type_slug`. Mutually exclusive with `resource_id`. example: my-custom-id resource_type_slug: type: string description: >- The slug of the resource type. Required with `resource_external_id`. Mutually exclusive with `resource_id`. example: document required: - resource_external_id - resource_type_slug not: anyOf: - properties: resource_id: x-exclude-from-lint: true required: - resource_id x-mutually-exclusive-body-groups: *ref_5 CreateGroupRoleAssignmentDto: type: object properties: role_slug: type: string description: The slug of the role to assign to the group. example: admin resource_id: type: string description: >- The ID of the resource. Omit along with the external-id fields to target the organization itself. example: authz_resource_01HXYZ123456789ABCDEFGH resource_external_id: type: string description: The external ID of the resource. example: proj-456 resource_type_slug: type: string description: The resource type slug. example: project required: - role_slug ReplaceGroupRoleAssignmentEntryDto: type: object properties: role_slug: type: string description: The slug of the role to assign to the group. example: admin resource_id: type: string description: >- The ID of the resource. Omit along with the external-id fields to target the organization itself. example: authz_resource_01HXYZ123456789ABCDEFGH resource_external_id: type: string description: The external ID of the resource. example: proj-456 resource_type_slug: type: string description: The resource type slug. example: project required: - role_slug PatchGroupRoleAssignmentsDto: type: object properties: add: default: [] description: >- Role assignments to add to the group. Assignments that already exist are skipped. example: - role_slug: admin - role_slug: member resource_id: authz_resource_01HXYZ123456789ABCDEFGH type: array items: $ref: '#/components/schemas/ReplaceGroupRoleAssignmentEntryDto' remove: default: [] description: >- Role assignments to remove from the group. Entries that match no assignment are skipped. example: - role_slug: editor resource_type_slug: project resource_external_id: proj-789 type: array items: $ref: '#/components/schemas/ReplaceGroupRoleAssignmentEntryDto' ReplaceGroupRoleAssignmentsDto: type: object properties: role_assignments: maxItems: 100 description: >- The list of role assignments that should exist for the group. All existing assignments will be replaced. type: array items: $ref: '#/components/schemas/ReplaceGroupRoleAssignmentEntryDto' required: - role_assignments DeleteGroupRoleAssignmentsByCriteriaDto: type: object properties: role_slug: type: string description: The slug of the role to remove assignments for. example: admin resource_id: type: string description: >- The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGH resource_external_id: type: string description: The external ID of the resource. example: proj-456 resource_type_slug: type: string description: The resource type slug. example: project required: - role_slug AssignRoleDto: allOf: - type: object properties: role_slug: type: string description: The slug of the role to assign. example: editor required: - role_slug - oneOf: - type: object properties: resource_id: type: string description: >- The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGH required: - resource_id not: anyOf: - properties: resource_external_id: x-exclude-from-lint: true required: - resource_external_id - properties: resource_type_slug: x-exclude-from-lint: true required: - resource_type_slug - type: object properties: resource_external_id: type: string description: >- The external ID of the resource. Required with `resource_type_slug`. Mutually exclusive with `resource_id`. example: project-ext-456 resource_type_slug: type: string description: >- The resource type slug. Required with `resource_external_id`. Mutually exclusive with `resource_id`. example: project required: - resource_external_id - resource_type_slug not: anyOf: - properties: resource_id: x-exclude-from-lint: true required: - resource_id x-mutually-exclusive-body-groups: *ref_6 PatchRoleAssignmentEntryDto: allOf: - type: object properties: role_slug: type: string description: The slug of the role. example: editor required: - role_slug - oneOf: - type: object properties: resource_id: type: string description: >- The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGH required: - resource_id not: anyOf: - properties: resource_external_id: x-exclude-from-lint: true required: - resource_external_id - properties: resource_type_slug: x-exclude-from-lint: true required: - resource_type_slug - type: object properties: resource_external_id: type: string description: >- The external ID of the resource. Required with `resource_type_slug`. Mutually exclusive with `resource_id`. example: project-ext-456 resource_type_slug: type: string description: >- The resource type slug. Required with `resource_external_id`. Mutually exclusive with `resource_id`. example: project required: - resource_external_id - resource_type_slug not: anyOf: - properties: resource_id: x-exclude-from-lint: true required: - resource_id x-mutually-exclusive-body-groups: resource_target: optional: false variants: by_id: - resource_id by_external_id: - resource_external_id - resource_type_slug PatchRoleAssignmentsDto: type: object properties: add: default: [] description: >- Role assignments to add to the organization membership. Assignments that already exist are skipped. example: - role_slug: editor resource_id: authz_resource_01HXYZ123456789ABCDEFGH type: array items: $ref: '#/components/schemas/PatchRoleAssignmentEntryDto' remove: default: [] description: >- Role assignments to remove from the organization membership. Entries that match no assignment are skipped. Roles granted through a group cannot be removed. example: - role_slug: viewer resource_type_slug: project resource_external_id: project-ext-456 type: array items: $ref: '#/components/schemas/PatchRoleAssignmentEntryDto' RemoveRoleDto: allOf: - type: object properties: role_slug: type: string description: The slug of the role to remove. example: editor required: - role_slug - oneOf: - type: object properties: resource_id: type: string description: >- The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGH required: - resource_id not: anyOf: - properties: resource_external_id: x-exclude-from-lint: true required: - resource_external_id - properties: resource_type_slug: x-exclude-from-lint: true required: - resource_type_slug - type: object properties: resource_external_id: type: string description: >- The external ID of the resource. Required with `resource_type_slug`. Mutually exclusive with `resource_id`. example: external_01HXYZ123456789ABCDEFGH resource_type_slug: type: string description: >- The resource type slug. Required with `resource_external_id`. Mutually exclusive with `resource_id`. example: project required: - resource_external_id - resource_type_slug not: anyOf: - properties: resource_id: x-exclude-from-lint: true required: - resource_id x-mutually-exclusive-body-groups: *ref_7 SetRolePermissionsDto: type: object properties: permissions: description: The permission slugs to assign to the role. example: - billing:read - billing:write - invoices:manage - reports:view type: array items: type: string required: - permissions AddRolePermissionDto: type: object properties: slug: type: string description: The slug of the permission to add to the role. example: reports:export required: - slug CreateOrganizationRoleDto: type: object properties: slug: type: string maxLength: 48 description: >- A unique identifier for the role within the organization. When provided, must begin with 'org-' and contain only lowercase letters, numbers, hyphens, and underscores. When omitted, a slug is auto-generated from the role name and a random suffix. example: org-billing-admin name: type: string maxLength: 48 description: A descriptive name for the role. example: Billing Administrator description: type: - string - 'null' maxLength: 150 description: An optional description of the role's purpose. example: Can manage billing and invoices resource_type_slug: type: string maxLength: 48 description: The slug of the resource type the role is scoped to. example: organization required: - name UpdateOrganizationRoleDto: type: object properties: name: type: string maxLength: 48 description: A descriptive name for the role. example: Finance Administrator description: type: - string - 'null' maxLength: 150 description: An optional description of the role's purpose. example: Can manage all financial operations CreateAuthorizationPermissionDto: type: object properties: slug: type: string maxLength: 48 description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. example: documents:read name: type: string maxLength: 48 description: A descriptive name for the Permission. example: View Documents description: type: - string - 'null' maxLength: 150 description: An optional description of the Permission. example: Allows viewing document contents resource_type_slug: type: string maxLength: 48 description: The slug of the resource type this permission is scoped to. example: document required: - slug - name UpdateAuthorizationPermissionDto: type: object properties: name: type: string maxLength: 48 description: A descriptive name for the Permission. example: View Documents description: type: - string - 'null' maxLength: 150 description: An optional description of the Permission. example: Allows viewing document contents CreateRoleDto: type: object properties: slug: type: string maxLength: 48 description: A unique slug for the role. example: editor name: type: string maxLength: 48 description: A descriptive name for the role. example: Editor description: type: - string - 'null' maxLength: 150 description: An optional description of the role. example: Can edit resources resource_type_slug: type: string maxLength: 48 description: The slug of the resource type the role is scoped to. example: organization required: - slug - name UpdateRoleDto: type: object properties: name: type: string maxLength: 48 description: A descriptive name for the role. example: Super Administrator description: type: - string - 'null' maxLength: 150 description: An optional description of the role. example: Full administrative access to all resources UpdateAuthorizationResourceDto: allOf: - type: object properties: name: type: string maxLength: 48 description: A display name for the resource. example: Updated Name description: type: - string - 'null' maxLength: 150 description: An optional description of the resource. example: Updated description - oneOf: - type: object not: anyOf: - properties: parent_resource_id: x-exclude-from-lint: true required: - parent_resource_id - properties: parent_resource_external_id: x-exclude-from-lint: true required: - parent_resource_external_id - properties: parent_resource_type_slug: x-exclude-from-lint: true required: - parent_resource_type_slug - type: object properties: parent_resource_id: type: string description: >- The ID of the parent resource. Mutually exclusive with `parent_resource_external_id` and `parent_resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGHIJ required: - parent_resource_id not: anyOf: - properties: parent_resource_external_id: x-exclude-from-lint: true required: - parent_resource_external_id - properties: parent_resource_type_slug: x-exclude-from-lint: true required: - parent_resource_type_slug - type: object properties: parent_resource_external_id: type: string description: >- The external ID of the parent resource. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`. example: parent-workspace-01 parent_resource_type_slug: type: string description: >- The resource type slug of the parent resource. Required with `parent_resource_external_id`. Mutually exclusive with `parent_resource_id`. example: workspace required: - parent_resource_external_id - parent_resource_type_slug not: anyOf: - properties: parent_resource_id: x-exclude-from-lint: true required: - parent_resource_id x-mutually-exclusive-body-groups: *ref_0 CreateAuthorizationResourceDto: allOf: - type: object properties: external_id: type: string maxLength: 128 pattern: ^[\x00-\x7F]+$ description: An external identifier for the resource. example: my-workspace-01 name: type: string maxLength: 48 description: A display name for the resource. example: Acme Workspace description: type: - string - 'null' maxLength: 150 description: An optional description of the resource. example: Primary workspace for the Acme team resource_type_slug: type: string description: The slug of the resource type. example: workspace organization_id: type: string description: The ID of the organization this resource belongs to. example: org_01EHQMYV6MBK39QC5PZXHY59C3 required: - external_id - name - resource_type_slug - organization_id - oneOf: - type: object not: anyOf: - properties: parent_resource_id: x-exclude-from-lint: true required: - parent_resource_id - properties: parent_resource_external_id: x-exclude-from-lint: true required: - parent_resource_external_id - properties: parent_resource_type_slug: x-exclude-from-lint: true required: - parent_resource_type_slug - type: object properties: parent_resource_id: type: - string - 'null' description: >- The ID of the parent resource. Mutually exclusive with `parent_resource_external_id` and `parent_resource_type_slug`. example: authz_resource_01HXYZ123456789ABCDEFGHIJ required: - parent_resource_id not: anyOf: - properties: parent_resource_external_id: x-exclude-from-lint: true required: - parent_resource_external_id - properties: parent_resource_type_slug: x-exclude-from-lint: true required: - parent_resource_type_slug - type: object properties: parent_resource_external_id: type: string description: >- The external ID of the parent resource. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`. example: parent-workspace-01 parent_resource_type_slug: type: string description: >- The resource type slug of the parent resource. Required with `parent_resource_external_id`. Mutually exclusive with `parent_resource_id`. example: workspace required: - parent_resource_external_id - parent_resource_type_slug not: anyOf: - properties: parent_resource_id: x-exclude-from-lint: true required: - parent_resource_id x-mutually-exclusive-body-groups: *ref_8 CreateConnectionKeyPairDto: type: object properties: key: type: string description: The PEM-encoded private key. example: |- -----BEGIN PRIVATE KEY----- MIIE... -----END PRIVATE KEY----- format: password cert: type: string description: The PEM-encoded X.509 certificate for the key. example: |- -----BEGIN CERTIFICATE----- MIIC... -----END CERTIFICATE----- required: - key - cert CreateConnectionSamlOptionsDto: type: object properties: idp_metadata_url: type: string format: uri description: >- The Identity Provider metadata URL. When provided, the IdP fields and signing certificates are imported from the metadata document. Mutually exclusive with the manual IdP fields. example: https://idp.example.com/metadata.xml acs_url: type: string format: uri description: >- A custom Assertion Consumer Service (ACS) URL override. When omitted, the standard WorkOS-generated ACS URL is used. example: https://example.auth0.com/login/callback?connection=123 sp_entity_id: type: string description: >- A custom Service Provider Entity ID (audience) override. When omitted, the connection external key is used. example: https://example.auth0.com/login/callback?connection=123 idp_entity_id: type: string description: The Identity Provider Entity ID. example: https://idp.example.com/entity idp_sso_url: type: string format: uri description: >- The Identity Provider SSO URL. Required when configuring the connection with manual IdP fields. example: https://idp.example.com/sso idp_signing_certs: description: >- The X.509 certificates used to verify signed SAML responses from the Identity Provider. Required when configuring the connection with manual IdP fields. example: - |- -----BEGIN CERTIFICATE----- MIIC... -----END CERTIFICATE----- type: array items: type: string sp_signing_key_pair: description: >- The customer-owned key pair used to sign SAML requests sent to the Identity Provider. When omitted, WorkOS generates and manages the signing key pair. $ref: '#/components/schemas/CreateConnectionKeyPairDto' sp_encryption_key_pairs: description: >- The customer-owned key pairs used to decrypt encrypted SAML responses from the Identity Provider. When omitted, WorkOS generates and manages the encryption key pair. type: array items: $ref: '#/components/schemas/CreateConnectionKeyPairDto' CreateConnectionOidcOptionsDto: type: object properties: discovery_endpoint: type: string format: uri description: The OIDC discovery endpoint. example: https://idp.example.com/.well-known/openid-configuration client_id: type: string description: The OIDC client ID. example: client_123 client_secret: type: string description: >- The OIDC client secret. Required for `client_secret_basic` and `client_secret_post`, and rejected for `private_key_jwt`, which authenticates with a key pair instead. This value is write-only and is never returned. example: secret_xyz redirect_uri: type: string format: uri description: >- A custom OAuth callback URL override. When omitted, the standard WorkOS-generated redirect URI is used. example: https://auth.workos.com/sso/oidc/conn_externalkey/callback pkce: type: boolean description: Whether PKCE is enabled for the connection. example: true default: true token_authentication_method: type: string enum: &ref_10 - client_secret_post - client_secret_basic - private_key_jwt description: The token-endpoint client authentication method. example: client_secret_basic default: client_secret_basic jwt_signing_key_pair: description: >- A key pair for WorkOS to sign `private_key_jwt` client assertions with. Only accepted when `token_authentication_method` is `private_key_jwt`; when omitted, WorkOS generates one and returns its certificate in `oidc_options.jwt_signing_certs`. $ref: '#/components/schemas/CreateConnectionKeyPairDto' id_token_signature_algorithm: type: string enum: &ref_11 - ES256 - ES384 - ES512 - EdDSA - HS256 - HS384 - HS512 - PS256 - PS384 - PS512 - RS256 - RS384 - RS512 description: The ID-token signing algorithm. example: RS256 fetch_user_info: type: boolean description: >- Whether to fetch additional profile attributes from the userinfo endpoint. example: false required: - discovery_endpoint - client_id CreateConnectionStandardAttributesDto: type: object properties: idp_id: type: string description: >- The IdP attribute or claim the profile's `idp_id` is mapped from. When omitted, the default for the connection type is used. example: sub email: type: string description: >- The IdP attribute or claim the profile's `email` is mapped from. When omitted, the default for the connection type is used. example: email first_name: type: string description: >- The IdP attribute or claim the profile's `first_name` is mapped from. When omitted, the default for the connection type is used. example: given_name last_name: type: string description: >- The IdP attribute or claim the profile's `last_name` is mapped from. When omitted, the default for the connection type is used. example: family_name groups: type: - string - 'null' description: >- The IdP attribute or claim the profile's `groups` are mapped from. `null` leaves the mapping unset. example: memberOf name: type: - string - 'null' description: >- The IdP attribute or claim the profile's `name` is mapped from. `null` leaves the mapping unset. example: displayName CreateConnectionAttributeMapsDto: type: object properties: standard_attributes: description: >- How IdP attributes or claims map onto the standard WorkOS profile fields. Provided fields override the defaults for the connection type. $ref: '#/components/schemas/CreateConnectionStandardAttributesDto' custom_attributes: type: object description: >- How IdP attributes or claims map onto custom attributes, keyed by custom attribute name. Custom attributes must already be defined in the WorkOS dashboard. additionalProperties: type: string example: company: company_claim CreateConnectionDto: allOf: - type: object properties: organization_id: type: string description: >- Unique identifier for the Organization in which the Connection resides. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: >- A human-readable name for the Connection. This will most commonly be the organization's name. example: Foo Corp external_id: type: string maxLength: 128 pattern: ^[\x00-\x7F]+$ description: The customer-owned identifier for the Connection. example: acme-legacy-conn-42 connection_type: type: string description: >- The type of the Connection. Only SAML and OIDC connection types may be created. When omitted, the type is inferred from the provided options. example: OktaSAML attribute_maps: description: >- How IdP attributes or claims map onto WorkOS profile fields. Provided fields override the defaults for the connection type. $ref: '#/components/schemas/CreateConnectionAttributeMapsDto' required: - organization_id - oneOf: - type: object properties: saml_options: description: >- Protocol configuration for SAML connections. Mutually exclusive with `oidc_options`. $ref: '#/components/schemas/CreateConnectionSamlOptionsDto' required: - saml_options not: anyOf: - properties: oidc_options: x-exclude-from-lint: true required: - oidc_options - type: object properties: oidc_options: description: >- Protocol configuration for OIDC connections. Mutually exclusive with `saml_options`. $ref: '#/components/schemas/CreateConnectionOidcOptionsDto' required: - oidc_options not: anyOf: - properties: saml_options: x-exclude-from-lint: true required: - saml_options x-mutually-exclusive-body-groups: *ref_9 PatchConnectionSamlOptionsDto: type: object properties: idp_metadata_url: type: - string - 'null' format: uri description: >- The Identity Provider metadata URL. When provided, the IdP fields and signing certificates are re-imported from the metadata document, replacing the current set. Mutually exclusive with the manual IdP fields. Set to `null` to stop tracking a metadata URL. example: https://idp.example.com/metadata.xml acs_url: type: - string - 'null' format: uri description: >- A custom Assertion Consumer Service (ACS) URL override. Set to `null` to revert to the standard WorkOS-generated ACS URL. example: https://example.auth0.com/login/callback?connection=123 sp_entity_id: type: - string - 'null' description: >- A custom Service Provider Entity ID (audience) override. Set to `null` to revert to the connection external key. example: https://example.auth0.com/login/callback?connection=123 idp_entity_id: type: string description: The Identity Provider Entity ID. example: https://idp.example.com/entity idp_sso_url: type: string format: uri description: The Identity Provider SSO URL. example: https://idp.example.com/sso PatchConnectionOidcOptionsDto: type: object properties: discovery_endpoint: type: string format: uri description: The OIDC discovery endpoint. example: https://idp.example.com/.well-known/openid-configuration client_id: type: string description: The OIDC client ID. example: client_123 client_secret: type: string description: >- The OIDC client secret. Required when moving the connection to `client_secret_basic` or `client_secret_post`, and rejected for `private_key_jwt`, which authenticates with a key pair instead. This value is write-only and is never returned. example: secret_xyz redirect_uri: type: - string - 'null' format: uri description: >- A custom OAuth callback URL override. Set to `null` to revert to the standard WorkOS-generated redirect URI. example: https://auth.workos.com/sso/oidc/conn_externalkey/callback pkce: type: boolean description: Whether PKCE is enabled for the connection. example: true token_authentication_method: type: string enum: *ref_10 description: >- The token-endpoint client authentication method. Moving to `private_key_jwt` generates a signing key pair if the connection has none; its certificate is returned in `oidc_options.jwt_signing_certs` and must be registered at the Identity Provider. example: client_secret_basic id_token_signature_algorithm: type: string enum: *ref_11 description: The ID-token signing algorithm. example: RS256 fetch_user_info: type: boolean description: >- Whether to fetch additional profile attributes from the userinfo endpoint. example: false PatchConnectionStandardAttributesDto: type: object properties: idp_id: type: string description: The IdP attribute or claim the profile's `idp_id` is mapped from. example: sub email: type: string description: The IdP attribute or claim the profile's `email` is mapped from. example: email first_name: type: string description: >- The IdP attribute or claim the profile's `first_name` is mapped from. example: given_name last_name: type: string description: The IdP attribute or claim the profile's `last_name` is mapped from. example: family_name groups: type: - string - 'null' description: >- The IdP attribute or claim the profile's `groups` are mapped from. Set to `null` to unset the mapping. example: memberOf name: type: - string - 'null' description: >- The IdP attribute or claim the profile's `name` is mapped from. Set to `null` to unset the mapping. example: displayName PatchConnectionAttributeMapsDto: type: object properties: standard_attributes: description: >- How IdP attributes or claims map onto the standard WorkOS profile fields. Only the provided fields are updated. $ref: '#/components/schemas/PatchConnectionStandardAttributesDto' custom_attributes: type: object description: >- How IdP attributes or claims map onto custom attributes, keyed by custom attribute name. Custom attributes must already be defined in the WorkOS dashboard. Only the provided keys are updated; a `null` value unsets that mapping. additionalProperties: oneOf: - type: string - type: 'null' example: company: company_claim PatchConnectionDto: allOf: - type: object properties: name: type: string description: A human-readable name for the Connection. example: Foo Corp external_id: type: - string - 'null' maxLength: 128 pattern: ^[\x00-\x7F]+$ description: >- The customer-owned identifier for the Connection. Set to `null` to stop tracking one. example: acme-legacy-conn-42 connection_type: type: string description: >- The type of the Connection. Immutable after creation — it may be sent, but only with the Connection current type. example: OktaSAML attribute_maps: description: >- How IdP attributes or claims map onto WorkOS profile fields. Only the provided fields are updated. $ref: '#/components/schemas/PatchConnectionAttributeMapsDto' - oneOf: - type: object not: anyOf: - properties: saml_options: x-exclude-from-lint: true required: - saml_options - properties: oidc_options: x-exclude-from-lint: true required: - oidc_options - type: object properties: saml_options: description: >- Protocol configuration for SAML connections. Only the provided fields are updated. Mutually exclusive with `oidc_options`. $ref: '#/components/schemas/PatchConnectionSamlOptionsDto' required: - saml_options not: anyOf: - properties: oidc_options: x-exclude-from-lint: true required: - oidc_options - type: object properties: oidc_options: description: >- Protocol configuration for OIDC connections. Only the provided fields are updated. Mutually exclusive with `saml_options`. $ref: '#/components/schemas/PatchConnectionOidcOptionsDto' required: - oidc_options not: anyOf: - properties: saml_options: x-exclude-from-lint: true required: - saml_options x-mutually-exclusive-body-groups: *ref_12 CreateCorsOriginDto: type: object properties: origin: type: string description: The origin URL to allow for CORS requests. example: https://example.com required: - origin CreateGroupMembershipDto: type: object properties: organization_membership_id: type: string description: The ID of the Organization Membership to add to the group. example: om_01HXYZ123456789ABCDEFGHIJ required: - organization_membership_id PatchGroupMembershipsDto: type: object properties: add: default: [] description: >- The IDs of the organization memberships to add to the group. Adding a membership that's already in the group has no effect. example: - om_01HXYZ123456789ABCDEFGHIJ type: array items: type: string remove: default: [] description: >- The IDs of the organization memberships to remove from the group. Removing a membership that isn't in the group has no effect. example: - om_01HXYZ987654321ABCDEFGHIJ type: array items: type: string CreateGroupDto: type: object properties: name: type: string maxLength: 256 description: The name of the Group. example: Engineering description: type: - string - 'null' maxLength: 150 description: An optional description of the Group. example: The engineering team required: - name UpdateGroupDto: type: object properties: name: type: string maxLength: 256 description: The name of the Group. example: Engineering description: type: - string - 'null' maxLength: 150 description: An optional description of the Group. example: The engineering team UpdateJwtTemplateDto: type: object properties: content: type: string description: The JWT template content as a Liquid template string. example: >- {"urn:myapp:full_name": "{{user.first_name}} {{user.last_name}}", "urn:myapp:email": "{{user.email}}"} required: - content CreateOrganizationDomainDto: type: object properties: domain: type: string description: The domain to add to the organization. example: foo-corp.com organization_id: type: string description: The ID of the organization to add the domain to. example: org_01EHQMYV6MBK39QC5PZXHY59C3 required: - domain - organization_id CreateOrganizationApiKeyDto: type: object properties: name: type: string description: The name for the API key. example: Production API Key permissions: description: The permission slugs to assign to the API key. example: - posts:read - posts:write type: array items: type: string expires_at: format: date-time type: string description: >- The timestamp when the API key should expire. Must be a future timestamp. If omitted, the key does not expire. example: '2030-01-01T00:00:00.000Z' required: - name CreateItContactDto: type: object properties: email: type: string format: email description: The email address of the IT contact. example: it-contact@example.com required: - email InviteItContactDto: type: object properties: intents: type: array description: The Admin Portal features that the IT contact can configure. example: - sso - directory_sync uniqueItems: true minItems: 1 items: type: string enum: - sso - directory_sync - log_streams - domain_verification - bring_your_own_key required: - intents OrganizationDomainDataDto: type: object properties: domain: type: string description: The domain value. example: foo-corp.com state: type: string enum: - pending - verified description: The verification state of the domain. example: verified required: - domain - state OrganizationDto: type: object properties: name: type: string description: The name of the organization. example: Foo Corp allow_profiles_outside_organization: type: boolean description: >- Whether the organization allows profiles from outside the organization to sign in. example: false domains: description: >- The domains associated with the organization. Deprecated in favor of `domain_data`. example: - example.com deprecated: true type: array items: type: string domain_data: description: >- The domains associated with the organization, including verification state. type: array items: $ref: '#/components/schemas/OrganizationDomainDataDto' metadata: type: - object - 'null' additionalProperties: &ref_13 type: string maxLength: 600 maxProperties: 50 example: &ref_14 tier: diamond description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. propertyNames: maxLength: 40 external_id: type: - string - 'null' maxLength: 128 pattern: ^[\x00-\x7F]+$ example: ext_12345 description: An external identifier for the Organization. required: - name UpdateOrganizationDto: type: object properties: name: type: string description: The name of the organization. example: Foo Corp allow_profiles_outside_organization: type: boolean description: >- Whether the organization allows profiles from outside the organization to sign in. example: false domains: description: >- The domains associated with the organization. Deprecated in favor of `domain_data`. example: - foo-corp.com deprecated: true type: array items: type: string domain_data: description: >- The domains associated with the organization, including verification state. type: array items: $ref: '#/components/schemas/OrganizationDomainDataDto' stripe_customer_id: type: string description: The Stripe customer ID associated with the organization. example: cus_R9qWAGMQ6nGE7V metadata: type: - object - 'null' additionalProperties: *ref_13 maxProperties: 50 example: *ref_14 description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. propertyNames: maxLength: 40 external_id: type: - string - 'null' maxLength: 128 pattern: ^[\x00-\x7F]+$ example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 description: An external identifier for the Organization. DataIntegrationCredentialsDto: type: object properties: type: type: string enum: - custom - organization example: custom description: >- The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization). client_id: type: string description: >- OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`. example: Iv1.abc123 client_secret: type: string description: >- OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`. example: secret_… required: - type ApiKeyInstallationDto: type: object properties: secret: type: string minLength: 5 description: The API key secret to store for the tenant. example: sk-1234567890abcdef user_id: type: string description: The User identifier the API key is installed for. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- An Organization identifier to scope the installation to a specific organization. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - secret - user_id CustomProviderDefinitionDto: type: object properties: name: type: string description: A descriptive name for the custom provider. example: My OAuth App authorization_url: type: string format: uri description: >- The provider's OAuth authorization endpoint. Required for OAuth providers; omit for `api_key` providers. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. example: https://provider.example.com/oauth/authorize token_url: type: string format: uri description: >- The provider's OAuth token endpoint. Required for OAuth and `client_credentials` providers; omit for `api_key` providers. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. example: https://provider.example.com/oauth/token refresh_token_url: type: - string - 'null' format: uri description: >- The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. example: https://provider.example.com/oauth/token pkce_enabled: type: boolean description: >- Whether PKCE is used during the authorization code flow. Defaults to `true`. example: true request_scope_separator: type: string description: The separator used to join requested scopes. Defaults to a space. example: ' ' scopes_required: type: boolean description: >- Whether at least one scope must be selected when connecting an account. Defaults to `false`. example: false client_secret_required: type: boolean description: >- Whether a client secret is required for this provider. Defaults to `true`. example: true additional_authorization_parameters: type: object description: >- Additional static query parameters appended to the authorization request. additionalProperties: type: string example: prompt: consent token_body_content_type: type: string description: The Content-Type used when exchanging the token request. example: application/x-www-form-urlencoded authenticate_via: type: string enum: &ref_15 - request_body - basic_auth_header description: >- How client credentials are sent when exchanging authorization codes and refreshing tokens. example: request_body required: - name CreateDataIntegrationDto: type: object properties: provider: type: string description: >- The provider to create a Data Integration for. For a built-in provider use its slug (e.g. `github`, `slack`). For a custom provider, this is the new provider slug and `custom_provider` must be supplied. A custom provider slug cannot shadow an existing global provider slug. example: github ownership: type: string enum: - user - organization description: >- Who owns the Data Integration. `user` (the default) creates the integration users connect their own accounts to; `organization` creates the root organizations connect to. Ownership is fixed at creation, and one integration of each ownership may exist per provider. Independent of `credentials.type`. example: user description: type: - string - 'null' description: An optional description of the Data Integration. example: Production GitHub app enabled: type: boolean description: Whether the Data Integration is enabled. Defaults to `false`. example: true scopes: description: >- The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted. example: - repo - read:org type: - array - 'null' items: type: string auth_methods: type: array description: >- How accounts authenticate with the provider. Defaults to `["oauth"]`. Use `["api_key"]` to declare an API key integration; `credentials` is then not required and keys are supplied per-tenant (optionally via `api_key` on this request). Use `["client_credentials"]` to declare a client-credentials integration; `credentials` is likewise not required and client credentials are supplied per-tenant. items: type: string enum: - oauth - api_key - client_credentials example: - oauth config: type: object description: >- Provider-specific config values (e.g. a Snowflake `account`), keyed by the config field. Only fields the built-in provider declares are accepted. additionalProperties: type: string example: account: myorg-myaccount credentials: description: >- The OAuth credentials to configure for the Data Integration. Required for OAuth integrations; omit when `auth_methods` is `["api_key"]`. $ref: '#/components/schemas/DataIntegrationCredentialsDto' api_key: description: >- An optional API key to install for the first tenant on an `api_key` integration. Omit to declare a keyless integration; tenants can be added later via the per-installation API key path. $ref: '#/components/schemas/ApiKeyInstallationDto' custom_provider: description: >- The OAuth definition for a custom provider. Supply this to define a custom provider; omit it to create an integration for a built-in provider. $ref: '#/components/schemas/CustomProviderDefinitionDto' required: - provider UpdateCustomProviderDefinitionDto: type: object properties: name: type: string description: A descriptive name for the custom provider. example: My OAuth App authorization_url: type: string format: uri description: >- The provider's OAuth authorization endpoint. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. example: https://provider.example.com/oauth/authorize token_url: type: string format: uri description: >- The provider's OAuth token endpoint. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. example: https://provider.example.com/oauth/token refresh_token_url: type: - string - 'null' format: uri description: >- The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. example: https://provider.example.com/oauth/token pkce_enabled: type: boolean description: Whether PKCE is used during the authorization code flow. example: true request_scope_separator: type: string description: The separator used to join requested scopes. example: ' ' scopes_required: type: boolean description: >- Whether at least one scope must be selected when connecting an account. example: false client_secret_required: type: boolean description: Whether a client secret is required for this provider. example: true additional_authorization_parameters: type: object description: >- Additional static query parameters appended to the authorization request. additionalProperties: type: string example: prompt: consent token_body_content_type: type: string description: The Content-Type used when exchanging the token request. example: application/x-www-form-urlencoded authenticate_via: type: string enum: *ref_15 description: >- How client credentials are sent when exchanging authorization codes and refreshing tokens. example: request_body UpdateDataIntegrationDto: type: object properties: description: type: - string - 'null' description: An optional description of the Data Integration. example: Production GitHub app enabled: type: boolean description: Whether the Data Integration is enabled. example: true scopes: description: >- The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes. example: - repo - read:org type: - array - 'null' items: type: string credentials: description: >- New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`. $ref: '#/components/schemas/DataIntegrationCredentialsDto' api_key: description: >- An API key to install or rotate for a tenant on an `api_key` integration. Upserts the tenant installation identified by `user_id` (and optional `organization_id`). $ref: '#/components/schemas/ApiKeyInstallationDto' custom_provider: description: >- Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. $ref: '#/components/schemas/UpdateCustomProviderDefinitionDto' CreateOrganizationConnectedAccountDto: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique connection label; null clears it. Not an account identifier. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' description: A developer-attested account identifier; null clears it. example: workspace_123 config: type: object description: >- Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections. additionalProperties: &ref_16 type: string example: &ref_17 {} access_token: type: string description: The OAuth access token for the connected account. example: gho_16C7e42F292c6912E7710c838347Ae178B4a refresh_token: type: string description: The OAuth refresh token for the connected account. example: ghr_xxxxxxxxxxxxxxxxxxxx expires_at: type: string description: >- The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. example: '2025-12-31T23:59:59.000Z' format: date-time scopes: description: The OAuth scopes granted for this connection. example: &ref_18 - repo - user:email type: array items: type: string state: type: string enum: &ref_19 - connected - needs_reauthorization description: >- Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. example: connected user_id: type: string description: >- The [User](/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization. example: user_01EHZNVPK3SFK441A1RGBFSHRT metadata: type: object description: >- Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update. additionalProperties: true example: &ref_20 {} connection_intent: type: string description: >- Set to `add` to create another connected account. Omit this field for permanent compatibility behavior. example: add const: add required: - user_id OrganizationConnectedAccountDto: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique connection label; null clears it. Not an account identifier. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' description: A developer-attested account identifier; null clears it. example: workspace_123 config: type: object description: >- Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections. additionalProperties: *ref_16 example: *ref_17 access_token: type: string description: The OAuth access token for the connected account. example: gho_16C7e42F292c6912E7710c838347Ae178B4a refresh_token: type: string description: The OAuth refresh token for the connected account. example: ghr_xxxxxxxxxxxxxxxxxxxx expires_at: type: string description: >- The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. example: '2025-12-31T23:59:59.000Z' format: date-time scopes: description: The OAuth scopes granted for this connection. example: *ref_18 type: array items: type: string state: type: string enum: *ref_19 description: >- Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. example: connected user_id: type: string description: >- The [User](/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization. example: user_01EHZNVPK3SFK441A1RGBFSHRT required: - user_id CreateConnectedAccountDto: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique connection label; null clears it. Not an account identifier. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' description: A developer-attested account identifier; null clears it. example: workspace_123 config: type: object description: >- Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections. additionalProperties: *ref_16 example: *ref_17 access_token: type: string description: The OAuth access token for the connected account. example: gho_16C7e42F292c6912E7710c838347Ae178B4a refresh_token: type: string description: The OAuth refresh token for the connected account. example: ghr_xxxxxxxxxxxxxxxxxxxx expires_at: type: string description: >- The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. example: '2025-12-31T23:59:59.000Z' format: date-time scopes: description: The OAuth scopes granted for this connection. example: *ref_18 type: array items: type: string state: type: string enum: *ref_19 description: >- Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. example: connected metadata: type: object description: >- Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update. additionalProperties: true example: *ref_20 connection_intent: type: string description: >- Set to `add` to create another connected account. Omit this field for permanent compatibility behavior. example: add const: add ConnectedAccountDto: type: object properties: account_display_name: type: - string - 'null' description: >- A mutable, non-unique connection label; null clears it. Not an account identifier. maxLength: 255 example: Acme production account_identifier: type: - string - 'null' description: A developer-attested account identifier; null clears it. example: workspace_123 config: type: object description: >- Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections. additionalProperties: *ref_16 example: *ref_17 access_token: type: string description: The OAuth access token for the connected account. example: gho_16C7e42F292c6912E7710c838347Ae178B4a refresh_token: type: string description: The OAuth refresh token for the connected account. example: ghr_xxxxxxxxxxxxxxxxxxxx expires_at: type: string description: >- The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. example: '2025-12-31T23:59:59.000Z' format: date-time scopes: description: The OAuth scopes granted for this connection. example: *ref_18 type: array items: type: string state: type: string enum: *ref_19 description: >- Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. example: connected GenerateLinkDto: type: object properties: return_url: type: string description: >- The URL to go to when an admin clicks on your logo in the Admin Portal. If not specified, the return URL configured on the [Admin Portal](https://dashboard.workos.com/admin-portal) page will be used. example: https://example.com/admin-portal/return success_url: type: string description: >- The URL to redirect the admin to when they finish setup. If not specified, the success URL configured on the [Admin Portal](https://dashboard.workos.com/admin-portal) page will be used. example: https://example.com/admin-portal/success organization: type: string description: An [Organization](/reference/organization) identifier. example: org_01EHZNVPK3SFK441A1RGBFSHRT external_user_id: type: string minLength: 1 maxLength: 255 description: >- The ID of the user in your application the link is generated for. The link and any Admin Portal sessions started from it can later be revoked by this ID, for example when that user is deprovisioned from your application. example: user_12345 intent: type: string description: |2- The intent of the Admin Portal. - `sso` - Launch Admin Portal for creating SSO connections - `dsync` - Launch Admin Portal for creating Directory Sync connections - `audit_logs` - Launch Admin Portal for viewing Audit Logs - `log_streams` - Launch Admin Portal for creating Log Streams - `domain_verification` - Launch Admin Portal for Domain Verification - `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key example: sso enum: - sso - dsync - audit_logs - log_streams - domain_verification - certificate_renewal - bring_your_own_key it_contact_emails: description: >- The email addresses of the IT contacts to grant access to the Admin Portal for the given organization. Accepts up to 20 emails. example: - it-contact@example.com maxItems: 20 items: type: string format: email type: array required: - organization RevokeLinkDto: type: object properties: organization: type: string description: An [Organization](/reference/organization) identifier. example: org_01EHZNVPK3SFK441A1RGBFSHRT external_user_id: type: string minLength: 1 maxLength: 255 description: >- The `external_user_id` the Portal Links were generated with for this organization. Every matching link is revoked, along with any Admin Portal sessions started from those links. example: user_12345 required: - organization - external_user_id SendRadarSmsChallengeDto: type: object properties: user_id: type: string description: The ID of the user to send the SMS challenge to. example: user_01E4ZCR3C56J083X43JQXF3JK5 pending_authentication_token: type: string description: >- The pending authentication token from a previous authentication attempt that triggered the Radar challenge. example: cTDQJTTkTkkVYxbn... phone_number: type: string description: The phone number to send the SMS verification code to. example: '+15555550123' ip_address: type: string description: The IP address of the user's request. example: 203.0.113.42 user_agent: type: string description: The user agent string from the user's request. example: Mozilla/5.0 required: - user_id - pending_authentication_token - phone_number CreateAuthkitOauthResourceDto: type: object properties: uri: type: string description: >- The resource URI. May be a wildcard pattern with a single `*`, either in the leftmost hostname label or as the final path segment, where enabled for the environment. example: https://api.example.com default: type: boolean description: >- Whether the resource being created becomes the environment default, clearing any previous default. Applies at creation only — this API has no update endpoint yet, so changing the default on an existing resource is done from the dashboard. A wildcard pattern cannot be the default. example: false required: - uri CreateRedirectUriDto: type: object properties: uri: type: string description: The redirect URI to create. example: https://example.com/callback required: - uri CreateSamlIdpSigningCertificateDto: type: object properties: value: type: string description: The PEM-encoded X.509 certificate. example: '-----BEGIN CERTIFICATE-----MIIC...-----END CERTIFICATE-----' required: - value CreateTeamDto: type: object properties: admin_email: type: string format: email description: >- The email address of the person who will administer the team. An invitation is sent to this address. example: alice@example.com name: type: string description: Name of the team. example: Example Team required: - admin_email - name EnrollUserlandUserAuthenticationFactorDto: type: object properties: type: type: string description: The type of the factor to enroll. example: totp const: totp totp_issuer: type: string description: >- Your application or company name displayed in the user's authenticator app. example: WorkOS totp_user: type: string description: The user's account name displayed in their authenticator app. example: user@example.com totp_secret: type: string description: >- The Base32-encoded shared secret for TOTP factors. This can be provided when creating the auth factor, otherwise it will be generated. The algorithm used to derive TOTP codes is SHA-1, the code length is 6 digits, and the timestep is 30 seconds – the secret must be compatible with these parameters. example: JBSWY3DPEHPK3PXP required: - type CreateUserlandMagicCodeAndReturnDto: type: object properties: email: type: string format: email description: The email address to send the magic code to. example: marcelina.davis@example.com invitation_token: type: string description: The invitation token to associate with this magic code. example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3 ip_address: type: string description: >- The IP address of the user's request. Required when Radar is in Decision mode. example: 203.0.113.42 user_agent: type: string description: The user agent string from the user's request. example: Mozilla/5.0 radar_auth_attempt_id: type: string description: >- The ID of an existing Radar authentication attempt to associate with this request. example: radar_auth_attempt_01HXYZ123456789ABCDEFGHIJ signals_id: type: string description: >- An optional Radar signals ID to correlate client-side signals with this request. example: 01JBS0GN92GC2RJQS4X9DBPQ2A locale: type: string description: >- The locale to use when rendering the Magic Auth email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en required: - email CreateUserlandUserInviteOptionsDto: type: object properties: email: type: string format: email description: The email address of the recipient. example: marcelina.davis@example.com organization_id: type: string description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 role_slug: type: string description: >- The [role](/authkit/roles) that the recipient will receive when they join the organization in the invitation. example: admin expires_in_days: type: integer description: >- How many days the invitations will be valid for. Must be between 1 and 30 days. Defaults to 7 days if not specified. example: 7 inviter_user_id: type: string description: >- The ID of the [user](/reference/authkit/user) who invites the recipient. The invitation email will mention the name of this user. example: user_01HYGBX8ZGD19949T3BM4FW1C3 locale: type: string description: >- The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en required: - email ResendUserlandUserInviteOptionsDto: type: object properties: locale: type: string description: >- The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en CreateUserlandUserOrganizationMembershipDto: allOf: - type: object properties: user_id: type: string description: The ID of the [user](/reference/authkit/user). example: user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E organization_id: type: string description: >- The ID of the [organization](/reference/organization) which the user belongs to. example: org_01E4ZCR3C56J083X43JQXF3JK5 required: - user_id - organization_id - oneOf: - type: object not: anyOf: - properties: role_slug: x-exclude-from-lint: true required: - role_slug - properties: role_slugs: x-exclude-from-lint: true required: - role_slugs - type: object properties: role_slug: type: string description: >- A single role identifier. Defaults to `member` or the explicit default role. Mutually exclusive with `role_slugs`. example: admin required: - role_slug not: anyOf: - properties: role_slugs: x-exclude-from-lint: true required: - role_slugs - type: object properties: role_slugs: description: >- An array of role identifiers. Limited to one role when Multiple Roles is disabled. Mutually exclusive with `role_slug`. example: - admin type: array items: type: string required: - role_slugs not: anyOf: - properties: role_slug: x-exclude-from-lint: true required: - role_slug x-mutually-exclusive-body-groups: *ref_21 UpdateUserlandUserOrganizationMembershipDto: x-mutually-exclusive-body-groups: *ref_22 oneOf: - type: object not: anyOf: - properties: role_slug: x-exclude-from-lint: true required: - role_slug - properties: role_slugs: x-exclude-from-lint: true required: - role_slugs - type: object properties: role_slug: type: string description: >- A single role identifier. Defaults to `member` or the explicit default role. Mutually exclusive with `role_slugs`. example: admin required: - role_slug not: anyOf: - properties: role_slugs: x-exclude-from-lint: true required: - role_slugs - type: object properties: role_slugs: description: >- An array of role identifiers. Limited to one role when Multiple Roles is disabled. Mutually exclusive with `role_slug`. example: - admin type: array items: type: string required: - role_slugs not: anyOf: - properties: role_slug: x-exclude-from-lint: true required: - role_slug CreateUserApiKeyDto: type: object properties: name: type: string description: A descriptive name for the API key. example: Production API Key organization_id: type: string description: >- The ID of the organization the user API key is associated with. The user must have an active membership in this organization. example: org_01EHZNVPK3SFK441A1RGBFSHRT permissions: description: >- The permission slugs to assign to the API key. Each permission must be enabled for user API keys. example: - posts:read - posts:write type: array items: type: string expires_at: format: date-time type: string description: >- The timestamp when the API key should expire. Must be a future timestamp. If omitted, the key does not expire. example: '2030-01-01T00:00:00.000Z' required: - name - organization_id CreateUserlandUserDto: allOf: - type: object properties: email: type: string format: email description: >- The email address of the user. WorkOS trims whitespace and converts the address to lowercase before storing it. example: marcelina.davis@example.com first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The user's full name. example: Marcelina Davis email_verified: type: - boolean - 'null' description: Whether the user's email has been verified. example: true metadata: type: - object - 'null' additionalProperties: *ref_13 maxProperties: 50 example: &ref_24 timezone: America/New_York description: >- Object containing metadata key/value pairs associated with the user. propertyNames: maxLength: 40 external_id: type: - string - 'null' maxLength: 128 pattern: ^[\x00-\x7F]+$ description: The external ID of the user. example: f1ffa2b2-c20b-4d39-be5c-212726e11222 ip_address: type: - string - 'null' description: >- The IP address of the user's request. Required when Radar is in Decision mode. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent string from the user's request. example: Mozilla/5.0 signals_id: type: string description: >- An optional Radar signals ID to correlate client-side signals with this request. example: 01JBS0GN92GC2RJQS4X9DBPQ2A required: - email - oneOf: - type: object not: anyOf: - properties: password: x-exclude-from-lint: true required: - password - properties: password_hash: x-exclude-from-lint: true required: - password_hash - properties: password_hash_type: x-exclude-from-lint: true required: - password_hash_type - properties: password_salt_position: x-exclude-from-lint: true required: - password_salt_position - type: object properties: password: type: - string - 'null' description: >- The password to set for the user. Mutually exclusive with `password_hash`, `password_hash_type`, and `password_salt_position`. example: strong_password_123! required: - password not: anyOf: - properties: password_hash: x-exclude-from-lint: true required: - password_hash - properties: password_hash_type: x-exclude-from-lint: true required: - password_hash_type - properties: password_salt_position: x-exclude-from-lint: true required: - password_salt_position - type: object properties: password_hash: type: string description: >- The hashed password to set for the user. Required with `password_hash_type`. Mutually exclusive with `password`. example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy password_hash_type: type: string enum: &ref_25 - bcrypt - firebase-scrypt - ssha - ssha256 - scrypt - pbkdf2 - argon2 description: >- The algorithm originally used to hash the password, used when providing a `password_hash`. Required with `password_hash`. Mutually exclusive with `password`. example: bcrypt password_salt_position: type: string enum: &ref_26 - prefix - suffix description: >- The position of the salt relative to the password when the `password_hash` digest was computed: `prefix` for `hash(salt + password)` or `suffix` for `hash(password + salt)`. Only supported with the `ssha256` hash type and only valid when a `password_hash` is provided. Defaults to `suffix`. Mutually exclusive with `password`. example: prefix required: - password_hash - password_hash_type not: anyOf: - properties: password: x-exclude-from-lint: true required: - password x-mutually-exclusive-body-groups: *ref_23 UpdateUserlandUserDto: allOf: - type: object properties: email: type: string format: email description: The email address of the user. example: marcelina.davis@example.com first_name: type: string description: The first name of the user. example: Marcelina last_name: type: string description: The last name of the user. example: Davis name: type: string description: The user's full name. example: Marcelina Davis email_verified: type: boolean description: Whether the user's email has been verified. example: true metadata: type: - object - 'null' additionalProperties: *ref_13 maxProperties: 50 example: *ref_24 description: >- Object containing metadata key/value pairs associated with the user. propertyNames: maxLength: 40 external_id: type: - string - 'null' maxLength: 128 pattern: ^[\x00-\x7F]+$ description: The external ID of the user. example: f1ffa2b2-c20b-4d39-be5c-212726e11222 locale: type: - string - 'null' description: The user's preferred locale. example: en-US - oneOf: - type: object not: anyOf: - properties: password: x-exclude-from-lint: true required: - password - properties: password_hash: x-exclude-from-lint: true required: - password_hash - properties: password_hash_type: x-exclude-from-lint: true required: - password_hash_type - properties: password_salt_position: x-exclude-from-lint: true required: - password_salt_position - type: object properties: password: type: string description: >- The password to set for the user. Mutually exclusive with `password_hash`, `password_hash_type`, and `password_salt_position`. example: strong_password_123! required: - password not: anyOf: - properties: password_hash: x-exclude-from-lint: true required: - password_hash - properties: password_hash_type: x-exclude-from-lint: true required: - password_hash_type - properties: password_salt_position: x-exclude-from-lint: true required: - password_salt_position - type: object properties: password_hash: type: string description: >- The hashed password to set for the user. Required with `password_hash_type`. Mutually exclusive with `password`. example: $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy password_hash_type: type: string enum: *ref_25 description: >- The algorithm originally used to hash the password, used when providing a `password_hash`. Required with `password_hash`. Mutually exclusive with `password`. example: bcrypt password_salt_position: type: string enum: *ref_26 description: >- The position of the salt relative to the password when the `password_hash` digest was computed: `prefix` for `hash(salt + password)` or `suffix` for `hash(password + salt)`. Only supported with the `ssha256` hash type and only valid when a `password_hash` is provided. Defaults to `suffix`. Mutually exclusive with `password`. example: prefix required: - password_hash - password_hash_type not: anyOf: - properties: password: x-exclude-from-lint: true required: - password x-mutually-exclusive-body-groups: *ref_27 SendVerificationEmailDto: type: object properties: locale: type: string description: >- The locale to use when rendering the verification email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en VerifyEmailAddressDto: type: object properties: code: type: string description: The one-time email verification code. example: '123456' format: password required: - code CreatePasswordResetTokenDto: type: object properties: email: type: string format: email description: The email address of the user requesting a password reset. example: marcelina.davis@example.com locale: type: string description: >- The locale to use when rendering the password reset email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en required: - email CreatePasswordResetDto: type: object properties: token: type: string description: The password reset token. example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3 new_password: type: string description: The new password to set for the user. example: strong_password_123! required: - token - new_password SendEmailChangeDto: type: object properties: new_email: type: string description: The new email address to change to. example: new.email@example.com locale: type: string description: >- The locale to use when rendering the email change email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization). enum: - af - am - ar - bg - bn - bs - ca - cs - da - de - de-DE - el - en - en-AU - en-CA - en-GB - en-US - es - es-419 - es-ES - es-US - et - fa - fi - fil - fr - fr-BE - fr-CA - fr-FR - fy - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - it-IT - ja - jv - ka - kk - km - kn - ko - lt - lv - mk - ml - mn - mr - ms - my - nb - ne - nl - nl-BE - nl-NL - nn - 'no' - pa - pl - pt - pt-BR - pt-PT - ro - ru - sk - sl - sq - sr - sv - sw - ta - te - th - tr - uk - ur - uz - vi - zh - zh-CN - zh-HK - zh-TW - zu example: en required: - new_email ConfirmEmailChangeDto: type: object properties: code: type: string description: The one-time code used to confirm the email change. example: '123456' format: password required: - code UserlandRevokeSessionDto: type: object properties: session_id: type: string description: >- The ID of the session to revoke. This can be extracted from the `sid` claim of the access token. example: session_01H93ZY4F80QPBEZ1R5B2SHQG8 required: - session_id CreateWaitlistEntryDto: type: object properties: email: type: string format: email description: The email address of the user joining the waitlist. example: marcelina.davis@example.com additional_fields: type: object description: >- Object containing additional key/value pairs collected with the waitlist entry. Supports up to 50 string pairs, with keys up to 40 characters and values up to 600 characters. Values are user-provided — treat them as untrusted input when rendering or exporting. additionalProperties: type: string maxLength: 600 maxProperties: 50 example: company: Example Corp send_confirmation_email: type: boolean description: >- Whether to send the waitlist confirmation email to the user. Defaults to `false`. No email is sent when the waitlist confirmation email is disabled in the environment, even if `send_confirmation_email` is `true`. default: false example: false required: - email CreateWebhookEndpointDto: type: object properties: endpoint_url: type: string description: The HTTPS URL where webhooks will be sent. example: https://example.com/webhooks events: type: array description: The events that the Webhook Endpoint is subscribed to. items: type: string enum: &ref_28 - agent.blueprint.created - agent.blueprint.deleted - agent.blueprint.updated - agent.instance.created - agent.instance.deleted - agent.instance.session.created - agent.instance.session.revoked - agent.registration.created - agent.registration.claim.attempt.created - agent.registration.claim.completed - agent.registration.credential.issued - agent.registration.deleted - agent.registration.refreshed - agent.registration.expired - agent.registration.organization.switched - agent.registration.revoked - authentication.email_verification_succeeded - authentication.magic_auth_failed - authentication.magic_auth_succeeded - authentication.mfa_succeeded - authentication.oauth_failed - authentication.oauth_succeeded - authentication.password_failed - authentication.password_succeeded - authentication.passkey_failed - authentication.passkey_succeeded - authentication.sso_failed - authentication.sso_started - authentication.sso_succeeded - authentication.sso_timed_out - radar.challenge_created - authentication.radar_risk_detected - authentication.reauthentication_succeeded - api_key.created - api_key.revoked - api_key.updated - application.token_exchange_failed - application.token_exchange_succeeded - connection.activated - connection.deactivated - connection.saml_certificate_renewal_required - connection.saml_certificate_renewed - connection.deleted - dsync.activated - dsync.deleted - dsync.group.created - dsync.group.deleted - dsync.group.updated - dsync.group.user_added - dsync.group.user_removed - dsync.user.created - dsync.user.deleted - dsync.user.updated - email_verification.created - group.created - group.deleted - group.member_added - group.member_removed - group.updated - flag.created - flag.deleted - flag.updated - flag.rule_updated - feature_flags.flag.created - feature_flags.flag.updated - feature_flags.flag.deleted - feature_flags.flag_rule.created - feature_flags.flag_rule.updated - feature_flags.flag_target.created - feature_flags.flag_rule.deleted - feature_flags.flag_target.deleted - invitation.accepted - invitation.created - invitation.resent - invitation.revoked - magic_auth.created - organization.created - organization.deleted - organization.updated - organization_domain.created - organization_domain.deleted - organization_domain.updated - organization_domain.verified - organization_domain.verification_failed - password_reset.created - password_reset.succeeded - user.created - user.updated - user.deleted - organization_membership.created - organization_membership.deleted - organization_membership.updated - role.created - role.deleted - role.updated - organization_role.created - organization_role.deleted - organization_role.updated - permission.created - permission.deleted - permission.updated - pipes.account_connection.add_failed - pipes.account_connection.connected - pipes.account_connection.connection_failed - pipes.account_connection.disconnected - pipes.account_connection.reauthorization_needed - pipes.connected_account.connected - pipes.connected_account.connection_failed - pipes.connected_account.disconnected - pipes.connected_account.reauthorization_needed - session.created - session.revoked - waitlist_user.approved - waitlist_user.created - waitlist_user.denied example: - user.created - dsync.user.created required: - endpoint_url - events UpdateWebhookEndpointDto: type: object properties: endpoint_url: type: string description: The HTTPS URL where webhooks will be sent. example: https://example.com/webhooks status: type: string enum: - enabled - disabled description: Whether the Webhook Endpoint is enabled or disabled. example: enabled events: type: array description: The events that the Webhook Endpoint is subscribed to. items: type: string enum: *ref_28 example: - user.created - dsync.user.created WidgetSessionTokenDto: type: object properties: organization_id: type: string description: >- The ID of the organization to scope the widget session to. Required when scopes are provided. Optional when issuing a token for user-only widgets (e.g. `UserProfile`, `UserSecurity`) that do not require organization context. example: org_01EHZNVPK3SFK441A1RGBFSHRT user_id: type: string description: The ID of the user to issue the widget session token for. example: user_01E4ZCR3C56J083X43JQXF3JK5 scopes: type: array description: The scopes to grant the widget session. items: type: string enum: - widgets:users-table:manage - widgets:user-api-keys:manage-self - widgets:user-api-keys:manage-all - widgets:domain-verification:manage - widgets:sso:manage - widgets:api-keys:manage - widgets:dsync:manage - widgets:audit-log-streaming:manage - widgets:pipes:manage example: - widgets:users-table:manage ClientApiTokenDto: type: object properties: organization_id: type: string description: The ID of the organization to scope the Widgets API token to. example: org_01EHZNVPK3SFK441A1RGBFSHRT user_id: type: string description: The ID of the user to issue the Widgets API token for. example: user_01E4ZCR3C56J083X43JQXF3JK5 required: - organization_id - user_id 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. Required when `grant_type` is `authorization_code`. example: authorization_code_value format: password grant_type: type: string description: The grant type for the token request. enum: - authorization_code - urn:ietf:params:oauth:grant-type:token-exchange example: authorization_code code_verifier: type: string description: >- The PKCE code verifier matching the `code_challenge` sent with the authorization request. Required when the authorization request included a `code_challenge`. Must be sent in the request body. example: code_verifier_value format: password subject_token: type: string description: >- The OIDC ID token to exchange. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body. example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.example subject_token_type: type: string description: >- The type of the subject token. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body. example: urn:ietf:params:oauth:token-type:id_token const: urn:ietf:params:oauth:token-type:id_token organization_id: type: string description: >- The ID of the organization whose connection the subject token is validated against. Required when `grant_type` is `urn:ietf:params:oauth:grant-type:token-exchange`. Must be sent in the request body. example: org_01EHQMYV6MBK39QC5PZXHY59C3 required: - client_id - client_secret - grant_type ErrorBodyCode: type: string description: A machine-readable error code; additional values may be added over time. enum: - account_selection_required - action_denied - already_claimed - ambiguous_saml_options - api_key_already_expired - application_consent_required - auth_method_disabled - auth_method_mismatch - authentication_method_not_allowed - authorization_resource_external_id_conflict - bad_request - both_saml_and_oidc_options_provided - cannot_deactivate_pending_organization_membership - cannot_delete_last_certificate - cannot_reactivate_pending_organization_membership - cannot_remove_group_sourced_role - certificate_expired - chain_depth_exceeded - claim_denied - claim_expired - client_secret_not_accepted - client_secret_required - code_challenge_not_found - concurrent_flag_target_update - concurrent_request - connected_account_limit_reached - connection_could_not_be_verified - connection_deletion_in_progress - connection_is_not_saml - connection_type_conflicts_with_options - connection_type_not_supported - connection_type_not_updatable - connection_type_or_options_required - daily_quota_exceeded - directory_sync_disabled - directory_sync_in_progress - directory_sync_rate_limited - directory_sync_unsupported - discovery_endpoint_must_use_https - discovery_endpoint_tenant_not_allowed - domain_already_exists - domain_already_verified - duplicate_endpoint - duplicate_group_role_assignment - email_already_in_use - email_already_invited - email_already_invited_to_organization - email_already_verified - email_change_code_expired - email_change_code_incorrect - email_change_code_previously_used - email_change_not_allowed - email_change_not_needed - email_change_too_many_attempts - email_completion_required - email_domain_not_deliverable - email_mismatch - email_not_available - email_password_auth_disabled - email_previously_verified - email_verification_code_expired - email_verification_code_incorrect - email_verification_code_previously_used - email_verification_required - entity_not_found - expires_in_days_too_long - expires_in_days_too_short - external_auth_session_already_completed - external_id_already_in_use - external_id_already_used - group_membership_limit_exceeded - group_membership_update_overlap - group_role_assignment_update_overlap - id_token_signature_algorithm_not_supported - idp_metadata_fetch_failed - incomplete_saml_options - invalid_agent_access_token - invalid_certificate - invalid_claim - invalid_credentials - invalid_email - invalid_idp_sso_url - invalid_invite - invalid_locale - invalid_metadata - invalid_one_time_code - invalid_organization - invalid_organization_id - invalid_password_hash - invalid_pending_authentication_token - invalid_refresh_token - invalid_request - invalid_request_parameters - invalid_role - invalid_state - invalid_url - invalid_user_access_token - invitation_email_not_sent - invite_accepted - invite_expired - invite_has_accepted_user_id - invite_not_pending - invite_revoked - ip_address_required - it_contact_already_exists - it_contact_invitation_already_active - key_pair_not_accepted - lock_timeout - max_age_exceeded - mfa_challenge - mfa_enrollment - missing_organization_id_or_resource_type_slug - missing_user_id_or_organization_id - multiple_roles_not_enabled - name_already_in_use - no_pending_email_change - oidc_options_required - one_time_code_expired - one_time_code_previously_used - one_time_code_too_many_attempts - organization_blocked_from_sending_invites - organization_membership_directory_managed - organization_not_found - organization_not_invocable - organization_role_slug_conflict - organization_selection_required - passkey_progressive_enrollment - password_and_password_hash_provided - password_and_password_hash_type_provided - password_reset_error - password_reset_not_allowed - password_salt_position_requires_password_hash - password_strength_error - permission_not_found - permission_slug_conflict - phone_number_required - production_feature_requires_billing - radar_challenge - radar_sign_up_challenge - radar_sms_sign_in_challenge - rate_limit_exceeded - resource_has_dependents - resource_limit_exceeded - resource_type_update_in_progress - role_assignment_update_overlap - role_has_assignments - role_has_group_role_mappings - role_not_found - role_not_invocable - role_slug_conflict - saml_options_required - session_expired - session_revoked - session_settings_not_found - sms_challenge_quota_reached - sms_challenge_rate_limited - sp_signing_cert_already_exists - stripe_customer_id_already_used - sub_resource_scoped_role_not_allowed - team_not_found - token_authentication_method_not_supported - too_many_failed_verification_attempts - too_many_sp_encryption_certs - unsupported_invocation_type - user_already_exists - user_already_organization_member - user_code_expired - user_consent_options_not_supported - user_creation_error - user_mismatch - user_not_member_of_organization - user_session_ended - verification_id_required - wrong_account ErrorBodyWithCode: type: object properties: code: type: string description: The error code identifying the type of error. example: action_denied message: &ref_29 type: string description: A human-readable description of the error. example: Request could not be processed. required: &ref_30 - code - message ErrorBodyWithError: type: object properties: error: type: string description: The HTTP error type. example: Bad Request message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - error - message ErrorBody: type: object properties: message: type: string description: A human-readable description of the error. example: Request could not be processed. required: &ref_36 - message OrganizationSelectionRequiredErrorBodyWithOrganizations: type: object properties: code: type: string const: organization_selection_required description: The error code identifying the type of error. example: organization_selection_required message: type: string description: A human-readable description of the error. example: Request could not be processed. organizations: type: array items: $ref: >- #/components/schemas/OrganizationSelectionRequiredErrorBodyWithOrganization description: >- Organizations the user belongs to. Pick one and retry with organization_id. required: - code - message - organizations OrganizationSelectionRequiredErrorBodyWithOrganization: type: object properties: id: type: string description: The organization ID. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: The organization name. example: Acme Corp required: - id - name ErrorBodyWithCodeFieldErrors: type: object properties: message: type: string description: A human-readable description of the error. example: Validation failed. errors: type: array items: $ref: '#/components/schemas/ErrorBodyWithCodeFieldError' description: The list of validation errors. required: - message - errors ErrorBodyWithCodeFieldError: type: object properties: code: type: string description: The validation error code. example: required field: type: string description: The field that failed validation. example: event.action required: - code - field ErrorBodyWithCodeInstancePathErrors: type: object properties: errors: type: array items: $ref: '#/components/schemas/ErrorBodyWithCodeInstancePathError' description: The list of validation errors. message: type: string description: A human-readable description of the error. example: Invalid Audit Log event. code: type: string description: The error code identifying the type of error. example: invalid_audit_log_event required: - errors - message - code ErrorBodyWithCodeInstancePathError: type: object properties: instancePath: type: string description: The JSON path to the invalid field in the event payload. example: /targets required: - instancePath ErrorBodyWithErrorMessageList: type: object properties: message: type: array items: type: string description: >- A list of human-readable error messages describing the validation failures. example: - Invalid date range error: type: string description: The error type. example: Bad Request required: - message - error TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter: type: object properties: code: type: string const: too_many_failed_verification_attempts description: The error code identifying the type of error. example: too_many_failed_verification_attempts message: type: string description: A human-readable description of the error. example: Request could not be processed. retry_after: type: integer description: How many seconds to wait before verification can be retried. example: 900 required: - code - message - retry_after RateLimitExceededErrorBodyWithRetryAfter: type: object properties: code: type: string const: rate_limit_exceeded description: The error code identifying the type of error. example: rate_limit_exceeded message: type: string description: A human-readable description of the error. example: Request could not be processed. retry_after: type: number description: Seconds to wait before retrying. example: 60 required: - code - message - retry_after ErrorBodyWithConstraintsPropertyErrors: type: object properties: message: type: string description: A human-readable error message. example: Validation failed. errors: type: array items: $ref: '#/components/schemas/ErrorBodyWithConstraintsPropertyError' description: The list of validation errors. ErrorBodyWithConstraintsPropertyError: type: object properties: property: type: string description: The property that failed validation. example: origin constraints: type: object ErrorBodyWithCodeStatusCode: type: object properties: message: type: string description: A human-readable description of the error. example: Invalid resource id code: type: string description: The error code identifying the type of error. example: invalid_resource_id_format statusCode: type: number description: The HTTP status code. example: 400 ConnectionFinishErrorBody: type: object properties: code: type: string enum: - invalid_connect_code - authorization_code_exchange_error - authorization_state_expired - auth_method_mismatch - concurrent_request - connected_account_limit_reached - connected_account_not_found - installation_failed - invalid_authorization_url - invalid_client_id - invalid_data_integration - missing_access_token - missing_code - multiple_connections_unavailable - provider_error - reauthorization_needed - target_deleted - unexpected_response_format description: The error code identifying the type of error. example: invalid_connect_code message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message ErrorBodyWithMessageOrMessageList: type: object properties: message: oneOf: - type: string - type: array items: type: string required: - message AuthorizationUrlRequestErrorBody: type: object properties: code: type: string enum: - invalid_return_to - return_to_requires_exact_match - connect_finish_unavailable description: The error code identifying the type of error. example: invalid_return_to message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message AuthorizationUrlNotFoundErrorBody: type: object properties: code: type: string enum: - multiple_connections_unavailable - connected_account_not_found - entity_not_found description: The error code identifying the type of error. example: multiple_connections_unavailable message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message AuthMethodMismatchErrorBody: type: object properties: &ref_51 code: type: string const: auth_method_mismatch description: >- Error code indicating the endpoint does not match the installation auth method. example: auth_method_mismatch message: type: string description: A human-readable explanation of the mismatch. example: >- This installation uses oauth authentication. Use the POST /:slug/token endpoint instead. required: &ref_52 - code - message x-component-name: AuthMethodMismatchError AccountSelectionRequiredErrorBody: type: object properties: &ref_53 code: type: string const: account_selection_required description: >- Indicates that several connected accounts match and the request must name one. example: account_selection_required message: type: string description: A human-readable explanation of the ambiguity. example: >- Several connected accounts match this user for this provider. Name one with a connected account id. required: &ref_54 - code - message x-component-name: AccountSelectionRequiredError ConnectionCreationNotFoundErrorBody: type: object properties: code: type: string enum: - multiple_connections_unavailable - entity_not_found description: The error code identifying the type of error. example: multiple_connections_unavailable message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message ConnectionCreationConflictErrorBody: type: object properties: code: type: string enum: - connected_account_limit_reached - idempotency_key_conflict description: The error code identifying the type of error. example: connected_account_limit_reached message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message ErrorBodyWithCodeErrors: type: object properties: code: $ref: '#/components/schemas/ErrorBodyCode' message: &ref_31 type: string description: A human-readable description of the error. example: Validation failed. errors: &ref_32 type: array items: $ref: '#/components/schemas/ErrorBodyWithCode' description: The list of validation errors. required: &ref_33 - code - message - errors OrganizationConnectedAccountImportErrorBody: type: object properties: code: type: string enum: - invalid_token_combination - invalid_data_integration_state - client_credentials_not_configured description: The error code identifying the type of error. example: invalid_token_combination message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message UserConnectedAccountImportErrorBody: type: object properties: code: type: string enum: - invalid_refresh_token - invalid_token_combination - invalid_data_integration_state - client_credentials_not_configured description: The error code identifying the type of error. example: invalid_refresh_token message: type: string description: A human-readable description of the error. example: Request could not be processed. required: - code - message OAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: access_denied error_description: &ref_34 type: string description: A human-readable description of the error. example: 'The request failed due to: invitation_invalid.' required: &ref_35 - error - error_description PolicyDeniedErrorBody: type: object properties: code: type: string const: policy_denied description: The error code identifying the type of error. example: policy_denied message: type: string description: A human-readable description of the error. example: Request could not be processed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the request. Only set when Radar blocked it. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug: type: object properties: message: type: string description: A human-readable description of the error. example: Sub-resource scoped roles are not allowed for this operation. code: type: string const: sub_resource_scoped_role_not_allowed description: The error code identifying the type of error. example: sub_resource_scoped_role_not_allowed role_slug: type: string description: The slug of the role that is not allowed. example: admin required: - message - code - role_slug EmailCompletionRequiredErrorBodyWithEmailCompletionToken: type: object properties: code: type: string const: email_completion_required description: The error code identifying the type of error. example: email_completion_required message: type: string description: A human-readable description of the error. example: Request could not be processed. email_completion_token: type: string description: >- Pass this to the `email-completion` grant, with the address the user supplies, to finish authenticating. example: JZ8kQ2mR5vT7wX1yA3bC6dE9f required: - code - message - email_completion_token UnauthorizedErrorBody: type: object properties: error: type: string const: Unauthorized required: - error ExternalAuthSessionAlreadyCompletedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: external_auth_session_already_completed const: external_auth_session_already_completed message: *ref_29 required: *ref_30 UserConsentOptionsNotSupportedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: user_consent_options_not_supported const: user_consent_options_not_supported message: *ref_29 required: *ref_30 EmailChangeNotAllowedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_change_not_allowed const: email_change_not_allowed message: *ref_29 required: *ref_30 EmailNotAvailableErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_not_available const: email_not_available message: *ref_29 required: *ref_30 InvalidEmailErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_email const: invalid_email message: *ref_29 required: *ref_30 EmailAlreadyInUseErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_already_in_use const: email_already_in_use message: *ref_29 required: *ref_30 AlreadyClaimedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: already_claimed const: already_claimed message: *ref_29 required: *ref_30 SmsChallengeRateLimitedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: sms_challenge_rate_limited const: sms_challenge_rate_limited message: *ref_29 required: *ref_30 SmsChallengeQuotaReachedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: sms_challenge_quota_reached const: sms_challenge_quota_reached message: *ref_29 required: *ref_30 RoleAssignmentUpdateOverlapErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: role_assignment_update_overlap const: role_assignment_update_overlap message: *ref_29 required: *ref_30 IdpMetadataFetchFailedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: idp_metadata_fetch_failed const: idp_metadata_fetch_failed message: *ref_29 required: *ref_30 ConnectionCouldNotBeVerifiedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: connection_could_not_be_verified const: connection_could_not_be_verified message: *ref_29 required: *ref_30 InvalidIdpSsoUrlErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_idp_sso_url const: invalid_idp_sso_url message: *ref_29 required: *ref_30 ConnectionTypeNotUpdatableErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: connection_type_not_updatable const: connection_type_not_updatable message: *ref_29 required: *ref_30 ConnectedAccountLimitReachedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: connected_account_limit_reached const: connected_account_limit_reached message: *ref_29 required: *ref_30 EntityNotFoundErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: entity_not_found const: entity_not_found message: *ref_29 required: *ref_30 InvalidRequestParametersErrorBodyWithErrors: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_request_parameters const: invalid_request_parameters message: *ref_31 errors: *ref_32 required: *ref_33 InvalidRefreshTokenErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_refresh_token const: invalid_refresh_token message: *ref_29 required: *ref_30 InvitationInvalidOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invitation_invalid const: invitation_invalid error_description: *ref_34 required: *ref_35 AuthenticationMethodNotAllowedOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: authentication_method_not_allowed const: authentication_method_not_allowed error_description: *ref_34 required: *ref_35 SignUpNotAllowedOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: sign_up_not_allowed const: sign_up_not_allowed error_description: *ref_34 required: *ref_35 EmailDomainNotDeliverableErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_domain_not_deliverable const: email_domain_not_deliverable message: *ref_29 required: *ref_30 InvalidRequestParametersErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_request_parameters const: invalid_request_parameters message: *ref_29 required: *ref_30 InvalidRoleErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_role const: invalid_role message: *ref_29 required: *ref_30 MultipleRolesNotEnabledErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: multiple_roles_not_enabled const: multiple_roles_not_enabled message: *ref_29 required: *ref_30 PasswordStrengthErrorErrorBodyWithErrors: type: object properties: code: type: string description: The error code identifying the type of error. example: password_strength_error const: password_strength_error message: *ref_31 errors: *ref_32 required: *ref_33 UserCreationErrorErrorBodyWithErrors: type: object properties: code: type: string description: The error code identifying the type of error. example: user_creation_error const: user_creation_error message: *ref_31 errors: *ref_32 required: *ref_33 InvalidPasswordHashErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_password_hash const: invalid_password_hash message: *ref_29 required: *ref_30 PasswordAndPasswordHashProvidedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: password_and_password_hash_provided const: password_and_password_hash_provided message: *ref_29 required: *ref_30 PasswordAndPasswordHashTypeProvidedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: password_and_password_hash_type_provided const: password_and_password_hash_type_provided message: *ref_29 required: *ref_30 PasswordSaltPositionRequiresPasswordHashErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: password_salt_position_requires_password_hash const: password_salt_position_requires_password_hash message: *ref_29 required: *ref_30 InvalidMetadataErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_metadata const: invalid_metadata message: *ref_29 required: *ref_30 EmailAlreadyVerifiedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_already_verified const: email_already_verified message: *ref_29 required: *ref_30 ExternalIdAlreadyUsedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: external_id_already_used const: external_id_already_used message: *ref_29 required: *ref_30 InvalidLocaleErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_locale const: invalid_locale message: *ref_29 required: *ref_30 InvalidOrganizationIdErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_organization_id const: invalid_organization_id message: *ref_29 required: *ref_30 CodeChallengeNotFoundErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: code_challenge_not_found const: code_challenge_not_found message: *ref_29 required: *ref_30 InvalidCredentialsErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_credentials const: invalid_credentials message: *ref_29 required: *ref_30 InvalidOneTimeCodeErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_one_time_code const: invalid_one_time_code message: *ref_29 required: *ref_30 OneTimeCodePreviouslyUsedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: one_time_code_previously_used const: one_time_code_previously_used message: *ref_29 required: *ref_30 OneTimeCodeExpiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: one_time_code_expired const: one_time_code_expired message: *ref_29 required: *ref_30 OneTimeCodeTooManyAttemptsErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: one_time_code_too_many_attempts const: one_time_code_too_many_attempts message: *ref_29 required: *ref_30 InvalidPendingAuthenticationTokenErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_pending_authentication_token const: invalid_pending_authentication_token message: *ref_29 required: *ref_30 UserMismatchErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: user_mismatch const: user_mismatch message: *ref_29 required: *ref_30 PhoneNumberRequiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: phone_number_required const: phone_number_required message: *ref_29 required: *ref_30 VerificationIdRequiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: verification_id_required const: verification_id_required message: *ref_29 required: *ref_30 InvalidClientOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_client const: invalid_client error_description: *ref_34 required: *ref_35 UnauthorizedClientOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: unauthorized_client const: unauthorized_client error_description: *ref_34 required: *ref_35 InvalidProfileOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_profile const: invalid_profile error_description: *ref_34 required: *ref_35 InvitationCannotBeUsedForEmailOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invitation_cannot_be_used_for_email const: invitation_cannot_be_used_for_email error_description: *ref_34 required: *ref_35 InvalidConnectionOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_connection const: invalid_connection error_description: *ref_34 required: *ref_35 OrganizationAuthenticationMethodsRequiredOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: organization_authentication_methods_required const: organization_authentication_methods_required error_description: *ref_34 required: *ref_35 InvalidLinkAuthorizationCodeOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_link_authorization_code const: invalid_link_authorization_code error_description: *ref_34 required: *ref_35 ExtraAttributesRequiredOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: extra_attributes_required const: extra_attributes_required error_description: *ref_34 required: *ref_35 PkceNotSupportedOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: pkce_not_supported const: pkce_not_supported error_description: *ref_34 required: *ref_35 ExpiredTokenOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: expired_token const: expired_token error_description: *ref_34 required: *ref_35 AuthorizationPendingOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: authorization_pending const: authorization_pending error_description: *ref_34 required: *ref_35 AccessDeniedOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: access_denied const: access_denied error_description: *ref_34 required: *ref_35 SlowDownOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: slow_down const: slow_down error_description: *ref_34 required: *ref_35 MustUseSsoForSelectedOrganizationMessageErrorBody: type: object properties: message: type: string const: Must use SSO for selected organization required: *ref_36 InvalidGrantOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_grant const: invalid_grant error_description: *ref_34 required: *ref_35 InvalidRequestOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: invalid_request const: invalid_request error_description: *ref_34 required: *ref_35 OrganizationNotFoundOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: organization_not_found const: organization_not_found error_description: *ref_34 required: *ref_35 OrganizationMembershipNotFoundOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: organization_membership_not_found const: organization_membership_not_found error_description: *ref_34 required: *ref_35 MfaEnrollmentOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: mfa_enrollment const: mfa_enrollment error_description: *ref_34 required: *ref_35 TokenTooBigOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: token_too_big const: token_too_big error_description: *ref_34 required: *ref_35 MfaEnrollmentErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: mfa_enrollment const: mfa_enrollment message: *ref_29 required: *ref_30 MfaChallengeErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: mfa_challenge const: mfa_challenge message: *ref_29 required: *ref_30 AuthenticationMethodNotAllowedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: authentication_method_not_allowed const: authentication_method_not_allowed message: *ref_29 required: *ref_30 EmailVerificationRequiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_verification_required const: email_verification_required message: *ref_29 required: *ref_30 EmailPasswordAuthDisabledErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: email_password_auth_disabled const: email_password_auth_disabled message: *ref_29 required: *ref_30 OrganizationSelectionRequiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: organization_selection_required const: organization_selection_required message: *ref_29 required: *ref_30 PasskeyProgressiveEnrollmentErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: passkey_progressive_enrollment const: passkey_progressive_enrollment message: *ref_29 required: *ref_30 RadarChallengeErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: radar_challenge const: radar_challenge message: *ref_29 required: *ref_30 RadarSignUpChallengeErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: radar_sign_up_challenge const: radar_sign_up_challenge message: *ref_29 required: *ref_30 RadarSmsSignInChallengeErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: radar_sms_sign_in_challenge const: radar_sms_sign_in_challenge message: *ref_29 required: *ref_30 ApplicationConsentRequiredErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: application_consent_required const: application_consent_required message: *ref_29 required: *ref_30 ActionDeniedErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: action_denied const: action_denied message: *ref_29 required: *ref_30 DailyQuotaExceededErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: daily_quota_exceeded const: daily_quota_exceeded message: *ref_29 required: *ref_30 TooManyRequestsOAuthErrorBody: type: object properties: error: type: string description: The OAuth error code. example: too_many_requests const: too_many_requests error_description: *ref_34 required: *ref_35 InvalidUrlErrorBody: type: object properties: code: type: string description: The error code identifying the type of error. example: invalid_url const: invalid_url message: *ref_29 required: *ref_30 Actor: description: The user or API key that performed an action. properties: id: description: Unique identifier of the actor. example: key_01K8ZYT4AWJ6XP0E0S8CTBHE3P type: string name: description: Display name of the actor. example: My API Key type: string required: - id - name title: Actor type: object CreateDataKeyRequest: properties: context: additionalProperties: maxLength: 500 type: string description: Map of values used to determine the encryption key. example: organization_id: org_01K8ZYT4AWJ6XP0E0S8CTBHE3P maxProperties: 10 type: object required: - context title: CreateDataKeyRequest type: object CreateDataKeyResponse: properties: context: additionalProperties: type: string description: Map of values used to determine the encryption key. example: organization_id: org_01K8ZYT4AWJ6XP0E0S8CTBHE3P type: object data_key: description: Base64-encoded data encryption key. example: DR9idtey9MpMrA1VRFrz30HB1yNgL2PoHZyjAkFeWgg= type: string encrypted_keys: description: Base64-encoded encrypted data key blob. example: >- V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj type: string id: description: Unique identifier for the generated data key. example: bf51ccec-78b4-5200-b383-35730e71ef61 type: string required: - id - data_key - encrypted_keys - context title: CreateDataKeyResponse type: object CreateObjectRequest: properties: key_context: additionalProperties: maxLength: 500 type: string description: Map of values used to determine the encryption key. example: organization_id: org_01K8ZYT4AWJ6XP0E0S8CTBHE3P maxProperties: 10 type: object name: description: Unique name for the object. example: my-secret maxLength: 200 type: string value: format: password description: Plaintext data to encrypt and store. example: s3cr3t-v4lu3 type: string required: - name - value - key_context title: CreateObjectRequest type: object DecryptRequest: properties: keys: description: Base64-encoded encrypted data key to decrypt. example: >- V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj type: string required: - keys title: DecryptRequest type: object DecryptResponse: properties: data_key: description: Base64-encoded decrypted data key. example: DR9idtey9MpMrA1VRFrz30HB1yNgL2PoHZyjAkFeWgg= type: string id: description: Unique identifier of the decrypted data key. example: bf51ccec-78b4-5200-b383-35730e71ef61 type: string required: - id - data_key title: DecryptResponse type: object DeleteObjectResponse: properties: name: description: Name of the deleted object. example: my-secret type: string success: description: Whether the deletion succeeded. example: true type: boolean required: - success - name title: DeleteObjectResponse type: object Error: description: Error response body. properties: error: description: A human-readable description of the error. example: Invalid request parameters. type: string required: - error title: Error type: object ListMetadata: description: Cursor-based pagination metadata. properties: after: description: Cursor for the next page of results. example: b21f3a8c-7e4d-4b1a-9c5e-2d8f6a7b3c4e type: - string - 'null' before: description: Cursor for the previous page of results. example: a10e2b7d-6c3f-4a2b-8d1e-3f9a5b8c7d6e type: - string - 'null' title: ListMetadata type: object Object: description: An encrypted object with its decrypted value and metadata. properties: id: description: Unique identifier of the object. example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string metadata: $ref: '#/components/schemas/ObjectMetadata' name: description: Unique name of the object. example: my-secret type: string value: format: password description: Decrypted plaintext value. example: s3cr3t-v4lu3 type: string required: - id - name - value - metadata title: Object type: object ObjectListResponse: properties: data: description: List of object summaries. items: $ref: '#/components/schemas/ObjectSummary' type: array list_metadata: $ref: '#/components/schemas/ListMetadata' required: - data - list_metadata title: ObjectListResponse type: object ObjectMetadata: description: Metadata for a stored encrypted object. properties: context: additionalProperties: type: string description: Map of values used to determine the encryption key. example: organization_id: org_01K8ZYT4AWJ6XP0E0S8CTBHE3P type: object environment_id: description: Environment the object belongs to. example: environment_01K8ZYT4AWJ6XP0E0S8CTBHE3P type: string id: description: Unique identifier of the object. example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string key_id: description: Encryption key identifier. example: bf65e326-43a0-4b20-88c4-07ff3de5434c type: string updated_at: description: Timestamp of the last update. example: '2024-06-15T10:30:00Z' format: date-time type: string updated_by: $ref: '#/components/schemas/Actor' version_id: description: Current version identifier of the object. example: c3d4e5f6-7890-abcd-ef12-34567890abcd type: - string - 'null' required: - id - environment_id - key_id - updated_by - updated_at - context title: ObjectMetadata type: object ObjectSummary: description: Summary of an encrypted object returned in list responses. properties: id: description: Unique identifier of the object. example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string name: description: Unique name of the object. example: my-secret type: string updated_at: description: Timestamp of the last update. example: '2024-06-15T10:30:00Z' format: date-time type: - string - 'null' required: - id - name title: ObjectSummary type: object ObjectVersion: description: A static snapshot of an encrypted object. properties: created_at: description: Timestamp when the version was created. example: '2024-06-15T10:30:00Z' format: date-time type: string current_version: description: Whether this is the active version. example: true type: boolean etag: description: Hash of the object value. example: d41d8cd98f00b204e9800998ecf8427e type: string id: description: Unique identifier of the version. example: c3d4e5f6-7890-abcd-ef12-34567890abcd type: string size: description: Number of bytes of stored data. example: 256 type: integer required: - id - created_at - current_version - size - etag title: ObjectVersion type: object ObjectWithoutValue: description: An encrypted object's metadata (value excluded). properties: id: description: Unique identifier of the object. example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 type: string metadata: $ref: '#/components/schemas/ObjectMetadata' name: description: Unique name of the object. example: my-secret type: string required: - id - name - metadata title: ObjectWithoutValue type: object RekeyRequest: properties: context: additionalProperties: maxLength: 500 type: string description: Map of values used to determine the new encryption key. example: organization_id: org_01K8ZYT4AWJ6XP0E0S8CTBHE3P maxProperties: 10 type: object encrypted_keys: description: Base64-encoded encrypted data key blob to re-encrypt. example: >- V09TLkVLTS52MQBiZjUxY2NlYy03OGI0LTUyMDAtYjM4My0zNTczMGU3MWVmNjEBATEBJGJmNjVlMzI2LTQzYTAtNGIyMC04OGM0LTA3ZmYzZGU1NDM0YwF0YmY2NWUzMjYtNDNhMC00YjIwLTg4YzQtMDdmZjNkZTU0MzRj type: string required: - encrypted_keys - context title: RekeyRequest type: object UpdateObjectRequest: properties: value: format: password description: New plaintext value. example: upd4t3d-v4lu3 type: string version_check: description: ID of the expected current version for optimistic locking. example: c3d4e5f6-7890-abcd-ef12-34567890abcd type: - string - 'null' required: - value title: UpdateObjectRequest type: object VersionListResponse: properties: data: description: List of object versions. items: $ref: '#/components/schemas/ObjectVersion' type: array list_metadata: $ref: '#/components/schemas/ListMetadata' required: - data - list_metadata title: VersionListResponse type: object ExternalAuthCompleteResponse: type: object properties: redirect_uri: type: string description: URI to redirect the user back to AuthKit to complete the OAuth flow. example: >- https://your-authkit-domain.workos.com/oauth/authorize/complete?state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGF0ZSI6InJhbmRvbV9zdGF0ZV9zdHJpbmciLCJpYXQiOjE3NDI2MDQ4NTN9.abc123def456ghi789 required: - redirect_uri AgentRegistration: type: object properties: id: type: string description: Unique identifier of the agent registration. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY agent_identity: type: object properties: id: type: string description: Unique identifier of the agent identity. example: agent_identity_01EHWNCE74X7JSDV0X3SZ3KJNY userland_user_id: type: - string - 'null' description: >- Identifier of the AuthKit user the agent identity is bound to, or `null` when the agent is not associated with a user. example: user_01E4ZCR3C56J083X43JQXF3JK5 created_at: type: string format: date-time description: The timestamp when the agent identity was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: The timestamp when the agent identity was last updated. example: '2026-01-15T12:00:00.000Z' required: - id - userland_user_id - created_at - updated_at description: The agent identity associated with this registration. organization_id: type: string description: Identifier of the organization the agent is registered to. example: org_01EHQMYV6MBK39QC5PZXHY59C3 status: type: string enum: - unverified - verified - expired - revoked description: The current verification status of the registration. example: verified revoked_at: type: - string - 'null' format: date-time description: >- The timestamp when the registration was revoked, or `null` if it has not been revoked. example: null kind: type: string enum: - anonymous - service_auth - identity_assertion description: The kind of agent registration. example: service_auth claim: description: >- The claim associated with this registration, or `null` if the registration has no claim. oneOf: - type: object properties: id: type: string description: Unique identifier of the claim. example: agent_reg_claim_01EHWNCE74X7JSDV0X3SZ3KJNY claim_completion: description: >- The completion record for the claim, or `null` if the claim has not been completed. oneOf: - type: object properties: id: type: string description: Unique identifier of the claim completion. example: agent_reg_claim_attempt_01EHWNCE74X7JSDV0X3SZ3KJNY created_at: type: string format: date-time description: The timestamp when the claim completion was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: >- The timestamp when the claim completion was last updated. example: '2026-01-15T12:00:00.000Z' expires_at: type: string format: date-time description: The timestamp when the claim completion expires. example: '2026-01-15T12:00:00.000Z' claimed_at: type: string format: date-time description: The timestamp when the claim was completed. example: '2026-01-15T12:00:00.000Z' required: - id - created_at - updated_at - expires_at - claimed_at - type: 'null' created_at: type: string format: date-time description: The timestamp when the claim was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: The timestamp when the claim was last updated. example: '2026-01-15T12:00:00.000Z' expires_at: type: string format: date-time description: The timestamp when the claim expires. example: '2026-01-15T12:00:00.000Z' required: - id - claim_completion - created_at - updated_at - expires_at - type: 'null' created_at: type: string format: date-time description: The timestamp when the registration was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: The timestamp when the registration was last updated. example: '2026-01-15T12:00:00.000Z' required: - id - agent_identity - organization_id - status - revoked_at - kind - claim - created_at - updated_at AgentCredentialValidation: type: object properties: valid: type: boolean description: Whether the presented credential is valid. example: true registration_id: type: - string - 'null' description: >- Identifier of the agent registration the credential belongs to, or `null` when the credential is invalid. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY expires_at: type: - string - 'null' format: date-time description: >- The timestamp when the credential expires, or `null` when the credential is invalid. example: '2026-01-15T12:00:00.000Z' required: - valid - registration_id - expires_at ClaimViewResponse: type: object properties: id: type: string description: The agent registration ID. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - unverified - verified - expired - revoked description: Current status of the agent registration. user_code: type: string format: password description: The user code the agent needs to complete the claim. example: BCDF-GHJK organizations: type: array items: type: object properties: id: type: string description: The organization ID. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: The organization name. example: Acme Corp required: - id - name description: Organizations the user belongs to, offered as placement choices. required: - id - status - user_code - organizations AgentBlueprint: type: object properties: object: type: string description: Distinguishes the agent blueprint object. const: agent_blueprint id: type: string description: Unique identifier of the agent blueprint. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: Human-readable name of the agent blueprint. example: Prospecting Agent description: type: - string - 'null' description: Human-readable description of the agent blueprint. example: Finds and qualifies sales prospects. permissions: type: array items: type: string deprecated: true description: >- Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types. example: - crm:read - email:send scoped_permissions: type: array items: type: object properties: slug: type: string description: Slug of the permission. example: email:send instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 description: >- Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. example: - delegated required: - slug - instance_types description: >- Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one. example: - slug: crm:read instance_types: - delegated - autonomous - slug: email:send instance_types: - delegated invocable_by: type: object properties: role_slugs: type: array items: type: string description: >- Role slugs whose members may mint user-delegated sessions from this blueprint. example: - manager organization_ids: type: array items: type: string description: >- Organizations in which sessions may be minted from this blueprint, enforced on user-delegated, autonomous, and agent-delegated mints. example: - org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - role_slugs - organization_ids description: Who may mint sessions from this blueprint. invocable_as: type: object properties: instance_types: type: array items: type: string enum: - delegated - autonomous description: >- Instance types that may be minted from this blueprint: `delegated` and/or `autonomous`. example: - delegated - autonomous required: - instance_types description: How sessions may be minted from this blueprint. session_settings: type: object properties: max_age_seconds: type: integer description: >- Maximum lifetime of a session in seconds; refreshes never extend a session past this. example: 3600 access_token_ttl_seconds: type: integer description: Lifetime of each minted access token in seconds. example: 300 refresh_token_ttl_seconds: type: integer description: Lifetime of each rotated refresh token in seconds. example: 3600 required: - max_age_seconds - access_token_ttl_seconds - refresh_token_ttl_seconds description: Token and session lifetimes for sessions minted from this blueprint. created_at: type: string format: date-time description: Timestamp when the agent blueprint was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: Timestamp when the agent blueprint was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - description - permissions - scoped_permissions - invocable_by - invocable_as - session_settings - created_at - updated_at AgentInstance: type: object properties: object: type: string description: Distinguishes the agent instance object. const: agent_instance id: type: string description: Unique identifier of the agent instance. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY agent_blueprint_id: type: string description: The blueprint this instance was minted from. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the instance acts within. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY organization_membership_id: type: - string - 'null' description: >- The organization membership of the delegating user; `null` for autonomous instances. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string enum: - delegated - autonomous description: >- Whether the instance acts on behalf of a specific user (`delegated`) or as itself (`autonomous`). created_at: type: string format: date-time description: Timestamp when the agent instance was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: Timestamp when the agent instance was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - agent_blueprint_id - organization_id - organization_membership_id - type - created_at - updated_at AgentToken: type: object properties: access_token: type: string description: The agent access token (a JWT) carrying the effective permissions. example: eyJhbGciOiJSUzI1NiIsImtpZCI6... token_type: type: string description: Always `Bearer`. const: Bearer expires_in: type: integer description: Number of seconds until the access token expires. example: 300 refresh_token: type: string description: >- Single-use refresh token for rotating the access token within the session lifetime. example: njGkA8Wyht0GBEGGA0Zh1Q3wZzL2... agent_instance_id: type: string description: The agent instance the session belongs to. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY new_instance: type: boolean description: >- Whether this mint created the agent instance: `true` only for the mint that inserted the row, `false` when an existing instance was reused (including when a concurrent mint inserted it first). example: false agent_instance_session_id: type: string description: The backing agent instance session. example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY permissions: type: array items: type: string description: The effective permission slugs carried by the token. example: - crm:read required: - access_token - token_type - expires_in - refresh_token - agent_instance_id - new_instance - agent_instance_session_id - permissions AgentTokenValidation: type: object properties: valid: type: boolean description: >- Always `true`: an invalid token is reported as an error with a stable code, never as a `200`. const: true agent_instance_id: type: string description: The agent instance the token was minted for. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY agent_instance_session_id: type: string description: The agent instance session backing the token. example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the agent acts within. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY permissions: type: array items: type: string description: The effective permission slugs carried by the token. example: - crm:read intent: type: - string - 'null' description: >- The caller-supplied context echoed into the token at mint time, or `null` when none was given. example: renew-contract-123 acting_user_id: type: - string - 'null' description: >- The delegating user carried in the `act.sub` claim of the token, or `null` for autonomous sessions. example: userland_user_01EHWNCE74X7JSDV0X3SZ3KJNY session_expires_at: type: string description: When the backing agent instance session expires. example: '2024-01-01T00:00:00.000Z' required: - valid - agent_instance_id - agent_instance_session_id - organization_id - permissions - intent - acting_user_id - session_expires_at AgentInstanceSession: type: object properties: object: type: string description: Distinguishes the agent instance session object. const: agent_instance_session id: type: string description: Unique identifier of the agent instance session. example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY agent_instance_id: type: string description: The agent instance the session belongs to. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - active - revoked - expired description: >- Derived from `revoked_at` and `expires_at` at read time; a revoked session stays `revoked` even after it expires. expires_at: type: string format: date-time description: Timestamp when the session expires. example: '2026-01-15T13:00:00.000Z' revoked_at: type: - string - 'null' format: date-time description: >- Timestamp when the session was revoked; `null` if it has not been revoked. example: null created_at: type: string format: date-time description: Timestamp when the session was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: Timestamp when the session was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - agent_instance_id - status - expires_at - revoked_at - created_at - updated_at ApiKey: type: object properties: object: type: string description: Distinguishes the API Key object. const: api_key id: type: string description: Unique identifier of the API Key. example: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: discriminator: propertyName: type oneOf: - type: object properties: type: type: string description: The type of the API Key owner. example: organization const: organization id: type: string description: Unique identifier of the API Key owner. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id - type: object properties: type: type: string description: The type of the API Key owner. example: user const: user id: type: string description: Unique identifier of the API Key owner. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- Unique identifier of the organization the API Key can access. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id - organization_id description: The entity that owns the API Key. example: type: organization id: org_01EHZNVPK3SFK441A1RGBFSHRT name: type: string description: A descriptive name for the API Key. example: Production API Key obfuscated_value: type: string description: An obfuscated representation of the API Key value. example: sk_...3456 last_used_at: type: - string - 'null' format: date-time description: Timestamp of when the API Key was last used. example: null expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permission slugs assigned to the API Key. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at ApiKeyValidationResponse: type: object properties: api_key: oneOf: - $ref: '#/components/schemas/ApiKey' - type: 'null' agent_registration_id: type: string description: >- The ID of the agent registration this API Key was issued for. Present only when the API Key is assigned to an agent registration. example: agent_reg_01EHZNVPK3SFK441A1RGBFSHRT required: - api_key ConnectApplication: allOf: - type: object properties: object: type: string description: Distinguishes the connect application object. example: connect_application const: connect_application id: type: string description: The unique ID of the connect application. example: conn_app_01HXYZ123456789ABCDEFGHIJ client_id: type: string description: The client ID of the connect application. example: client_01HXYZ123456789ABCDEFGHIJ description: type: - string - 'null' description: A description of the connect application. example: An application for managing user access name: type: string description: The name of the connect application. example: My Application scopes: type: array items: type: string description: The scopes available for this application. example: - openid - profile - email created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - client_id - description - name - scopes - created_at - updated_at - oneOf: - allOf: - type: object properties: application_type: type: string description: The type of the application. const: oauth redirect_uris: type: array items: type: object properties: uri: type: string format: uri description: The redirect URI for the application. example: https://example.com/callback default: type: boolean description: Whether this is the default redirect URI. example: true required: - uri - default description: The redirect URIs configured for this application. cors_origins: type: array items: type: string description: >- The CORS origins allowed to call the OAuth token endpoint for this application from a browser. example: - https://app.example.com uses_pkce: type: boolean description: Whether the application uses PKCE for authorization. example: true required: - application_type - redirect_uris - cors_origins - uses_pkce - oneOf: - type: object properties: is_first_party: type: boolean description: >- Whether the application is a first-party application. example: true const: true required: - is_first_party - type: object properties: is_first_party: type: boolean description: >- Whether the application is a first-party application. example: false const: false was_dynamically_registered: type: boolean description: Whether the application was dynamically registered. example: false const: false organization_id: type: string description: >- The ID of the organization the application belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - is_first_party - was_dynamically_registered - organization_id - type: object properties: is_first_party: type: boolean description: >- Whether the application is a first-party application. example: false const: false was_dynamically_registered: type: boolean description: Whether the application was dynamically registered. example: true const: true required: - is_first_party - was_dynamically_registered - type: object properties: application_type: type: string description: The type of the application. example: m2m const: m2m organization_id: type: string description: The ID of the organization the application belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - application_type - organization_id ConnectApplicationList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/ConnectApplication' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: conn_app_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: conn_app_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata AuthorizedConnectApplicationList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: type: object properties: object: type: string description: Distinguishes the authorized connect application object. const: authorized_connect_application id: type: string description: The unique ID of the authorized connect application. example: authorized_connect_app_01HXYZ123456789ABCDEFGHIJ granted_scopes: type: array items: type: string description: The scopes granted by the user to the application. example: - openid - profile - email oauth_resource: type: string description: >- The OAuth resource associated with the authorized connect application, if one was requested. example: https://api.example.com/resource application: $ref: '#/components/schemas/ConnectApplication' required: - object - id - granted_scopes - application description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: authorized_connect_app_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: authorized_connect_app_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata OrganizationAuthorizedConnectApplicationList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: type: object properties: object: type: string description: Distinguishes the authorized connect application object. const: authorized_connect_application id: type: string description: The unique ID of the authorized connect application. example: authorized_connect_app_01HXYZ123456789ABCDEFGHIJ granted_scopes: type: array items: type: string description: The scopes granted by the user to the application. example: - openid - profile - email oauth_resource: type: string description: >- The OAuth resource associated with the authorized connect application, if one was requested. example: https://api.example.com/resource application: $ref: '#/components/schemas/ConnectApplication' user_id: type: string description: The ID of the user who authorized the application. example: user_01E4ZCR3C56J083X43JQXF3JK5 required: - object - id - granted_scopes - application - user_id description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: authorized_connect_app_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: authorized_connect_app_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata NewConnectApplicationSecret: type: object properties: object: type: string description: Distinguishes the connect application secret object. const: connect_application_secret id: type: string description: The unique ID of the client secret. example: secret_01J9Q2Z3X4Y5W6V7U8T9S0R1Q secret_hint: type: string description: A hint showing the last few characters of the secret value. example: abc123 last_used_at: format: date-time type: - string - 'null' description: >- The timestamp when the client secret was last used, or null if never used. example: null created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' secret: type: string description: >- The plaintext secret value. Only returned at creation time and cannot be retrieved later. example: abc123def456ghi789jkl012mno345pqr678stu901vwx234yz required: - object - id - secret_hint - last_used_at - created_at - updated_at - secret AuditLogEventCreateResponse: type: object properties: success: type: boolean description: Whether the Audit Log event was created successfully. example: true required: - success AuditLogExportJson: type: object properties: object: type: string description: Distinguishes the Audit Log Export object. example: audit_log_export const: audit_log_export id: type: string description: The unique ID of the Audit Log Export. example: audit_log_export_01GBZK5MP7TD1YCFQHFR22180V state: type: string enum: - pending - ready - error - expired description: >- The state of the export. Possible values: pending, ready, error, expired. example: ready url: type: - string - 'null' description: >- A URL to the CSV file. Only defined when the Audit Log Export is ready. example: https://exports.audit-logs.com/audit-log-exports/export.csv created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - state - created_at - updated_at AuditLogsRetentionJson: type: object properties: retention_period_in_days: type: - integer - 'null' description: >- The number of days Audit Log events will be retained before being permanently deleted. Valid values are 30 through 330 in 30-day increments and 365 through 3650 in 365-day increments. example: 30 required: - retention_period_in_days AuditLogSchemaJson: type: object properties: object: type: string description: Distinguishes the Audit Log Schema object. example: audit_log_schema const: audit_log_schema version: type: integer description: The version of the schema. example: 1 actor: type: object properties: metadata: type: object additionalProperties: {} description: The JSON Schema definition for actor metadata. required: - metadata description: The metadata schema for the actor. example: metadata: type: object properties: role: type: string targets: type: array items: type: object properties: type: type: string description: The type of the target resource. example: invoice metadata: type: object additionalProperties: {} description: Additional data associated with the event or entity. example: type: object properties: cost: type: number required: - type description: The list of targets for the schema. example: - type: invoice metadata: type: object properties: cost: type: number metadata: type: object additionalProperties: {} description: Additional data associated with the event or entity. example: type: object properties: transactionId: type: string created_at: format: date-time type: string description: The timestamp when the Audit Log Schema was created. example: '2026-01-15T12:00:00.000Z' required: - object - version - targets - created_at AuditLogActionJson: type: object properties: object: type: string description: Distinguishes the Audit Log Action object. example: audit_log_action const: audit_log_action name: type: string description: Identifier of what action was taken. example: user.viewed_invoice schema: $ref: '#/components/schemas/AuditLogSchemaJson' description: The schema associated with the action. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - name - schema - created_at - updated_at AuthenticationChallenge: type: object properties: object: type: string description: Distinguishes the authentication challenge object. const: authentication_challenge id: type: string description: The unique ID of the authentication challenge. example: auth_challenge_01FVYZ5QM8N98T9ME5BCB2BBMJ expires_at: format: date-time type: string description: >- The timestamp when the challenge will expire. Does not apply to TOTP factors. example: '2026-01-15T12:00:00.000Z' code: type: string format: password description: The one-time code for the challenge. example: '123456' authentication_factor_id: type: string description: The unique ID of the authentication factor the challenge belongs to. example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - authentication_factor_id - created_at - updated_at AuthenticationChallengeVerifyResponse: type: object properties: challenge: $ref: '#/components/schemas/AuthenticationChallenge' description: The authentication challenge object. valid: type: boolean description: Whether the code was valid. example: true required: - challenge - valid AuthenticationFactorEnrolled: type: object properties: object: type: string description: Distinguishes the authentication factor object. const: authentication_factor id: type: string description: The unique ID of the factor. example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ type: type: string enum: - generic_otp - sms - totp - webauthn description: The type of the factor to enroll. example: totp user_id: type: string description: The ID of the [user](/reference/authkit/user). example: user_01E4ZCR3C56J083X43JQXF3JK5 sms: type: object properties: phone_number: type: string description: The user's phone number for SMS-based authentication. example: '+15005550006' required: - phone_number description: SMS-based authentication factor details. totp: type: object properties: issuer: type: string description: >- Your application or company name displayed in the user's authenticator app. Defaults to your WorkOS team name. example: WorkOS user: type: string description: >- The user's account name displayed in their authenticator app. Defaults to the user's email. example: user@example.com secret: type: string format: password description: >- TOTP secret that can be manually entered into some authenticator apps in place of scanning a QR code. example: JBSWY3DPEHPK3PXP qr_code: type: string format: password description: Base64 encoded image containing scannable QR code. example: data:image/png;base64,iVBORw0KGgoAAAANSUhEUg... uri: type: string format: password description: The `otpauth` URI that is encoded by the provided `qr_code`. example: >- otpauth://totp/WorkOS:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=WorkOS required: - issuer - user - secret - qr_code - uri description: >- TOTP-based authentication factor details. Includes enrollment secrets only available at creation time. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - type - created_at - updated_at AuthenticationFactor: type: object properties: object: type: string description: Distinguishes the authentication factor object. const: authentication_factor id: type: string description: The unique ID of the factor. example: auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ type: type: string enum: - generic_otp - sms - totp - webauthn description: The type of the factor to enroll. example: totp user_id: type: string description: The ID of the [user](/reference/authkit/user). example: user_01E4ZCR3C56J083X43JQXF3JK5 sms: type: object properties: phone_number: type: string description: The user's phone number for SMS-based authentication. example: '+15005550006' required: - phone_number description: SMS-based authentication factor details. totp: type: object properties: issuer: type: string description: >- Your application or company name displayed in the user's authenticator app. Defaults to your WorkOS team name. example: WorkOS user: type: string description: >- The user's account name displayed in their authenticator app. Defaults to the user's email. example: user@example.com required: - issuer - user description: TOTP-based authentication factor details. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - type - created_at - updated_at AuthorizationCheck: type: object properties: authorized: type: boolean description: >- Whether the organization membership has the specified permission on the resource. example: true required: - authorized AuthorizationResource: type: object properties: object: type: string description: Distinguishes the Resource object. const: authorization_resource name: type: string description: A human-readable name for the Resource. example: Website Redesign description: type: - string - 'null' description: An optional description of the Resource. example: Company website redesign project organization_id: type: string description: The ID of the organization that owns the resource. example: org_01EHZNVPK3SFK441A1RGBFSHRT parent_resource_id: type: - string - 'null' description: The ID of the parent resource, if this resource is nested. example: authz_resource_01HXYZ123456789ABCDEFGHIJ id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: An identifier you provide to reference the resource in your system. example: proj-456 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: project created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - name - description - organization_id - parent_resource_id - id - external_id - resource_type_slug - created_at - updated_at AuthorizationResourceList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/AuthorizationResource' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: authz_resource_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: authz_resource_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata AuthorizationPermission: type: object properties: object: type: string description: Distinguishes the Permission object. const: permission id: type: string description: Unique identifier of the Permission. example: perm_01HXYZ123456789ABCDEFGHIJ slug: type: string description: >- A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks. example: documents:read name: type: string description: A descriptive name for the Permission. example: View Documents description: type: - string - 'null' description: An optional description of the Permission. example: Allows viewing document contents system: type: boolean description: >- Whether the permission is a system permission. System permissions are managed by WorkOS and cannot be deleted. example: false resource_type_slug: type: string description: The slug of the resource type associated with the permission. example: workspace created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - system - resource_type_slug - created_at - updated_at AuthorizationPermissionList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/AuthorizationPermission' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: perm_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: perm_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata SlimRole: type: object properties: slug: type: string description: The slug of the assigned role. example: admin required: - slug description: The primary role assigned to the user. GroupRoleAssignment: type: object properties: object: type: string description: Distinguishes the group role assignment object. const: group_role_assignment id: type: string description: Unique identifier of the group role assignment. example: gra_01HXYZ123456789ABCDEFGH group_id: type: string description: The ID of the group the role is assigned to. example: group_01HXYZ123456789ABCDEFGHIJ role: $ref: '#/components/schemas/SlimRole' description: The role included in the assignment. resource: type: object properties: id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: >- An identifier you provide to reference the resource in your system. example: proj-456 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: project required: - id - external_id - resource_type_slug description: The resource the role is assigned on. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - group_id - role - resource - created_at - updated_at GroupRoleAssignmentList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/GroupRoleAssignment' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: gra_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: gra_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata UserRoleAssignment: type: object properties: object: type: string description: Distinguishes the role assignment object. const: role_assignment id: type: string description: Unique identifier of the role assignment. example: role_assignment_01HXYZ123456789ABCDEFGH organization_membership_id: type: string description: The ID of the organization membership the role is assigned to. example: om_01HXYZ123456789ABCDEFGHIJ role: $ref: '#/components/schemas/SlimRole' description: The role included in the assignment. resource: type: object properties: id: type: string description: The unique ID of the Resource. example: authz_resource_01HXYZ123456789ABCDEFGH external_id: type: string description: >- An identifier you provide to reference the resource in your system. example: proj-456 resource_type_slug: type: string description: The slug of the resource type this resource belongs to. example: project required: - id - external_id - resource_type_slug description: The resource the role is assigned on. source: type: object properties: type: type: string enum: - direct - group description: Whether the role was assigned directly or derived from a group. group_role_assignment_id: type: - string - 'null' description: >- The ID of the group role assignment the role was derived from, or null if direct. example: null group: description: The group the role was derived from, or null if direct. example: null oneOf: - type: object properties: id: type: string description: The unique ID of the Group the role was derived from. example: group_01HXYZ123456789ABCDEFGHIJ name: type: string description: The name of the Group the role was derived from. example: Marketing team required: - id - name - type: 'null' required: - type - group_role_assignment_id - group description: The origin of the role assignment. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_membership_id - role - resource - source - created_at - updated_at UserRoleAssignmentList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/UserRoleAssignment' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: role_assignment_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: role_assignment_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata Role: type: object properties: slug: type: string description: A unique slug for the role. example: admin object: type: string description: Distinguishes the role object. example: role const: role id: type: string description: Unique identifier of the role. example: role_01EHQMYV6MBK39QC5PZXHY59C3 name: type: string description: A descriptive name for the role. example: Admin description: type: - string - 'null' description: An optional description of the role. example: Can manage all resources type: type: string enum: - EnvironmentRole - OrganizationRole description: >- Whether the role is scoped to the environment or an organization (custom role). example: EnvironmentRole resource_type_slug: type: string description: The slug of the resource type the role is scoped to. example: organization permissions: type: array items: type: string description: The permission slugs assigned to the role. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - slug - object - id - name - description - type - resource_type_slug - permissions - created_at - updated_at RoleList: type: object properties: object: type: string example: list const: list data: type: array items: $ref: '#/components/schemas/Role' description: The list of records for the current page. required: - object - data UserlandUser: type: object properties: object: type: string description: Distinguishes the user object. const: user id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The user's full name. example: Marcelina Davis profile_picture_url: type: - string - 'null' description: A URL reference to an image representing the user. example: https://workoscdn.com/images/v1/123abc email: type: string description: The email address of the user. example: marcelina.davis@example.com email_verified: type: boolean description: Whether the user's email has been verified. example: true external_id: type: - string - 'null' description: The external ID of the user. example: f1ffa2b2-c20b-4d39-be5c-212726e11222 metadata: type: object additionalProperties: type: string maxLength: 600 description: Object containing metadata key/value pairs associated with the user. example: timezone: America/New_York propertyNames: maxLength: 40 maxProperties: 50 last_sign_in_at: format: date-time type: - string - 'null' description: The timestamp when the user last signed in. example: '2025-06-25T19:07:33.155Z' locale: type: - string - 'null' description: The user's preferred locale. example: en-US created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - first_name - last_name - profile_picture_url - email - email_verified - external_id - last_sign_in_at - created_at - updated_at description: The user object. UserlandUserOrganizationMembershipBaseWithUser: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: The unique ID of the organization membership. example: om_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 organization_id: type: string description: The ID of the organization which the user belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT status: type: string enum: - active - inactive - pending description: >- The status of the organization membership. One of `active`, `inactive`, or `pending`. example: active directory_managed: type: boolean description: >- Whether this organization membership is managed by a directory sync connection. example: false organization_name: type: string description: The name of the organization which the user belongs to. example: Acme Corp custom_attributes: type: object additionalProperties: {} description: >- An object containing IdP-sourced attributes from the linked [Directory User](/reference/directory-sync/directory-user) or [SSO Profile](/reference/sso/profile). Directory User attributes take precedence when both are linked. example: department: Engineering title: Developer Experience Engineer location: Brooklyn created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' user: $ref: '#/components/schemas/UserlandUser' description: The user that belongs to the organization through this membership. required: - object - id - user_id - organization_id - status - directory_managed - created_at - updated_at - user UserlandUserOrganizationMembershipBaseWithUserList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: >- #/components/schemas/UserlandUserOrganizationMembershipBaseWithUser description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: om_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: om_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata Connection: type: object properties: object: type: string description: Distinguishes the Connection object. const: connection id: type: string description: Unique identifier for the Connection. example: conn_01E4ZCR3C56J083X43JQXF3JK5 organization_id: type: string description: >- Unique identifier for the Organization in which the Connection resides. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY connection_type: description: >- The type of the SSO Connection used to authenticate the user. The Connection type may be used to dynamically generate authorization URLs. example: OktaSAML type: string enum: - Pending - ADFSSAML - AdpOidc - AppleOAuth - Auth0Migration - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - ClassLinkSAML - CleverOIDC - CloudflareSAML - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GitHubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - TestIdp - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth name: type: string description: >- A human-readable name for the Connection. This will most commonly be the organization's name. example: Foo Corp state: type: string enum: - requires_type - draft - active - validating - inactive - deleting description: Indicates whether a Connection is able to authenticate users. example: active status: type: string enum: - linked - unlinked description: Deprecated. Use `state` instead. deprecated: true example: linked domains: type: array items: type: object properties: id: type: string description: Unique identifier for the Connection Domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A object: type: string description: Distinguishes the Connection Domain object. const: connection_domain domain: type: string description: The domain value. example: foo-corp.com required: - id - object - domain description: List of Organization Domains. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - connection_type - name - state - status - domains - created_at - updated_at ConnectionList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Connection' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: conn_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: conn_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata - list_metadata CorsOriginResponse: type: object properties: object: type: string description: Distinguishes the CORS origin object. const: cors_origin id: type: string description: Unique identifier of the CORS origin. example: cors_origin_01HXYZ123456789ABCDEFGHIJ origin: type: string description: The origin URL. example: https://example.com created_at: type: string format: date-time description: Timestamp when the CORS origin was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string format: date-time description: Timestamp when the CORS origin was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - origin - created_at - updated_at Directory: type: object properties: object: type: string description: Distinguishes the Directory object. const: directory id: type: string description: Unique identifier for the Directory. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: >- The unique identifier for the Organization in which the directory resides. example: org_01EHZNVPK3SFK441A1RGBFSHRT external_key: type: string description: External Key for the Directory. example: sPa12dwRQ type: description: The type of external Directory Provider integrated with. example: gsuite directory type: string enum: - azure scim v2.0 - bamboohr - breathe hr - cezanne hr - cyberark scim v2.0 - fourth hr - generic scim v2.0 - gsuite directory - hibob - sailpoint scim v2.0 - jump cloud scim v2.0 - okta scim v2.0 - onelogin scim v2.0 - people hr - personio - pingfederate scim v2.0 - rippling scim v2.0 - s3 - sftp - sftp workday - workday state: description: >- Describes whether the Directory has been successfully connected to an external provider. example: linked type: string enum: - linked - validating - invalid_credentials - unlinked - deleting name: type: string description: The name of the directory. example: Foo Corp domain: type: string description: The URL associated with an Enterprise Client. example: foo-corp.com metadata: type: object properties: users: type: object properties: active: type: integer description: Count of active directory users. example: 42 inactive: type: integer description: Count of inactive directory users. example: 3 required: - active - inactive description: Counts of active and inactive directory users. groups: type: integer description: Count of directory groups. example: 5 required: - users - groups description: >- Aggregate counts of directory users and groups synced from the provider. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - external_key - type - state - name - created_at - updated_at DirectoryList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Directory' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: directory_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: directory_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata - list_metadata DirectorySyncResponse: type: object properties: status: type: string description: >- The sync request was queued for asynchronous processing. This does not indicate that the sync has started or completed. example: queued const: queued required: - status DirectorySyncRateLimitError: type: object properties: code: type: string const: directory_sync_rate_limited description: The error code identifying the type of error. example: directory_sync_rate_limited message: type: string description: A human-readable description of the error. example: Request could not be processed. retry_after_seconds: type: integer exclusiveMinimum: 0 description: >- The number of seconds to wait before requesting another manual sync of this directory. example: 120 required: - code - message - retry_after_seconds DirectoryGroup: type: object properties: object: type: string description: Distinguishes the Directory Group object. const: directory_group id: type: string description: Unique identifier for the Directory Group. example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z idp_id: type: string description: >- Unique identifier for the group, assigned by the Directory Provider. Different Directory Providers use different ID formats. example: 02grqrue4294w24 directory_id: type: string description: The identifier of the Directory the Directory Group belongs to. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: The identifier for the Organization in which the Directory resides. example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y name: type: string description: The name of the Directory Group. example: Developers raw_attributes: type: object additionalProperties: {} description: The raw attributes received from the directory provider. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - idp_id - directory_id - organization_id - name - created_at - updated_at DirectoryGroupList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/DirectoryGroup' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: directory_group_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: directory_group_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata - list_metadata DirectoryUser: type: object properties: object: type: string description: Distinguishes the Directory User object. const: directory_user id: type: string description: Unique identifier for the Directory User. example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ directory_id: type: string description: The identifier of the Directory the Directory User belongs to. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: The identifier for the Organization in which the Directory resides. example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y idp_id: type: string description: >- Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats. example: '2836' email: type: - string - 'null' description: The email address of the user. example: marcelina.davis@example.com first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The full name of the user. example: Marcelina Davis emails: type: array items: type: object properties: primary: type: boolean description: Whether this is the primary email address. example: true type: type: string description: The type of email address. example: work value: type: - string - 'null' description: The email address value. example: marcelina.davis@example.com description: A list of email addresses for the user. deprecated: true job_title: type: - string - 'null' description: The job title of the user. example: Software Engineer deprecated: true username: type: - string - 'null' description: The username of the user. example: mdavis deprecated: true state: type: string enum: - active - suspended - inactive description: The state of the user. example: active raw_attributes: type: object additionalProperties: {} description: The raw attributes received from the directory provider. deprecated: true custom_attributes: type: object additionalProperties: {} description: >- An object containing the custom attribute mapping for the Directory Provider. example: department: Engineering job_title: Software Engineer role: $ref: '#/components/schemas/SlimRole' roles: type: array items: $ref: '#/components/schemas/SlimRole' description: All roles assigned to the user. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - directory_id - organization_id - idp_id - email - state - raw_attributes - custom_attributes - created_at - updated_at DirectoryUserWithGroups: type: object properties: object: type: string description: Distinguishes the Directory User object. const: directory_user id: type: string description: Unique identifier for the Directory User. example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ directory_id: type: string description: The identifier of the Directory the Directory User belongs to. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: The identifier for the Organization in which the Directory resides. example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y idp_id: type: string description: >- Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats. example: '2836' email: type: - string - 'null' description: The email address of the user. example: marcelina.davis@example.com first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The full name of the user. example: Marcelina Davis emails: type: array items: type: object properties: primary: type: boolean description: Whether this is the primary email address. example: true type: type: string description: The type of email address. example: work value: type: - string - 'null' description: The email address value. example: marcelina.davis@example.com description: A list of email addresses for the user. deprecated: true job_title: type: - string - 'null' description: The job title of the user. example: Software Engineer deprecated: true username: type: - string - 'null' description: The username of the user. example: mdavis deprecated: true state: type: string enum: - active - suspended - inactive description: The state of the user. example: active raw_attributes: type: object additionalProperties: {} description: The raw attributes received from the directory provider. deprecated: true custom_attributes: type: object additionalProperties: {} description: >- An object containing the custom attribute mapping for the Directory Provider. example: department: Engineering job_title: Software Engineer role: $ref: '#/components/schemas/SlimRole' roles: type: array items: $ref: '#/components/schemas/SlimRole' description: All roles assigned to the user. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' groups: type: array items: $ref: '#/components/schemas/DirectoryGroup' description: >- The directory groups the user belongs to. Deprecated: use `GET /directories/{directoryId}/groups?user={userId}` instead. deprecated: true required: - object - id - directory_id - organization_id - idp_id - email - state - raw_attributes - custom_attributes - created_at - updated_at - groups DirectoryUserList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/DirectoryUserWithGroups' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: directory_user_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: directory_user_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata - list_metadata UserlandUserOrganizationMembershipBaseList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: The unique ID of the organization membership. example: om_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 organization_id: type: string description: The ID of the organization which the user belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT status: type: string enum: - active - inactive - pending description: >- The status of the organization membership. One of `active`, `inactive`, or `pending`. example: active directory_managed: type: boolean description: >- Whether this organization membership is managed by a directory sync connection. example: false organization_name: type: string description: The name of the organization which the user belongs to. example: Acme Corp custom_attributes: type: object additionalProperties: {} description: >- An object containing IdP-sourced attributes from the linked [Directory User](/reference/directory-sync/directory-user) or [SSO Profile](/reference/sso/profile). Directory User attributes take precedence when both are linked. example: department: Engineering title: Developer Experience Engineer location: Brooklyn created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - organization_id - status - directory_managed - created_at - updated_at description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: om_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: om_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata Group: type: object properties: object: type: string description: The Group object. example: group const: group id: type: string description: The unique ID of the Group. example: group_01HXYZ123456789ABCDEFGHIJ organization_id: type: string description: The ID of the Organization the Group belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: The name of the Group. example: Engineering description: type: - string - 'null' description: An optional description of the Group. example: The engineering team created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - name - description - created_at - updated_at GroupList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Group' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: group_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: group_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata EventContextActorDto: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. EventContextDto: type: object properties: google_analytics_client_id: type: string description: The Google Analytics client ID. example: GA1.2.1234567890.1234567890 google_analytics_sessions: type: array items: type: object properties: containerId: type: string description: The Google Analytics container ID. example: GTM-ABCDEF sessionId: type: string description: The Google Analytics session ID. example: '1234567890' sessionNumber: type: string description: The Google Analytics session number. example: '1' required: - containerId description: The Google Analytics sessions associated with the event. ajs_anonymous_id: type: string description: The anonymous ID from analytics. example: ajs_anon_01EHWNCE74X7JSDV0X3SZ3KJNY client_id: type: string description: The client ID associated with the event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: $ref: '#/components/schemas/EventContextActorDto' previous_attributes: type: object additionalProperties: {} description: Attributes that changed from their previous values. description: Additional context about the event. FlagRule: type: object properties: object: type: string const: flag_rule id: type: string description: Unique identifier of the Flag Rule. example: flag_rule_01EHZNVPK3SFK441A1RGBFSHRT flag_id: type: string description: The ID of the Feature Flag the rule belongs to. example: flag_01EHZNVPK3SFK441A1RGBFSHRT flag_slug: type: string description: The slug of the Feature Flag the rule belongs to. example: new-checkout environment_id: type: string description: The ID of the environment the Flag Rule belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY target_type: type: - string - 'null' description: The target type slug, if the rule targets a specific type. example: organization position: type: integer minimum: 0 description: The zero-based position of the rule in evaluation order. example: 0 value_type: type: string const: boolean value: type: boolean description: The value the Feature Flag evaluates to when the rule matches. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - flag_id - flag_slug - environment_id - target_type - position - value_type - value - created_at - updated_at FlagTarget: oneOf: - type: object properties: object: type: string description: Distinguishes the Flag Target object. const: flag_target id: type: string description: Unique identifier of the Flag Target. example: flag_target_01EHZNVPK3SFK441A1RGBFSHRT flag_id: type: string description: The ID of the Feature Flag the target belongs to. example: flag_01EHZNVPK3SFK441A1RGBFSHRT flag_slug: type: string description: >- The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it. example: new-checkout environment_id: type: string description: The ID of the environment the Flag Target belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY target_type: type: string description: >- The type of the target: `organization`, `user`, or a custom target type slug. example: organization target_id: type: string description: The ID of the targeted entity. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' rule_id: type: string description: The ID of the rule this target belongs to. example: flag_rule_01EHZNVPK3SFK441A1RGBFSHRT required: - object - id - flag_id - flag_slug - environment_id - target_type - target_id - created_at - updated_at - rule_id - type: object properties: object: type: string description: Distinguishes the Flag Target object. const: flag_target id: type: string description: Unique identifier of the Flag Target. example: flag_target_01EHZNVPK3SFK441A1RGBFSHRT flag_id: type: string description: The ID of the Feature Flag the target belongs to. example: flag_01EHZNVPK3SFK441A1RGBFSHRT flag_slug: type: string description: >- The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it. example: new-checkout environment_id: type: string description: The ID of the environment the Flag Target belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY target_type: type: string description: >- The type of the target: `organization`, `user`, or a custom target type slug. example: organization target_id: type: string description: The ID of the targeted entity. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY value_type: type: string description: >- The type of `value`. Only `boolean` is supported today; additional types are reserved for future multivariate Feature Flags. example: boolean const: boolean value: type: boolean description: The value the Feature Flag evaluates to for this target. example: true created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - flag_id - flag_slug - environment_id - target_type - target_id - value_type - value - created_at - updated_at PipesConnectedAccount: type: object properties: object: type: string description: The connected account object. example: connected_account const: connected_account id: type: string description: The unique ID of the connected account. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: type: string enum: - compatibility - standard description: >- Whether this is the compatibility connection visible to undeclared clients or a standard connection for plural-aware clients. Historical events may omit this field. example: compatibility account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account this connection points at. It is not the connection identifier or a selector. Historical events may omit this field. example: workspace_123 account_display_name: type: - string - 'null' description: >- A mutable, non-unique display name for the provider account connection. Historical events may omit this field. example: Acme production data_integration_id: type: string description: The unique ID of the data integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT provider_slug: type: string description: The provider slug for this connected account. example: github user_id: type: - string - 'null' description: The ID of the User the connected account belongs to. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: The ID of the Organization the connected account belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY scopes: type: array items: type: string description: The OAuth scopes granted for this connected account. example: - repo - user:email auth_method: type: string enum: - oauth - api_key - client_credentials description: >- How the connection authenticates. Historical events may omit this field. example: oauth api_key_last_4: type: - string - 'null' description: >- The last four characters of the API key, or null for other authentication methods. Historical events may omit this field. example: null state: type: string enum: - connected - needs_reauthorization description: The state of the connected account. example: connected established_by_user_id: type: - string - 'null' description: >- The ID of the User whose authorization established the connected account, or null when it is developer-managed, its establisher is unknown, or the establishing member left the organization. Historical events may omit this field. example: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: description: >- Why WorkOS put the connected account in its current state, or null when there is no WorkOS-recorded reason. `establishing_member_membership_ended` means the member who established an organization-owned connection is no longer an active member. Additional values may be added. Historical events may omit this field. example: null oneOf: - type: string const: establishing_member_membership_ended - type: 'null' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - data_integration_id - provider_slug - user_id - organization_id - scopes - state - created_at - updated_at VaultByokKeyProvider: type: string enum: - AWS_KMS - GCP_KMS - AZURE_KEY_VAULT example: AWS_KMS description: The external key provider used for BYOK. WaitlistUser: type: object properties: id: type: string description: The unique ID of the waitlist entry. example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user on the waitlist. example: marcelina.davis@example.com state: type: string enum: - pending - approved - denied description: The state of the waitlist entry. example: pending approved_at: format: date-time type: - string - 'null' description: >- The timestamp when the entry was approved, or null if not yet approved. example: null additional_fields: type: object additionalProperties: type: string description: >- Additional fields submitted when the user joined the waitlist. Values are user-provided — treat them as untrusted input when rendering or exporting. example: company: Example Corp waitlist_id: type: - string - 'null' description: The unique ID of the waitlist the entry belongs to. example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Waitlist User object. const: waitlist_user required: - id - email - state - approved_at - created_at - updated_at - object EventSchema: allOf: - type: object properties: object: type: string description: Distinguishes the Event object. const: event id: type: string description: Unique identifier for the Event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string description: The type of event that occurred. example: dsync.user.created data: type: object additionalProperties: {} description: The event payload. example: &ref_37 id: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ directory_id: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: org_01EZTR6WYX1A0DSE2CYMGXQ24Y state: active email: veda@foo-corp.com emails: - primary: true type: work value: veda@foo-corp.com idp_id: '2836' object: directory_user username: veda@foo-corp.com last_name: Torp first_name: Veda raw_attributes: {} custom_attributes: {} created_at: '2021-06-25T19:07:33.155Z' updated_at: '2021-06-25T19:07:33.155Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object additionalProperties: {} description: Additional context about the event. required: - object - id - event - data - created_at description: An event emitted by WorkOS. example: &ref_50 object: event id: event_01EHZNVPK3SFK441A1RGBFSHRT event: dsync.user.created data: *ref_37 created_at: '2021-06-25T19:07:33.155Z' context: {} - oneOf: - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: action.authentication.denied data: type: object properties: action_endpoint_id: type: string description: The ID of the action endpoint. example: action_endpoint_01EHWNCE74X7JSDV0X3SZ3KJNY action_execution_id: type: string description: The ID of the action execution. example: action_execution_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string description: The type of action that was denied. const: authentication verdict: type: string description: The verdict of the action. const: Deny user_id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY email: type: string description: The email address of the user. example: user@example.com ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.1 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 required: - action_endpoint_id - action_execution_id - type - verdict - user_id - organization_id - email - ip_address - user_agent description: The event payload. context: $ref: '#/components/schemas/EventContextDto' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: action.user_registration.denied data: type: object properties: action_endpoint_id: type: string description: The ID of the action endpoint. example: action_endpoint_01EHWNCE74X7JSDV0X3SZ3KJNY action_execution_id: type: string description: The ID of the action execution. example: action_execution_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string description: The type of action that was denied. const: user_registration verdict: type: string description: The verdict of the action. const: Deny organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY email: type: string description: The email address of the user. example: user@example.com ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.1 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 required: - action_endpoint_id - action_execution_id - type - verdict - organization_id - email - ip_address - user_agent description: The event payload. context: $ref: '#/components/schemas/EventContextDto' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.blueprint.created data: type: object properties: object: type: string description: Distinguishes the agent blueprint object. const: agent_blueprint id: type: string description: Unique identifier of the agent blueprint. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: Human-readable name of the agent blueprint. example: Prospecting Agent description: type: - string - 'null' description: Human-readable description of the agent blueprint. example: Finds and qualifies sales prospects. permissions: type: array items: type: string deprecated: true description: >- Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types. example: &ref_38 - crm:read - email:send scoped_permissions: type: array items: type: object properties: slug: type: string description: Slug of the permission. example: email:send instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 description: >- Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. example: &ref_39 - delegated required: - slug - instance_types description: >- Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one. Absent from events emitted before this field was added. example: &ref_40 - slug: crm:read instance_types: - delegated - autonomous - slug: email:send instance_types: - delegated invocable_by: type: object properties: role_slugs: type: array items: type: string description: >- Role slugs whose members may mint user-delegated sessions from this blueprint. example: &ref_41 - manager organization_ids: type: array items: type: string description: >- Organizations in which autonomous sessions may be minted from this blueprint. example: &ref_42 - org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - role_slugs - organization_ids description: Who may mint sessions from this blueprint. invocable_as: type: object properties: instance_types: type: array items: type: string enum: - delegated - autonomous description: >- Instance types that may be minted from this blueprint: `delegated` (acting for a user) and/or `autonomous` (acting as the agent itself). example: &ref_43 - delegated - autonomous required: - instance_types description: How sessions may be minted from this blueprint. session_settings: type: object properties: max_age_seconds: type: number description: >- Maximum lifetime of a session in seconds; refreshes never extend a session past this. example: 3600 access_token_ttl_seconds: type: number description: Lifetime of each minted access token in seconds. example: 300 refresh_token_ttl_seconds: type: number description: Lifetime of each rotated refresh token in seconds. example: 3600 required: - max_age_seconds - access_token_ttl_seconds - refresh_token_ttl_seconds description: >- Token and session lifetimes for sessions minted from this blueprint. created_at: type: string description: The timestamp when the agent blueprint was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the agent blueprint was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - description - permissions - invocable_by - invocable_as - session_settings - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.blueprint.deleted data: type: object properties: object: type: string description: Distinguishes the agent blueprint object. const: agent_blueprint id: type: string description: Unique identifier of the agent blueprint. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: Human-readable name of the agent blueprint. example: Prospecting Agent created_at: type: string description: The timestamp when the agent blueprint was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the agent blueprint was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.blueprint.updated data: type: object properties: object: type: string description: Distinguishes the agent blueprint object. const: agent_blueprint id: type: string description: Unique identifier of the agent blueprint. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: Human-readable name of the agent blueprint. example: Prospecting Agent description: type: - string - 'null' description: Human-readable description of the agent blueprint. example: Finds and qualifies sales prospects. permissions: type: array items: type: string deprecated: true description: >- Deprecated: use `scoped_permissions`. Slugs of every permission in the ceiling, across all instance types. example: *ref_38 scoped_permissions: type: array items: type: object properties: slug: type: string description: Slug of the permission. example: email:send instance_types: type: array items: type: string enum: - delegated - autonomous minItems: 1 description: >- Instance types whose sessions receive the permission: `delegated`, `autonomous`, or both. example: *ref_39 required: - slug - instance_types description: >- Permissions forming the ceiling on what sessions minted from this blueprint may do, with the instance types that receive each one. Absent from events emitted before this field was added. example: *ref_40 invocable_by: type: object properties: role_slugs: type: array items: type: string description: >- Role slugs whose members may mint user-delegated sessions from this blueprint. example: *ref_41 organization_ids: type: array items: type: string description: >- Organizations in which autonomous sessions may be minted from this blueprint. example: *ref_42 required: - role_slugs - organization_ids description: Who may mint sessions from this blueprint. invocable_as: type: object properties: instance_types: type: array items: type: string enum: - delegated - autonomous description: >- Instance types that may be minted from this blueprint: `delegated` (acting for a user) and/or `autonomous` (acting as the agent itself). example: *ref_43 required: - instance_types description: How sessions may be minted from this blueprint. session_settings: type: object properties: max_age_seconds: type: number description: >- Maximum lifetime of a session in seconds; refreshes never extend a session past this. example: 3600 access_token_ttl_seconds: type: number description: Lifetime of each minted access token in seconds. example: 300 refresh_token_ttl_seconds: type: number description: Lifetime of each rotated refresh token in seconds. example: 3600 required: - max_age_seconds - access_token_ttl_seconds - refresh_token_ttl_seconds description: >- Token and session lifetimes for sessions minted from this blueprint. created_at: type: string description: The timestamp when the agent blueprint was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the agent blueprint was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - description - permissions - invocable_by - invocable_as - session_settings - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.instance.created data: type: object properties: object: type: string description: Distinguishes the agent instance object. const: agent_instance id: type: string description: Unique identifier of the agent instance. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY agent_blueprint_id: type: string description: The agent blueprint this instance was minted from. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the instance acts within. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY organization_membership_id: type: - string - 'null' description: >- The organization membership the instance acts on behalf of; `null` for an autonomous instance. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string enum: - delegated - autonomous description: >- Whether the instance acts on behalf of a user (`delegated`) or as itself within an organization (`autonomous`). created_at: type: string description: The timestamp when the agent instance was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the agent instance was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - agent_blueprint_id - organization_id - organization_membership_id - type - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.instance.deleted data: type: object properties: object: type: string description: Distinguishes the agent instance object. const: agent_instance id: type: string description: Unique identifier of the agent instance. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY agent_blueprint_id: type: string description: The agent blueprint this instance was minted from. example: agent_blueprint_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the instance acts within. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY organization_membership_id: type: - string - 'null' description: >- The organization membership the instance acts on behalf of; `null` for an autonomous instance. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string enum: - delegated - autonomous description: >- Whether the instance acts on behalf of a user (`delegated`) or as itself within an organization (`autonomous`). created_at: type: string description: The timestamp when the agent instance was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the agent instance was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - agent_blueprint_id - organization_id - organization_membership_id - type - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.instance.session.created data: type: object properties: object: type: string description: Distinguishes the agent instance session object. const: agent_instance_session id: type: string description: Unique identifier of the agent instance session. example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY agent_instance_id: type: string description: The agent instance the session belongs to. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the owning agent instance belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY expires_at: type: string description: Timestamp when the session expires. example: '2026-01-15T13:00:00.000Z' revoked_at: type: - string - 'null' description: >- Timestamp when the session was revoked; `null` if it has not been revoked. example: null created_at: type: string description: The timestamp when the session was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the session was last updated. example: '2026-01-15T12:00:00.000Z' permission_slugs: type: array items: type: string description: The permissions granted to the session at mint time. example: - crm:read required: - object - id - agent_instance_id - organization_id - expires_at - revoked_at - created_at - updated_at - permission_slugs description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.instance.session.revoked data: type: object properties: object: type: string description: Distinguishes the agent instance session object. const: agent_instance_session id: type: string description: Unique identifier of the agent instance session. example: agent_session_01EHWNCE74X7JSDV0X3SZ3KJNY agent_instance_id: type: string description: The agent instance the session belongs to. example: agent_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The organization the owning agent instance belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY expires_at: type: string description: Timestamp when the session expires. example: '2026-01-15T13:00:00.000Z' revoked_at: type: - string - 'null' description: >- Timestamp when the session was revoked; `null` if it has not been revoked. example: null created_at: type: string description: The timestamp when the session was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the session was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - agent_instance_id - organization_id - expires_at - revoked_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.claim.attempt.created data: type: object properties: object: type: string description: >- Distinguishes the agent registration claim attempt object. const: agent_registration_claim_attempt id: type: string description: >- Unique identifier of the agent registration claim attempt. example: agent_reg_claim_attempt_01EHWNCE74X7JSDV0X3SZ3KJNY agent_registration_id: type: string description: The ID of the agent registration. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY agent_registration_claim_id: type: string description: The ID of the agent registration claim. example: agent_reg_claim_01EHWNCE74X7JSDV0X3SZ3KJNY login_hint: type: string description: The login hint for the claim attempt. example: jane@example.com expires_at: type: string description: The timestamp when the claim attempt expires. example: '2024-01-15T10:35:00.000Z' created_at: type: string description: The timestamp when the claim attempt was created. example: '2024-01-15T10:30:00.000Z' updated_at: type: string description: The timestamp when the claim attempt was last updated. example: '2024-01-15T10:30:00.000Z' required: - object - id - agent_registration_id - agent_registration_claim_id - login_hint - expires_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.claim.completed data: type: object properties: object: type: string description: Distinguishes the agent registration claim object. const: agent_registration_claim id: type: string description: Unique identifier of the agent registration claim. example: agent_reg_claim_01EHWNCE74X7JSDV0X3SZ3KJNY agent_registration_id: type: string description: The ID of the agent registration. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization the registration belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY completed_by_attempt_id: type: string description: The ID of the claim attempt that completed the claim. example: agent_reg_claim_attempt_01EHWNCE74X7JSDV0X3SZ3KJNY claimed_by: type: object properties: user_id: type: string description: The ID of the user who completed the claim. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: oneOf: - type: string - oneOf: - type: string const: 'null' - type: 'null' description: >- The ID of the organization the claiming user belongs to. example: null required: - user_id - organization_id description: The user who completed the claim. completed_at: type: string description: The timestamp when the claim was completed. example: '2024-01-15T10:32:00.000Z' created_at: type: string description: The timestamp when the claim was created. example: '2024-01-15T10:30:00.000Z' updated_at: type: string description: The timestamp when the claim was last updated. example: '2024-01-15T10:32:00.000Z' required: - object - id - agent_registration_id - completed_by_attempt_id - claimed_by - completed_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.created data: type: object properties: object: type: string description: Distinguishes the agent registration object. const: agent_registration id: type: string description: Unique identifier of the agent registration. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY agent_identity: type: object properties: object: type: string description: Distinguishes the agent identity object. const: agent_identity id: type: string description: Unique identifier of the agent identity. example: agent_identity_01EHWNCE74X7JSDV0X3SZ3KJNY userland_user_id: oneOf: - type: string - oneOf: - type: string const: 'null' - type: 'null' description: >- The ID of the userland user bound to this agent identity. example: null required: - object - id - userland_user_id description: The agent identity for this registration. organization_id: type: string description: The ID of the organization the registration belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - unverified - verified - expired - revoked description: The current status of the registration. example: unverified kind: type: string enum: - anonymous - service_auth - identity_assertion description: The kind of the registration. example: anonymous method: type: string enum: - anonymous - service_auth - id_jag description: The authentication method of the registration. example: anonymous created_at: type: string description: The timestamp when the registration was created. example: '2024-01-15T10:30:00.000Z' updated_at: type: string description: The timestamp when the registration was last updated. example: '2024-01-15T10:30:00.000Z' required: - object - id - agent_identity - organization_id - status - kind - method - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.credential.issued data: type: object properties: object: type: string description: Distinguishes the agent registration credential object. const: agent_registration_credential id: type: string description: Unique identifier of the agent registration credential. example: agent_reg_credential_01EHWNCE74X7JSDV0X3SZ3KJNY agent_registration_id: type: string description: The ID of the agent registration. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY detail: oneOf: - type: object properties: kind: type: string description: The kind of credential issued. const: api_key api_key_id: type: string description: The ID of the issued API key. example: api_key_01HWDP91J37GZW2FT9GCEX8YWV required: - kind - api_key_id - type: object properties: kind: type: string description: The kind of credential issued. const: access_token jti: type: string description: The JWT ID of the issued access token. example: jti_01EHWNCE74X7JSDV0X3SZ3KJNY expires_at: oneOf: - type: string - oneOf: - type: string const: 'null' - type: 'null' description: The timestamp when the access token expires. example: '2024-01-15T11:30:00.000Z' required: - kind - jti - expires_at description: Details of the issued credential. created_at: type: string description: The timestamp when the credential was issued. example: '2024-01-15T10:33:00.000Z' updated_at: type: string description: The timestamp when the credential was last updated. example: '2024-01-15T10:33:00.000Z' required: - object - id - agent_registration_id - detail - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.deleted data: type: object properties: agent_registration_id: type: string description: The agent registration that was deleted. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY required: - agent_registration_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.expired data: type: object properties: agent_registration_id: type: string description: The agent registration that expired. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY required: - agent_registration_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.organization.switched data: type: object properties: agent_registration_id: type: string description: The agent registration that was moved. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY from_organization_id: type: string description: >- The agent-created organization the registration is moving off of. Migrate its resources to `to_organization_id`, then delete it. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY to_organization_id: type: string description: The organization the registration now belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNZ required: - agent_registration_id - from_organization_id - to_organization_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.refreshed data: type: object properties: agent_registration_id: type: string description: >- The agent registration whose identity assertion was refreshed. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY required: - agent_registration_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: agent.registration.revoked data: type: object properties: agent_registration_id: type: string description: The agent registration that was revoked. example: agent_reg_01EHWNCE74X7JSDV0X3SZ3KJNY required: - agent_registration_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: api_key.created data: type: object properties: object: type: string description: Distinguishes the API key object. const: api_key id: type: string description: Unique identifier of the API key. example: api_key_01EHWNCE74X7JSDV0X3SZ3KJNY owner: oneOf: - type: object properties: type: type: string description: The type of the API key owner. const: organization id: type: string description: The unique identifier of the API key owner. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - type: object properties: type: type: string description: The type of the API key owner. const: user id: type: string description: >- The unique identifier of the user who owns the API key. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: >- The unique identifier of the organization the API key belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - organization_id description: The owner of the API key. name: type: string description: The name of the API key. example: My API Key obfuscated_value: type: string description: The obfuscated value of the API key. example: sk_test_...1234 last_used_at: type: - string - 'null' description: The timestamp when the API key was last used. example: '2026-01-15T12:00:00.000Z' expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permissions granted to the API key. example: &ref_44 - users:read - users:write created_at: type: string description: The timestamp when the API key was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the API key was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: api_key.revoked data: type: object properties: object: type: string description: Distinguishes the API key object. const: api_key id: type: string description: Unique identifier of the API key. example: api_key_01EHWNCE74X7JSDV0X3SZ3KJNY owner: oneOf: - type: object properties: type: type: string description: The type of the API key owner. const: organization id: type: string description: The unique identifier of the API key owner. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - type: object properties: type: type: string description: The type of the API key owner. const: user id: type: string description: >- The unique identifier of the user who owns the API key. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: >- The unique identifier of the organization the API key belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - organization_id description: The owner of the API key. name: type: string description: The name of the API key. example: My API Key obfuscated_value: type: string description: The obfuscated value of the API key. example: sk_test_...1234 last_used_at: type: - string - 'null' description: The timestamp when the API key was last used. example: '2026-01-15T12:00:00.000Z' expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permissions granted to the API key. example: *ref_44 created_at: type: string description: The timestamp when the API key was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the API key was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: api_key.updated data: type: object properties: object: type: string description: Distinguishes the API key object. const: api_key id: type: string description: Unique identifier of the API key. example: api_key_01EHWNCE74X7JSDV0X3SZ3KJNY owner: oneOf: - type: object properties: type: type: string description: The type of the API key owner. const: organization id: type: string description: The unique identifier of the API key owner. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - type: object properties: type: type: string description: The type of the API key owner. const: user id: type: string description: >- The unique identifier of the user who owns the API key. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: >- The unique identifier of the organization the API key belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - type - id - organization_id description: The owner of the API key. name: type: string description: The name of the API key. example: My API Key obfuscated_value: type: string description: The obfuscated value of the API key. example: sk_test_...1234 last_used_at: type: - string - 'null' description: The timestamp when the API key was last used. example: '2026-01-15T12:00:00.000Z' expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permissions granted to the API key. example: *ref_44 created_at: type: string description: The timestamp when the API key was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the API key was last updated. example: '2026-01-15T12:00:00.000Z' previous_attributes: type: object properties: expires_at: type: - string - 'null' format: date-time description: >- The previous timestamp when the API Key expired. Null means the key did not expire. example: null required: - expires_at description: Previous API key attributes before the update. required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at - previous_attributes description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: application.token_exchange_failed data: type: object properties: grant_type: type: string description: >- The OAuth grant type of the token request that presented the token to exchange. example: urn:ietf:params:oauth:grant-type:jwt-bearer client_id: type: string description: >- The client ID of the application that made the token request. example: client_01HXYZ123456789ABCDEFGHIJ issuer: type: - string - 'null' description: >- The issuer the presented token claims. It is not verified, and is `null` when the token could not be read. example: https://example.okta.com error: type: object properties: code: type: string description: The OAuth error code returned to the application. example: invalid_grant message: type: string description: A human-readable description of the error. example: >- The assertion issuer is not trusted in this environment. required: - code - message description: Why the token exchange failed. required: - grant_type - client_id - issuer - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: application.token_exchange_succeeded data: type: object properties: grant_type: type: string description: >- The OAuth grant type of the token request that presented the token to exchange. example: urn:ietf:params:oauth:grant-type:jwt-bearer client_id: type: string description: >- The client ID of the application that made the token request. example: client_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user the access token was issued for. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com organization_id: type: - string - 'null' description: >- The ID of the organization the access token is scoped to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY issuer: type: string description: The issuer of the token that was exchanged. example: https://example.okta.com connection_id: type: - string - 'null' description: >- The ID of the SSO connection whose identity provider issued the exchanged token. `null` when the AI client issued it. example: conn_01E4ZCR3C56J083X43JQXF3JK5 jti: type: string description: The `jti` claim of the access token that was issued. example: 01HXYZ123456789ABCDEFGHIJ required: - grant_type - client_id - user_id - email - organization_id - issuer - connection_id - jti description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.email_verification_failed data: type: object properties: type: type: string const: email_verification status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.email_verification_succeeded data: type: object properties: type: type: string const: email_verification status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.magic_auth_failed data: type: object properties: type: type: string const: magic_auth status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.magic_auth_succeeded data: type: object properties: type: type: string const: magic_auth status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.mfa_failed data: type: object properties: type: type: string const: mfa status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.mfa_succeeded data: type: object properties: type: type: string const: mfa status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.oauth_failed data: type: object properties: type: type: string const: oauth status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. provider: type: string description: The OAuth provider used for authentication. example: GoogleOAuth required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.oauth_succeeded data: type: object properties: type: type: string const: oauth status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com provider: type: string description: The OAuth provider used for authentication. example: GoogleOAuth required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.passkey_failed data: type: object properties: type: type: string const: passkey status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.passkey_succeeded data: type: object properties: type: type: string const: passkey status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.password_failed data: type: object properties: type: type: string const: password status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.password_succeeded data: type: object properties: type: type: string const: password status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.radar_risk_detected data: type: object properties: auth_method: type: string description: The authentication method used. example: password action: type: string enum: - signup - login control: type: - string - 'null' description: The control action taken for the detected risk. example: block blocklist_type: type: - string - 'null' description: The type of blocklist that triggered the risk detection. example: ip ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com radar_detection_id: type: string description: >- The ID of the Radar detection that challenged the authentication. example: detection_01HZBC6N1EB1ZY7KG32X required: - auth_method - action - control - blocklist_type - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.reauthentication_succeeded data: type: object properties: type: type: string const: reauthentication status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - status - ip_address - user_agent - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.sso_failed data: type: object properties: type: type: string const: sso status: type: string const: failed ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com sso: type: object properties: organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY connection_id: type: - string - 'null' description: The ID of the SSO connection. example: conn_01E4ZCR3C56J083X43JQXF3JK5 session_id: type: - string - 'null' description: The ID of the SSO session. example: sess_01E4ZCR3C56J083X43JQXF3JK5 required: - organization_id - connection_id - session_id description: SSO connection details. error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - sso - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.sso_started data: type: object properties: type: type: string const: sso status: type: string const: started ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com sso: type: object properties: organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY connection_id: type: - string - 'null' description: The ID of the SSO connection. example: conn_01E4ZCR3C56J083X43JQXF3JK5 session_id: type: - string - 'null' description: The ID of the SSO session. example: sess_01E4ZCR3C56J083X43JQXF3JK5 required: - organization_id - connection_id - session_id description: SSO connection details. required: - type - status - ip_address - user_agent - user_id - email - sso description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.sso_succeeded data: type: object properties: type: type: string const: sso status: type: string const: succeeded ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com sso: type: object properties: organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY connection_id: type: - string - 'null' description: The ID of the SSO connection. example: conn_01E4ZCR3C56J083X43JQXF3JK5 session_id: type: - string - 'null' description: The ID of the SSO session. example: sess_01E4ZCR3C56J083X43JQXF3JK5 required: - organization_id - connection_id - session_id description: SSO connection details. required: - type - status - ip_address - user_agent - user_id - email - sso description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: authentication.sso_timed_out data: type: object properties: type: type: string const: sso status: type: string const: timed_out ip_address: type: - string - 'null' description: The IP address of the request. example: 203.0.113.42 user_agent: type: - string - 'null' description: The user agent of the request. example: Mozilla/5.0 user_id: type: - string - 'null' description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: - string - 'null' description: The email address of the user. example: user@example.com sso: type: object properties: organization_id: type: - string - 'null' description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY connection_id: type: - string - 'null' description: The ID of the SSO connection. example: conn_01E4ZCR3C56J083X43JQXF3JK5 session_id: type: - string - 'null' description: The ID of the SSO session. example: sess_01E4ZCR3C56J083X43JQXF3JK5 required: - organization_id - connection_id - session_id description: SSO connection details. error: type: object properties: code: type: string description: The error code. example: mfa_challenge_failed message: type: string description: A human-readable error message. example: The MFA challenge has failed. radar_detection_id: type: string description: >- The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors. example: detection_01HZBC6N1EB1ZY7KG32X required: - code - message description: Details about the authentication error. required: - type - status - ip_address - user_agent - user_id - email - sso - error description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: connection.activated data: type: object properties: object: type: string description: Distinguishes the connection object. const: connection id: type: string description: Unique identifier of the connection. example: conn_01EHWNCE74X7JSDV0X3SZ3KJNY state: type: string enum: - draft - active - validating - inactive - deleting description: The current state of the connection. example: active name: type: string description: The name of the connection. example: Acme SSO connection_type: description: The type of the connection. example: OktaSAML type: string enum: - ADFSSAML - AdpOidc - AppleOAuth - Auth0Migration - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - ClassLinkSAML - CleverOIDC - CloudflareSAML - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GitHubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - TestIdp - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth organization_id: type: string description: The ID of the organization the connection belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' external_key: type: string description: The external key of the connection. example: ext_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - linked - unlinked description: Deprecated. Use state instead. example: linked domains: type: array items: type: object properties: object: type: string description: Distinguishes the connection domain object. const: connection_domain id: type: string description: Unique identifier of the connection domain. example: conn_domain_01EHWNCE74X7JSDV0X3SZ3KJNY domain: type: string description: The domain value. example: acme.com required: - object - id - domain description: The domains associated with the connection. required: - object - id - state - name - connection_type - created_at - updated_at - external_key - status - domains description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: connection.deactivated data: type: object properties: object: type: string description: Distinguishes the connection object. const: connection id: type: string description: Unique identifier of the connection. example: conn_01EHWNCE74X7JSDV0X3SZ3KJNY state: type: string enum: - draft - active - validating - inactive - deleting description: The current state of the connection. example: active name: type: string description: The name of the connection. example: Acme SSO connection_type: description: The type of the connection. example: OktaSAML type: string enum: - ADFSSAML - AdpOidc - AppleOAuth - Auth0Migration - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - ClassLinkSAML - CleverOIDC - CloudflareSAML - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GitHubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - TestIdp - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth organization_id: type: string description: The ID of the organization the connection belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' external_key: type: string description: The external key of the connection. example: ext_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - linked - unlinked description: Deprecated. Use state instead. example: linked domains: type: array items: type: object properties: object: type: string description: Distinguishes the connection domain object. const: connection_domain id: type: string description: Unique identifier of the connection domain. example: conn_domain_01EHWNCE74X7JSDV0X3SZ3KJNY domain: type: string description: The domain value. example: acme.com required: - object - id - domain description: The domains associated with the connection. required: - object - id - state - name - connection_type - created_at - updated_at - external_key - status - domains description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: connection.deleted data: type: object properties: object: type: string description: Distinguishes the connection object. const: connection id: type: string description: Unique identifier of the connection. example: conn_01EHWNCE74X7JSDV0X3SZ3KJNY state: type: string enum: - draft - active - validating - inactive - deleting description: The current state of the connection. example: active name: type: string description: The name of the connection. example: Acme SSO connection_type: description: The type of the connection. example: OktaSAML type: string enum: - ADFSSAML - AdpOidc - AppleOAuth - Auth0Migration - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - ClassLinkSAML - CleverOIDC - CloudflareSAML - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GitHubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - TestIdp - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth organization_id: type: string description: The ID of the organization the connection belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - state - name - connection_type - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: connection.saml_certificate_renewal_required data: type: object properties: connection: type: object properties: id: type: string description: Unique identifier of the connection. example: conn_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: >- The ID of the organization the connection belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - id description: The connection with the expiring certificate. certificate: type: object properties: certificate_type: type: string enum: - ResponseSigning - RequestSigning - ResponseEncryption description: The type of the SAML certificate. example: ResponseSigning expiry_date: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' is_expired: type: boolean description: Whether the certificate has already expired. example: false required: - certificate_type - expiry_date - is_expired description: The SAML certificate details. days_until_expiry: type: integer description: The number of days until the certificate expires. example: 30 required: - connection - certificate - days_until_expiry description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: connection.saml_certificate_renewed data: type: object properties: connection: type: object properties: id: type: string description: Unique identifier of the connection. example: conn_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: >- The ID of the organization the connection belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY required: - id description: The connection with the renewed certificate. certificate: type: object properties: certificate_type: type: string enum: - ResponseSigning - RequestSigning - ResponseEncryption description: The type of the SAML certificate. example: ResponseSigning expiry_date: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - certificate_type - expiry_date description: The renewed SAML certificate details. renewed_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - connection - certificate - renewed_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.activated data: type: object properties: object: type: string description: Distinguishes the directory object. const: directory id: type: string description: Unique identifier of the directory. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization the directory belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string enum: - azure scim v2.0 - bamboohr - breathe hr - cezanne hr - cyberark scim v2.0 - fourth hr - generic scim v2.0 - gsuite directory - gusto - hibob - jump cloud scim v2.0 - okta scim v2.0 - onelogin scim v2.0 - people hr - personio - pingfederate scim v2.0 - rippling scim v2.0 - rippling - sailpoint scim v2.0 - s3 - sftp - sftp workday - workday description: The type of the directory. example: okta scim v2.0 state: type: string enum: - active - validating - invalid_credentials - inactive - deleting description: The current state of the directory. example: active name: type: string description: The name of the directory. example: Acme Directory created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' external_key: type: string description: The external key of the directory. example: ext_01EHWNCE74X7JSDV0X3SZ3KJNY domains: type: array items: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHWNCE74X7JSDV0X3SZ3KJNY domain: type: string description: The domain value. example: acme.com required: - object - id - domain description: The domains associated with the directory. required: - object - id - type - state - name - created_at - updated_at - external_key - domains description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.deleted data: type: object properties: object: type: string description: Distinguishes the directory object. const: directory id: type: string description: Unique identifier of the directory. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization the directory belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY type: type: string enum: - azure scim v2.0 - bamboohr - breathe hr - cezanne hr - cyberark scim v2.0 - fourth hr - generic scim v2.0 - gsuite directory - gusto - hibob - jump cloud scim v2.0 - okta scim v2.0 - onelogin scim v2.0 - people hr - personio - pingfederate scim v2.0 - rippling scim v2.0 - rippling - sailpoint scim v2.0 - s3 - sftp - sftp workday - workday description: The type of the directory. example: okta scim v2.0 state: type: string enum: - active - validating - invalid_credentials - inactive - deleting description: The current state of the directory. example: active name: type: string description: The name of the directory. example: Acme Directory created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - type - state - name - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.group.created data: $ref: '#/components/schemas/DirectoryGroup' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.group.deleted data: $ref: '#/components/schemas/DirectoryGroup' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.group.updated data: type: object properties: object: type: string description: Distinguishes the Directory Group object. const: directory_group id: type: string description: Unique identifier for the Directory Group. example: directory_group_01E1JJS84MFPPQ3G655FHTKX6Z idp_id: type: string description: >- Unique identifier for the group, assigned by the Directory Provider. Different Directory Providers use different ID formats. example: 02grqrue4294w24 directory_id: type: string description: >- The identifier of the Directory the Directory Group belongs to. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: >- The identifier for the Organization in which the Directory resides. example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y name: type: string description: The name of the Directory Group. example: Developers raw_attributes: type: object additionalProperties: {} description: The raw attributes received from the directory provider. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' previous_attributes: type: object additionalProperties: {} required: - object - id - idp_id - directory_id - organization_id - name - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.token.created data: type: object properties: object: type: string description: Distinguishes the directory token object. const: directory_token id: type: string description: Unique identifier of the directory token. example: directory_token_01EHWNCE74X7JSDV0X3SZ3KJNY directory_id: type: string description: The ID of the directory the token authenticates to. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization the directory belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY token_suffix: type: string description: >- The trailing characters of the bearer token, for identification only. The full token value is never included in events. example: a1b2 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - directory_id - token_suffix - created_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.token.revoked data: type: object properties: object: type: string description: Distinguishes the directory token object. const: directory_token id: type: string description: Unique identifier of the directory token. example: directory_token_01EHWNCE74X7JSDV0X3SZ3KJNY directory_id: type: string description: The ID of the directory the token authenticates to. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization the directory belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY token_suffix: type: string description: >- The trailing characters of the bearer token, for identification only. The full token value is never included in events. example: a1b2 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - directory_id - token_suffix - created_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.group.user_added data: type: object properties: directory_id: type: string description: The ID of the directory. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY user: $ref: '#/components/schemas/DirectoryUser' description: The directory user added to the group. group: $ref: '#/components/schemas/DirectoryGroup' description: The directory group the user was added to. required: - directory_id - user - group description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.user.created data: $ref: '#/components/schemas/DirectoryUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.user.deleted data: $ref: '#/components/schemas/DirectoryUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.group.user_removed data: type: object properties: directory_id: type: string description: The ID of the directory. example: directory_01EHWNCE74X7JSDV0X3SZ3KJNY user: $ref: '#/components/schemas/DirectoryUser' description: The directory user removed from the group. group: $ref: '#/components/schemas/DirectoryGroup' description: The directory group the user was removed from. required: - directory_id - user - group description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: dsync.user.updated data: type: object properties: object: type: string description: Distinguishes the Directory User object. const: directory_user id: type: string description: Unique identifier for the Directory User. example: directory_user_01E1JG7J09H96KYP8HM9B0G5SJ directory_id: type: string description: >- The identifier of the Directory the Directory User belongs to. example: directory_01ECAZ4NV9QMV47GW873HDCX74 organization_id: type: string description: >- The identifier for the Organization in which the Directory resides. example: org_01EZTR6WYX1A0DSE2CYMGXQ24Y idp_id: type: string description: >- Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats. example: '2836' email: type: - string - 'null' description: The email address of the user. example: marcelina.davis@example.com first_name: type: - string - 'null' description: The first name of the user. example: Marcelina last_name: type: - string - 'null' description: The last name of the user. example: Davis name: type: - string - 'null' description: The full name of the user. example: Marcelina Davis emails: type: array items: type: object properties: primary: type: boolean description: Whether this is the primary email address. example: true type: type: string description: The type of email address. example: work value: type: - string - 'null' description: The email address value. example: marcelina.davis@example.com description: A list of email addresses for the user. deprecated: true job_title: type: - string - 'null' description: The job title of the user. example: Software Engineer deprecated: true username: type: - string - 'null' description: The username of the user. example: mdavis deprecated: true state: type: string enum: - active - suspended - inactive description: The state of the user. example: active raw_attributes: type: object additionalProperties: {} description: The raw attributes received from the directory provider. deprecated: true custom_attributes: type: object additionalProperties: {} description: >- An object containing the custom attribute mapping for the Directory Provider. example: department: Engineering job_title: Software Engineer role: $ref: '#/components/schemas/SlimRole' roles: type: array items: $ref: '#/components/schemas/SlimRole' description: All roles assigned to the user. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' previous_attributes: type: object additionalProperties: {} required: - object - id - directory_id - organization_id - idp_id - email - state - raw_attributes - custom_attributes - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: email_verification.created data: type: object properties: object: type: string description: Distinguishes the email verification object. const: email_verification id: type: string description: The unique ID of the email verification code. example: email_verification_01E4ZCR3C56J083X43JQXF3JK5 user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the email verification code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - email - expires_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag.created data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: &ref_45 - reports enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag.deleted data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag_rule.created data: $ref: '#/components/schemas/FlagRule' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag_rule.deleted data: $ref: '#/components/schemas/FlagRule' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag_rule.updated data: $ref: '#/components/schemas/FlagRule' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. previous_attributes: type: object properties: data: type: object properties: value: type: boolean description: The value the rule served before the update. example: true description: The previous data attributes of the flag rule. description: Attributes that changed from their previous values. required: - client_id description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag.updated data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. previous_attributes: type: object properties: data: type: object properties: name: type: string description: The previous name of the flag. example: My Feature Flag description: type: - string - 'null' description: The previous description of the flag. example: Enables the new feature. tags: type: array items: type: string description: The previous tags of the flag. example: &ref_46 - beta - release owner: description: >- The previous owner of the flag, or `null` if it had none. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' enabled: type: boolean description: Whether the flag was previously enabled. example: true default_value: type: boolean description: The previous default value of the flag. example: false description: The previous data attributes of the flag. description: Attributes that changed from their previous values. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: flag.created data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: flag.deleted data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: flag.rule_updated data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. access_type: type: string enum: - none - some - all description: The access type of the flag rule. configured_targets: type: object properties: organizations: type: array items: type: object properties: id: type: string description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: The name of the organization. example: Acme Corp required: - id - name description: The organizations targeted by the flag rule. users: type: array items: type: object properties: id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY email: type: string description: The email of the user. example: user@example.com required: - id - email description: The users targeted by the flag rule. required: - organizations - users description: The configured targets for the flag rule. previous_attributes: type: object properties: data: type: object properties: enabled: type: boolean description: Whether the flag was previously enabled. example: true default_value: type: boolean description: The previous default value of the flag. example: false description: The previous data attributes of the flag. context: type: object properties: access_type: type: string enum: - none - some - all description: The previous access type of the flag rule. configured_targets: type: object properties: organizations: type: array items: type: object properties: id: type: string description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: The name of the organization. example: Acme Corp required: - id - name description: The organizations targeted by the flag rule. users: type: array items: type: object properties: id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY email: type: string description: The email of the user. example: user@example.com required: - id - email description: The users targeted by the flag rule. required: - organizations - users description: >- The previous configured targets for the flag rule. description: The previous context attributes of the flag rule. description: Attributes that changed from their previous values. required: - client_id - actor - access_type - configured_targets - previous_attributes description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag_target.created data: $ref: '#/components/schemas/FlagTarget' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: feature_flags.flag_target.deleted data: $ref: '#/components/schemas/FlagTarget' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: flag.updated data: type: object properties: object: type: string const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT environment_id: type: string description: The ID of the environment the Feature Flag belongs to. example: environment_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: A descriptive name for the Feature Flag. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: >- Labels assigned to the Feature Flag for categorizing and filtering. example: *ref_45 enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - environment_id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: type: object properties: client_id: type: string description: The client ID associated with the flag event. example: client_01EHWNCE74X7JSDV0X3SZ3KJNY actor: type: object properties: id: type: string description: Unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY source: type: string enum: - api - dashboard - admin_portal - system description: The source of the actor that performed the action. name: type: - string - 'null' description: The name of the actor. example: Jane Doe required: - id - source - name description: The actor who performed the action. previous_attributes: type: object properties: data: type: object properties: name: type: string description: The previous name of the flag. example: My Feature Flag description: type: - string - 'null' description: The previous description of the flag. example: Enables the new feature. tags: type: array items: type: string description: The previous tags of the flag. example: *ref_46 owner: description: >- The previous owner of the flag, or `null` if it had none. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' enabled: type: boolean description: Whether the flag was previously enabled. example: true default_value: type: boolean description: The previous default value of the flag. example: false description: The previous data attributes of the flag. description: Attributes that changed from their previous values. required: - client_id - actor description: Additional context about the event. object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - context - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: group.created data: $ref: '#/components/schemas/Group' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: group.deleted data: $ref: '#/components/schemas/Group' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: group.member_added data: type: object properties: group_id: type: string description: The ID of the Group. example: group_01HXYZ123456789ABCDEFGHIJ organization_membership_id: type: string description: The ID of the OrganizationMembership. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY required: - group_id - organization_membership_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: group.member_removed data: type: object properties: group_id: type: string description: The ID of the Group. example: group_01HXYZ123456789ABCDEFGHIJ organization_membership_id: type: string description: The ID of the OrganizationMembership. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY required: - group_id - organization_membership_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: group.updated data: $ref: '#/components/schemas/Group' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: invitation.accepted data: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: pending accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: >- The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: invitation.created data: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: pending accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: >- The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: invitation.resent data: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: pending accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: >- The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: invitation.revoked data: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: pending accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: >- The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: >- The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: magic_auth.created data: type: object properties: object: type: string description: Distinguishes the Magic Auth object. const: magic_auth id: type: string description: The unique ID of the Magic Auth code. example: magic_auth_01HWZBQZY2M3AMQW166Q22K88F user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the Magic Auth code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - email - expires_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization.created data: type: object properties: object: type: string description: Distinguishes the Organization object. const: organization id: type: string description: Unique identifier of the Organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: >- A descriptive name for the Organization. This field does not need to be unique. example: Acme Inc. domains: type: array items: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: List of Organization Domains. metadata: type: object additionalProperties: type: string maxLength: 600 description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. example: &ref_47 tier: diamond propertyNames: maxLength: 40 maxProperties: 50 external_id: type: - string - 'null' description: The external ID of the Organization. example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 stripe_customer_id: type: string description: The Stripe customer ID of the Organization. example: cus_R9qWAGMQ6nGE7V created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - domains - metadata - external_id - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization.deleted data: type: object properties: object: type: string description: Distinguishes the Organization object. const: organization id: type: string description: Unique identifier of the Organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: >- A descriptive name for the Organization. This field does not need to be unique. example: Acme Inc. domains: type: array items: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: List of Organization Domains. metadata: type: object additionalProperties: type: string maxLength: 600 description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. example: *ref_47 propertyNames: maxLength: 40 maxProperties: 50 external_id: type: - string - 'null' description: The external ID of the Organization. example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 stripe_customer_id: type: string description: The Stripe customer ID of the Organization. example: cus_R9qWAGMQ6nGE7V created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - domains - metadata - external_id - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_domain.created data: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_domain.deleted data: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_domain.updated data: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_domain.verification_failed data: type: object properties: reason: type: string enum: - domain_verification_period_expired - domain_verified_by_other_organization description: The reason the domain verification failed. example: domain_verification_period_expired organization_domain: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: The organization domain that failed verification. required: - reason - organization_domain description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_domain.verified data: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_membership.created data: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: Unique identifier of the organization membership. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY user_id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - active - inactive - pending description: The status of the organization membership. example: active role: $ref: '#/components/schemas/SlimRole' description: The role associated with the membership. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: The roles associated with the membership. custom_attributes: type: object additionalProperties: {} description: Custom attributes associated with the membership. directory_managed: type: boolean description: >- Whether the membership is managed by a directory sync provider. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - organization_id - status - role - custom_attributes - directory_managed - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_membership.deleted data: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: Unique identifier of the organization membership. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY user_id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - active - inactive - pending description: The status of the organization membership. example: active role: $ref: '#/components/schemas/SlimRole' description: The role associated with the membership. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: The roles associated with the membership. custom_attributes: type: object additionalProperties: {} description: Custom attributes associated with the membership. directory_managed: type: boolean description: >- Whether the membership is managed by a directory sync provider. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - organization_id - status - role - custom_attributes - directory_managed - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_membership.updated data: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: Unique identifier of the organization membership. example: om_01EHWNCE74X7JSDV0X3SZ3KJNY user_id: type: string description: The ID of the user. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY organization_id: type: string description: The ID of the organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY status: type: string enum: - active - inactive - pending description: The status of the organization membership. example: active role: $ref: '#/components/schemas/SlimRole' description: The role associated with the membership. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: The roles associated with the membership. custom_attributes: type: object additionalProperties: {} description: Custom attributes associated with the membership. directory_managed: type: boolean description: >- Whether the membership is managed by a directory sync provider. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - organization_id - status - role - custom_attributes - directory_managed - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_role.created data: type: object properties: object: type: string description: Distinguishes the organization role object. const: organization_role organization_id: type: string description: The ID of the organization the role belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the role. example: billing-admin name: type: string description: The name of the role. example: Billing Administrator description: type: - string - 'null' description: A description of the role. example: Can manage billing settings. resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: &ref_48 - users:read - users:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - organization_id - slug - name - description - resource_type_slug - permissions - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_role.deleted data: type: object properties: object: type: string description: Distinguishes the organization role object. const: organization_role organization_id: type: string description: The ID of the organization the role belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the role. example: billing-admin name: type: string description: The name of the role. example: Billing Administrator description: type: - string - 'null' description: A description of the role. example: Can manage billing settings. resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: *ref_48 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - organization_id - slug - name - description - resource_type_slug - permissions - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization_role.updated data: type: object properties: object: type: string description: Distinguishes the organization role object. const: organization_role organization_id: type: string description: The ID of the organization the role belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the role. example: billing-admin name: type: string description: The name of the role. example: Billing Administrator description: type: - string - 'null' description: A description of the role. example: Can manage billing settings. resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: *ref_48 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - organization_id - slug - name - description - resource_type_slug - permissions - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: organization.updated data: type: object properties: object: type: string description: Distinguishes the Organization object. const: organization id: type: string description: Unique identifier of the Organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: >- A descriptive name for the Organization. This field does not need to be unique. example: Acme Inc. domains: type: array items: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: List of Organization Domains. metadata: type: object additionalProperties: type: string maxLength: 600 description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. example: *ref_47 propertyNames: maxLength: 40 maxProperties: 50 external_id: type: - string - 'null' description: The external ID of the Organization. example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 stripe_customer_id: type: string description: The Stripe customer ID of the Organization. example: cus_R9qWAGMQ6nGE7V created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - name - domains - metadata - external_id - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: password_reset.created data: type: object properties: object: type: string description: Distinguishes the password reset object. const: password_reset id: type: string description: The unique ID of the password reset object. example: password_reset_01E4ZCR3C56J083X43JQXF3JK5 user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the password reset token expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: The timestamp when the password reset token was created. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - email - expires_at - created_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: password_reset.succeeded data: type: object properties: object: type: string description: Distinguishes the password reset object. const: password_reset id: type: string description: The unique ID of the password reset object. example: password_reset_01E4ZCR3C56J083X43JQXF3JK5 user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the password reset token expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: The timestamp when the password reset token was created. example: '2026-01-15T12:00:00.000Z' required: - object - id - user_id - email - expires_at - created_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: permission.created data: type: object properties: object: type: string description: Distinguishes the permission object. const: permission id: type: string description: Unique identifier of the permission. example: perm_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the permission. example: billing:manage name: type: string description: The name of the permission. example: Manage Billing description: type: - string - 'null' description: A description of the permission. example: Allows managing billing settings. system: type: boolean description: Whether the permission is a system permission. example: false resource_type_slug: type: string description: The slug of the resource type the permission applies to. example: organization created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - system - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: permission.deleted data: type: object properties: object: type: string description: Distinguishes the permission object. const: permission id: type: string description: Unique identifier of the permission. example: perm_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the permission. example: billing:manage name: type: string description: The name of the permission. example: Manage Billing description: type: - string - 'null' description: A description of the permission. example: Allows managing billing settings. system: type: boolean description: Whether the permission is a system permission. example: false resource_type_slug: type: string description: The slug of the resource type the permission applies to. example: organization created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - system - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: permission.updated data: type: object properties: object: type: string description: Distinguishes the permission object. const: permission id: type: string description: Unique identifier of the permission. example: perm_01EHWNCE74X7JSDV0X3SZ3KJNY slug: type: string description: The slug identifier of the permission. example: billing:manage name: type: string description: The name of the permission. example: Manage Billing description: type: - string - 'null' description: A description of the permission. example: Allows managing billing settings. system: type: boolean description: Whether the permission is a system permission. example: false resource_type_slug: type: string description: The slug of the resource type the permission applies to. example: organization created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - system - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.account_connection.add_failed data: type: object properties: object: type: string description: The object type. example: connection_failed const: connection_failed data_integration_id: type: string description: The unique ID of the data integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT provider_slug: type: string description: The provider slug for this connection attempt. example: github user_id: type: - string - 'null' description: The ID of the User the connection attempt belongs to. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The ID of the Organization the connection attempt belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account involved in the attempt. It is not a connection identifier or selector. Historical events may omit this field. example: null error_code: type: string description: A machine-readable error code for the failure. example: authorization_code_exchange_error error_reason: type: - string - 'null' description: A human-readable explanation of the failure. example: The authorization code has expired. provider_error: type: - string - 'null' description: The raw error code returned by the OAuth provider. example: access_denied provider_error_description: type: - string - 'null' description: >- The raw error description returned by the OAuth provider. example: The user denied the authorization request. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - data_integration_id - provider_slug - user_id - organization_id - error_code - error_reason - provider_error - provider_error_description - created_at title: PipesConnectionFailed description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.account_connection.connected data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.account_connection.connection_failed data: type: object properties: object: type: string description: The object type. example: connection_failed const: connection_failed data_integration_id: type: string description: The unique ID of the data integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT provider_slug: type: string description: The provider slug for this connection attempt. example: github user_id: type: - string - 'null' description: The ID of the User the connection attempt belongs to. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The ID of the Organization the connection attempt belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account involved in the attempt. It is not a connection identifier or selector. Historical events may omit this field. example: null error_code: type: string description: A machine-readable error code for the failure. example: authorization_code_exchange_error error_reason: type: - string - 'null' description: A human-readable explanation of the failure. example: The authorization code has expired. provider_error: type: - string - 'null' description: The raw error code returned by the OAuth provider. example: access_denied provider_error_description: type: - string - 'null' description: >- The raw error description returned by the OAuth provider. example: The user denied the authorization request. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - data_integration_id - provider_slug - user_id - organization_id - error_code - error_reason - provider_error - provider_error_description - created_at title: PipesConnectionFailed description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.account_connection.disconnected data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.account_connection.reauthorization_needed data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.connected_account.connected data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.connected_account.connection_failed data: type: object properties: object: type: string description: The object type. example: connection_failed const: connection_failed data_integration_id: type: string description: The unique ID of the data integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT provider_slug: type: string description: The provider slug for this connection attempt. example: github user_id: type: - string - 'null' description: The ID of the User the connection attempt belongs to. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The ID of the Organization the connection attempt belongs to. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account involved in the attempt. It is not a connection identifier or selector. Historical events may omit this field. example: null error_code: type: string description: A machine-readable error code for the failure. example: authorization_code_exchange_error error_reason: type: - string - 'null' description: A human-readable explanation of the failure. example: The authorization code has expired. provider_error: type: - string - 'null' description: The raw error code returned by the OAuth provider. example: access_denied provider_error_description: type: - string - 'null' description: >- The raw error description returned by the OAuth provider. example: The user denied the authorization request. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - data_integration_id - provider_slug - user_id - organization_id - error_code - error_reason - provider_error - provider_error_description - created_at title: PipesConnectionFailed description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.connected_account.disconnected data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: pipes.connected_account.reauthorization_needed data: $ref: '#/components/schemas/PipesConnectedAccount' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: radar.challenge_created data: type: object properties: type: type: string description: The type of the Radar challenge. example: email const: email radar_challenge_id: type: string description: The ID of the Radar challenge. example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: user@example.com required: - type - radar_challenge_id - user_id - email description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: resource_export.completed data: type: object properties: id: type: string description: The ID of the resource export. example: resource_export_01HWZBQZY2M3AMQW166Q22K88F resource_type: type: string enum: - users - organizations - events - sessions - auditLogEvents - connections - directoryUsers - scimLogs - radarDetections - teamActivityLogEvents description: The type of resource being exported. example: users required: - id - resource_type description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: resource_export.created data: type: object properties: id: type: string description: The ID of the resource export. example: resource_export_01HWZBQZY2M3AMQW166Q22K88F resource_type: type: string enum: - users - organizations - events - sessions - auditLogEvents - connections - directoryUsers - scimLogs - radarDetections - teamActivityLogEvents description: The type of resource being exported. example: users required: - id - resource_type description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: resource_export.downloaded data: type: object properties: id: type: string description: The ID of the resource export. example: resource_export_01HWZBQZY2M3AMQW166Q22K88F resource_type: type: string enum: - users - organizations - events - sessions - auditLogEvents - connections - directoryUsers - scimLogs - radarDetections - teamActivityLogEvents description: The type of resource being exported. example: users required: - id - resource_type description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: resource_export.failed data: type: object properties: id: type: string description: The ID of the resource export. example: resource_export_01HWZBQZY2M3AMQW166Q22K88F resource_type: type: string enum: - users - organizations - events - sessions - auditLogEvents - connections - directoryUsers - scimLogs - radarDetections - teamActivityLogEvents description: The type of resource being exported. example: users required: - id - resource_type description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: role.created data: type: object properties: object: type: string description: Distinguishes the role object. const: role slug: type: string description: The slug identifier of the role. example: admin resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: &ref_49 - users:read - users:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - slug - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: role.deleted data: type: object properties: object: type: string description: Distinguishes the role object. const: role slug: type: string description: The slug identifier of the role. example: admin resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: *ref_49 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - slug - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: role.updated data: type: object properties: object: type: string description: Distinguishes the role object. const: role slug: type: string description: The slug identifier of the role. example: admin resource_type_slug: type: string description: The slug of the resource type the role applies to. example: organization permissions: type: array items: type: string description: The permissions granted by the role. example: *ref_49 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - slug - resource_type_slug - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: session.created data: type: object properties: object: type: string description: Distinguishes the session object. const: session id: type: string description: The unique ID of the session. example: session_01H93ZY4F80QPBEZ1R5B2SHQG8 impersonator: type: object properties: email: type: string description: >- The email address of the WorkOS Dashboard user who is impersonating the user. example: admin@foocorp.com reason: type: - string - 'null' description: >- The justification the impersonator gave for impersonating the user. example: Investigating an issue with the customer's account. required: - email - reason description: >- Information about the impersonator if this session was created via impersonation. ip_address: type: - string - 'null' description: The IP address from which the session was created. example: 198.51.100.42 organization_id: type: string description: >- The ID of the organization this session is associated with. example: org_01H945H0YD4F97JN9MATX7BYAG user_agent: type: - string - 'null' description: >- The user agent string from the device that created the session. example: >- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 user_id: type: string description: The ID of the user this session belongs to. example: user_01E4ZCR3C56J083X43JQXF3JK5 auth_method: type: string enum: - cross_app_auth - external_auth - impersonation - magic_code - migrated_session - oauth - passkey - password - sso - unknown description: The authentication method used to create this session. example: sso status: type: string enum: - active - expired - revoked description: The current status of the session. example: active expires_at: format: date-time type: string description: The timestamp when the session expires. example: '2026-01-15T12:00:00.000Z' ended_at: format: date-time type: - string - 'null' description: The timestamp when the session ended. example: null created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - ip_address - user_agent - user_id - auth_method - status - expires_at - ended_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: session.revoked data: type: object properties: object: type: string description: Distinguishes the session object. const: session id: type: string description: The unique ID of the session. example: session_01H93ZY4F80QPBEZ1R5B2SHQG8 impersonator: type: object properties: email: type: string description: >- The email address of the WorkOS Dashboard user who is impersonating the user. example: admin@foocorp.com reason: type: - string - 'null' description: >- The justification the impersonator gave for impersonating the user. example: Investigating an issue with the customer's account. required: - email - reason description: >- Information about the impersonator if this session was created via impersonation. ip_address: type: - string - 'null' description: The IP address from which the session was created. example: 198.51.100.42 organization_id: type: string description: >- The ID of the organization this session is associated with. example: org_01H945H0YD4F97JN9MATX7BYAG user_agent: type: - string - 'null' description: >- The user agent string from the device that created the session. example: >- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 user_id: type: string description: The ID of the user this session belongs to. example: user_01E4ZCR3C56J083X43JQXF3JK5 auth_method: type: string enum: - cross_app_auth - external_auth - impersonation - magic_code - migrated_session - oauth - passkey - password - sso - unknown description: The authentication method used to create this session. example: sso status: type: string enum: - active - expired - revoked description: The current status of the session. example: active expires_at: format: date-time type: string description: The timestamp when the session expires. example: '2026-01-15T12:00:00.000Z' ended_at: format: date-time type: - string - 'null' description: The timestamp when the session ended. example: null created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - ip_address - user_agent - user_id - auth_method - status - expires_at - ended_at - created_at - updated_at description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: user.created data: $ref: '#/components/schemas/UserlandUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: user.deleted data: $ref: '#/components/schemas/UserlandUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: user.updated data: $ref: '#/components/schemas/UserlandUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.byok_key.deleted data: type: object properties: organization_id: type: string description: The unique identifier of the organization. example: org_01EHT88Z8J8795GZNQ4ZP1J81T key_provider: $ref: '#/components/schemas/VaultByokKeyProvider' required: - organization_id - key_provider description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.byok_key.verification_completed data: type: object properties: organization_id: type: string description: The unique identifier of the organization. example: org_01EHT88Z8J8795GZNQ4ZP1J81T key_provider: $ref: '#/components/schemas/VaultByokKeyProvider' verified: type: boolean description: >- Whether the BYOK key verification completed successfully. example: true required: - organization_id - key_provider - verified description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.data.created data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe kv_name: type: string description: The name of the key-value store. example: user-secrets key_id: type: string description: The unique identifier of the encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY key_context: type: object additionalProperties: type: string required: - actor_id - actor_source - actor_name - kv_name - key_id - key_context description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.data.deleted data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe kv_name: type: string description: The name of the key-value store. example: user-secrets required: - actor_id - actor_source - actor_name - kv_name description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.data.read data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe kv_name: type: string description: The name of the key-value store. example: user-secrets key_id: type: string description: The unique identifier of the encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY required: - actor_id - actor_source - actor_name - kv_name - key_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.data.updated data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe kv_name: type: string description: The name of the key-value store. example: user-secrets key_id: type: string description: The unique identifier of the encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY key_context: type: object additionalProperties: type: string required: - actor_id - actor_source - actor_name - kv_name - key_id - key_context description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.dek.decrypted data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe key_id: type: string description: The unique identifier of the data encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY required: - actor_id - actor_source - actor_name - key_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.dek.read data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe key_ids: type: array items: type: string description: The unique identifiers of the data encryption keys. example: - dek_01EHWNCE74X7JSDV0X3SZ3KJNY key_context: type: object additionalProperties: type: string required: - actor_id - actor_source - actor_name - key_ids - key_context description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.dek.rekeyed data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe key_ids: type: array items: type: string description: >- The unique identifiers of the re-encrypted data encryption keys. example: - dek_01EHWNCE74X7JSDV0X3SZ3KJNY key_context: type: object additionalProperties: type: string required: - actor_id - actor_source - actor_name - key_ids - key_context description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.kek.created data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe key_name: type: string description: The name of the key encryption key. example: production-kek key_id: type: string description: The unique identifier of the key encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY required: - actor_id - actor_source - actor_name - key_name - key_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.kek.deleted data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe key_name: type: string description: The name of the key encryption key. example: production-kek key_id: type: string description: The unique identifier of the key encryption key. example: key_01EHWNCE74X7JSDV0X3SZ3KJNY required: - actor_id - actor_source - actor_name - key_name - key_id description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.metadata.read data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe kv_name: type: string description: The name of the key-value store. example: user-secrets required: - actor_id - actor_source - actor_name - kv_name description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: vault.names.listed data: type: object properties: actor_id: type: string description: The unique identifier of the actor. example: user_01EHWNCE74X7JSDV0X3SZ3KJNY actor_source: type: string enum: - api - dashboard actor_name: type: string description: The name of the actor. example: Jane Doe required: - actor_id - actor_source - actor_name description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: waitlist_user.approved data: $ref: '#/components/schemas/WaitlistUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: waitlist_user.created data: $ref: '#/components/schemas/WaitlistUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object - type: object properties: id: type: string description: Unique identifier for the event. example: event_01EHZNVPK3SFK441A1RGBFSHRT event: type: string const: waitlist_user.denied data: $ref: '#/components/schemas/WaitlistUser' description: The event payload. created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' context: $ref: '#/components/schemas/EventContextDto' object: type: string description: Distinguishes the Event object. const: event required: - id - event - data - created_at - object example: *ref_50 description: An event emitted by WorkOS. EventList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/EventSchema' description: The list of records for the current page. list_metadata: type: object properties: after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: event_01EHZNVPK3SFK441A1RGBFSHRT required: - after description: Pagination cursor for navigating to the next page of results. required: - object - data - list_metadata example: object: list data: - *ref_50 list_metadata: after: event_01EHZNVPK3SFK441A1RGBFSHRT JwtTemplate: type: object properties: object: type: string description: The object type. const: jwt_template content: type: string description: The JWT template content as a Liquid template string. example: >- {"urn:myapp:full_name": "{{user.first_name}} {{user.last_name}}", "urn:myapp:email": "{{user.email}}"} created_at: type: string description: The timestamp when the JWT template was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the JWT template was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - content - created_at - updated_at OrganizationDomainStandAlone: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at Flag: type: object properties: object: type: string description: Distinguishes the Feature Flag object. const: feature_flag id: type: string description: Unique identifier of the Feature Flag. example: flag_01EHZNVPK3SFK441A1RGBFSHRT slug: type: string description: A unique key to reference the Feature Flag. example: advanced-analytics name: type: string description: >- A descriptive name for the Feature Flag. This field does not need to be unique. example: Advanced Analytics description: type: - string - 'null' description: A description for the Feature Flag. example: Enable advanced analytics dashboard feature owner: description: The owner of the Feature Flag. oneOf: - type: object properties: email: type: string description: The email address of the flag owner. example: jane@example.com first_name: type: - string - 'null' description: The first name of the flag owner. example: Jane last_name: type: - string - 'null' description: The last name of the flag owner. example: Doe required: - email - first_name - last_name - type: 'null' tags: type: array items: type: string description: Labels assigned to the Feature Flag for categorizing and filtering. example: - reports enabled: type: boolean description: >- Specifies whether the Feature Flag is active for the current environment. example: true default_value: type: boolean description: >- The value returned for users and organizations who don't match any configured targeting rules. example: false created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - name - description - owner - tags - enabled - default_value - created_at - updated_at FlagList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Flag' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: flag_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: flag_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata OrganizationApiKey: type: object properties: object: type: string description: Distinguishes the API Key object. const: api_key id: type: string description: Unique identifier of the API Key. example: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: type: object properties: type: type: string description: The type of the API Key owner. example: organization const: organization id: type: string description: Unique identifier of the API Key owner. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id description: The entity that owns the API Key. name: type: string description: A descriptive name for the API Key. example: Production API Key obfuscated_value: type: string description: An obfuscated representation of the API Key value. example: sk_...3456 last_used_at: type: - string - 'null' format: date-time description: Timestamp of when the API Key was last used. example: null expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permission slugs assigned to the API Key. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at OrganizationApiKeyList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/OrganizationApiKey' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: api_key_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: api_key_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata OrganizationApiKeyWithValue: type: object properties: object: type: string description: Distinguishes the API Key object. const: api_key id: type: string description: Unique identifier of the API Key. example: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: type: object properties: type: type: string description: The type of the API Key owner. example: organization const: organization id: type: string description: Unique identifier of the API Key owner. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id description: The entity that owns the API Key. name: type: string description: A descriptive name for the API Key. example: Production API Key obfuscated_value: type: string description: An obfuscated representation of the API Key value. example: sk_...3456 last_used_at: type: - string - 'null' format: date-time description: Timestamp of when the API Key was last used. example: null expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: '2030-01-01T00:00:00.000Z' permissions: type: array items: type: string description: The permission slugs assigned to the API Key. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' value: type: string format: password description: The full API Key value. Only returned once at creation time. example: sk_abcdefghijklmnop123456 required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at - value ItContact: type: object properties: object: type: string description: The IT Contact object. example: it_contact const: it_contact id: type: string description: The unique ID of the IT Contact. example: it_contact_01HXYZ123456789ABCDEFGHIJ email: type: string format: email description: The email address of the IT Contact. example: it-contact@example.com created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - email - created_at - updated_at ItContactList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/ItContact' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: it_contact_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: it_contact_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata Organization: type: object properties: object: type: string description: Distinguishes the Organization object. const: organization id: type: string description: Unique identifier of the Organization. example: org_01EHWNCE74X7JSDV0X3SZ3KJNY name: type: string description: >- A descriptive name for the Organization. This field does not need to be unique. example: Acme Inc. domains: type: array items: type: object properties: object: type: string description: Distinguishes the organization domain object. const: organization_domain id: type: string description: Unique identifier of the organization domain. example: org_domain_01EHZNVPK2QXHMVWCEDQEKY69A organization_id: type: string description: ID of the parent Organization. example: org_01HE8GSH8FQPASKSY27THRKRBP domain: type: string description: Domain for the organization domain. example: foo-corp.com state: type: string enum: - failed - legacy_verified - pending - unverified - verified description: Verification state of the domain. example: pending verification_prefix: type: string description: The prefix used in DNS verification. example: superapp-domain-verification-z3kjny verification_token: type: string description: Validation token to be used in DNS TXT record. example: m5Oztg3jdK4NJLgs8uIlIprMw verification_strategy: type: string enum: - dns - manual description: Strategy used to verify the domain. example: dns created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - organization_id - domain - created_at - updated_at description: List of Organization Domains. metadata: type: object additionalProperties: type: string maxLength: 600 description: >- Object containing [metadata](/authkit/metadata) key/value pairs associated with the Organization. example: tier: diamond propertyNames: maxLength: 40 maxProperties: 50 external_id: type: - string - 'null' description: The external ID of the Organization. example: 2fe01467-f7ea-4dd2-8b79-c2b4f56d0191 stripe_customer_id: type: string description: The Stripe customer ID of the Organization. example: cus_R9qWAGMQ6nGE7V created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' allow_profiles_outside_organization: type: boolean description: >- Whether the Organization allows profiles outside of its managed domains. example: false deprecated: true required: - object - id - name - domains - metadata - external_id - created_at - updated_at OrganizationList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/Organization' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: org_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: org_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata - list_metadata AuditLogConfiguration: type: object properties: organization_id: type: string description: Unique identifier of the Organization. example: org_01EHZNVPK3SFK441A1RGBFSHRT retention_period_in_days: type: integer description: >- The number of days Audit Log events will be retained before being permanently deleted. example: 30 state: type: string enum: - active - inactive - disabled description: >- The current state of the audit log configuration for the organization. example: active log_stream: type: object properties: id: type: string description: Unique identifier of the Audit Log Stream. example: als_01EHZNVPK3SFK441A1RGBFSHRT type: type: string enum: - AzureSentinel - Datadog - GenericHttps - GoogleCloudStorage - S3 - Snowflake - Splunk description: The type of the Audit Log Stream destination. example: Datadog state: type: string enum: - active - inactive - error - invalid description: The current state of the Audit Log Stream. example: active last_synced_at: type: - string - 'null' description: >- ISO-8601 timestamp of when the last event was successfully synced, or null if no events have been synced. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - id - type - state - last_synced_at - created_at description: >- The Audit Log Stream currently configured for the organization, if any. required: - organization_id - retention_period_in_days - state DataIntegrationCredentials: type: object properties: credentials_type: type: string enum: - shared - custom - organization description: >- The credentials type for this integration (e.g., `shared`, `custom`, or `organization`). example: organization has_credentials: type: boolean description: >- Whether the organization has supplied OAuth credentials for this integration. example: true client_id: type: - string - 'null' description: >- The OAuth client ID supplied by the organization, or `null` when none is configured. example: client_01EHZNVPK3SFK441A1RGBFSHRT client_secret_last_four: type: - string - 'null' description: >- The last four characters of the organization-supplied OAuth client secret, or `null` when none is configured. example: 1a2b redirect_uri: type: string description: >- The redirect URI to register with the provider when configuring the organization-managed OAuth application. example: >- https://api.workos.com/data-integrations/github/dik_01EHZNVPK3SFK441A1RGBFSHRT/callback required: - credentials_type - has_credentials - client_id - client_secret_last_four - redirect_uri description: >- Organization-managed OAuth credential configuration. Present only for integrations whose credentials are supplied by the organization; absent otherwise. DataIntegrationConfigurationResponse: type: object properties: object: type: string description: Distinguishes the data integration configuration object. const: data_integration_configuration id: type: string description: The unique identifier of the data integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: >- The [Organization](/reference/organization) this configuration applies to. example: org_01EHZNVPK3SFK441A1RGBFSHRT slug: type: string description: >- The slug identifier of the provider (e.g., `github`, `slack`, `notion`). example: github name: type: string description: The display name of the data integration. example: GitHub enabled: type: boolean description: >- Whether the integration is enabled for this organization. Reflects the organization override when one exists, otherwise the provider default. example: true scopes: description: >- The OAuth scopes in effect for this organization. Reflects the organization override when one is set, otherwise the provider scopes, or `null` when none are configured. example: - repo - user:email oneOf: - type: array items: type: string - type: 'null' config: type: object additionalProperties: type: string description: >- The provider-specific config values in effect for this organization, keyed by config field. Reflects the organization override for organization-credential providers, otherwise the provider root. Empty when none are configured. example: account: myorg-myaccount created_at: type: string description: The timestamp when the configuration was created. example: '2024-01-15T10:30:00.000Z' updated_at: type: string description: The timestamp when the configuration was last updated. example: '2024-01-15T10:30:00.000Z' credentials: $ref: '#/components/schemas/DataIntegrationCredentials' required: - object - id - organization_id - slug - name - enabled - scopes - config - created_at - updated_at DataIntegrationConfigurationListResponse: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/DataIntegrationConfigurationResponse' description: A list of data integration configurations for the organization. required: - object - data ConfigureDataIntegrationBody: type: object properties: enabled: type: boolean description: Whether the provider is enabled for the organization. example: true scopes: description: >- The OAuth scopes to request for the organization. Pass `null` to inherit the provider scopes. example: - repo - user:email oneOf: - type: array items: type: string - type: 'null' client_id: type: string minLength: 1 description: >- The OAuth client ID of the organization's own application. Must be provided together with `client_secret`, and only for providers whose credentials are supplied by the organization. example: client_01EHZNVPK3SFK441A1RGBFSHRT client_secret: type: string minLength: 1 description: >- The OAuth client secret of the organization's own application. Must be provided together with `client_id`. example: •••••••• config: type: object additionalProperties: type: string description: >- Provider-specific config values to set for the organization, keyed by config field. Only fields the provider declares are accepted, and each value must match that field's pattern. Accepted only for providers whose credentials are organization-managed; for shared or custom credential providers, config belongs on the integration itself (via the data-integrations API) and supplying it here is rejected. example: account: myorg-myaccount DataIntegration: type: object properties: object: type: string description: Distinguishes the Data Integration object. example: data_integration const: data_integration id: type: string description: Unique identifier of the Data Integration. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT slug: type: string description: The provider slug for this Data Integration. example: github integration_type: type: string description: The integration type derived from the provider. example: github ownership: type: string enum: - user - organization description: >- Who owns the Data Integration: `user` when users connect their own accounts, `organization` when organizations connect. Fixed at creation. example: user description: type: - string - 'null' description: An optional description of the Data Integration. example: Production GitHub app enabled: type: boolean description: Whether the Data Integration is enabled. example: true state: type: string enum: - valid - invalid - requested description: The state of the Data Integration. example: valid scopes: description: >- The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used. example: - repo - read:org oneOf: - type: array items: type: string - type: 'null' redirect_uri: type: string description: >- The OAuth redirect URI to register with the provider when configuring the custom application. Empty for `api_key` and `client_credentials` integrations, which run no authorization redirect. example: >- https://api.workos.com/data-integrations/github/dik_01EHZNVPK3SFK441A1RGBFSHRT/callback auth_methods: type: array items: type: string enum: - oauth - api_key - client_credentials description: >- How accounts authenticate with the provider for this Data Integration. example: - oauth credentials: description: >- The integration-level OAuth app credentials. `null` for `api_key` and `client_credentials` integrations, which hold no integration-level credentials (secrets are installed per-tenant). oneOf: - type: object properties: type: type: string enum: - custom - organization description: >- The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (so `client_id`/`redacted_client_secret` are null on the integration itself). example: custom client_id: type: - string - 'null' description: >- The OAuth client ID configured for the provider app. Null for `organization` credentials. example: Iv1.abc123 redacted_client_secret: type: - string - 'null' description: >- The last four characters of the OAuth client secret. The full secret is never returned. Null for `organization` credentials. example: '6789' required: - type - client_id - redacted_client_secret - type: 'null' installation: description: >- The tenant installation created when an API key was supplied at creation time; `null` otherwise. Not populated on list/get responses. example: null oneOf: - type: object properties: id: type: string description: Unique identifier of the installation. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: type: string enum: - compatibility - standard description: >- Whether this is the compatibility connection visible to undeclared clients or a standard connection for plural-aware clients. example: compatibility account_identifier: type: - string - 'null' description: >- A best-effort provider account identifier used for correlation, not connection selection. example: workspace_123 account_display_name: type: - string - 'null' description: A mutable, non-unique display name for this connection. example: Acme production user_id: type: - string - 'null' description: >- The User the API key was installed for. Null on an `organization`-owned integration, whose installations belong to the organization. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The Organization the installation is scoped to (or owned by, on an `organization`-owned integration), or null when unscoped. example: null api_key_last_4: type: - string - 'null' description: >- The last four characters of the stored API key. The full key is never returned. example: cdef required: - id - connection_role - account_identifier - account_display_name - user_id - organization_id - api_key_last_4 - type: 'null' config: type: object additionalProperties: type: string description: >- Provider-specific config values set on the Data Integration (e.g. a Snowflake `account`), keyed by config field. Only fields the provider declares are accepted. example: account: myorg-myaccount custom_provider: description: >- The OAuth definition when this is a custom provider; `null` for built-in providers. oneOf: - type: object properties: name: type: string description: A descriptive name for the custom provider. example: My OAuth App authorization_url: type: - string - 'null' description: The provider's OAuth authorization endpoint. example: https://provider.example.com/oauth/authorize token_url: type: - string - 'null' description: The provider's OAuth token endpoint. example: https://provider.example.com/oauth/token refresh_token_url: type: - string - 'null' description: >- The endpoint used to refresh tokens, if different from the token endpoint. example: https://provider.example.com/oauth/token pkce_enabled: type: boolean description: Whether PKCE is used during the authorization code flow. example: true request_scope_separator: type: string description: The separator used to join requested scopes. example: ' ' scopes_required: type: boolean description: >- Whether at least one scope must be selected when connecting an account. example: false client_secret_required: type: boolean description: Whether a client secret is required for this provider. example: true additional_authorization_parameters: type: object additionalProperties: type: string description: >- Additional static query parameters appended to the authorization request. example: prompt: consent token_body_content_type: type: string description: The Content-Type used when exchanging the token request. example: application/x-www-form-urlencoded authenticate_via: type: string enum: - request_body - basic_auth_header description: >- How client credentials are sent when exchanging authorization codes and refreshing tokens. example: request_body required: - name - authorization_url - token_url - refresh_token_url - pkce_enabled - request_scope_separator - scopes_required - client_secret_required - additional_authorization_parameters - token_body_content_type - authenticate_via - type: 'null' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - slug - integration_type - ownership - description - enabled - state - scopes - redirect_uri - auth_methods - credentials - installation - config - custom_provider - created_at - updated_at DataIntegrationList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/DataIntegration' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: data_integration_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: data_integration_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata ConnectedAccount: type: object properties: object: type: string description: Distinguishes the connected account object. const: connected_account id: type: string description: The unique identifier of the connected account. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: type: string enum: - compatibility - standard description: >- Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order. example: compatibility account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. example: workspace_123 account_display_name: type: - string - 'null' description: >- A mutable, non-unique display name for the provider account connection. example: Acme production user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) identifier associated with this connection. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. example: null scopes: type: array items: type: string description: The OAuth scopes granted for this connection. example: - repo - user:email auth_method: type: string enum: - oauth - api_key - client_credentials description: >- The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. example: oauth api_key_last_4: type: - string - 'null' description: >- The last four characters of the API key, or `null` for OAuth connections. example: null client_id: type: - string - 'null' description: >- The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc client_secret_last_4: type: - string - 'null' description: >- The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`. example: cdef config: type: object additionalProperties: type: string description: >- The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed. example: instance_url: https://example.my.salesforce.com state: type: string enum: - connected - needs_reauthorization - disconnected description: >- The state of the connected account: - `connected`: The connection is active and tokens are valid. - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself. - `disconnected`: The connection has been disconnected. example: connected established_by_user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`. example: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: description: >- Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason: - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials. Additional values may be added; treat an unrecognized value as an unknown reason. example: null oneOf: - type: string const: establishing_member_membership_ended - type: 'null' created_at: type: string description: The timestamp when the connection was created. example: '2024-01-16T14:20:00.000Z' updated_at: type: string description: The timestamp when the connection was last updated. example: '2024-01-16T14:20:00.000Z' warnings: type: array items: type: object properties: code: type: string const: duplicate_account_display_name message: type: string description: A human-readable explanation of the non-blocking warning. example: >- Another connection for this provider and owner has the same label. required: - code - message description: >- Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. required: - object - id - connection_role - account_identifier - account_display_name - user_id - organization_id - scopes - state - created_at - updated_at example: object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: null scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' DataIntegrationFinishConnectionResponse: type: object properties: connected_account: $ref: '#/components/schemas/ConnectedAccount' description: The connected account that was saved. required: - connected_account DataIntegrationAuthorizeUrlResponse: type: object properties: url: type: string description: The OAuth authorization URL to redirect the user to. example: >- https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect state: type: string description: >- Identifies this authorization. WorkOS adds it to `return_to` alongside `connect_code` or `error`. Store it in the user's session with the `code_verifier` and compare it when the user returns. example: 01K8ZQ6Y3J4N5P7R9T2V4W6X8Z completion: type: string description: >- `finish_required` when the request included `code_challenge`: the connection will be held until your app finishes it. Omitted otherwise. If you sent `code_challenge` and this is missing, don't redirect the user. example: finish_required const: finish_required required: - url - state AuthMethodMismatchError: type: object properties: *ref_51 required: *ref_52 DataIntegrationAccessTokenResponse: oneOf: - type: object properties: active: type: boolean description: >- Indicates whether the access token is valid and ready for use, or if reauthorization is required. const: true access_token: type: object properties: object: type: string description: Distinguishes the access token object. const: access_token access_token: type: string description: The OAuth access token for the connected integration. example: gho_16C7e42F292c6912E7710c838347Ae178B4a expires_at: type: - string - 'null' description: >- The ISO-8601 formatted timestamp indicating when the access token expires. example: '2025-12-31T23:59:59.000Z' scopes: type: array items: type: string description: The scopes granted to the access token. example: - repo - user:email missing_scopes: type: array items: type: string description: >- If the integration has requested scopes that aren't present on the access token, they're listed here. example: [] required: - object - access_token - expires_at - scopes - missing_scopes description: >- The [access token](/reference/pipes/access-token) object, present when `active` is `true`. required: - active - access_token - type: object properties: active: type: boolean description: >- Indicates whether the access token is valid and ready for use, or if reauthorization is required. const: false error: type: string enum: - needs_reauthorization - not_installed description: >- - `"not_installed"`: The user does not have the integration installed. - `"needs_reauthorization"`: The user needs to reauthorize the integration. example: not_installed required: - active - error AccountSelectionRequiredError: type: object properties: *ref_53 required: *ref_54 DataIntegrationVendedCredential: discriminator: propertyName: auth_method oneOf: - type: object properties: object: type: string description: Distinguishes the credential object. const: credential auth_method: type: string description: >- The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. x-extensible-enum: - oauth - api_key - client_credentials const: oauth value: type: string format: password description: >- The vended secret. An OAuth access token when `auth_method` is `oauth`, the API key when `api_key`, or the client-credentials access token when `client_credentials`. example: gho_16C7e42F292c6912E7710c838347Ae178B4a expires_at: type: - string - 'null' description: >- The ISO-8601 formatted timestamp indicating when the credential expires, or `null` if it does not expire. Present for `oauth` and `client_credentials` credentials; absent for `api_key`. example: '2025-12-31T23:59:59.000Z' scopes: type: array items: type: string description: >- The scopes granted to the access token. Present for `oauth` and `client_credentials` credentials; absent for `api_key`. example: - repo - user:email missing_scopes: type: array items: type: string description: >- If the integration has requested scopes that aren't present on the access token, they're listed here. Present for `oauth` and `client_credentials` credentials; absent for `api_key`. example: [] metadata: type: object additionalProperties: {} description: >- Non-sensitive fields captured from the provider token response (e.g. Salesforce `instance_url`), as configured for the provider. Captured on OAuth code exchange and refresh, and on each `client_credentials` mint. A field a later OAuth refresh omits keeps its stored value. Present for `oauth` and `client_credentials` credentials; absent for `api_key`. example: &ref_56 instance_url: https://acme.my.salesforce.com config: type: object additionalProperties: type: string description: >- Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint. example: &ref_55 account: myorg-myaccount required: - object - auth_method - value - expires_at - scopes - missing_scopes - metadata - config - type: object properties: object: type: string description: Distinguishes the credential object. const: credential auth_method: type: string description: >- The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. x-extensible-enum: - oauth - api_key - client_credentials const: api_key value: type: string format: password description: The API key secret. example: sk-1234567890abcdef config: type: object additionalProperties: type: string description: >- Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint. example: *ref_55 required: - object - auth_method - value - config - type: object properties: object: type: string description: Distinguishes the credential object. const: credential auth_method: type: string description: >- The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. x-extensible-enum: - oauth - api_key - client_credentials const: client_credentials value: type: string format: password description: The client-credentials access token. example: 00D5g000000XXXX!AQEAQ... expires_at: type: - string - 'null' description: >- The ISO-8601 formatted timestamp indicating when the credential expires. example: '2025-12-31T23:59:59.000Z' scopes: type: array items: type: string description: The scopes granted to the access token. example: - api missing_scopes: type: array items: type: string description: >- If the integration has requested scopes that aren't present on the access token, they're listed here. The scopes granted to a client-credentials token are governed by the connected organization's client application, so the integration's configured scopes are requests or defaults rather than guarantees. example: [] metadata: type: object additionalProperties: {} description: >- Non-sensitive fields captured from the provider token response (e.g. Salesforce `instance_url`), as configured for the provider. Captured on OAuth code exchange and refresh, and on each `client_credentials` mint. A field a later OAuth refresh omits keeps its stored value. Present for `oauth` and `client_credentials` credentials; absent for `api_key`. example: *ref_56 config: type: object additionalProperties: type: string description: >- Provider-declared, non-secret config from the installation snapshot, with current defaults for unset fields. Includes both integration- and installation-scope fields; omits undeclared fields and fields marked secret. Use these values to address a per-tenant host, such as Snowflake's `account` or Zendesk's `subdomain`. Empty when no values are disclosable. Changes to integration or organization pins require reconnecting or explicitly rebinding the connection. Defaults are live and can differ from a cached token's audience until refresh or re-mint. example: *ref_55 required: - object - auth_method - value - expires_at - scopes - missing_scopes - metadata - config DataIntegrationCredentialsResponse: oneOf: - type: object properties: active: type: boolean description: Indicates credentials are available. const: true credential: $ref: '#/components/schemas/DataIntegrationVendedCredential' description: The credential object containing the vended secret. required: - active - credential - type: object properties: active: type: boolean description: Indicates credentials are not available. const: false error: type: string enum: - not_installed - needs_reauthorization description: >- The reason credentials are unavailable. Additional values may be added in the future; handle unknown values gracefully. - `"not_installed"`: The user does not have the integration installed. - `"needs_reauthorization"`: The user needs to reauthorize the integration. example: not_installed x-extensible-enum: - not_installed - needs_reauthorization required: - active - error DataIntegrationsListResponse: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: type: object properties: object: type: string description: Distinguishes the data provider object. const: data_provider id: type: string description: The unique identifier of the provider. example: data_integration_01EHZNVPK3SFK441A1RGBFSHRT name: type: string description: The display name of the provider (e.g., "GitHub", "Slack"). example: GitHub description: type: - string - 'null' description: >- A description of the provider explaining how it will be used, if configured. example: Connect your GitHub account to access repositories. slug: type: string description: >- The slug identifier used in API calls (e.g., `github`, `slack`, `notion`). example: github integration_type: type: string description: The type of integration (e.g., `github`, `slack`). example: github credentials_type: type: string description: The type of credentials used by the provider (e.g., `oauth2`). example: oauth2 scopes: description: >- The OAuth scopes configured for this provider, or `null` if none are configured. example: - repo - user:email oneOf: - type: array items: type: string - type: 'null' auth_methods: type: array items: type: string enum: - oauth - api_key - client_credentials description: >- The authentication methods supported by this provider (`oauth`, `api_key`, `client_credentials`, or a combination). Defaults to `["oauth"]` if absent. example: - oauth connection_owner: type: string enum: - user - organization description: >- Who owns connections made through this provider: `user` for connections owned by individual users, or `organization` for a connection shared by every member of the organization. A provider row can exist before any connected account does. example: user ownership: type: string enum: - userland_user - organization deprecated: true description: >- Use `connection_owner` instead. Legacy spelling of the same value: `userland_user` corresponds to `connection_owner: "user"` and `organization` to `connection_owner: "organization"`. created_at: type: string description: The timestamp when the provider was created. example: '2024-01-15T10:30:00.000Z' updated_at: type: string description: The timestamp when the provider was last updated. example: '2024-01-15T10:30:00.000Z' integrationType: type: string deprecated: true description: Use integration_type instead. credentialsType: type: string deprecated: true description: Use credentials_type instead. createdAt: type: string deprecated: true description: Use created_at instead. updatedAt: type: string deprecated: true description: Use updated_at instead. connected_account: example: &ref_59 object: connected_account id: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: compatibility account_identifier: workspace_123 account_display_name: Acme production user_id: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: null scopes: - repo - user:email auth_method: oauth api_key_last_4: null config: {} state: connected established_by_user_id: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: null created_at: '2024-01-16T14:20:00.000Z' updated_at: '2024-01-16T14:20:00.000Z' userlandUserId: user_01EHZNVPK3SFK441A1RGBFSHRT organizationId: null createdAt: '2024-01-16T14:20:00.000Z' updatedAt: '2024-01-16T14:20:00.000Z' description: >- The user's compatibility [connected account](/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection. oneOf: - type: object properties: object: type: string description: Distinguishes the connected account object. const: connected_account id: type: string description: The unique identifier of the connected account. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: type: string enum: - compatibility - standard description: >- Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order. example: compatibility account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. example: workspace_123 account_display_name: type: - string - 'null' description: >- A mutable, non-unique display name for the provider account connection. example: Acme production user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) identifier associated with this connection. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. example: null scopes: type: array items: type: string description: The OAuth scopes granted for this connection. example: &ref_57 - repo - user:email auth_method: type: string enum: - oauth - api_key - client_credentials description: >- The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. example: oauth api_key_last_4: type: - string - 'null' description: >- The last four characters of the API key, or `null` for OAuth connections. example: null client_id: type: - string - 'null' description: >- The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc client_secret_last_4: type: - string - 'null' description: >- The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`. example: cdef config: type: object additionalProperties: type: string description: >- The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed. example: &ref_58 instance_url: https://example.my.salesforce.com state: type: string enum: - connected - needs_reauthorization - disconnected description: >- The state of the connected account: - `connected`: The connection is active and tokens are valid. - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself. - `disconnected`: The connection has been disconnected. example: connected established_by_user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`. example: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: description: >- Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason: - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials. Additional values may be added; treat an unrecognized value as an unknown reason. example: null oneOf: - type: string const: establishing_member_membership_ended - type: 'null' created_at: type: string description: The timestamp when the connection was created. example: '2024-01-16T14:20:00.000Z' updated_at: type: string description: The timestamp when the connection was last updated. example: '2024-01-16T14:20:00.000Z' warnings: type: array items: type: object properties: code: type: string const: duplicate_account_display_name message: type: string description: >- A human-readable explanation of the non-blocking warning. example: >- Another connection for this provider and owner has the same label. required: - code - message description: >- Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. userlandUserId: type: - string - 'null' deprecated: true description: Use `user_id` instead. organizationId: type: - string - 'null' deprecated: true description: Use `organization_id` instead. createdAt: type: string deprecated: true description: Use `created_at` instead. updatedAt: type: string deprecated: true description: Use `updated_at` instead. required: - object - id - connection_role - account_identifier - account_display_name - user_id - organization_id - scopes - state - created_at - updated_at - userlandUserId - organizationId - createdAt - updatedAt - type: 'null' connected_accounts: type: array items: type: object properties: object: type: string description: Distinguishes the connected account object. const: connected_account id: type: string description: The unique identifier of the connected account. example: data_installation_01EHZNVPK3SFK441A1RGBFSHRT connection_role: type: string enum: - compatibility - standard description: >- Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order. example: compatibility account_identifier: type: - string - 'null' description: >- A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. example: workspace_123 account_display_name: type: - string - 'null' description: >- A mutable, non-unique display name for the provider account connection. example: Acme production user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) identifier associated with this connection. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: - string - 'null' description: >- The [Organization](/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. example: null scopes: type: array items: type: string description: The OAuth scopes granted for this connection. example: *ref_57 auth_method: type: string enum: - oauth - api_key - client_credentials description: >- The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. example: oauth api_key_last_4: type: - string - 'null' description: >- The last four characters of the API key, or `null` for OAuth connections. example: null client_id: type: - string - 'null' description: >- The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. example: 3MVG9dZJodJWxft2VoStSCVwPFsx0eDcpVc client_secret_last_4: type: - string - 'null' description: >- The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`. example: cdef config: type: object additionalProperties: type: string description: >- The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed. example: *ref_58 state: type: string enum: - connected - needs_reauthorization - disconnected description: >- The state of the connected account: - `connected`: The connection is active and tokens are valid. - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself. - `disconnected`: The connection has been disconnected. example: connected established_by_user_id: type: - string - 'null' description: >- The [User](/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`. example: user_01EHZNVPK3SFK441A1RGBFSHRT state_reason: description: >- Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason: - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials. Additional values may be added; treat an unrecognized value as an unknown reason. example: null oneOf: - type: string const: establishing_member_membership_ended - type: 'null' created_at: type: string description: The timestamp when the connection was created. example: '2024-01-16T14:20:00.000Z' updated_at: type: string description: The timestamp when the connection was last updated. example: '2024-01-16T14:20:00.000Z' warnings: type: array items: type: object properties: code: type: string const: duplicate_account_display_name message: type: string description: >- A human-readable explanation of the non-blocking warning. example: >- Another connection for this provider and owner has the same label. required: - code - message description: >- Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. userlandUserId: type: - string - 'null' deprecated: true description: Use `user_id` instead. organizationId: type: - string - 'null' deprecated: true description: Use `organization_id` instead. createdAt: type: string deprecated: true description: Use `created_at` instead. updatedAt: type: string deprecated: true description: Use `updated_at` instead. required: - object - id - connection_role - account_identifier - account_display_name - user_id - organization_id - scopes - state - created_at - updated_at - userlandUserId - organizationId - createdAt - updatedAt example: *ref_59 description: >- The user's connected accounts for this provider in the requested ownership context. This contains only the compatibility connection unless `supports_multiple_connections` is `true`. required: - object - id - name - description - slug - integration_type - credentials_type - scopes - connection_owner - ownership - created_at - updated_at - integrationType - credentialsType - createdAt - updatedAt - connected_account - connected_accounts description: >- A list of [providers](/reference/pipes/provider), each including the legacy `connected_account` field and the additive `connected_accounts` collection. required: - object - data PortalLinkResponse: type: object properties: link: type: string format: password description: An ephemeral link to initiate the Admin Portal. example: https://setup.workos.com/init?apiToken=01EHZNVPK3SFK441A1RGBFSHRT required: - link RadarChallenge: type: object properties: object: type: string description: Distinguishes the Radar Challenge object. const: radar_challenge id: type: string description: The unique ID of the Radar Challenge. example: radar_challenge_01HWZBQZY2M3AMQW166Q22K88F type: type: string description: The type of the Radar challenge. example: email const: email user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the Radar Challenge code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' code: type: string format: password description: The code used to verify the Radar Challenge. example: '123456' required: - object - id - type - user_id - email - expires_at - created_at - updated_at - code SendRadarSmsChallengeResponse: type: object properties: verification_id: type: string description: >- The ID of the SMS verification. Pass this to the authenticate endpoint to verify the code. example: vrf_01HXYZ123456789ABCDEFGHIJ phone_number: type: string description: The phone number the verification code was sent to. example: '+15555550123' required: - verification_id - phone_number RadarStandaloneResponse: type: object properties: verdict: type: string enum: - allow - block - challenge description: The verdict of the risk assessment. example: block reason: type: string description: A human-readable reason for the verdict. example: Detected enabled Radar control attempt_id: type: string description: Unique identifier of the authentication attempt. example: radar_att_01HZBC6N1EB1ZY7KG32X control: type: string enum: - bot_detection - brute_force_attack - impossible_travel - repeat_sign_up - stale_account - unrecognized_device - restriction description: >- The Radar control that triggered the verdict. Only present if the verdict is `block` or `challenge`. example: bot_detection blocklist_type: type: string enum: - ip_address - domain - email - device - user_agent - device_fingerprint - country description: >- The type of blocklist entry that triggered the verdict. Only present if the control is `restriction`. example: ip_address required: - verdict - reason - attempt_id RadarListEntryAlreadyPresentResponse: type: object properties: message: type: string description: A message indicating the entry already exists. example: Entry already present in list required: - message AuthkitOauthResource: type: object properties: object: type: string description: The object type. const: authkit_oauth_resource id: type: string description: The ID of the MCP resource indicator. example: authkit_oauth_resource_01EHZNVPK3SFK441A1RGBFSHRT uri: type: string description: The resource URI. example: https://api.example.com default: type: boolean description: >- Whether this is the default MCP resource indicator for the environment. example: false created_at: type: string description: The timestamp when the MCP resource indicator was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the MCP resource indicator was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - uri - default - created_at - updated_at RedirectUri: type: object properties: object: type: string description: The object type. const: redirect_uri id: type: string description: The ID of the redirect URI. example: redir_01EHZNVPK3SFK441A1RGBFSHRT uri: type: string description: The redirect URI. example: https://example.com/callback default: type: boolean description: Whether this is the default redirect URI. example: true created_at: type: string description: The timestamp when the redirect URI was created. example: '2026-01-15T12:00:00.000Z' updated_at: type: string description: The timestamp when the redirect URI was last updated. example: '2026-01-15T12:00:00.000Z' required: - object - id - uri - default - created_at - updated_at SamlIdpSigningCertificate: type: object properties: object: type: string description: Distinguishes the SAML Identity Provider signing certificate object. const: saml_idp_signing_certificate id: type: string description: Unique identifier for the Identity Provider signing certificate. example: saml_x509_cert_01E4ZCR3C56J083X43JQXF3JK5 value: type: string description: The PEM-encoded public X.509 certificate. example: '-----BEGIN CERTIFICATE-----MIIC...-----END CERTIFICATE-----' not_before: format: date-time type: - string - 'null' description: When the certificate becomes valid. example: '2026-01-15T12:00:00.000Z' not_after: format: date-time type: - string - 'null' description: When the certificate expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - value - not_before - not_after - created_at SamlIdpSigningCertificateList: type: object properties: object: type: string example: list const: list data: type: array items: $ref: '#/components/schemas/SamlIdpSigningCertificate' description: >- Every Identity Provider signing certificate on the Connection, including expired ones, oldest first. required: - object - data SamlSpEncryptionCertificate: type: object properties: object: type: string description: >- Distinguishes the SAML Service Provider encryption certificate object. const: saml_sp_encryption_certificate id: type: string description: >- Unique identifier for the Service Provider encryption key pair. WorkOS holds the corresponding private key, which is never exposed. example: saml_enc_key_pair_01E4ZCR3C56J083X43JQXF3JK5 value: type: string description: The PEM-encoded public X.509 certificate. example: '-----BEGIN CERTIFICATE-----MIIC...-----END CERTIFICATE-----' not_before: format: date-time type: - string - 'null' description: When the certificate becomes valid. example: '2026-01-15T12:00:00.000Z' not_after: format: date-time type: - string - 'null' description: When the certificate expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - value - not_before - not_after - created_at SamlSpEncryptionCertificateList: type: object properties: object: type: string example: list const: list data: type: array items: $ref: '#/components/schemas/SamlSpEncryptionCertificate' description: >- Every Service Provider encryption certificate on the Connection, including expired ones. required: - object - data SamlSpSigningCertificate: type: object properties: object: type: string description: Distinguishes the SAML Service Provider signing certificate object. const: saml_sp_signing_certificate id: type: string description: >- Unique identifier for the Service Provider signing key pair. WorkOS holds the corresponding private key, which is never exposed. example: saml_party_trust_01E4ZCR3C56J083X43JQXF3JK5 value: type: string description: The PEM-encoded public X.509 certificate. example: '-----BEGIN CERTIFICATE-----MIIC...-----END CERTIFICATE-----' not_before: format: date-time type: - string - 'null' description: When the certificate becomes valid. example: '2026-01-15T12:00:00.000Z' not_after: format: date-time type: - string - 'null' description: When the certificate expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - value - not_before - not_after - created_at Team: type: object properties: object: type: string description: Distinguishes the team object. const: team id: type: string description: Unique identifier of the team. example: team_01JX9AN6E02HAG2Q2CKGC1XT5W name: type: string description: The name of the team. example: Example Team production_state: type: string enum: - Active - Inactive - Suspended - Deleting description: >- Whether the team can host production environments. `Active` means billing is set up. `Inactive` means a team admin must add a payment method in the WorkOS Dashboard. `Suspended` and `Deleting` mean the team can't be provisioned into. example: Active production_enabled_at: type: - string - 'null' format: date-time description: >- The timestamp when production was enabled for the team, or `null` if it never has been. example: '2024-01-01T00:00:00.000Z' created_at: type: string format: date-time description: The timestamp when the team was created. example: '2024-01-01T00:00:00.000Z' updated_at: type: string format: date-time description: The timestamp when the team was last updated. example: '2024-01-01T00:00:00.000Z' required: - object - id - name - production_state - production_enabled_at - created_at - updated_at UserlandUserAuthenticationFactorList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/AuthenticationFactor' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: auth_factor_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: auth_factor_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata UserlandUserAuthenticationFactorEnrollResponse: type: object properties: authentication_factor: $ref: '#/components/schemas/AuthenticationFactorEnrolled' description: >- The [authentication factor](/reference/authkit/mfa/authentication-factor) object that represents the additional authentication method used on top of the existing authentication strategy. authentication_challenge: $ref: '#/components/schemas/AuthenticationChallenge' description: >- The [authentication challenge](/reference/authkit/mfa/authentication-challenge) object that is used to complete the authentication process. required: - authentication_factor - authentication_challenge MagicAuth: type: object properties: object: type: string description: Distinguishes the Magic Auth object. const: magic_auth id: type: string description: The unique ID of the Magic Auth code. example: magic_auth_01HWZBQZY2M3AMQW166Q22K88F user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the Magic Auth code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' code: type: string format: password description: The code used to verify the Magic Auth code. example: '123456' required: - object - id - user_id - email - expires_at - created_at - updated_at - code UserlandUserInvite: type: object properties: object: type: string description: Distinguishes the invitation object. const: invitation id: type: string description: The unique ID of the invitation. example: invitation_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the recipient. example: marcelina.davis@example.com state: type: string enum: - pending - accepted - expired - revoked description: The state of the invitation. example: pending accepted_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was accepted, or null if not yet accepted. example: null revoked_at: format: date-time type: - string - 'null' description: >- The timestamp when the invitation was revoked, or null if not revoked. example: null expires_at: format: date-time type: string description: The timestamp when the invitation expires. example: '2026-01-15T12:00:00.000Z' organization_id: type: - string - 'null' description: >- The ID of the [organization](/reference/organization) that the recipient will join. example: org_01E4ZCR3C56J083X43JQXF3JK5 inviter_user_id: type: - string - 'null' description: The ID of the user who invited the recipient, if provided. example: user_01HYGBX8ZGD19949T3BM4FW1C3 accepted_user_id: type: - string - 'null' description: The ID of the user who accepted the invitation, once accepted. example: null role_slug: type: - string - 'null' description: >- Slug of the role the invitee will be assigned on acceptance. Reflects the current role on the invitee's organization membership. null when the invitation has no associated organization. example: admin created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' token: type: string description: The token used to accept the invitation. example: Z1uX3RbwcIl5fIGJJJCXXisdI accept_invitation_url: type: string format: password description: The URL where the recipient can accept the invitation. example: >- https://your-app.com/invite?invitation_token=Z1uX3RbwcIl5fIGJJJCXXisdI required: - object - id - email - state - accepted_at - revoked_at - expires_at - organization_id - inviter_user_id - accepted_user_id - role_slug - created_at - updated_at - token - accept_invitation_url UserlandUserInviteList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/UserlandUserInvite' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: invitation_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: invitation_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata UserlandUserOrganizationMembership: type: object properties: object: type: string description: Distinguishes the organization membership object. const: organization_membership id: type: string description: The unique ID of the organization membership. example: om_01HXYZ123456789ABCDEFGHIJ user_id: type: string description: The ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 organization_id: type: string description: The ID of the organization which the user belongs to. example: org_01EHZNVPK3SFK441A1RGBFSHRT status: type: string enum: - active - inactive - pending description: >- The status of the organization membership. One of `active`, `inactive`, or `pending`. example: active directory_managed: type: boolean description: >- Whether this organization membership is managed by a directory sync connection. example: false organization_name: type: string description: The name of the organization which the user belongs to. example: Acme Corp custom_attributes: type: object additionalProperties: {} description: >- An object containing IdP-sourced attributes from the linked [Directory User](/reference/directory-sync/directory-user) or [SSO Profile](/reference/sso/profile). Directory User attributes take precedence when both are linked. example: department: Engineering title: Developer Experience Engineer location: Brooklyn created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' role: $ref: '#/components/schemas/SlimRole' description: The primary role assigned to the user within the organization. roles: type: array items: $ref: '#/components/schemas/SlimRole' description: The list of roles assigned to the user within the organization. user: $ref: '#/components/schemas/UserlandUser' description: The user that belongs to the organization through this membership. required: - object - id - user_id - organization_id - status - directory_managed - created_at - updated_at - role - roles - user UserlandUserOrganizationMembershipList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/UserlandUserOrganizationMembership' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: om_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: om_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata UserApiKey: type: object properties: object: type: string description: Distinguishes the API Key object. const: api_key id: type: string description: Unique identifier of the API Key. example: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: type: object properties: type: type: string description: The type of the API Key owner. example: user const: user id: type: string description: Unique identifier of the API Key owner. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: Unique identifier of the organization the API Key can access. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id - organization_id description: The entity that owns the API Key. name: type: string description: A descriptive name for the API Key. example: Production API Key obfuscated_value: type: string description: An obfuscated representation of the API Key value. example: sk_...3456 last_used_at: type: - string - 'null' format: date-time description: Timestamp of when the API Key was last used. example: null expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: null permissions: type: array items: type: string description: The permission slugs assigned to the API Key. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at UserApiKeyList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/UserApiKey' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: api_key_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: api_key_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata UserApiKeyWithValue: type: object properties: object: type: string description: Distinguishes the API Key object. const: api_key id: type: string description: Unique identifier of the API Key. example: api_key_01EHZNVPK3SFK441A1RGBFSHRT owner: type: object properties: type: type: string description: The type of the API Key owner. example: user const: user id: type: string description: Unique identifier of the API Key owner. example: user_01EHZNVPK3SFK441A1RGBFSHRT organization_id: type: string description: Unique identifier of the organization the API Key can access. example: org_01EHZNVPK3SFK441A1RGBFSHRT required: - type - id - organization_id description: The entity that owns the API Key. name: type: string description: A descriptive name for the API Key. example: Production API Key obfuscated_value: type: string description: An obfuscated representation of the API Key value. example: sk_...3456 last_used_at: type: - string - 'null' format: date-time description: Timestamp of when the API Key was last used. example: null expires_at: type: - string - 'null' format: date-time description: >- Timestamp when the API Key expires. Null means the key does not expire. example: '2030-01-01T00:00:00.000Z' permissions: type: array items: type: string description: The permission slugs assigned to the API Key. example: - posts:read - posts:write created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' value: type: string format: password description: The full API Key value. Only returned once at creation time. example: sk_abcdefghijklmnop123456 required: - object - id - owner - name - obfuscated_value - last_used_at - expires_at - permissions - created_at - updated_at - value UserlandUserList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/UserlandUser' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: user_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: user_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata EmailVerification: type: object properties: object: type: string description: Distinguishes the email verification object. const: email_verification id: type: string description: The unique ID of the email verification code. example: email_verification_01E4ZCR3C56J083X43JQXF3JK5 user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the email verification code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' code: type: string format: password description: The code used to verify the email. example: '123456' required: - object - id - user_id - email - expires_at - created_at - updated_at - code SendVerificationEmailResponse: type: object properties: user: $ref: '#/components/schemas/UserlandUser' description: The user to whom the verification email was sent. required: - user VerifyEmailResponse: type: object properties: user: $ref: '#/components/schemas/UserlandUser' description: The user whose email was verified. required: - user PasswordReset: type: object properties: object: type: string description: Distinguishes the password reset object. const: password_reset id: type: string description: The unique ID of the password reset object. example: password_reset_01E4ZCR3C56J083X43JQXF3JK5 user_id: type: string description: The unique ID of the user. example: user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user. example: marcelina.davis@example.com expires_at: format: date-time type: string description: The timestamp when the password reset token expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: The timestamp when the password reset token was created. example: '2026-01-15T12:00:00.000Z' password_reset_token: type: string description: The token used to reset the password. example: Z1uX3RbwcIl5fIGJJJCXXisdI password_reset_url: type: string format: password description: The URL where the user can reset their password. example: https://your-app.com/reset-password?token=Z1uX3RbwcIl5fIGJJJCXXisdI required: - object - id - user_id - email - expires_at - created_at - password_reset_token - password_reset_url ResetPasswordResponse: type: object properties: user: $ref: '#/components/schemas/UserlandUser' description: The user whose password was reset. required: - user EmailChange: type: object properties: object: type: string description: Distinguishes the email change object. const: email_change user: $ref: '#/components/schemas/UserlandUser' new_email: type: string description: The new email address the user is changing to. example: new.email@example.com expires_at: format: date-time type: string description: The timestamp when the email change code expires. example: '2026-01-15T12:00:00.000Z' created_at: format: date-time type: string description: The timestamp when the email change challenge was created. example: '2026-01-15T12:00:00.000Z' required: - object - user - new_email - expires_at - created_at UserlandAuthenticateResponse: type: object properties: user: $ref: '#/components/schemas/UserlandUser' description: The corresponding [user](/reference/authkit/user) object. organization_id: type: string description: The ID of the organization the user selected to sign in to. example: org_01H945H0YD4F97JN9MATX7BYAG authkit_authorization_code: type: string format: password description: >- An authorization code that can be exchanged for tokens by a different application. example: authkit_authz_code_abc123 access_token: type: string description: A JWT containing information about the current session. example: eyJhb.nNzb19vaWRjX2tleV9.lc5Uk4yWVk5In0 refresh_token: type: string description: >- [Exchange this token](/reference/authkit/authentication/refresh-token) for a new access token. example: yAjhKk123NLIjdrBdGZPf8pLIDvK authentication_method: description: The authentication method used to initiate the session. example: SSO type: string enum: - SSO - Password - Passkey - AppleOAuth - BitbucketOAuth - CrossAppAuth - ExternalAuth - GitHubOAuth - GitLabOAuth - GoogleOAuth - IntuitOAuth - LinkedInOAuth - MicrosoftOAuth - SalesforceOAuth - SlackOAuth - VercelMarketplaceOAuth - VercelOAuth - XeroOAuth - MagicAuth - Impersonation - MigratedSession impersonator: type: object properties: email: type: string description: >- The email address of the WorkOS Dashboard user who is impersonating the user. example: admin@foocorp.com reason: type: - string - 'null' description: >- The justification the impersonator gave for impersonating the user. example: Investigating an issue with the customer's account. required: - email - reason description: >- Information about the impersonator if this session was created via impersonation. oauth_tokens: type: object properties: provider: type: string description: The OAuth provider used for authentication. example: GoogleOAuth refresh_token: type: string description: The refresh token from the OAuth provider. example: 1//04g... access_token: type: string description: The access token from the OAuth provider. example: ya29.a0ARrdaM... expires_at: type: integer description: The timestamp at which the access token expires. example: 1735141800 scopes: type: array items: type: string description: A list of OAuth scopes for which the access token is authorized. example: - profile - email - openid required: - provider - refresh_token - access_token - expires_at - scopes description: The OAuth tokens from the identity provider, if applicable. required: - user - access_token - refresh_token DeviceAuthorizationResponse: type: object properties: device_code: type: string format: password description: The device verification code. example: CVE2wOfIFK4vhmiDBntpX9s8KT2f0qngpWYL0LGy9HxYgBRXUKIUkZB9BgIFho5h user_code: type: string format: password description: The end-user verification code. example: BCDF-GHJK verification_uri: type: string format: uri description: The end-user verification URI. example: https://authkit_domain/device verification_uri_complete: type: string format: uri description: Verification URI that includes the user code. example: https://authkit_domain/device?user_code=BCDF-GHJK expires_in: type: number description: Lifetime in seconds of the codes. example: 300 interval: type: number description: Minimum polling interval in seconds. example: 5 required: - device_code - user_code - verification_uri - expires_in Waitlist: type: object properties: object: type: string description: Distinguishes the Waitlist object. const: waitlist id: type: string description: The unique ID of the Waitlist. example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - created_at - updated_at WaitlistEntry: type: object properties: id: type: string description: The unique ID of the waitlist entry. example: wl_user_01E4ZCR3C56J083X43JQXF3JK5 email: type: string description: The email address of the user on the waitlist. example: marcelina.davis@example.com state: type: string enum: - pending - approved - denied description: The state of the waitlist entry. example: pending approved_at: format: date-time type: - string - 'null' description: >- The timestamp when the entry was approved, or null if not yet approved. example: null additional_fields: type: object additionalProperties: type: string description: >- Additional fields submitted when the user joined the waitlist. Values are user-provided — treat them as untrusted input when rendering or exporting. example: company: Example Corp waitlist_id: type: - string - 'null' description: The unique ID of the waitlist the entry belongs to. example: waitlist_01E4ZCR3C56J083X43JQXF3JK5 created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' object: type: string description: Distinguishes the Waitlist Entry object. const: waitlist_entry required: - id - email - state - approved_at - created_at - updated_at - object WebhookEndpointJson: type: object properties: object: type: string description: Distinguishes the Webhook Endpoint object. const: webhook_endpoint id: type: string description: Unique identifier of the Webhook Endpoint. example: we_0123456789 endpoint_url: type: string description: The URL to which webhooks are sent. example: https://example.com/webhooks secret: type: string description: The secret used to sign webhook payloads. example: whsec_0FWAiVGkEfGBqqsJH4aNAGBJ4 status: type: string enum: - enabled - disabled description: Whether the Webhook Endpoint is enabled or disabled. example: enabled events: type: array items: type: string description: The events that the Webhook Endpoint is subscribed to. example: - user.created - dsync.user.created created_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' updated_at: format: date-time type: string description: An ISO 8601 timestamp. example: '2026-01-15T12:00:00.000Z' required: - object - id - endpoint_url - secret - status - events - created_at - updated_at WebhookEndpointList: type: object properties: object: type: string description: Indicates this is a list response. const: list data: type: array items: $ref: '#/components/schemas/WebhookEndpointJson' description: The list of records for the current page. list_metadata: type: object properties: before: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the start of the list. example: we_01HXYZ123456789ABCDEFGHIJ after: type: - string - 'null' description: >- An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. example: we_01HXYZ987654321KJIHGFEDCBA required: - before - after description: Pagination cursors for navigating between pages of results. required: - object - data - list_metadata WidgetSessionTokenResponse: type: object properties: token: type: string description: The widget session token. example: eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24... required: - token ClientApiTokenResponse: type: object properties: token: type: string description: The Widgets API token. example: eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24... required: - token SsoAuthorizeUrlResponse: type: object properties: url: type: string format: uri description: An OAuth 2.0 authorization URL. example: >- https://accounts.google.com/o/oauth2/v2/auth?client_id=example&redirect_uri=https%3A%2F%2Fapi.workos.com%2Fsso%2Fcallback&response_type=code&scope=openid%20profile%20email required: - url Profile: type: object properties: object: type: string description: Distinguishes the profile object. example: profile const: profile id: type: string description: Unique identifier of the profile. example: prof_01DMC79VCBZ0NY2099737PSVF1 organization_id: type: - string - 'null' description: The ID of the organization the user belongs to. example: org_01EHQMYV6MBK39QC5PZXHY59C3 connection_id: type: string description: The ID of the SSO connection used for authentication. example: conn_01E4ZCR3C56J083X43JQXF3JK5 connection_type: description: The type of SSO connection. example: OktaSAML type: string enum: - Pending - ADFSSAML - AdpOidc - AppleOAuth - Auth0Migration - Auth0SAML - AzureSAML - BitbucketOAuth - CasSAML - ClassLinkSAML - CleverOIDC - CloudflareSAML - CyberArkSAML - DuoSAML - EntraIdOIDC - GenericOIDC - GenericSAML - GitHubOAuth - GitLabOAuth - GoogleOAuth - GoogleOIDC - GoogleSAML - IntuitOAuth - JumpCloudSAML - KeycloakSAML - LastPassSAML - LinkedInOAuth - LoginGovOidc - MagicLink - MicrosoftOAuth - MiniOrangeSAML - NetIqSAML - OktaOIDC - OktaSAML - OneLoginSAML - OracleSAML - PingFederateSAML - PingOneSAML - RipplingSAML - SalesforceSAML - ShibbolethGenericSAML - ShibbolethSAML - SimpleSamlPhpSAML - SalesforceOAuth - SlackOAuth - TestIdp - VercelMarketplaceOAuth - VercelOAuth - VMwareSAML - XeroOAuth idp_id: type: string description: The user's unique identifier from the identity provider. example: '103456789012345678901' email: type: string description: The user's email address. example: todd@example.com first_name: type: - string - 'null' description: The user's first name. example: Todd last_name: type: - string - 'null' description: The user's last name. example: Rundgren name: type: - string - 'null' description: The user's full name. example: Todd Rundgren role: description: >- The role assigned to the user within the organization, if applicable. oneOf: - $ref: '#/components/schemas/SlimRole' - type: 'null' roles: description: >- The roles assigned to the user within the organization, if applicable. oneOf: - type: array items: $ref: '#/components/schemas/SlimRole' - type: 'null' groups: type: array items: type: string description: >- The groups the user belongs to, as returned by the identity provider. example: - Engineering - Admins custom_attributes: type: object additionalProperties: {} description: >- Custom attribute mappings defined for the connection, returned as key-value pairs. raw_attributes: type: object additionalProperties: {} description: >- The complete set of raw attributes returned by the identity provider. required: - object - id - organization_id - connection_id - connection_type - idp_id - email - first_name - last_name - name - raw_attributes SsoTokenResponse: type: object properties: token_type: type: string description: The type of token issued. const: Bearer access_token: type: string description: >- An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime. example: eyJhbGciOiJSUzI1NiIsImtpZCI6InNzby... expires_in: type: integer description: The lifetime of the access token in seconds. example: 600 profile: $ref: '#/components/schemas/Profile' description: The user profile returned by the identity provider. oauth_tokens: type: object properties: provider: type: string description: The OAuth provider used for authentication. example: GoogleOAuth refresh_token: type: string description: The refresh token from the OAuth provider. example: 1//04g... access_token: type: string description: The access token from the OAuth provider. example: ya29.a0ARrdaM... expires_at: type: integer description: The timestamp at which the access token expires. example: 1735141800 scopes: type: array items: type: string description: A list of OAuth scopes for which the access token is authorized. example: - profile - email - openid required: - provider - refresh_token - access_token - expires_at - scopes description: OAuth tokens issued by the identity provider, if available. required: - token_type - access_token - expires_in - profile SsoLogoutAuthorizeResponse: type: object properties: logout_url: type: string format: password description: >- The URL to redirect the user to in order to log out ([Logout Redirect](/reference/sso/logout) endpoint ready to use). example: https://auth.workos.com/sso/logout?token=eyJhbGciOiJSUzI1NiJ9 logout_token: type: string description: >- The logout token to be used in the [Logout Redirect](/reference/sso/logout) endpoint. example: >- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9maWxlX2lkIjoicHJvZl8wMUdXUTFHMEgyRk02QVNFRjBIUzEzSENXOS0zMDRrZzAzZyIsImV4cCI6IjE1MTYyMzkwMjIifQ.Wru9Qlnf5DpohtGCKhZU4cVOd3zpiu7QQ-XEX--5A_4 required: - logout_url - logout_token JwksResponse: type: object properties: keys: type: array items: type: object properties: alg: type: string description: Algorithm. const: RS256 kty: type: string description: Key type. const: RSA use: type: string description: Key use (signature). const: sig x5c: type: array items: type: string description: X.509 certificate chain. example: - MIIDQjCCAiqgAwIBAgIGATz/FuLiMA0GCSqGSIb3DQEBCwUA... 'n': type: string description: RSA modulus. example: 0vx7agoebGc...eKnNs e: type: string description: RSA exponent. example: AQAB kid: type: string description: Key ID. example: key_01HXYZ123456789ABCDEFGHIJ x5t#S256: type: string description: X.509 certificate SHA-256 thumbprint. example: ZjQzYjI0OT...NmNjU0 required: - alg - kty - use - x5c - 'n' - e - kid - x5t#S256 description: The public keys used for verifying access tokens. required: - keys security: - bearer: []