> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage WorkOS auth, roles, and audit logs from Guild agents

> Connect Guild agents to WorkOS to manage authentication factors, permissions, roles, audit logs, agent blueprints, API keys, and Connect Applications.

Integrations · WorkOS

A Guild agent can manage WorkOS identity infrastructure: enrolling authentication factors, assigning fine-grained permissions, administering agent blueprints, and handling audit log exports. Guild stores the WorkOS API key server-side and injects it as a bearer token, so agent code never sees the secret. Credential policies let you limit which WorkOS operations each agent can call, and every request is auditable through Guild's credential proxy.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use WorkOS.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect WorkOS to your first agent.

## What the WorkOS integration exposes

The tools cover authentication factors and challenges, organization and environment roles, fine-grained permissions, resource-based authorization, agent blueprints and sessions, API key lifecycle management, Connect Applications and their client secrets, audit log events and exports, and MCP resource indicators. Tools are prefixed with `workos_` and imported from the `guildai~workos` package. Use [pick()](https://docs.guild.ai/sdk/tools.md#selecting-specific-tools) to include only the tools your agent needs.

## How it works

**1. Open credentials and connect**

In Guild, go to Access & setup > Credentials, click Connect, and select workos. See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped options.

**2. Paste your WorkOS API key**

Enter the key in the API Key field. Guild stores it server-side and sends it as a bearer token in the Authorization header on every request.

**3. Import tools and build**

Import `WorkosTools` from `@guildai-services/guildai~workos` and spread it into your agent's tools object. Use [pick()](https://docs.guild.ai/sdk/tools.md#selecting-specific-tools) to restrict the agent to the operations it actually needs.

## Why WorkOS access needs governing

WorkOS tools can create and revoke agent blueprints, mint access tokens, delete API keys, modify role assignments, and export audit logs. Guild's [credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild. Rules can target specific workos\_ operations by name or glob pattern, scope access to particular agents or workspaces, and restrict HTTP methods to prevent write operations on read-only agents.

Guild injects the API key server-side only after the policy check passes, so agents cannot bypass it. You can scope a WorkOS credential to a single agent using the dedicated credential option, keeping it out of every other workspace and agent. Requests that match no ALLOW rule are denied by default once you remove the auto-created allow-all policy. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) and [Credentials](https://docs.guild.ai/platform/credentials.md) for setup details.

## About the WorkOS integration

Agents can manage WorkOS identity infrastructure including authentication factors, organization roles, fine-grained permissions, and resource-based authorization. They can administer agent blueprints and credentials, handle audit log events and exports, and manage Connect Applications and API keys. The integration is `guildai~workos`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect WorkOS**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **workos**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { WorkosTools } from "@guildai-services/guildai~workos"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with WorkOS.",
  tools: { ...WorkosTools },
})
```

### Selecting specific tools

Tools are named with the `workos_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~workos`:

> [accordion] All 274 tools
>
> | Tool | What it does |
> | - | - |
> | `workos_agent_admin_controller_get_registration` | Retrieve the details of an agent registration by ID. |
> | `workos_agent_admin_controller_link_claim_attempt_to_external_user` | Link an external user to a claim attempt and retrieve the code needed for the agent to complete the claim. |
> | `workos_agent_admin_controller_revoke_registration` | Revoke an agent registration by ID. |
> | `workos_agent_admin_controller_validate_credential` | Validate an agent credential — an API key or access token — against the environment of the API key used to authenticate the request. |
> | `workos_agent_blueprints_controller_create` | 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. |
> | `workos_agent_blueprints_controller_delete` | Deletes an agent blueprint along with its configuration, instances, and sessions. |
> | `workos_agent_blueprints_controller_get` | Retrieves an agent blueprint by ID. |
> | `workos_agent_blueprints_controller_list` | Lists the agent blueprints in the current environment. |
> | `workos_agent_blueprints_controller_update` | Updates an agent blueprint. |
> | `workos_agent_blueprints_token_controller_mint_token` | Mint an agent access token (and backing session) from an agent blueprint. |
> | `workos_agent_blueprints_token_controller_validate_token` | 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… |
> | `workos_agent_instances_controller_delete` | Deletes an agent instance along with its sessions, invalidating their refresh tokens. |
> | `workos_agent_instances_controller_get` | Retrieves an agent instance by ID. |
> | `workos_agent_instances_controller_list` | Lists the agent instances in the current environment. |
> | `workos_agent_instance_sessions_controller_get` | Retrieves an agent instance session by ID. |
> | `workos_agent_instance_sessions_controller_list` | Lists the agent instance sessions in the current environment. |
> | `workos_agent_instance_sessions_controller_revoke` | Revokes an agent instance session, invalidating its refresh token and every access token minted under it. |
> | `workos_api_keys_controller_delete` | Permanently deletes an API key. |
> | `workos_api_keys_controller_expire` | Expire an API key immediately, schedule a future expiration, or clear a scheduled future expiration. |
> | `workos_api_keys_controller_validate_api_key` | Validate an API key value and return the API key object if valid. |
> | `workos_application_credentials_controller_create` | Create new secrets for a Connect Application. |
> | `workos_application_credentials_controller_delete` | Delete (revoke) an existing client secret. |
> | `workos_application_credentials_controller_list` | List all client secrets associated with a Connect Application. |
> | `workos_applications_controller_create` | Create a new Connect Application. |
> | `workos_applications_controller_delete` | Delete an existing Connect Application. |
> | `workos_applications_controller_find` | Retrieve details for a specific Connect Application by ID or client ID. |
> | `workos_applications_controller_list` | List all Connect Applications in the current environment with optional filtering. |
> | `workos_applications_controller_update` | Update an existing Connect Application. |
> | `workos_audit_log_events_controller_create` | Create an Audit Log Event. |
> | `workos_audit_log_exports_controller_export` | Get an Audit Log Export. |
> | `workos_audit_log_exports_controller_exports` | Create an Audit Log Export. |
> | `workos_audit_logs_retention_controller_audit_logs_retention` | Get the configured event retention period for the given Organization. |
> | `workos_audit_logs_retention_controller_update_audit_logs_retention` | Set the event retention period for the given Organization. |
> | `workos_audit_log_validators_controller_list` | Get a list of all Audit Log actions in the current environment. |
> | `workos_audit_log_validator_versions_controller_create` | Creates an Audit Log schema used to validate incoming Audit Log events, or returns the latest version if the submitted schema matches it. |
> | `workos_audit_log_validator_versions_controller_schemas` | Get a list of all schemas for the Audit Logs action identified by ':name'. |
> | `workos_authentication_challenges_controller_verify` | Verifies an Authentication Challenge. |
> | `workos_authentication_factors_controller_challenge` | Creates a Challenge for an Authentication Factor. |
> | `workos_authentication_factors_controller_create` | Enrolls an Authentication Factor to be used as an additional factor of authentication. |
> | `workos_authentication_factors_controller_delete` | Permanently deletes an Authentication Factor. |
> | `workos_authentication_factors_controller_get` | Gets an Authentication Factor. |
> | `workos_authkit_oauth_resources_controller_create` | Adds an MCP resource indicator (RFC 8707) to an environment, leaving any others in place. |
> | `workos_authkit_oauth_resources_controller_delete` | Removes an MCP resource indicator from an environment. |
> | `workos_authkit_oauth_resources_controller_list` | Lists the MCP resource indicators configured for an environment. |
> | `workos_authorization_controller_check` | Check if an organization membership has a specific permission on a resource. |
> | `workos_authorization_controller_list_effective_permissions` | Returns all permissions the organization membership effectively has on a resource, including permissions inherited through roles assigned to ancestor resources. |
> | `workos_authorization_controller_list_effective_permissions_by_external_id` | 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. |
> | `workos_authorization_controller_list_resources_for_membership` | Returns all child resources of a parent resource where the organization membership has a specific permission. |
> | `workos_authorization_group_role_assignments_controller_create` | Assign a role to a group on a specific resource. |
> | `workos_authorization_group_role_assignments_controller_get` | Get a specific role assignment for a group by its ID. |
> | `workos_authorization_group_role_assignments_controller_list` | List all role assignments granted to a group. |
> | `workos_authorization_group_role_assignments_controller_patch_group_role_assignments` | Add and remove role assignments for a group in a single atomic operation. |
> | `workos_authorization_group_role_assignments_controller_remove_group_role_assignment` | Remove a specific role assignment from a group by its ID. |
> | `workos_authorization_group_role_assignments_controller_remove_group_role_assignments` | Remove role assignments from a group that match the provided criteria. |
> | `workos_authorization_group_role_assignments_controller_replace_group_role_assignments` | Replace all role assignments for a group with the provided list. |
> | `workos_authorization_organization_role_permissions_controller_add_permission` | Add a single permission to a custom role. |
> | `workos_authorization_organization_role_permissions_controller_remove_permission` | Remove a single permission from a custom role by its slug. |
> | `workos_authorization_organization_role_permissions_controller_set_permissions` | Replace all permissions on a custom role with the provided list. |
> | `workos_authorization_organization_roles_controller_create` | Create a new custom role for this organization. |
> | `workos_authorization_organization_roles_controller_delete` | Delete an existing custom role. |
> | `workos_authorization_organization_roles_controller_get` | Retrieve a role that applies to an organization by its slug. |
> | `workos_authorization_organization_roles_controller_list` | Get a list of all roles that apply to an organization. |
> | `workos_authorization_organization_roles_controller_update` | Update an existing custom role. |
> | `workos_authorization_permissions_controller_create` | Create a new permission in your WorkOS environment. |
> | `workos_authorization_permissions_controller_delete` | Delete an existing permission. |
> | `workos_authorization_permissions_controller_find` | Retrieve a permission by its unique slug. |
> | `workos_authorization_permissions_controller_list` | Get a list of all permissions in your WorkOS environment. |
> | `workos_authorization_permissions_controller_update` | Update an existing permission. |
> | `workos_authorization_resources_by_external_id_controller_delete_by_external_id` | Delete an authorization resource by organization, resource type, and external ID. |
> | `workos_authorization_resources_by_external_id_controller_get_by_external_id` | Retrieve the details of an authorization resource by its external ID, organization, and resource type. |
> | `workos_authorization_resources_by_external_id_controller_list_organization_memberships_for_resource_by_external_id` | Returns all organization memberships that have a specific permission on a resource, using the resource's external ID. |
> | `workos_authorization_resources_by_external_id_controller_update_by_external_id` | Update an existing authorization resource using its external ID. |
> | `workos_authorization_resources_controller_create` | Create a new authorization resource. |
> | `workos_authorization_resources_controller_delete` | Delete an authorization resource and all its descendants. |
> | `workos_authorization_resources_controller_find_by_id` | Retrieve the details of an authorization resource by its ID. |
> | `workos_authorization_resources_controller_list` | Get a paginated list of authorization resources. |
> | `workos_authorization_resources_controller_list_organization_memberships_for_resource` | Returns all organization memberships that have a specific permission on a resource instance. |
> | `workos_authorization_resources_controller_update` | Update an existing authorization resource. |
> | `workos_authorization_role_assignments_controller_assign_role` | Assign a role to an organization membership on a specific resource. |
> | `workos_authorization_role_assignments_controller_list_role_assignments` | List all role assignments for an organization membership. |
> | `workos_authorization_role_assignments_controller_list_role_assignments_for_resource` | List all role assignments granted on a specific resource instance. |
> | `workos_authorization_role_assignments_controller_list_role_assignments_for_resource_by_external_id` | List all role assignments granted on a resource, identified by its external ID. |
> | `workos_authorization_role_assignments_controller_patch_role_assignments` | Add and remove role assignments for an organization membership in a single atomic operation. |
> | `workos_authorization_role_assignments_controller_remove_role_by_criteria` | Remove a role assignment by role slug and resource. |
> | `workos_authorization_role_assignments_controller_remove_role_by_id` | Remove a role assignment using its ID. |
> | `workos_authorization_role_permissions_controller_add_permission` | Add a single permission to an environment role. |
> | `workos_authorization_role_permissions_controller_set_permissions` | Replace all permissions on an environment role with the provided list. |
> | `workos_authorization_roles_controller_create` | Create a new environment role. |
> | `workos_authorization_roles_controller_get` | Get an environment role by its slug. |
> | `workos_authorization_roles_controller_list` | List all environment roles in priority order. |
> | `workos_authorization_roles_controller_update` | Update an existing environment role. |
> | `workos_authorized_applications_controller_delete` | Delete an existing Authorized Connect Application. |
> | `workos_authorized_applications_controller_list` | Get a list of all Connect applications that the user has authorized. |
> | `workos_client_api_token_controller_issue_client_api_token` | Generate a short-lived, session-bound token for the Widgets API, scoped to an organization and user. |
> | `workos_connections_controller_create` | Creates a new connection for an organization. |
> | `workos_connections_controller_delete` | Permanently deletes an existing connection. |
> | `workos_connections_controller_find` | Get the details of an existing connection. |
> | `workos_connections_controller_list` | Get a list of all of your existing connections matching the criteria specified. |
> | `workos_connections_controller_patch` | Updates an existing connection. |
> | `workos_cors_origins_controller_create_cors_origin` | Creates a new CORS origin for the API key's application. |
> | `workos_cors_origins_controller_list` | Lists the CORS origins for the current environment. |
> | `workos_data_integrations_controller_create_api_key_connection` | 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. |
> | `workos_data_integrations_controller_create_client_credentials_connection` | 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. |
> | `workos_data_integrations_controller_finish_connection` | Saves a connection that was started with 'code\_challenge'. |
> | `workos_data_integrations_controller_get_data_integration_authorize_url` | Generates an OAuth authorization URL to initiate the connection flow for a user. |
> | `workos_data_integrations_controller_get_userland_user_token` | Fetches a valid OAuth access token for a user's connected account. |
> | `workos_data_integrations_controller_upsert_api_key` | 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. |
> | `workos_data_integrations_controller_upsert_client_credentials` | 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. |
> | `workos_data_integrations_controller_vend_credentials` | Returns credentials for a user's connected account. |
> | `workos_data_integrations_management_controller_create_data_integration` | Creates a data integration for a provider. |
> | `workos_data_integrations_management_controller_delete_data_integration` | Deletes the user-owned data integration and all of its connected installations. |
> | `workos_data_integrations_management_controller_delete_organization_data_integration` | Deletes the organization-owned data integration for a provider and all of its connected installations. |
> | `workos_data_integrations_management_controller_get_data_integration` | Retrieves the user-owned data integration by its slug. |
> | `workos_data_integrations_management_controller_get_organization_data_integration` | Retrieves the organization-owned data integration for a provider by its slug. |
> | `workos_data_integrations_management_controller_list_data_integrations` | Lists the environment's data integrations configured with 'custom' or 'organization' credentials, including custom providers and API key integrations. |
> | `workos_data_integrations_management_controller_update_data_integration` | Updates the description, enabled state, or custom credentials of the user-owned data integration. |
> | `workos_data_integrations_management_controller_update_organization_data_integration` | Updates the description, enabled state, or custom credentials of the organization-owned data integration for a provider. |
> | `workos_data_integrations_organization_controller_create_organization_data_installation` | Imports an organization-owned connected account by providing OAuth tokens directly. |
> | `workos_data_integrations_organization_controller_delete_organization_data_installation` | Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. |
> | `workos_data_integrations_organization_controller_get_organization_data_installation` | Retrieves an organization's connected account for a specific provider. |
> | `workos_data_integrations_organization_controller_get_organization_data_integrations` | Retrieves the organization-owned providers configured for your environment and the organization's connected account information for each. |
> | `workos_data_integrations_organization_controller_update_organization_data_installation` | Updates an organization's connected account tokens, scopes, state, or provider configuration for a specific provider. |
> | `workos_data_integrations_user_management_controller_create_user_data_installation` | Imports a connected account for a user by providing OAuth tokens directly. |
> | `workos_data_integrations_user_management_controller_delete_user_data_installation` | Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. |
> | `workos_data_integrations_user_management_controller_get_user_data_installation` | Retrieves a user's connected account for a specific provider. |
> | `workos_data_integrations_user_management_controller_get_user_data_integrations` | Retrieves a list of available providers and the user's connection status for each. |
> | `workos_data_integrations_user_management_controller_update_user_data_installation` | Updates a user's connected account tokens, scopes, state, or provider configuration for a specific provider. |
> | `workos_directories_controller_delete_directory` | Permanently deletes an existing directory. |
> | `workos_directories_controller_find` | Get the details of an existing directory. |
> | `workos_directories_controller_list` | Get a list of all of your existing directories matching the criteria specified. |
> | `workos_directories_controller_sync_directory` | Request an asynchronous sync from the directory provider. |
> | `workos_directories_groups_controller_find` | Get the details of a Directory Group in a Directory. |
> | `workos_directories_groups_controller_list` | Get a list of the Directory Groups in a Directory, optionally filtered to the groups a Directory User belongs to. |
> | `workos_directories_users_controller_find` | Get the details of a Directory User in a Directory. |
> | `workos_directories_users_controller_list` | Get a list of the Directory Users in a Directory, optionally filtered to the members of a Directory Group. |
> | `workos_directory_groups_controller_find` | Get the details of an existing Directory Group. |
> | `workos_directory_groups_controller_list` | Get a list of all of existing directory groups matching the criteria specified. |
> | `workos_directory_users_controller_find` | Get the details of an existing Directory User. |
> | `workos_directory_users_controller_list` | Get a list of all of existing Directory Users matching the criteria specified. |
> | `workos_events_controller_list` | List events for the current environment. |
> | `workos_external_auth_controller_complete_login` | Completes a Standalone Connect login by creating or updating the AuthKit user and returning a 'redirect\_uri' your application should redirect to so AuthKit can finish the flow. |
> | `workos_feature_flags_controller_disable_flag` | Disables a feature flag in the current environment. |
> | `workos_feature_flags_controller_enable_flag` | Enables a feature flag in the current environment. |
> | `workos_feature_flags_controller_find_by_slug` | Get the details of an existing feature flag by its slug. |
> | `workos_feature_flags_controller_list` | Get a list of all of your existing feature flags matching the criteria specified. |
> | `workos_flag_targets_controller_create_target` | Enables a feature flag for a specific target in the current environment. |
> | `workos_flag_targets_controller_delete_target` | Removes a target from the feature flag's target list in the current environment. |
> | `workos_group_memberships_controller_add_member` | Add an organization membership to a group. |
> | `workos_group_memberships_controller_list_members` | Get a list of organization memberships in a group. |
> | `workos_group_memberships_controller_remove_member` | Remove an organization membership from a group. |
> | `workos_group_memberships_controller_update_members` | Adds and removes organization memberships for a group in a single atomic operation. |
> | `workos_groups_controller_create` | Create a new group within an organization. |
> | `workos_groups_controller_delete` | Delete a group from an organization. |
> | `workos_groups_controller_get` | Retrieve a group by its ID within an organization. |
> | `workos_groups_controller_list` | Get a paginated list of groups within an organization. |
> | `workos_groups_controller_update` | Update an existing group. |
> | `workos_it_contacts_controller_create` | Add an IT contact to an organization. |
> | `workos_it_contacts_controller_delete` | Remove an IT contact from an organization and revoke the contact's active setup links. |
> | `workos_it_contacts_controller_invite` | Create an Admin Portal setup link and email it to the IT contact. |
> | `workos_it_contacts_controller_list` | Get the IT contacts for an organization. |
> | `workos_it_contacts_controller_revoke` | Revoke the organization's active Admin Portal invitation. |
> | `workos_jump_wire_web_data_vault_controller_create` | Encrypt and store a new key-value object. |
> | `workos_jump_wire_web_data_vault_controller_delete` | Delete an encrypted object. |
> | `workos_jump_wire_web_data_vault_controller_describe` | Fetch metadata for an object without decrypting it. |
> | `workos_jump_wire_web_data_vault_controller_index` | List all encrypted objects with cursor-based pagination. |
> | `workos_jump_wire_web_data_vault_controller_show_by_id` | Fetch and decrypt an object by its unique identifier. |
> | `workos_jump_wire_web_data_vault_controller_show_by_name` | Fetch and decrypt an object by its unique name. |
> | `workos_jump_wire_web_data_vault_controller_update` | Update the value of an existing encrypted object. |
> | `workos_jump_wire_web_data_vault_controller_versions` | Retrieve all versions for a specific object. |
> | `workos_jump_wire_web_key_controller_create_data_key` | Generate an isolated encryption key for local encryption operations. |
> | `workos_jump_wire_web_key_controller_decrypt` | Decrypt a previously encrypted data key from WorkOS Vault. |
> | `workos_jump_wire_web_key_controller_rekey` | Decrypt an existing data key and re-encrypt it under a new key context. |
> | `workos_jwt_templates_controller_get_jwt_template` | Get the JWT template for the current environment. |
> | `workos_jwt_templates_controller_update_jwt_template` | Update the JWT template for the current environment. |
> | `workos_organization_api_keys_controller_create` | Create a new API key for an organization. |
> | `workos_organization_api_keys_controller_list` | Get a list of all API keys for an organization. |
> | `workos_organization_authorized_applications_controller_list` | Get a list of all Connect applications that users in the organization have authorized. |
> | `workos_organization_domains_controller_create` | Creates a new Organization Domain. |
> | `workos_organization_domains_controller_delete` | Permanently deletes an organization domain. |
> | `workos_organization_domains_controller_get` | Get the details of an existing organization domain. |
> | `workos_organization_domains_controller_verify` | Initiates verification process for an Organization Domain. |
> | `workos_organization_feature_flags_controller_list` | Get a list of all enabled feature flags for an organization. |
> | `workos_organization_membership_groups_controller_list_groups` | Get a list of groups that an organization membership belongs to. |
> | `workos_organizations_controller_create` | Creates a new organization in the current environment. |
> | `workos_organizations_controller_delete_organization` | Permanently deletes an organization in the current environment. |
> | `workos_organizations_controller_find` | Get the details of an existing organization. |
> | `workos_organizations_controller_get_audit_log_configuration` | Get the unified view of audit log trail and stream configuration for an organization. |
> | `workos_organizations_controller_get_by_external_id` | Get the details of an existing organization by an external identifier. |
> | `workos_organizations_controller_list` | Get a list of all of your existing organizations matching the criteria specified. |
> | `workos_organizations_controller_update_organization` | Updates an organization in the current environment. |
> | `workos_portal_sessions_controller_create` | Generate a Portal Link scoped to an Organization. |
> | `workos_portal_sessions_controller_revoke_link` | 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. |
> | `workos_provider_controller_configure` | Creates or updates an organization's provider configuration. |
> | `workos_provider_controller_list_for_organization` | 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. |
> | `workos_public_radar_challenges_controller_get` | Get the details of an existing Radar Challenge, including the OTP code. |
> | `workos_public_radar_challenges_controller_send_radar_sms_challenge` | Sends a one-time verification code over SMS to a user as part of a Radar challenge. |
> | `workos_radar_standalone_controller_assess` | Assess a request for risk using the Radar engine and receive a verdict. |
> | `workos_radar_standalone_controller_delete_radar_list_entry` | Remove an entry from a Radar list. |
> | `workos_radar_standalone_controller_update_radar_attempt` | You may optionally inform Radar that an authentication attempt or challenge was successful using this endpoint. |
> | `workos_radar_standalone_controller_update_radar_list` | Add an entry to a Radar list. |
> | `workos_redirect_uris_controller_create` | Creates a new redirect URI for an application. |
> | `workos_redirect_uris_controller_delete` | Deletes a redirect URI from an application. |
> | `workos_redirect_uris_controller_list` | Lists the redirect URIs for an environment. |
> | `workos_saml_idp_signing_certificates_controller_create` | Adds an Identity Provider signing certificate to the connection, so SAML responses signed with its key can be verified. |
> | `workos_saml_idp_signing_certificates_controller_delete` | Removes an Identity Provider signing certificate from the connection. |
> | `workos_saml_idp_signing_certificates_controller_list` | Lists every Identity Provider signing certificate on the connection, including expired ones, oldest first. |
> | `workos_saml_sp_encryption_certificates_controller_create` | Generates a new encryption key pair for the connection and returns its public certificate. |
> | `workos_saml_sp_encryption_certificates_controller_delete` | Removes an encryption key pair from the connection. |
> | `workos_saml_sp_encryption_certificates_controller_list` | Lists the public certificates the Identity Provider can use to encrypt SAML responses sent to WorkOS, including expired ones, oldest first. |
> | `workos_saml_sp_signing_certificates_controller_create` | Generates a new request signing key pair for the connection and returns its public certificate. |
> | `workos_saml_sp_signing_certificates_controller_delete` | Removes the request signing key pair from the connection, after which SAML requests are sent unsigned. |
> | `workos_saml_sp_signing_certificates_controller_get` | Returns the public certificate the Identity Provider can use to verify the signature of SAML requests sent by WorkOS. |
> | `workos_sso_controller_authorize` | Initiates the single sign-on flow. |
> | `workos_sso_controller_get_profile` | Exchange an access token for a user's Profile. |
> | `workos_sso_controller_json_web_key_set` | Returns the JSON Web Key Set (JWKS) containing the public keys used for verifying access tokens. |
> | `workos_sso_controller_logout` | Logout allows to sign out a user from your application by triggering the identity provider sign out flow. |
> | `workos_sso_controller_logout_authorize` | You should call this endpoint from your server to generate a logout token which is required for the Logout Redirect endpoint. |
> | `workos_sso_controller_token` | Get an access token along with the user Profile using the code passed to your Redirect URI. |
> | `workos_teams_controller_create_team` | Creates a team along with its default project, a staging environment, and a production environment. |
> | `workos_teams_controller_get_team` | Returns a team, and doubles as a health check on the platform's access to it. |
> | `workos_user_api_keys_controller_create` | Create a new API key owned by a user. |
> | `workos_user_api_keys_controller_list` | Get a list of API keys owned by a specific user. |
> | `workos_userland_magic_auth_controller_get` | Get the details of an existing Magic Auth code that can be used to send an email to a user for authentication. |
> | `workos_userland_magic_auth_controller_send_magic_auth_code_and_return` | Creates a one-time authentication code that can be sent to the user's email address. |
> | `workos_userland_sessions_controller_authenticate_v0` | Authenticate a user with a specified authentication method. |
> | `workos_userland_sessions_controller_logout` | Logout a user from the current session. |
> | `workos_userland_sessions_controller_revoke_session` | Revoke a user session. |
> | `workos_userland_sso_controller_authorize` | Generates an OAuth 2.0 authorization URL to authenticate a user with AuthKit or SSO. |
> | `workos_userland_sso_controller_device_authorization` | Initiates the CLI Auth flow by requesting a device code and verification URLs. |
> | `workos_userland_user_authentication_factors_controller_create_v0` | Enrolls a user in a new authentication factor. |
> | `workos_userland_user_authentication_factors_controller_list_v0` | Lists the authentication factors for a user. |
> | `workos_userland_user_feature_flags_controller_list` | Get a list of all enabled feature flags for the provided user. |
> | `workos_userland_user_identities_controller_get` | Get a list of identities associated with the user. |
> | `workos_userland_user_invites_controller_accept` | Accepts an invitation and, if linked to an organization, activates the user's membership in that organization. |
> | `workos_userland_user_invites_controller_create` | Sends an invitation email to the recipient. |
> | `workos_userland_user_invites_controller_get` | Get the details of an existing invitation. |
> | `workos_userland_user_invites_controller_get_by_token` | Retrieve an existing invitation using the token. |
> | `workos_userland_user_invites_controller_list` | Get a list of all of invitations matching the criteria specified. |
> | `workos_userland_user_invites_controller_resend` | Resends an invitation email to the recipient. |
> | `workos_userland_user_invites_controller_revoke` | Revokes an existing invitation. |
> | `workos_userland_user_organization_memberships_controller_create` | Creates a new 'active' organization membership for the given organization and user. |
> | `workos_userland_user_organization_memberships_controller_deactivate` | Deactivates an 'active' organization membership. |
> | `workos_userland_user_organization_memberships_controller_delete` | Permanently deletes an existing organization membership. |
> | `workos_userland_user_organization_memberships_controller_get` | Get the details of an existing organization membership. |
> | `workos_userland_user_organization_memberships_controller_list` | Get a list of all organization memberships matching the criteria specified. |
> | `workos_userland_user_organization_memberships_controller_reactivate` | Reactivates an 'inactive' organization membership, retaining the pre-existing role(s). |
> | `workos_userland_user_organization_memberships_controller_update` | Update the details of an existing organization membership. |
> | `workos_userland_users_controller_confirm_email_change` | Confirms an email change using the one-time code received by the user. |
> | `workos_userland_users_controller_create_password_reset_token` | Creates a one-time token that can be used to reset a user's password. |
> | `workos_userland_users_controller_create_v0` | Create a new user in the current environment. |
> | `workos_userland_users_controller_delete_v0` | Permanently deletes a user in the current environment. |
> | `workos_userland_users_controller_email_verification_v0` | Verifies an email address using the one-time code received by the user. |
> | `workos_userland_users_controller_get_by_external_id` | Get the details of an existing user by an external identifier. |
> | `workos_userland_users_controller_get_email_verification` | Get the details of an existing email verification code that can be used to send an email to a user for verification. |
> | `workos_userland_users_controller_get_password_reset` | Get the details of an existing password reset token that can be used to reset a user's password. |
> | `workos_userland_users_controller_get_v0` | Get the details of an existing user. |
> | `workos_userland_users_controller_list_v0` | Get a list of all of your existing users matching the criteria specified. |
> | `workos_userland_users_controller_reset_password_v0` | Sets a new password using the 'token' query parameter from the link that the user received. |
> | `workos_userland_users_controller_send_email_change` | Sends an email that contains a one-time code used to change a user's email address. |
> | `workos_userland_users_controller_send_verification_email_v0` | Sends an email that contains a one-time code used to verify a user's email address. |
> | `workos_userland_users_controller_update_v0` | Updates properties of a user. |
> | `workos_userland_user_sessions_controller_list` | Get a list of all active sessions for a specific user. |
> | `workos_waitlist_entries_controller_approve` | Approve a waitlist entry, create an invitation for its email address, and send the invitation email. |
> | `workos_waitlist_entries_controller_delete` | Remove the entry from the waitlist. |
> | `workos_waitlist_entries_controller_deny` | Deny a pending waitlist entry. |
> | `workos_waitlists_controller_create_entry` | Add an email address to the waitlist. |
> | `workos_waitlists_controller_find` | Get the details of an existing waitlist. |
> | `workos_waitlists_controller_list` | Get a list of the waitlists in the environment. |
> | `workos_waitlists_controller_list_entries` | Get a list of entries on a waitlist matching the criteria specified. |
> | `workos_webhook_endpoints_controller_create` | Create a new webhook endpoint to receive event notifications. |
> | `workos_webhook_endpoints_controller_delete` | Delete an existing webhook endpoint. |
> | `workos_webhook_endpoints_controller_list` | Get a list of all of your existing webhook endpoints. |
> | `workos_webhook_endpoints_controller_update` | Update the properties of an existing webhook endpoint. |
> | `workos_widgets_public_controller_issue_widget_session_token` | Generate a widget token for a user, optionally scoped to an organization. |

## Frequently asked questions

> [accordion] Can I limit an agent to read-only WorkOS operations?
>
> Yes. Write a credential policy that denies operations by pattern, such as `*_delete`, `*_create`, and `*_update`, alongside a catch-all ALLOW rule. Guild's proxy blocks any matching request before it reaches WorkOS. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) for wildcard syntax.

> [accordion] Does Guild receive WorkOS webhook events?
>
> No. The catalog entry lists no webhook events for this integration, so event-triggered runs based on WorkOS webhooks are not available.

> [accordion] Can I give one agent its own WorkOS credential separate from the rest of the workspace?
>
> Yes. Connect a dedicated credential from the installed agent's detail page. It is stored under the account that owns the workspace and never serves other agents or workspaces. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the dedicated credential option.

> [accordion] How does Guild authenticate to WorkOS?
>
> Guild sends the API key as a bearer token in the Authorization header on every request. The key is stored server-side and agent code never sees it.

## Put a governed agent on WorkOS identity management today

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use WorkOS.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect WorkOS to your first agent.

## Related

**Also runs on Guild:** [Calendly](https://docs.guild.ai/integrations/calendly.md) · [Coda](https://docs.guild.ai/integrations/coda-openapi.md) · [Confluence](https://docs.guild.ai/integrations/confluence.md) · [Fathom](https://docs.guild.ai/integrations/fathom.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
