Skip to docs navigation

WorkOS integration guide

Verified

How to connect WorkOS to WEXTL and use its 1 trigger and 149 actions in your workflows. About WorkOS: Authentication, SSO and directory sync for business software.

  • 1 trigger
  • 63 searches
  • 86 actions
  • Instant (webhooks)
  • Auth: API key

AI-assisted documentation38 min read

This documentation is compiled from our integration source code, internal specs for WorkOS, its official API documentation and anonymized requests logs we collect from our support team[2].

Open WorkOS on WEXTL →
  • WorkOS
  • API KeypasswordRequired

    In the Dashboard, open API Keys and copy the secret key. It starts with sk_.[1]

  1. Log in to your WEXTL account, add the WorkOS node module to your workflow, and click Create new credential.Instant triggers use webhooks. Click Create a webhook first when adding one, then create the credential.
  2. Optional: In the Credential name field, enter a name for the credential.
  3. Enter the authentication credentials you copied from your WorkOS account, or follow the on-screen instructions to create the credential.
  4. If prompted, authenticate your account and confirm access.
  5. If you want to make changes to your credential in the future, follow the steps in Manage credentials →

Watch Events

TriggerInstant trigger for WorkOS events.
Output fields[3]
FieldType
IDtext
Eventtext
Datatext
Created Atdate
Contexttext

Get a Connection

SearchSingle sign on setup of an organization.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Connection Typetext
Nametext
Statetext
Statustext
Domainsarray

2other output fields

Get a Custom Role

SearchA role scoped to one organization.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Get a Directory

SearchOne directory sync source.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
External Keytext
Typetext
Statetext
Nametext
Domaintext

3other output fields

Get a Feature Flag

SearchFlag with its enabled state and default.
Input fields[3]
FieldType
SlugRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

Get a Group

SearchGroup details with its description text.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

Get a Group for a Directory

SearchOne group mirrored from an identity provider.
Input fields[3]
FieldType
Directory IDRequired
choice
Group IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Idp IDtext
Directory IDtext
Organization IDtext
Nametext
Raw Attributestext
Created Atdate

1other output field

Get a Group Role Assignment

SearchOne role handed out to a permission group.
Input fields[3]
FieldType
Organization IDchoice
Group IDRequired
choice
Role Assignment IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Group IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Created Atdate
Updated Atdate

Get a Magic Auth Code

SearchExpiry and owner of a magic code.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Emailtext
Expires Atdate
Created Atdate
Updated Atdate

Get a Password Reset Token

SearchReset request with its expiry.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Emailtext
Expires Atdate
Created Atdate

Get a Permission

SearchName and slug of one permission.
Input fields[3]
FieldType
SlugRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Systemboolean
Resource Type Slugtext
Created Atdate

1other output field

Get a Resource

SearchOne access controlled resource.
Input fields[3]
FieldType
Resource IDRequired
choice
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

Get a Resource by External ID

SearchObject lookup using your own identifier.
Input fields[3]
FieldType
Organization IDRequired
choice
Resource Type SlugRequired
text
External IDRequired
text
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

Get a User

SearchProfile data of one user.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean

6other output fields

Get a User by External ID

SearchProfile found by your own External ID.
Input fields[3]
FieldType
External IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean

6other output fields

Get a User for a Directory

SearchOne person synced from an identity provider.
Input fields[3]
FieldType
Directory IDRequired
choice
User IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Directory IDtext
Organization IDtext
Idp IDtext
Emailtext
First Nametext
Last Nametext

11other output fields

Get a Waitlist

SearchOne signup queue and its timestamps.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Created Atdate
Updated Atdate

Get an Audit Log Export

SearchProgress and file link of an audit export.
Input fields[3]
FieldType
Audit Log Export IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Statetext
URLtext
Created Atdate
Updated Atdate

Get an Environment Role

SearchRole defined at environment level.
Input fields[3]
FieldType
SlugRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Get an Invitation

SearchOne invitation with its state and expiry.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Statetext
Accepted Atdate
Revoked Atdate
Expires Atdate
Organization IDtext

5other output fields

Get an Organization

SearchOrganization profile with its domains.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Nametext
Domainsarray
Metadatatext
External IDtext
Stripe Customer IDtext
Created Atdate

2other output fields

Get an Organization by External ID

SearchOrganization lookup using your own key.
Input fields[3]
FieldType
External IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Nametext
Domainsarray
Metadatatext
External IDtext
Stripe Customer IDtext
Created Atdate

2other output fields

Get an Organization Domain

SearchVerification state of a domain.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Domaintext
Statetext
Verification Prefixtext
Verification Tokentext
Verification Strategytext

2other output fields

Get an Organization Membership

SearchLink between a user and an organization.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

Get the Audit Log Configuration

SearchAudit logging options of an organization.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Organization IDtext
Retention Period In Daysnumber
Statetext
Log Streamobject
IDtext
Typetext
Statetext
Last Synced Attext
Created Atdate

Get the Audit Log Retention

SearchAudit event storage duration of an organization.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Retention Period In Daysnumber

Get User Identities

SearchProvider and type of each linked identity.
Input fields[3]
FieldType
IDRequired
choice
LimitRequired
number
Output fields[3]
FieldType
Idp IDtext
Typetext
Providertext

List API Keys for a User

SearchUser keys with their permissions and expiry.
Input fields[3]
FieldType
User IDRequired
choice
LimitRequired
number
Orderchoice
Organization IDchoice
Output fields[3]
FieldType
Objecttext
IDtext
Ownerobject
Typetext
IDtext
Organization IDtext
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray

2other output fields

List API Keys for an Organization

SearchKeys with name, expiry and last use.
Input fields[3]
FieldType
Organization IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Ownerobject
Typetext
IDtext
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray

2other output fields

List Audit Log Actions

SearchCatalog of recorded audit action names.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
Nametext
Schemaobject
Objecttext
Versionnumber
Actorobject
Targetsarray
Metadatatext
Created Atdate
Created Atdate
Updated Atdate

List Audit Log Schemas

SearchRevision history of an audit action structure.
Input fields[3]
FieldType
Action NameRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
Versionnumber
Actorobject
Metadatatext
Targetsarray
Metadatatext
Created Atdate

List Authentication Factors

SearchAuthenticators registered by a person.
Input fields[3]
FieldType
Userland User IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Typetext
User IDtext
Smsobject
Phone Numbertext
Totpobject
Issuertext
Usertext
Created Atdate
Updated Atdate

List Connections

SearchSingle sign on setups across organizations.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Connection Typechoice
Domaintext
Organization IDchoice
Searchtext
Statechoice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Connection Typetext
Nametext
Statetext
Statustext
Domainsarray

2other output fields

List CORS Origins

SearchBrowser origins allowed to call the API.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Origintext
Created Atdate
Updated Atdate

List Custom Roles

SearchRoles scoped to a single organization.
Input fields[3]
FieldType
Organization IDRequired
choice
Output fields[3]
FieldType
Objecttext
Dataarray

List Directories

SearchDirectories connected to organizations.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Organization IDchoice
Searchtext
Domaintext
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
External Keytext
Typetext
Statetext
Nametext
Domaintext

3other output fields

List Effective Permissions on a Resource

SearchNet permissions of a membership on an object.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
Resource IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Systemboolean
Resource Type Slugtext
Created Atdate

1other output field

List Environment Roles

SearchRoles defined for the whole environment.
Output fields[3]
FieldType
Objecttext
Dataarray

List Events

SearchEvent history between two timestamps.
Input fields[3]
FieldType
EventsRequired
choice
LimitRequired
number
Range Startdate
Range Enddate
Organization IDchoice
Output fields[3]
FieldType
Objecttext
IDtext
Eventtext
Datatext
Created Atdate
Contexttext

List Feature Flags

SearchRollout switches of the environment.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

List Group Members

SearchMemberships with user and status.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

2other output fields

List Groups

SearchGroup names and descriptions.
Input fields[3]
FieldType
Organization IDRequired
choice
LimitRequired
number
Orderchoice
Searchtext
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

List Groups for a Directory

SearchIdentity provider groups for a directory.
Input fields[3]
FieldType
Directory IDRequired
choice
LimitRequired
number
Orderchoice
Usertext
Output fields[3]
FieldType
Objecttext
IDtext
Idp IDtext
Directory IDtext
Organization IDtext
Nametext
Raw Attributestext
Created Atdate

1other output field

List Groups for a Membership

SearchGroup names joined by a member.
Input fields[3]
FieldType
Om IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

List Invitations

SearchInvites sent, accepted or revoked.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Organization IDchoice
Emailtext
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Statetext
Accepted Atdate
Revoked Atdate
Expires Atdate
Organization IDtext

5other output fields

List IT Contacts

SearchIT contact addresses of an organization.
Input fields[3]
FieldType
Organization IDRequired
choice
LimitRequired
number
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Created Atdate
Updated Atdate

List Memberships for a Resource

SearchMemberships holding a permission on an object.
Input fields[3]
FieldType
Resource IDRequired
choice
Permission SlugRequired
choice
LimitRequired
number
Orderchoice
Assignmentchoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

3other output fields

List Organization Feature Flags

SearchFlag values scoped to an organization.
Input fields[3]
FieldType
Organization IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

List Organization Memberships

SearchMemberships linking users to organizations.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Organization IDchoice
Statuseschoice
User IDchoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

List Organizations

SearchOrganization names and domains.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Domainsarray
Searchtext
Output fields[3]
FieldType
Objecttext
IDtext
Nametext
Domainsarray
Metadatatext
External IDtext
Stripe Customer IDtext
Created Atdate

2other output fields

List Permissions

SearchPermission names and slugs.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Systemboolean
Resource Type Slugtext
Created Atdate

1other output field

List Redirect URIs

SearchRedirect addresses with their default marker.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
URItext
Defaultboolean
Created Attext
Updated Attext

List Resources

SearchObjects that access can be granted on.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Organization IDchoice
Resource Type Slugtext
Resource External IDtext
Parent Resource IDchoice
Parent Resource Type Slugtext
Parent External IDtext
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

List Resources for an Organization Membership

SearchObjects a person may act on.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
Permission SlugRequired
choice
LimitRequired
number
Orderchoice
Parent Resource IDchoice
Parent Resource Type Slugtext
Parent Resource External IDtext
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

List Role Assignments for a Group

SearchRoles currently granted to a group.
Input fields[3]
FieldType
Organization IDchoice
Group IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Group IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Created Atdate
Updated Atdate

List Role Assignments for a Membership

SearchGrants held by a membership.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
LimitRequired
number
Orderchoice
Resource IDchoice
Resource External IDtext
Resource Type Slugtext
Output fields[3]
FieldType
Objecttext
IDtext
Organization Membership IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Sourceobject
Typetext
Group Role Assignment IDtext
Groupobject
Created Atdate
Updated Atdate

List Role Assignments for a Resource

SearchWho holds which role on an object.
Input fields[3]
FieldType
Resource IDRequired
choice
LimitRequired
number
Orderchoice
Role Slugchoice
Output fields[3]
FieldType
Objecttext
IDtext
Organization Membership IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Sourceobject
Typetext
Group Role Assignment IDtext
Groupobject
Created Atdate
Updated Atdate

List User Feature Flags

SearchFlag values scoped to a user.
Input fields[3]
FieldType
User IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

List User Sessions

SearchSign in sessions with IP address.
Input fields[3]
FieldType
IDRequired
choice
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Impersonatorobject
Emailtext
Reasontext
IP Addresstext
Organization IDtext
User Agenttext
User IDtext
Auth Methodtext

5other output fields

List Users

SearchUsers with their profile data.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Organizationchoice
Organization IDchoice
Emailtext
Output fields[3]
FieldType
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean

6other output fields

List Users for a Directory

SearchPeople synced from an identity provider.
Input fields[3]
FieldType
Directory IDRequired
choice
LimitRequired
number
Orderchoice
Grouptext
Idp IDtext
Emailtext
Output fields[3]
FieldType
Objecttext
IDtext
Directory IDtext
Organization IDtext
Idp IDtext
Emailtext
First Nametext
Last Nametext

11other output fields

List Waitlist Entries

SearchPeople queued for access.
Input fields[3]
FieldType
IDRequired
choice
LimitRequired
number
Orderchoice
Statechoice
Emailtext
Output fields[3]
FieldType
IDtext
Emailtext
Statetext
Approved Atdate
Additional Fieldstext
Waitlist IDtext
Created Atdate
Updated Atdate

1other output field

List Waitlists

SearchSignup queues of the environment.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
Objecttext
IDtext
Created Atdate
Updated Atdate

List Webhook Endpoints

SearchEndpoint URLs and enabled state.
Input fields[3]
FieldType
LimitRequired
number
Orderchoice
Output fields[3]
FieldType
Objecttext
IDtext
Endpoint URLtext
Statustext
Eventsarray
Created Atdate
Updated Atdate

Add a Feature Flag Target

ActionTargets a user or organization with a flag.
Input fields[3]
FieldType
Resource IDRequired
text
SlugRequired
choice

Add a Member to a Group

ActionEnrolls one organization membership in a group.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
Organization Membership IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

Add a Permission to a Custom Role

ActionExtends an organization role with a permission.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice
Permission SlugRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Add a Permission to an Environment Role

ActionExtends the permission set of an environment role.
Input fields[3]
FieldType
SlugRequired
choice
Permission SlugRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Approve a Waitlist Entry

ActionAdmits one waitlisted person.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
IDtext
Emailtext
Statetext
Approved Atdate
Additional Fieldstext
Waitlist IDtext
Created Atdate
Updated Atdate

1other output field

Assign a Role to a Group

ActionGrants a role to an access group.
Input fields[3]
FieldType
Organization IDchoice
Group IDRequired
choice
Role SlugRequired
choice
Resource IDchoice
Resource External IDtext
Resource Type Slugtext
Output fields[3]
FieldType
Objecttext
IDtext
Group IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Created Atdate
Updated Atdate

Assign a Role to a Membership

ActionGrants a role to a single membership, optionally scoped.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
Role SlugRequired
choice
Resource IDchoice
Resource External IDtext
Resource Type Slugtext
Output fields[3]
FieldType
Objecttext
IDtext
Organization Membership IDtext
Roleobject
Slugtext
Resourceobject
IDtext
External IDtext
Resource Type Slugtext
Sourceobject
Typetext
Group Role Assignment IDtext
Groupobject
Created Atdate
Updated Atdate

Check Authorization

ActionYes or no test of a permission for a membership.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
Permission SlugRequired
choice
Resource IDchoice
Resource External IDtext
Resource Type Slugtext
Output fields[3]
FieldType
Authorizedboolean

Create a Connection

ActionRegisters single sign on for an organization.
Input fields[3]
FieldType
Organization IDRequired
choice
Nametext
External IDtext
Connection Typetext
Attribute Mapstext
Saml Optionstext
Oidc Optionstext
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Connection Typetext
Nametext
Statetext
Statustext
Domainsarray

2other output fields

Create a CORS Origin

ActionTrusts one web origin for browser calls.
Input fields[3]
FieldType
OriginRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Origintext
Created Atdate
Updated Atdate

Create a Custom Role

ActionNew role limited to one organization.
Input fields[3]
FieldType
Organization IDRequired
choice
NameRequired
text
Slugtext
Descriptiontext
Resource Type Slugtext
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Create a Group

ActionGroup created with optional description.
Input fields[3]
FieldType
Organization IDRequired
choice
NameRequired
text
Descriptiontext
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

Create a Magic Auth Code

ActionMagic code with an expiry time.
Input fields[3]
FieldType
EmailRequired
text
Invitation Tokensecret
IP Addresstext
User Agenttext
Radar Auth Attempt IDtext
Signals IDtext
Localechoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Emailtext
Expires Atdate
Created Atdate
Updated Atdate
Codetext

1other output field

Create a Password Reset Token

ActionIssues a reset token with its expiry.
Input fields[3]
FieldType
EmailRequired
text
Localechoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Emailtext
Expires Atdate
Created Atdate
Password Reset Tokentext
Password Reset URLtext

Create a Permission

ActionNew permission with a unique slug.
Input fields[3]
FieldType
SlugRequired
text
NameRequired
text
Descriptiontext
Resource Type Slugtext
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Systemboolean
Resource Type Slugtext
Created Atdate

1other output field

Create a Redirect URI

ActionApproves one redirect address.
Input fields[3]
FieldType
URIRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
URItext
Defaultboolean
Created Attext
Updated Attext

Create a Resource

ActionRegisters an object that access can be granted on.
Input fields[3]
FieldType
External IDRequired
text
NameRequired
text
Resource Type SlugRequired
text
Organization IDRequired
choice
Descriptiontext
Parent Resource IDchoice
Parent Resource External IDtext
Parent Resource Type Slugtext
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

Create a User

ActionFresh user with name and metadata fields.
Input fields[3]
FieldType
EmailRequired
text
First Nametext
Last Nametext
Nametext
Email Verifiedboolean
Metadatatext
External IDtext
IP Addresstext

6other input fields

Output fields[3]
FieldType
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean

7other output fields

Create a Waitlist Entry

ActionSigns a person up on a waitlist.
Input fields[3]
FieldType
IDRequired
choice
EmailRequired
text
Additional Fieldstext
Send Confirmation Emailboolean
Output fields[3]
FieldType
IDtext
Emailtext
Statetext
Approved Atdate
Additional Fieldstext
Waitlist IDtext
Created Atdate
Updated Atdate

1other output field

Create a Webhook Endpoint

ActionRegisters a URL for event deliveries.
Input fields[3]
FieldType
Endpoint URLRequired
text
EventsRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Endpoint URLtext
Secrettext
Statustext
Eventsarray
Created Atdate
Updated Atdate

Create an API Key for a User

ActionIssues a key tied to one user and organization.
Input fields[3]
FieldType
User IDRequired
choice
NameRequired
text
Organization IDRequired
choice
Permissionsarray
Expires Atdate
Output fields[3]
FieldType
Objecttext
IDtext
Ownerobject
Typetext
IDtext
Organization IDtext
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray

3other output fields

Create an API Key for an Organization

ActionIssues a key with a Value and optional expiry.
Input fields[3]
FieldType
Organization IDRequired
choice
NameRequired
text
Permissionsarray
Expires Atdate
Output fields[3]
FieldType
Objecttext
IDtext
Ownerobject
Typetext
IDtext
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray

3other output fields

Create an Audit Log Event

ActionWrites a who did what entry into the audit trail.
Input fields[3]
FieldType
Organization IDRequired
choice
ActionRequired
text
Actor IDRequired
text
Actor TypeRequired
text
TargetsRequired
array
Targetobject
Context LocationRequired
text
Actor Nametext
Actor Metadatatext

5other input fields

Output fields[3]
FieldType
Successboolean

Create an Audit Log Export

ActionBegins a downloadable audit report for a period.
Input fields[3]
FieldType
Organization IDRequired
choice
Range StartRequired
date
Range EndRequired
date
Actionsarray
Actorsarray
Actor Namesarray
Actor IDsarray
Targetsarray
Output fields[3]
FieldType
Objecttext
IDtext
Statetext
URLtext
Created Atdate
Updated Atdate

Create an Audit Log Schema

ActionDefines the expected structure of an audit action.
Input fields[3]
FieldType
Action NameRequired
choice
TargetsRequired
text
Actortext
Metadatatext
Output fields[3]
FieldType
Objecttext
Versionnumber
Actorobject
Metadatatext
Targetsarray
Metadatatext
Created Atdate

Create an Environment Role

ActionNew role defined at environment level.
Input fields[3]
FieldType
SlugRequired
text
NameRequired
text
Descriptiontext
Resource Type Slugtext
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Create an IT Contact

ActionContact address kept for an organization.
Input fields[3]
FieldType
Organization IDRequired
choice
EmailRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Created Atdate
Updated Atdate

Create an Organization

ActionOrganization with domains and metadata.
Input fields[3]
FieldType
NameRequired
text
Allow Profiles Outside Organizationboolean
Domainsarray
Domain Dataarray
Itemobject
Metadatatext
External IDtext
Output fields[3]
FieldType
Objecttext
IDtext
Nametext
Domainsarray
Metadatatext
External IDtext
Stripe Customer IDtext
Created Atdate

2other output fields

Create an Organization Domain

ActionDomain entry with its verification token.
Input fields[3]
FieldType
DomainRequired
text
Organization IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Domaintext
Statetext
Verification Prefixtext
Verification Tokentext
Verification Strategytext

2other output fields

Create an Organization Membership

ActionMembership record with Role and Status.
Input fields[3]
FieldType
User IDRequired
choice
Organization IDRequired
choice
Role Slugchoice
Role Slugschoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

Deactivate an Organization Membership

ActionSwitches off one organization membership.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

Delete a Connection

ActionRemoves one single sign on setup.
Input fields[3]
FieldType
IDRequired
choice

Delete a Custom Role

ActionRemoves a role defined for one organization.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice

Delete a Directory

ActionRemoves one synced directory.
Input fields[3]
FieldType
IDRequired
choice

Delete a Group

ActionRemoves one organization group.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice

Delete a Permission

ActionDeletes one permission definition from WorkOS.
Input fields[3]
FieldType
SlugRequired
choice

Delete a Redirect URI

ActionRemoves one allowed redirect address.
Input fields[3]
FieldType
IDRequired
choice

Delete a Resource

ActionRemoves an access controlled object, optionally with children.
Input fields[3]
FieldType
Resource IDRequired
choice
Cascade Deleteboolean

Delete a Resource by External ID

ActionRemoves an object addressed by your own identifier.
Input fields[3]
FieldType
Organization IDRequired
choice
Resource Type SlugRequired
text
External IDRequired
text
Cascade Deleteboolean

Delete a User

ActionRemoves one end user account.
Input fields[3]
FieldType
IDRequired
choice

Delete a Waitlist Entry

ActionClears a person off the queue.
Input fields[3]
FieldType
IDRequired
text

Delete a Webhook Endpoint

ActionRemoves one webhook endpoint URL.
Input fields[3]
FieldType
IDRequired
choice

Delete an API Key

ActionRemoves a key from its Owner.
Input fields[3]
FieldType
IDRequired
text

Delete an IT Contact

ActionRemoves a contact address.
Input fields[3]
FieldType
Organization IDRequired
choice
Contact IDRequired
text

Delete an Organization

ActionClears an organization from the environment.
Input fields[3]
FieldType
IDRequired
choice

Delete an Organization Domain

ActionUnlinks a domain from the organization that owns it.
Input fields[3]
FieldType
IDRequired
text

Delete an Organization Membership

ActionUnlinks a user from an organization.
Input fields[3]
FieldType
IDRequired
choice

Deny a Waitlist Entry

ActionDeclines one waitlisted person.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
IDtext
Emailtext
Statetext
Approved Atdate
Additional Fieldstext
Waitlist IDtext
Created Atdate
Updated Atdate

1other output field

Disable a Feature Flag

ActionTurns the Enabled setting of a flag off.
Input fields[3]
FieldType
SlugRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

Enable a Feature Flag

ActionTurns the Enabled setting of a flag on.
Input fields[3]
FieldType
SlugRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Ownerobject
Emailtext
First Nametext
Last Nametext
Tagsarray
Enabledboolean

3other output fields

Enroll an Authentication Factor

ActionAdds an authenticator app to a user.
Input fields[3]
FieldType
Userland User IDRequired
choice
TypeRequired
text
Totp Issuertext
Totp Usertext
Totp Secretsecret
Output fields[3]
FieldType
Authentication Factorobject
Objecttext
IDtext
Typetext
User IDtext
Smsobject
Totpobject
Created Atdate
Updated Atdate
Authentication Challengeobject
Objecttext
IDtext
Expires Atdate
Codetext
Authentication Factor IDtext
Created Atdate
Updated Atdate

Expire an API Key

ActionSets the expiry of one API key, now or later.
Input fields[3]
FieldType
IDRequired
text
Expires Atdate
Output fields[3]
FieldType
Objecttext
IDtext
Ownerobject
Typetext
IDtext
Organization IDtext
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray

2other output fields

Generate a Portal Link

ActionSetup link with success and return URLs.
Input fields[3]
FieldType
OrganizationRequired
choice
Return URLtext
Success URLtext
External User IDtext
Intentchoice
It Contact Emailsarray
Output fields[3]
FieldType
Linktext

Invite an IT Contact

ActionInvites an IT admin to the portal.
Input fields[3]
FieldType
Organization IDRequired
choice
Contact IDRequired
text
IntentsRequired
choice

Make an API Call

universalFree-form WorkOS REST API request.
Input fields[3]
FieldType
URLRequired
text
MethodRequired
choice
Headersarray
Headerobject
Query Stringarray
Parameterobject
Bodytext
Output fields[3]
FieldType
Bodytext
Headersobject
Content-Typetext
Status codenumber

Reactivate an Organization Membership

ActionSwitches a membership back on.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

Remove a Feature Flag Target

ActionStops targeting one account with a flag.
Input fields[3]
FieldType
Resource IDRequired
text
SlugRequired
choice

Remove a Group Role Assignment

ActionWithdraws a role from an access group.
Input fields[3]
FieldType
Organization IDchoice
Group IDRequired
choice
Role Assignment IDRequired
text

Remove a Member from a Group

ActionEjects a person from the group.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
Om IDRequired
choice

Remove a Permission from a Custom Role

ActionNarrows what an organization role allows.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice
Permission SlugRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Remove a Role Assignment by ID

ActionWithdraws a grant from a person.
Input fields[3]
FieldType
Organization Membership IDRequired
choice
Role Assignment IDRequired
text

Resend an Invitation

ActionDelivers an invitation email once more.
Input fields[3]
FieldType
IDRequired
choice
Localechoice
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Statetext
Accepted Atdate
Revoked Atdate
Expires Atdate
Organization IDtext

7other output fields

Revoke a Portal Link

ActionRevokes portal links of one external user.
Input fields[3]
FieldType
OrganizationRequired
choice
External User IDRequired
text

Revoke a Session

ActionSigns one session out.
Input fields[3]
FieldType
Session IDRequired
text

Revoke an Invitation

ActionWithdraws an invitation sent to a person.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Statetext
Accepted Atdate
Revoked Atdate
Expires Atdate
Organization IDtext

5other output fields

Revoke an IT Contact Invitation

ActionWithdraws an IT contact invite.
Input fields[3]
FieldType
Organization IDRequired
choice
Contact IDRequired
text

Send a Verification Email

ActionEmails an address confirmation.
Input fields[3]
FieldType
IDRequired
choice
Localechoice
Output fields[3]
FieldType
Userobject
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean
External IDtext
Metadatatext

Send an Invitation

ActionInvites a person by mail to join.
Input fields[3]
FieldType
EmailRequired
text
Organization IDchoice
Role Slugchoice
Expires In Daysnumber
Inviter User IDchoice
Localechoice
Output fields[3]
FieldType
Objecttext
IDtext
Emailtext
Statetext
Accepted Atdate
Revoked Atdate
Expires Atdate
Organization IDtext

7other output fields

Set Permissions for a Custom Role

ActionSets what an organization role allows.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice
PermissionsRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Set Permissions for an Environment Role

ActionRewrites the permission list of one role.
Input fields[3]
FieldType
SlugRequired
choice
PermissionsRequired
choice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Set the Audit Log Retention

ActionAdjusts audit event storage duration.
Input fields[3]
FieldType
IDRequired
choice
Retention Periodchoice
Retention Period In Daysnumber
Output fields[3]
FieldType
Retention Period In Daysnumber

Sync a Directory

ActionTriggers a directory sync run.
Input fields[3]
FieldType
IDRequired
choice
Output fields[3]
FieldType
Statustext

Update a Connection

ActionEdits an enterprise login integration.
Input fields[3]
FieldType
IDRequired
choice
Nametext
External IDtext
Connection Typetext
Attribute Mapstext
Saml Optionstext
Oidc Optionstext
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Connection Typetext
Nametext
Statetext
Statustext
Domainsarray

2other output fields

Update a Custom Role

ActionRetitles an organization role.
Input fields[3]
FieldType
Organization IDRequired
choice
SlugRequired
choice
Nametext
Descriptiontext
Clear Fieldschoice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Update a Group

ActionRenames or redescribes a group.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
Nametext
Descriptiontext
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Nametext
Descriptiontext
Created Atdate
Updated Atdate

Update a Permission

ActionRetitles a capability definition.
Input fields[3]
FieldType
SlugRequired
choice
Nametext
Descriptiontext
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
IDtext
Slugtext
Nametext
Descriptiontext
Systemboolean
Resource Type Slugtext
Created Atdate

1other output field

Update a Resource

ActionModifies an access controlled object.
Input fields[3]
FieldType
Resource IDRequired
choice
Nametext
Descriptiontext
Parent Resource IDchoice
Parent Resource External IDtext
Parent Resource Type Slugtext
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

Update a Resource by External ID

ActionModifies an object addressed by your own identifier.
Input fields[3]
FieldType
Organization IDRequired
choice
Resource Type SlugRequired
text
External IDRequired
text
Nametext
Descriptiontext
Parent Resource IDchoice
Parent Resource External IDtext
Parent Resource Type Slugtext

1other input field

Output fields[3]
FieldType
Objecttext
Nametext
Descriptiontext
Organization IDtext
Parent Resource IDtext
IDtext
External IDtext
Resource Type Slugtext

2other output fields

Update a User

ActionModifies a user profile.
Input fields[3]
FieldType
IDRequired
choice
Emailtext
First Nametext
Last Nametext
Nametext
Email Verifiedchoice
Metadatatext
External IDtext

6other input fields

Output fields[3]
FieldType
Objecttext
IDtext
First Nametext
Last Nametext
Nametext
Profile Picture URLtext
Emailtext
Email Verifiedboolean

6other output fields

Update a Webhook Endpoint

ActionModifies a delivery target.
Input fields[3]
FieldType
IDRequired
choice
Endpoint URLtext
Statuschoice
Eventschoice
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
IDtext
Endpoint URLtext
Statustext
Eventsarray
Created Atdate
Updated Atdate

Update an Environment Role

ActionEdits the text fields of an environment role.
Input fields[3]
FieldType
SlugRequired
choice
Nametext
Descriptiontext
Clear Fieldschoice
Output fields[3]
FieldType
Slugtext
Objecttext
IDtext
Nametext
Descriptiontext
Typetext
Resource Type Slugtext
Permissionsarray

2other output fields

Update an Organization

ActionModifies an organization profile.
Input fields[3]
FieldType
IDRequired
choice
Nametext
Allow Profiles Outside Organizationchoice
Domainsarray
Domain Dataarray
Itemobject
Stripe Customer IDtext
Metadatatext
External IDtext

1other input field

Output fields[3]
FieldType
Objecttext
IDtext
Nametext
Domainsarray
Metadatatext
External IDtext
Stripe Customer IDtext
Created Atdate

2other output fields

Update an Organization Membership

ActionChanges what a member may do.
Input fields[3]
FieldType
IDRequired
choice
Role Slugchoice
Role Slugschoice
Clear Fieldschoice
Output fields[3]
FieldType
Objecttext
IDtext
User IDtext
Organization IDtext
Statustext
Directory Managedboolean
Organization Nametext
Custom Attributestext

5other output fields

Update Group Members

ActionBulk edits who belongs to a group.
Input fields[3]
FieldType
Organization IDRequired
choice
Group IDRequired
choice
Addarray
Removearray
Clear Fieldschoice

Validate an API Key

ActionTests an API key value for validity.
Input fields[3]
FieldType
ValueRequired
text
Output fields[3]
FieldType
API Keyobject
Objecttext
IDtext
Ownerobject
Nametext
Obfuscated Valuetext
Last Used Atdate
Expires Atdate
Permissionsarray
Created Atdate
Updated Atdate
Agent Registration IDtext

Verify an Organization Domain

ActionRuns a domain ownership check.
Input fields[3]
FieldType
IDRequired
text
Output fields[3]
FieldType
Objecttext
IDtext
Organization IDtext
Domaintext
Statetext
Verification Prefixtext
Verification Tokentext
Verification Strategytext

2other output fields

Look for WorkOS templates in the WEXTL template library.

Browse templates →
  1. WEXTL® WorkOS Source Code connector implementation.
  2. Our users use cases and automations.
  3. Official API Documentation for WorkOS.
  4. WEXTL® visual workflow builder data.

Last updated: Nov 29, 2026 17:02

How we write our apps documentation

How we compile these docs: sources, the role of AI, and how we verify.