Use Clerk to manage application users, organizations, memberships, invitations, and sessions with a Clerk secret key. Read or update profiles, ban or lock users, and revoke sessions from a workflow.
The integration also manages allowlist and blocklist identifiers, JWT templates, and actor tokens. These are backend administration operations; use the action reference to select the operation and required identifiers.
Create, update, delete, ban, lock, and list users. Manage organizations, their memberships, and invitations. Monitor and control user sessions. Maintain allowlist/blocklist identifiers, JWT templates, and actor tokens.
List all users in your Clerk application with optional filtering and pagination
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20) orderBystring No Sort field with optional +/- prefix for direction (default: -created_at) emailAddressstring No Filter by email address (e.g., user@example.com or user1@example.com ,user2@example.com ) phoneNumberstring No Filter by phone number (comma-separated for multiple) externalIdstring No Filter by external ID (comma-separated for multiple) usernamestring No Filter by username (comma-separated for multiple) userIdstring No Filter by user ID (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC or comma-separated for multiple) querystring No Search query to match across email, phone, username, and names (e.g., john or john@example.com )
Parameter Type Description usersarray Array of Clerk user objects ↳ id string User ID ↳ username string Username ↳ firstName string First name ↳ lastName string Last name ↳ imageUrl string Profile image URL ↳ hasImage boolean Whether user has a profile image ↳ primaryEmailAddressId string Primary email address ID ↳ primaryPhoneNumberId string Primary phone number ID ↳ emailAddresses array User email addresses ↳ id string Email address ID ↳ emailAddress string Email address ↳ phoneNumbers array User phone numbers ↳ id string Phone number ID ↳ phoneNumber string Phone number ↳ externalId string External system ID ↳ passwordEnabled boolean Whether password is enabled ↳ twoFactorEnabled boolean Whether 2FA is enabled ↳ banned boolean Whether user is banned ↳ locked boolean Whether user is locked ↳ lastSignInAt number Last sign-in timestamp ↳ lastActiveAt number Last activity timestamp ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp ↳ publicMetadata json Public metadata totalCountnumber Total number of users matching the query successboolean Operation success status
Retrieve a single user by their ID from Clerk
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to retrieve (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring User ID usernamestring Username firstNamestring First name lastNamestring Last name imageUrlstring Profile image URL hasImageboolean Whether user has a profile image primaryEmailAddressIdstring Primary email address ID primaryPhoneNumberIdstring Primary phone number ID primaryWeb3WalletIdstring Primary Web3 wallet ID emailAddressesarray User email addresses ↳ id string Email address ID ↳ emailAddress string Email address ↳ verified boolean Whether email is verified phoneNumbersarray User phone numbers ↳ id string Phone number ID ↳ phoneNumber string Phone number ↳ verified boolean Whether phone is verified externalIdstring External system ID passwordEnabledboolean Whether password is enabled twoFactorEnabledboolean Whether 2FA is enabled totpEnabledboolean Whether TOTP is enabled backupCodeEnabledboolean Whether backup codes are enabled bannedboolean Whether user is banned lockedboolean Whether user is locked deleteSelfEnabledboolean Whether user can delete themselves createOrganizationEnabledboolean Whether user can create organizations lastSignInAtnumber Last sign-in timestamp lastActiveAtnumber Last activity timestamp createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata (readable from frontend) privateMetadatajson Private metadata (backend only) unsafeMetadatajson Unsafe metadata (modifiable from frontend) successboolean Operation success status
Create a new user in your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication emailAddressstring No Email addresses for the user (comma-separated for multiple) phoneNumberstring No Phone numbers for the user (comma-separated for multiple) usernamestring No Username for the user (must be unique) passwordstring No Password for the user (minimum 8 characters) firstNamestring No First name of the user lastNamestring No Last name of the user externalIdstring No External system identifier (must be unique) publicMetadatajson No Public metadata (JSON object, readable from frontend) privateMetadatajson No Private metadata (JSON object, backend only) unsafeMetadatajson No Unsafe metadata (JSON object, modifiable from frontend) skipPasswordChecksboolean No Skip password validation checks skipPasswordRequirementboolean No Make password optional
Parameter Type Description idstring Created user ID usernamestring Username firstNamestring First name lastNamestring Last name imageUrlstring Profile image URL primaryEmailAddressIdstring Primary email address ID primaryPhoneNumberIdstring Primary phone number ID emailAddressesarray User email addresses ↳ id string Email address ID ↳ emailAddress string Email address ↳ verified boolean Whether email is verified phoneNumbersarray User phone numbers ↳ id string Phone number ID ↳ phoneNumber string Phone number ↳ verified boolean Whether phone is verified externalIdstring External system ID createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata successboolean Operation success status
Update an existing user in your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to update (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC) firstNamestring No First name of the user lastNamestring No Last name of the user usernamestring No Username (must be unique) passwordstring No New password (minimum 8 characters) externalIdstring No External system identifier primaryEmailAddressIdstring No ID of verified email to set as primary primaryPhoneNumberIdstring No ID of verified phone to set as primary publicMetadatajson No Public metadata (JSON object) privateMetadatajson No Private metadata (JSON object) unsafeMetadatajson No Unsafe metadata (JSON object) skipPasswordChecksboolean No Skip password validation checks
Parameter Type Description idstring Updated user ID usernamestring Username firstNamestring First name lastNamestring Last name imageUrlstring Profile image URL primaryEmailAddressIdstring Primary email address ID primaryPhoneNumberIdstring Primary phone number ID emailAddressesarray User email addresses ↳ id string Email address ID ↳ emailAddress string Email address ↳ verified boolean Whether email is verified phoneNumbersarray User phone numbers ↳ id string Phone number ID ↳ phoneNumber string Phone number ↳ verified boolean Whether phone is verified externalIdstring External system ID bannedboolean Whether user is banned lockedboolean Whether user is locked createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata successboolean Operation success status
Delete a user from your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to delete (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring Deleted user ID objectstring Object type (user) deletedboolean Whether the user was deleted successboolean Operation success status
Ban a user, preventing them from signing in
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to ban (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring User ID usernamestring Username firstNamestring First name lastNamestring Last name bannedboolean Whether the user is banned lockedboolean Whether the user is locked lockoutExpiresInSecondsnumber Seconds until lockout expires updatedAtnumber Last update timestamp successboolean Operation success status
Remove a ban from a user, allowing them to sign in again
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to unban (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring User ID usernamestring Username firstNamestring First name lastNamestring Last name bannedboolean Whether the user is banned lockedboolean Whether the user is locked lockoutExpiresInSecondsnumber Seconds until lockout expires updatedAtnumber Last update timestamp successboolean Operation success status
Lock a user account, blocking sign-in attempts
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to lock (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring User ID usernamestring Username firstNamestring First name lastNamestring Last name bannedboolean Whether the user is banned lockedboolean Whether the user is locked lockoutExpiresInSecondsnumber Seconds until lockout expires updatedAtnumber Last update timestamp successboolean Operation success status
Unlock a previously locked user account
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user to unlock (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring User ID usernamestring Username firstNamestring First name lastNamestring Last name bannedboolean Whether the user is banned lockedboolean Whether the user is locked lockoutExpiresInSecondsnumber Seconds until lockout expires updatedAtnumber Last update timestamp successboolean Operation success status
Retrieve a user's OAuth access token for a connected external provider (e.g. Google, GitHub, Microsoft) obtained via Clerk SSO
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes The ID of the user (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC) providerstring Yes OAuth provider slug, e.g. google, github, microsoft, discord (without the oauth_ prefix)
Parameter Type Description accessTokensarray OAuth access tokens for the connected provider ↳ externalAccountId string External account ID ↳ token string OAuth access token ↳ expiresAt number Expiration timestamp ↳ provider string OAuth provider slug ↳ label string Token label ↳ scopes array OAuth scopes granted to the token ↳ publicMetadata json Public metadata associated with the token successboolean Operation success status
List all organizations in your Clerk application with optional filtering
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20) includeMembersCountboolean No Include member count for each organization querystring No Search by organization ID, name, or slug (e.g., Acme Corp or acme-corp) orderBystring No Sort field (name, created_at, members_count) with +/- prefix
Parameter Type Description organizationsarray Array of Clerk organization objects ↳ id string Organization ID ↳ name string Organization name ↳ slug string Organization slug ↳ imageUrl string Organization image URL ↳ hasImage boolean Whether organization has an image ↳ membersCount number Number of members ↳ pendingInvitationsCount number Number of pending invitations ↳ maxAllowedMemberships number Max allowed memberships ↳ adminDeleteEnabled boolean Whether admin delete is enabled ↳ createdBy string Creator user ID ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp ↳ publicMetadata json Public metadata totalCountnumber Total number of organizations successboolean Operation success status
Retrieve a single organization by ID or slug from Clerk
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID or slug of the organization to retrieve (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC or my-org-slug)
Parameter Type Description idstring Organization ID namestring Organization name slugstring Organization slug imageUrlstring Organization image URL hasImageboolean Whether organization has an image membersCountnumber Number of members pendingInvitationsCountnumber Number of pending invitations maxAllowedMembershipsnumber Max allowed memberships adminDeleteEnabledboolean Whether admin delete is enabled createdBystring Creator user ID createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata successboolean Operation success status
Create a new organization in your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication namestring Yes Name of the organization createdBystring Yes User ID of the creator who will become admin (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC) slugstring No Slug identifier for the organization maxAllowedMembershipsnumber No Maximum member capacity (0 for unlimited) publicMetadatajson No Public metadata (JSON object) privateMetadatajson No Private metadata (JSON object)
Parameter Type Description idstring Created organization ID namestring Organization name slugstring Organization slug imageUrlstring Organization image URL hasImageboolean Whether organization has an image membersCountnumber Number of members pendingInvitationsCountnumber Number of pending invitations maxAllowedMembershipsnumber Max allowed memberships adminDeleteEnabledboolean Whether admin delete is enabled createdBystring Creator user ID createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata successboolean Operation success status
Update an existing organization in your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization to update (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) namestring No Name of the organization slugstring No Slug identifier for the organization maxAllowedMembershipsnumber No Maximum member capacity (0 for unlimited) adminDeleteEnabledboolean No Whether admins can delete the organization
Parameter Type Description idstring Organization ID namestring Organization name slugstring Organization slug imageUrlstring Organization image URL hasImageboolean Whether organization has an image membersCountnumber Number of members pendingInvitationsCountnumber Number of pending invitations maxAllowedMembershipsnumber Max allowed memberships adminDeleteEnabledboolean Whether admin delete is enabled createdBystring Creator user ID createdAtnumber Creation timestamp updatedAtnumber Last update timestamp publicMetadatajson Public metadata successboolean Operation success status
Delete an organization from your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization to delete (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring Deleted organization ID objectstring Object type (organization) deletedboolean Whether the organization was deleted successboolean Operation success status
List members of a Clerk organization with optional filtering and pagination
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20) orderBystring No Sort field (e.g., created_at) with +/- prefix for direction rolestring No Filter by role, comma-separated for multiple (e.g., org:admin,org:member)
Parameter Type Description membershipsarray Array of Clerk organization membership objects ↳ id string Membership ID ↳ role string Member role ↳ roleName string Human-readable role name ↳ permissions array Permissions granted by the role ↳ organizationId string Organization ID ↳ userId string Member user ID ↳ firstName string Member first name ↳ lastName string Member last name ↳ imageUrl string Member profile image URL ↳ identifier string Member identifier (e.g., email) ↳ username string Member username ↳ banned boolean Whether the member is banned ↳ publicMetadata json Public metadata ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of memberships successboolean Operation success status
Add a user as a member of a Clerk organization with a given role
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) userIdstring Yes ID of the user to add as a member rolestring Yes Role to assign, e.g. org:admin or org:member
Parameter Type Description idstring Membership ID rolestring Member role roleNamestring Human-readable role name permissionsarray Permissions granted by the role organizationIdstring Organization ID userIdstring Member user ID firstNamestring Member first name lastNamestring Member last name imageUrlstring Member profile image URL identifierstring Member identifier (e.g., email) usernamestring Member username bannedboolean Whether the member is banned publicMetadatajson Public metadata createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Change a member's role within a Clerk organization
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) userIdstring Yes ID of the member whose role is being changed rolestring Yes New role to assign, e.g. org:admin or org:member
Parameter Type Description idstring Membership ID rolestring Member role roleNamestring Human-readable role name permissionsarray Permissions granted by the role organizationIdstring Organization ID userIdstring Member user ID firstNamestring Member first name lastNamestring Member last name imageUrlstring Member profile image URL identifierstring Member identifier (e.g., email) usernamestring Member username bannedboolean Whether the member is banned publicMetadatajson Public metadata createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Remove a member from a Clerk organization
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) userIdstring Yes ID of the member to remove
Parameter Type Description idstring Membership ID rolestring Member role roleNamestring Human-readable role name permissionsarray Permissions granted by the role organizationIdstring Organization ID userIdstring Member user ID firstNamestring Member first name lastNamestring Member last name imageUrlstring Member profile image URL identifierstring Member identifier (e.g., email) usernamestring Member username bannedboolean Whether the member is banned publicMetadatajson Public metadata createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Invite a user by email to join a Clerk organization with a given role
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) emailAddressstring Yes Email address of the user to invite rolestring Yes Role to assign on acceptance, e.g. org:admin or org:member inviterUserIdstring No User ID of the inviter redirectUrlstring No URL to redirect to after the invitation is accepted expiresInDaysnumber No Days until the invitation expires (1-365, default 30) publicMetadatajson No Public metadata (JSON object) privateMetadatajson No Private metadata (JSON object) notifyboolean No Whether Clerk sends the invitation email (default true)
Parameter Type Description idstring Invitation ID emailAddressstring Invited email address rolestring Role to assign on acceptance roleNamestring Human-readable role name organizationIdstring Organization ID inviterIdstring User ID of the inviter inviterEmailstring Inviter's email address inviterFirstNamestring Inviter's first name inviterLastNamestring Inviter's last name statusstring Invitation status urlstring Invitation URL expiresAtnumber Expiration timestamp publicMetadatajson Public metadata createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
List pending and past invitations for a Clerk organization
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication organizationIdstring Yes The ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC) statusstring No Filter by status: pending, accepted, revoked, or expired emailAddressstring No Filter by invited email address orderBystring No Sort field (created_at, email_address) with +/- prefix (default: -created_at) limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20)
Parameter Type Description invitationsarray Array of Clerk organization invitation objects ↳ id string Invitation ID ↳ emailAddress string Invited email address ↳ role string Role to assign on acceptance ↳ roleName string Human-readable role name ↳ organizationId string Organization ID ↳ inviterId string User ID of the inviter ↳ inviterEmail string Inviter's email address ↳ inviterFirstName string Inviter's first name ↳ inviterLastName string Inviter's last name ↳ status string Invitation status ↳ url string Invitation URL ↳ expiresAt number Expiration timestamp ↳ publicMetadata json Public metadata ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of invitations successboolean Operation success status
List sessions for a user or client in your Clerk application
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring No User ID to list sessions for (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC; required if clientId not provided) clientIdstring No Client ID to list sessions for (required if userId not provided) statusstring No Filter by session status (abandoned, active, ended, expired, pending, removed, replaced, revoked) limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20)
Parameter Type Description sessionsarray Array of Clerk session objects ↳ id string Session ID ↳ userId string User ID ↳ clientId string Client ID ↳ status string Session status ↳ lastActiveAt number Last activity timestamp ↳ lastActiveOrganizationId string Last active organization ID ↳ expireAt number Expiration timestamp ↳ abandonAt number Abandon timestamp ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of sessions successboolean Operation success status
Retrieve a single session by ID from Clerk
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication sessionIdstring Yes The ID of the session to retrieve (e.g., sess_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring Session ID userIdstring User ID clientIdstring Client ID statusstring Session status lastActiveAtnumber Last activity timestamp lastActiveOrganizationIdstring Last active organization ID expireAtnumber Expiration timestamp abandonAtnumber Abandon timestamp createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Revoke a session to immediately invalidate it
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication sessionIdstring Yes The ID of the session to revoke (e.g., sess_2NNEqL2nrIRdJ194ndJqAHwEfxC)
Parameter Type Description idstring Session ID userIdstring User ID clientIdstring Client ID statusstring Session status (should be revoked) lastActiveAtnumber Last activity timestamp lastActiveOrganizationIdstring Last active organization ID expireAtnumber Expiration timestamp abandonAtnumber Abandon timestamp createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
List email/phone/web3-wallet identifiers on your Clerk instance allowlist
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication limitnumber No Number of results per page (e.g., 10, 50, 100; range: 1-500, default: 10) offsetnumber No Number of results to skip for pagination (e.g., 0, 10, 20)
Parameter Type Description identifiersarray Array of Clerk allowlist identifier objects ↳ id string Allowlist identifier ID ↳ identifier string Email, phone, or web3 wallet identifier ↳ identifierType string Type of identifier ↳ invitationId string Associated invitation ID ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of allowlist identifiers successboolean Operation success status
Add an email, phone number, or web3 wallet to your Clerk instance allowlist
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication identifierstring Yes Email address, phone number, or web3 wallet to allow (wildcards like *@example.com supported for email) notifyboolean No Whether to notify the identifier owner by email (default false)
Parameter Type Description idstring Allowlist identifier ID identifierstring Email, phone, or web3 wallet identifier identifierTypestring Type of identifier invitationIdstring Associated invitation ID createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Remove an identifier from your Clerk instance allowlist
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication identifierIdstring Yes ID of the allowlist identifier to delete
Parameter Type Description idstring Deleted allowlist identifier ID objectstring Object type (allowlist_identifier) deletedboolean Whether the identifier was deleted successboolean Operation success status
List email/phone/web3-wallet identifiers on your Clerk instance blocklist
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication
Parameter Type Description identifiersarray Array of Clerk blocklist identifier objects ↳ id string Blocklist identifier ID ↳ identifier string Email, phone, or web3 wallet identifier ↳ identifierType string Type of identifier ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of blocklist identifiers successboolean Operation success status
Add an email, phone number, or web3 wallet to your Clerk instance blocklist to prevent sign-ups
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication identifierstring Yes Email address, phone number, or web3 wallet to block
Parameter Type Description idstring Blocklist identifier ID identifierstring Email, phone, or web3 wallet identifier identifierTypestring Type of identifier createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Remove an identifier from your Clerk instance blocklist
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication identifierIdstring Yes ID of the blocklist identifier to delete
Parameter Type Description idstring Deleted blocklist identifier ID objectstring Object type (blocklist_identifier) deletedboolean Whether the identifier was deleted successboolean Operation success status
List custom JWT templates configured on your Clerk instance
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication
Parameter Type Description templatesarray Array of Clerk JWT template objects ↳ id string JWT template ID ↳ name string JWT template name ↳ claims json Custom claims defined on the template ↳ lifetime number Token lifetime in seconds ↳ allowedClockSkew number Allowed clock skew in seconds ↳ customSigningKey boolean Whether a custom signing key is configured ↳ signingAlgorithm string Signing algorithm used ↳ createdAt number Creation timestamp ↳ updatedAt number Last update timestamp totalCountnumber Total number of JWT templates successboolean Operation success status
Retrieve a single custom JWT template by ID from Clerk
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication templateIdstring Yes ID of the JWT template to retrieve
Parameter Type Description idstring JWT template ID namestring JWT template name claimsjson Custom claims defined on the template lifetimenumber Token lifetime in seconds allowedClockSkewnumber Allowed clock skew in seconds customSigningKeyboolean Whether a custom signing key is configured signingAlgorithmstring Signing algorithm used createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Create an actor token to impersonate a user (God Mode / act-as-user), e.g. for support tooling
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication userIdstring Yes ID of the user to impersonate actorjson Yes Actor JSON object identifying who is impersonating, must include a "sub" field, e.g. {"sub": "user_support_agent_id"} expiresInSecondsnumber No Seconds until the token expires (default 3600) sessionMaxDurationInSecondsnumber No Max duration in seconds for sessions created with this token (default 1800)
Parameter Type Description idstring Actor token ID statusstring Actor token status userIdstring ID of the impersonated user actorjson Actor object identifying who is impersonating tokenstring Signed actor token (JWT) urlstring Sign-in URL for the actor token createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
Revoke an actor token before it is used or expires
Inputs and outputsParameter Type Required Description secretKeystring Yes The Clerk Secret Key for API authentication actorTokenIdstring Yes ID of the actor token to revoke
Parameter Type Description idstring Actor token ID statusstring Actor token status (should be revoked) userIdstring ID of the impersonated user actorjson Actor object identifying who is impersonating tokenstring Signed actor token (JWT) urlstring Sign-in URL for the actor token createdAtnumber Creation timestamp updatedAtnumber Last update timestamp successboolean Operation success status
A trigger starts a workflow when a supported event occurs in this service.
Trigger workflow when a Clerk organization is created
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) organizationIdstring Clerk organization ID (data.id) namestring Organization name (data.name) slugstring Organization slug (data.slug) createdBystring User ID of the creator (data.created_by) membersCountnumber Number of members (data.members_count) maxAllowedMembershipsnumber Maximum allowed memberships (data.max_allowed_memberships) createdAtnumber Organization creation timestamp (data.created_at)
Trigger workflow when a Clerk organization is deleted
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) organizationIdstring Deleted Clerk organization ID (data.id) deletedboolean Whether the organization was deleted (data.deleted)
Trigger workflow when a Clerk organization membership is created
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) membershipIdstring Membership ID (data.id) rolestring Membership role, e.g. org:admin (data.role) organizationIdstring Organization ID (data.organization.id) userIdstring User ID of the member (data.public_user_data.user_id) createdAtnumber Membership creation timestamp (data.created_at)
Trigger workflow when a Clerk organization membership is deleted
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) membershipIdstring Deleted membership ID (data.id) deletedboolean Whether the membership was deleted (data.deleted)
Trigger workflow when a Clerk organization membership is updated
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) membershipIdstring Membership ID (data.id) rolestring Membership role, e.g. org:admin (data.role) organizationIdstring Organization ID (data.organization.id) userIdstring User ID of the member (data.public_user_data.user_id) createdAtnumber Membership creation timestamp (data.created_at)
Trigger workflow when a Clerk organization is updated
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) organizationIdstring Clerk organization ID (data.id) namestring Organization name (data.name) slugstring Organization slug (data.slug) createdBystring User ID of the creator (data.created_by) membersCountnumber Number of members (data.members_count) maxAllowedMembershipsnumber Maximum allowed memberships (data.max_allowed_memberships) createdAtnumber Organization creation timestamp (data.created_at)
Trigger workflow when a Clerk session is created
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) sessionIdstring Clerk session ID (data.id) userIdstring User the session belongs to (data.user_id) clientIdstring Client ID for the session (data.client_id) statusstring Session status (data.status) createdAtnumber Session creation timestamp (data.created_at)
Trigger workflow when a Clerk session ends
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) sessionIdstring Clerk session ID (data.id) userIdstring User the session belongs to (data.user_id) clientIdstring Client ID for the session (data.client_id) statusstring Session status (data.status) createdAtnumber Session creation timestamp (data.created_at)
Trigger workflow when a Clerk session is removed
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) sessionIdstring Clerk session ID (data.id) userIdstring User the session belongs to (data.user_id) clientIdstring Client ID for the session (data.client_id) statusstring Session status (data.status) createdAtnumber Session creation timestamp (data.created_at)
Trigger workflow when a Clerk session is revoked
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) sessionIdstring Clerk session ID (data.id) userIdstring User the session belongs to (data.user_id) clientIdstring Client ID for the session (data.client_id) statusstring Session status (data.status) createdAtnumber Session creation timestamp (data.created_at)
Trigger workflow when a Clerk user is created
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) userIdstring Clerk user ID (data.id) firstNamestring User's first name lastNamestring User's last name usernamestring User's username imageUrlstring Profile image URL primaryEmailAddressIdstring Primary email address ID emailAddressesjson Array of email address objects phoneNumbersjson Array of phone number objects externalIdstring External system ID linked to the user createdAtnumber User creation timestamp (data.created_at) updatedAtnumber User last update timestamp (data.updated_at)
Trigger workflow when a Clerk user is deleted
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) userIdstring Deleted Clerk user ID (data.id) deletedboolean Whether the user was deleted (data.deleted)
Trigger workflow when a Clerk user is updated
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type) userIdstring Clerk user ID (data.id) firstNamestring User's first name lastNamestring User's last name usernamestring User's username imageUrlstring Profile image URL primaryEmailAddressIdstring Primary email address ID emailAddressesjson Array of email address objects phoneNumbersjson Array of phone number objects externalIdstring External system ID linked to the user createdAtnumber User creation timestamp (data.created_at) updatedAtnumber User last update timestamp (data.updated_at)
Trigger workflow on any Clerk webhook event
Configuration and outputsParameter Type Required Description signingSecretstring Yes Copy this from your Clerk webhook endpoint to verify event signatures.
Parameter Type Description typestring Event type (e.g., user.created, session.created) objectstring Always "event" timestampnumber Timestamp in milliseconds when the event occurred instance_idstring Identifier of your Clerk instance datajson Raw event data object (shape varies by event type)