Volver al catálogo

WorkOS

workos

WorkOS provides enterprise identity and user management APIs for organizations, directory sync, connections, invitations, and users.

Acciones
29
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Create a WorkOS organization in the connected environment.

Parámetros de entrada

  • namestringObligatorio

    Organization display name.

  • metadataobject

    Optional 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_idstring

    Optional ASCII external identifier, up to 128 characters.

  • allow_profiles_outside_organizationboolean

    Whether profiles outside this organization may sign in.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Organization MembershipWORKOS_CREATE_ORGANIZATION_MEMBERSHIPAcción

Grant 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_idstringObligatorio

    WorkOS user to grant organization access.

  • role_slugstring

    One 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_idstringObligatorio

    WorkOS organization the user will join.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create UserWORKOS_CREATE_USERAcción

Create a passwordless AuthKit user record in the connected WorkOS environment. This tool does not accept plaintext or hashed passwords.

Parámetros de entrada

  • namestring

    Full name for the new user, or null when it is not known.

  • emailstringObligatorioemail

    Email address for the new user.

  • metadataobject

    Optional metadata with at most 50 pairs. Keys may contain up to 40 characters and values up to 600 characters.

  • last_namestring

    Last name for the new user, or null when it is not known.

  • first_namestring

    First name for the new user, or null when it is not known.

  • external_idstring

    Optional ASCII external identifier, up to 128 characters.

  • email_verifiedboolean

    Whether the email has already been independently verified. Set this only when verification is backed by trusted evidence.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete OrganizationWORKOS_DELETE_ORGANIZATIONAcción

Permanently delete a WorkOS organization. This cannot be undone and should only target a confirmed organization ID.

Parámetros de entrada

  • organization_idstringObligatorio

    Exact WorkOS organization ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Organization MembershipWORKOS_DELETE_ORGANIZATION_MEMBERSHIPAcción

Permanently remove an organization membership and its access. Prefer deactivation when access may need to be restored.

Parámetros de entrada

  • membership_idstringObligatorio

    Exact WorkOS organization membership ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete UserWORKOS_DELETE_USERAcción

Permanently delete an AuthKit user. This cannot be undone and may remove the user's access.

Parámetros de entrada

  • user_idstringObligatorio

    Exact WorkOS user ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ConnectionWORKOS_GET_CONNECTIONAcción

Get one WorkOS connection by ID.

Parámetros de entrada

  • connection_idstringObligatorio

    WorkOS connection ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get DirectoryWORKOS_GET_DIRECTORYAcción

Get one WorkOS Directory Sync directory by ID.

Parámetros de entrada

  • directory_idstringObligatorio

    WorkOS directory ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Directory GroupWORKOS_GET_DIRECTORY_GROUPAcción

Get one WorkOS Directory Sync group by its exact group ID.

Parámetros de entrada

  • directory_group_idstringObligatorio

    Exact WorkOS directory group ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Directory UserWORKOS_GET_DIRECTORY_USERAcción

Get 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_idstringObligatorio

    Exact WorkOS directory user ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get InvitationWORKOS_GET_INVITATIONAcción

Get WorkOS AuthKit invitation status and metadata by invitation ID without exposing acceptance credentials.

Parámetros de entrada

  • invitation_idstringObligatorio

    WorkOS invitation ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get OrganizationWORKOS_GET_ORGANIZATIONAcción

Get one WorkOS organization by its WorkOS ID or external ID.

Parámetros de entrada

  • external_idstring

    Your external organization ID. Provide exactly one identifier.

  • organization_idstring

    WorkOS organization ID. Provide exactly one identifier.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Organization MembershipWORKOS_GET_ORGANIZATION_MEMBERSHIPAcción

Get one WorkOS AuthKit organization membership by ID.

Parámetros de entrada

  • membership_idstringObligatorio

    WorkOS organization membership ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get UserWORKOS_GET_USERAcción

Get one WorkOS AuthKit user by WorkOS ID or external ID.

Parámetros de entrada

  • user_idstring

    WorkOS user ID. Provide exactly one identifier.

  • external_idstring

    Your external user ID. Provide exactly one identifier.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ConnectionsWORKOS_LIST_CONNECTIONSAcción

List one page of WorkOS SSO and OAuth connections, optionally filtered by connection type, domain, organization, or name.

Parámetros de entrada

  • limitinteger

    Maximum connections to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned connections.

    ascdesc
  • domainstring

    Return connections associated with this domain.

  • searchstring

    Text to match against connection names.

  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • connection_typestringenum

    Exact WorkOS connection type, such as OktaSAML or GoogleOAuth.

    ADFSSAMLAdpOidcAppleOAuthAuth0SAMLAzureSAMLBitbucketOAuthCasSAMLClassLinkSAMLCleverOIDCCloudflareSAMLCyberArkSAMLDiscordOAuth+38
  • organization_idstring

    Return connections associated with this WorkOS organization ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List DirectoriesWORKOS_LIST_DIRECTORIESAcción

List one page of WorkOS Directory Sync directories, optionally filtered by organization, directory name, or domain.

Parámetros de entrada

  • limitinteger

    Maximum directories to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned directories.

    ascdesc
  • domainstring

    Return directories associated with this domain.

  • searchstring

    Text to match against directory names.

  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • organization_idstring

    Return directories associated with this WorkOS organization ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Directory GroupsWORKOS_LIST_DIRECTORY_GROUPSAcción

List one page of WorkOS Directory Sync groups for a directory, a directory user, or both.

Parámetros de entrada

  • limitinteger

    Maximum groups to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned directory groups.

    ascdesc
  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • directory_idstring

    WorkOS directory whose groups to list. Provide directory_id, directory_user_id, or both.

  • directory_user_idstring

    WorkOS directory user whose groups to list. Provide directory_id, directory_user_id, or both.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Directory UsersWORKOS_LIST_DIRECTORY_USERSAcción

List 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

  • emailstring

    Exact primary email address to match. This filter requires directory_id.

  • limitinteger

    Maximum directory users to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned directory users.

    ascdesc
  • idp_idstring

    Exact identity-provider user ID to match. This filter requires directory_id.

  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • directory_idstring

    Directory whose users to list. Provide this or directory_group_id. Required when filtering by idp_id or email.

  • directory_group_idstring

    Directory group whose users to list. Provide this or directory_id.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List InvitationsWORKOS_LIST_INVITATIONSAcción

List one page of WorkOS AuthKit invitations by organization or exact recipient email without exposing acceptance credentials.

Parámetros de entrada

  • emailstring

    Exact recipient email address to match.

  • limitinteger

    Maximum invitations to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned invitations.

    ascdesc
  • next_cursorstring

    Opaque cursor returned by a previous call. Omit for the first page.

  • organization_idstring

    Return invitations associated with this WorkOS organization ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Organization MembershipsWORKOS_LIST_ORGANIZATION_MEMBERSHIPSAcción

List one page of WorkOS AuthKit organization memberships for a specific organization or user, optionally including inactive or pending memberships.

Parámetros de entrada

  • limitinteger

    Maximum memberships to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned memberships.

    ascdesc
  • user_idstring

    User 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_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • organization_idstring

    Organization whose memberships to list. Provide this or user_id.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List OrganizationsWORKOS_LIST_ORGANIZATIONSAcción

List one page of WorkOS organizations, optionally filtered by domain or organization name.

Parámetros de entrada

  • limitinteger

    Maximum organizations to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned organizations.

    ascdesc
  • searchstring

    Text to match against organization names.

  • domainsstring[]

    Return organizations matching any supplied domain.

  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List UsersWORKOS_LIST_USERSAcción

List one page of WorkOS AuthKit users, optionally filtered by organization or exact email address.

Parámetros de entrada

  • emailstring

    Exact user email address to match.

  • limitinteger

    Maximum users to return in this page (1-100).

  • orderstringenum

    Creation-time order for returned users.

    ascdesc
  • next_cursorstring

    Cursor returned by a previous call. Omit for the first page.

  • organization_idstring

    Return users belonging to this WorkOS organization.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Resend InvitationWORKOS_RESEND_INVITATIONAcción

Send 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

  • localestringenum

    Supported WorkOS locale for the real invitation email.

    afamarbgbnbscacsdadede-DEel+78
  • invitation_idstringObligatorio

    Pending WorkOS invitation to email again. Calling this tool sends a real email to the invitation's existing recipient.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revoke InvitationWORKOS_REVOKE_INVITATIONAcción

Revoke a pending AuthKit invitation so it can no longer be accepted.

Parámetros de entrada

  • invitation_idstringObligatorio

    WorkOS invitation to revoke.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Send InvitationWORKOS_SEND_INVITATIONAcción

Create 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

  • emailstringObligatorioemail

    Recipient email address. Calling this tool sends a real email.

  • localestringenum

    Supported locale in which WorkOS renders the hosted invitation email.

    afamarbgbnbscacsdadede-DEel+78
  • role_slugstring

    Role granted when the organization invitation is accepted.

  • expires_in_daysinteger

    Number of days the invitation remains valid (1-30).

  • inviter_user_idstring

    WorkOS user whose name will appear as the inviter in the email.

  • organization_idstring

    WorkOS organization the recipient will join after accepting.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Organization Membership StatusWORKOS_SET_ORGANIZATION_MEMBERSHIP_STATUSAcción

Activate 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

  • statusstringObligatorioenum

    Desired access state. Active reactivates an inactive membership; inactive deactivates an active membership. Pending is not supported.

    activeinactive
  • membership_idstringObligatorio

    WorkOS organization membership whose access state will change.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update OrganizationWORKOS_UPDATE_ORGANIZATIONAcción

Update selected properties of an existing WorkOS organization.

Parámetros de entrada

  • namestring

    New organization name.

  • metadataobject

    Replacement 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_idstring

    Replacement ASCII external ID, or null to clear it.

  • organization_idstringObligatorio

    WorkOS organization ID.

  • stripe_customer_idstring

    Stripe customer ID associated with the organization.

  • allow_profiles_outside_organizationboolean

    New outside-profile sign-in policy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Organization Membership RolesWORKOS_UPDATE_ORGANIZATION_MEMBERSHIP_ROLESAcción

Replace the role assignment on an existing WorkOS organization membership.

Parámetros de entrada

  • role_slugstring

    One 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_idstringObligatorio

    WorkOS organization membership ID whose roles will be replaced.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update UserWORKOS_UPDATE_USERAcción

Update selected profile fields on an AuthKit user without invoking email delivery flows.

Parámetros de entrada

  • namestring

    Replacement full name.

  • emailstring

    Replacement email address.

  • localestring

    Preferred locale, or null to clear it.

  • user_idstringObligatorio

    WorkOS user ID.

  • metadataobject

    Replacement 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_namestring

    Replacement last name.

  • first_namestring

    Replacement first name.

  • external_idstring

    Replacement ASCII external ID, or null to clear it.

  • email_verifiedboolean

    Replacement verification state. Set this only from trusted evidence.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not