WorkOS
workosWorkOS provides enterprise identity and user management APIs for organizations, directory sync, connections, invitations, and users.
Acciones disponibles (29)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create OrganizationWORKOS_CREATE_ORGANIZATIONAcciónCreate a WorkOS organization in the connected environment.
WORKOS_CREATE_ORGANIZATIONAcciónCreate a WorkOS organization in the connected environment.
Parámetros de entrada
namestringObligatorioOrganization display name.
metadataobjectOptional metadata with at most 50 pairs. Keys may contain up to 40 characters and values up to 600 characters.
domain_dataobject[]Domains to associate with the organization. Each record must include a domain and verification state.
external_idstringOptional ASCII external identifier, up to 128 characters.
allow_profiles_outside_organizationbooleanWhether profiles outside this organization may sign in.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Organization MembershipWORKOS_CREATE_ORGANIZATION_MEMBERSHIPAcciónGrant an AuthKit user active membership in an organization. An existing inactive membership for the same user and organization is reactivated.
WORKOS_CREATE_ORGANIZATION_MEMBERSHIPAcciónGrant an AuthKit user active membership in an organization. An existing inactive membership for the same user and organization is reactivated.
Parámetros de entrada
user_idstringObligatorioWorkOS user to grant organization access.
role_slugstringOne role slug to assign. Omit both role fields to use the default role; do not provide this with role_slugs.
role_slugsstring[]Role slugs to assign when Multiple Roles is enabled. Omit both role fields to use the default role; do not provide this with role_slug.
organization_idstringObligatorioWorkOS organization the user will join.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create UserWORKOS_CREATE_USERAcciónCreate a passwordless AuthKit user record in the connected WorkOS environment. This tool does not accept plaintext or hashed passwords.
WORKOS_CREATE_USERAcciónCreate a passwordless AuthKit user record in the connected WorkOS environment. This tool does not accept plaintext or hashed passwords.
Parámetros de entrada
namestringFull name for the new user, or null when it is not known.
emailstringObligatorioemailEmail address for the new user.
metadataobjectOptional metadata with at most 50 pairs. Keys may contain up to 40 characters and values up to 600 characters.
last_namestringLast name for the new user, or null when it is not known.
first_namestringFirst name for the new user, or null when it is not known.
external_idstringOptional ASCII external identifier, up to 128 characters.
email_verifiedbooleanWhether the email has already been independently verified. Set this only when verification is backed by trusted evidence.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete OrganizationWORKOS_DELETE_ORGANIZATIONAcciónPermanently delete a WorkOS organization. This cannot be undone and should only target a confirmed organization ID.
WORKOS_DELETE_ORGANIZATIONAcciónPermanently delete a WorkOS organization. This cannot be undone and should only target a confirmed organization ID.
Parámetros de entrada
organization_idstringObligatorioExact WorkOS organization ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Organization MembershipWORKOS_DELETE_ORGANIZATION_MEMBERSHIPAcciónPermanently remove an organization membership and its access. Prefer deactivation when access may need to be restored.
WORKOS_DELETE_ORGANIZATION_MEMBERSHIPAcciónPermanently remove an organization membership and its access. Prefer deactivation when access may need to be restored.
Parámetros de entrada
membership_idstringObligatorioExact WorkOS organization membership ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete UserWORKOS_DELETE_USERAcciónPermanently delete an AuthKit user. This cannot be undone and may remove the user's access.
WORKOS_DELETE_USERAcciónPermanently delete an AuthKit user. This cannot be undone and may remove the user's access.
Parámetros de entrada
user_idstringObligatorioExact WorkOS user ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ConnectionWORKOS_GET_CONNECTIONAcciónGet one WorkOS connection by ID.
WORKOS_GET_CONNECTIONAcciónGet one WorkOS connection by ID.
Parámetros de entrada
connection_idstringObligatorioWorkOS connection ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DirectoryWORKOS_GET_DIRECTORYAcciónGet one WorkOS Directory Sync directory by ID.
WORKOS_GET_DIRECTORYAcciónGet one WorkOS Directory Sync directory by ID.
Parámetros de entrada
directory_idstringObligatorioWorkOS directory ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Directory GroupWORKOS_GET_DIRECTORY_GROUPAcciónGet one WorkOS Directory Sync group by its exact group ID.
WORKOS_GET_DIRECTORY_GROUPAcciónGet one WorkOS Directory Sync group by its exact group ID.
Parámetros de entrada
directory_group_idstringObligatorioExact WorkOS directory group ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Directory UserWORKOS_GET_DIRECTORY_USERAcciónGet one WorkOS Directory Sync user by exact ID, including identity-provider attributes, roles, and any groups returned by WorkOS. For complete group memberships, use List Directory Groups filtered by this directory user ID.
WORKOS_GET_DIRECTORY_USERAcciónGet one WorkOS Directory Sync user by exact ID, including identity-provider attributes, roles, and any groups returned by WorkOS. For complete group memberships, use List Directory Groups filtered by this directory user ID.
Parámetros de entrada
directory_user_idstringObligatorioExact WorkOS directory user ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get InvitationWORKOS_GET_INVITATIONAcciónGet WorkOS AuthKit invitation status and metadata by invitation ID without exposing acceptance credentials.
WORKOS_GET_INVITATIONAcciónGet WorkOS AuthKit invitation status and metadata by invitation ID without exposing acceptance credentials.
Parámetros de entrada
invitation_idstringObligatorioWorkOS invitation ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get OrganizationWORKOS_GET_ORGANIZATIONAcciónGet one WorkOS organization by its WorkOS ID or external ID.
WORKOS_GET_ORGANIZATIONAcciónGet one WorkOS organization by its WorkOS ID or external ID.
Parámetros de entrada
external_idstringYour external organization ID. Provide exactly one identifier.
organization_idstringWorkOS organization ID. Provide exactly one identifier.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Organization MembershipWORKOS_GET_ORGANIZATION_MEMBERSHIPAcciónGet one WorkOS AuthKit organization membership by ID.
WORKOS_GET_ORGANIZATION_MEMBERSHIPAcciónGet one WorkOS AuthKit organization membership by ID.
Parámetros de entrada
membership_idstringObligatorioWorkOS organization membership ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get UserWORKOS_GET_USERAcciónGet one WorkOS AuthKit user by WorkOS ID or external ID.
WORKOS_GET_USERAcciónGet one WorkOS AuthKit user by WorkOS ID or external ID.
Parámetros de entrada
user_idstringWorkOS user ID. Provide exactly one identifier.
external_idstringYour external user ID. Provide exactly one identifier.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ConnectionsWORKOS_LIST_CONNECTIONSAcciónList one page of WorkOS SSO and OAuth connections, optionally filtered by connection type, domain, organization, or name.
WORKOS_LIST_CONNECTIONSAcciónList one page of WorkOS SSO and OAuth connections, optionally filtered by connection type, domain, organization, or name.
Parámetros de entrada
limitintegerMaximum connections to return in this page (1-100).
orderstringenumCreation-time order for returned connections.
ascdescdomainstringReturn connections associated with this domain.
searchstringText to match against connection names.
next_cursorstringCursor returned by a previous call. Omit for the first page.
connection_typestringenumExact WorkOS connection type, such as OktaSAML or GoogleOAuth.
ADFSSAMLAdpOidcAppleOAuthAuth0SAMLAzureSAMLBitbucketOAuthCasSAMLClassLinkSAMLCleverOIDCCloudflareSAMLCyberArkSAMLDiscordOAuth+38organization_idstringReturn connections associated with this WorkOS organization ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DirectoriesWORKOS_LIST_DIRECTORIESAcciónList one page of WorkOS Directory Sync directories, optionally filtered by organization, directory name, or domain.
WORKOS_LIST_DIRECTORIESAcciónList one page of WorkOS Directory Sync directories, optionally filtered by organization, directory name, or domain.
Parámetros de entrada
limitintegerMaximum directories to return in this page (1-100).
orderstringenumCreation-time order for returned directories.
ascdescdomainstringReturn directories associated with this domain.
searchstringText to match against directory names.
next_cursorstringCursor returned by a previous call. Omit for the first page.
organization_idstringReturn directories associated with this WorkOS organization ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Directory GroupsWORKOS_LIST_DIRECTORY_GROUPSAcciónList one page of WorkOS Directory Sync groups for a directory, a directory user, or both.
WORKOS_LIST_DIRECTORY_GROUPSAcciónList one page of WorkOS Directory Sync groups for a directory, a directory user, or both.
Parámetros de entrada
limitintegerMaximum groups to return in this page (1-100).
orderstringenumCreation-time order for returned directory groups.
ascdescnext_cursorstringCursor returned by a previous call. Omit for the first page.
directory_idstringWorkOS directory whose groups to list. Provide directory_id, directory_user_id, or both.
directory_user_idstringWorkOS directory user whose groups to list. Provide directory_id, directory_user_id, or both.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Directory UsersWORKOS_LIST_DIRECTORY_USERSAcciónList one page of WorkOS Directory Sync users for a directory or group, optionally filtering a directory by exact identity-provider ID or primary email. WorkOS limits this endpoint to 4 requests per second per directory; on HTTP 429, honor Retry-After before retrying.
WORKOS_LIST_DIRECTORY_USERSAcciónList one page of WorkOS Directory Sync users for a directory or group, optionally filtering a directory by exact identity-provider ID or primary email. WorkOS limits this endpoint to 4 requests per second per directory; on HTTP 429, honor Retry-After before retrying.
Parámetros de entrada
emailstringExact primary email address to match. This filter requires directory_id.
limitintegerMaximum directory users to return in this page (1-100).
orderstringenumCreation-time order for returned directory users.
ascdescidp_idstringExact identity-provider user ID to match. This filter requires directory_id.
next_cursorstringCursor returned by a previous call. Omit for the first page.
directory_idstringDirectory whose users to list. Provide this or directory_group_id. Required when filtering by idp_id or email.
directory_group_idstringDirectory group whose users to list. Provide this or directory_id.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List InvitationsWORKOS_LIST_INVITATIONSAcciónList one page of WorkOS AuthKit invitations by organization or exact recipient email without exposing acceptance credentials.
WORKOS_LIST_INVITATIONSAcciónList one page of WorkOS AuthKit invitations by organization or exact recipient email without exposing acceptance credentials.
Parámetros de entrada
emailstringExact recipient email address to match.
limitintegerMaximum invitations to return in this page (1-100).
orderstringenumCreation-time order for returned invitations.
ascdescnext_cursorstringOpaque cursor returned by a previous call. Omit for the first page.
organization_idstringReturn invitations associated with this WorkOS organization ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Organization MembershipsWORKOS_LIST_ORGANIZATION_MEMBERSHIPSAcciónList one page of WorkOS AuthKit organization memberships for a specific organization or user, optionally including inactive or pending memberships.
WORKOS_LIST_ORGANIZATION_MEMBERSHIPSAcciónList one page of WorkOS AuthKit organization memberships for a specific organization or user, optionally including inactive or pending memberships.
Parámetros de entrada
limitintegerMaximum memberships to return in this page (1-100).
orderstringenumCreation-time order for returned memberships.
ascdescuser_idstringUser whose memberships to list. Provide this or organization_id.
statusesstring[]Membership statuses to include. WorkOS returns only active memberships when this filter is omitted.
next_cursorstringCursor returned by a previous call. Omit for the first page.
organization_idstringOrganization whose memberships to list. Provide this or user_id.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List OrganizationsWORKOS_LIST_ORGANIZATIONSAcciónList one page of WorkOS organizations, optionally filtered by domain or organization name.
WORKOS_LIST_ORGANIZATIONSAcciónList one page of WorkOS organizations, optionally filtered by domain or organization name.
Parámetros de entrada
limitintegerMaximum organizations to return in this page (1-100).
orderstringenumCreation-time order for returned organizations.
ascdescsearchstringText to match against organization names.
domainsstring[]Return organizations matching any supplied domain.
next_cursorstringCursor returned by a previous call. Omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List UsersWORKOS_LIST_USERSAcciónList one page of WorkOS AuthKit users, optionally filtered by organization or exact email address.
WORKOS_LIST_USERSAcciónList one page of WorkOS AuthKit users, optionally filtered by organization or exact email address.
Parámetros de entrada
emailstringExact user email address to match.
limitintegerMaximum users to return in this page (1-100).
orderstringenumCreation-time order for returned users.
ascdescnext_cursorstringCursor returned by a previous call. Omit for the first page.
organization_idstringReturn users belonging to this WorkOS organization.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Resend InvitationWORKOS_RESEND_INVITATIONAcciónSend another real invitation email to the existing recipient of a pending WorkOS AuthKit invitation. This externally visible email delivery cannot be undone. The response excludes the invitation token and acceptance URL.
WORKOS_RESEND_INVITATIONAcciónSend another real invitation email to the existing recipient of a pending WorkOS AuthKit invitation. This externally visible email delivery cannot be undone. The response excludes the invitation token and acceptance URL.
Parámetros de entrada
localestringenumSupported WorkOS locale for the real invitation email.
afamarbgbnbscacsdadede-DEel+78invitation_idstringObligatorioPending WorkOS invitation to email again. Calling this tool sends a real email to the invitation's existing recipient.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Revoke InvitationWORKOS_REVOKE_INVITATIONAcciónRevoke a pending AuthKit invitation so it can no longer be accepted.
WORKOS_REVOKE_INVITATIONAcciónRevoke a pending AuthKit invitation so it can no longer be accepted.
Parámetros de entrada
invitation_idstringObligatorioWorkOS invitation to revoke.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send InvitationWORKOS_SEND_INVITATIONAcciónCreate an AuthKit invitation and immediately send a real invitation email to the recipient. This externally visible email delivery cannot be undone. Use only when the recipient and delivery are intentional. The output omits the sensitive acceptance token and acceptance URL.
WORKOS_SEND_INVITATIONAcciónCreate an AuthKit invitation and immediately send a real invitation email to the recipient. This externally visible email delivery cannot be undone. Use only when the recipient and delivery are intentional. The output omits the sensitive acceptance token and acceptance URL.
Parámetros de entrada
emailstringObligatorioemailRecipient email address. Calling this tool sends a real email.
localestringenumSupported locale in which WorkOS renders the hosted invitation email.
afamarbgbnbscacsdadede-DEel+78role_slugstringRole granted when the organization invitation is accepted.
expires_in_daysintegerNumber of days the invitation remains valid (1-30).
inviter_user_idstringWorkOS user whose name will appear as the inviter in the email.
organization_idstringWorkOS organization the recipient will join after accepting.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Organization Membership StatusWORKOS_SET_ORGANIZATION_MEMBERSHIP_STATUSAcciónActivate or deactivate a WorkOS organization membership without deleting it. Deactivation removes access but can be reversed by setting the status to active.
WORKOS_SET_ORGANIZATION_MEMBERSHIP_STATUSAcciónActivate or deactivate a WorkOS organization membership without deleting it. Deactivation removes access but can be reversed by setting the status to active.
Parámetros de entrada
statusstringObligatorioenumDesired access state. Active reactivates an inactive membership; inactive deactivates an active membership. Pending is not supported.
activeinactivemembership_idstringObligatorioWorkOS organization membership whose access state will change.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update OrganizationWORKOS_UPDATE_ORGANIZATIONAcciónUpdate selected properties of an existing WorkOS organization.
WORKOS_UPDATE_ORGANIZATIONAcciónUpdate selected properties of an existing WorkOS organization.
Parámetros de entrada
namestringNew organization name.
metadataobjectReplacement metadata with at most 50 pairs, or null to clear it. Keys may contain up to 40 characters and values up to 600 characters.
domain_dataobject[]Replacement domain records. Each record must include a domain and verification state.
external_idstringReplacement ASCII external ID, or null to clear it.
organization_idstringObligatorioWorkOS organization ID.
stripe_customer_idstringStripe customer ID associated with the organization.
allow_profiles_outside_organizationbooleanNew outside-profile sign-in policy.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Organization Membership RolesWORKOS_UPDATE_ORGANIZATION_MEMBERSHIP_ROLESAcciónReplace the role assignment on an existing WorkOS organization membership.
WORKOS_UPDATE_ORGANIZATION_MEMBERSHIP_ROLESAcciónReplace the role assignment on an existing WorkOS organization membership.
Parámetros de entrada
role_slugstringOne replacement role slug. Omit both role fields to use the default role; do not provide this with role_slugs.
role_slugsstring[]Complete replacement role set for environments with Multiple Roles enabled. Omit both role fields to use the default role; do not provide this with role_slug.
membership_idstringObligatorioWorkOS organization membership ID whose roles will be replaced.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update UserWORKOS_UPDATE_USERAcciónUpdate selected profile fields on an AuthKit user without invoking email delivery flows.
WORKOS_UPDATE_USERAcciónUpdate selected profile fields on an AuthKit user without invoking email delivery flows.
Parámetros de entrada
namestringReplacement full name.
emailstringReplacement email address.
localestringPreferred locale, or null to clear it.
user_idstringObligatorioWorkOS user ID.
metadataobjectReplacement metadata with at most 50 pairs, or null to clear it. Keys may contain up to 40 characters and values up to 600 characters.
last_namestringReplacement last name.
first_namestringReplacement first name.
external_idstringReplacement ASCII external ID, or null to clear it.
email_verifiedbooleanReplacement verification state. Set this only from trusted evidence.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not