AACFlow

Clerk

Clerk is a comprehensive identity infrastructure platform that helps you manage users, authentication, and sessions for your applications.

In AACFlow.io, the Clerk integration lets your agents automate user and session management through easy-to-use API-based tools. Agents can securely list users, update user profiles, manage organizations, monitor sessions, and revoke access directly in your workflow.

With Clerk, you can:

  • Authenticate users and manage sessions: Seamlessly control sign-in, sign-up, and session lifecycle for your users.
  • List and update users: Automatically pull user lists, update user attributes, or view profile details as part of your agent tasks.
  • Manage organizations and memberships: Add or update organizations and administer user memberships with clarity.
  • Monitor and revoke sessions: See active or past user sessions, and revoke access immediately if needed for security.

The integration enables real-time, auditable management of your user base—all from within AACFlow.io. Connected agents can automate onboarding, enforce policies, keep directories up to date, and react to authentication events or organizational changes, helping you run secure and flexible processes using Clerk as your identity engine.

Usage Instructions

Integrate Clerk authentication and user management into your workflow. 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.

Actions

clerk_list_users

List all users in your Clerk application with optional filtering and pagination

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)
orderBystringNoSort field with optional +/- prefix for direction (default: -created_at)
emailAddressstringNoFilter by email address (e.g., user@example.com or user1@example.com,user2@example.com)
phoneNumberstringNoFilter by phone number (comma-separated for multiple)
externalIdstringNoFilter by external ID (comma-separated for multiple)
usernamestringNoFilter by username (comma-separated for multiple)
userIdstringNoFilter by user ID (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC or comma-separated for multiple)
querystringNoSearch query to match across email, phone, username, and names (e.g., john or john@example.com)

Output

ParameterTypeDescription
usersarrayArray of Clerk user objects
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile image URL
hasImagebooleanWhether user has a profile image
primaryEmailAddressIdstringPrimary email address ID
primaryPhoneNumberIdstringPrimary phone number ID
emailAddressesarrayUser email addresses
idstringEmail address ID
emailAddressstringEmail address
phoneNumbersarrayUser phone numbers
idstringPhone number ID
phoneNumberstringPhone number
externalIdstringExternal system ID
passwordEnabledbooleanWhether password is enabled
twoFactorEnabledbooleanWhether 2FA is enabled
bannedbooleanWhether user is banned
lockedbooleanWhether user is locked
lastSignInAtnumberLast sign-in timestamp
lastActiveAtnumberLast activity timestamp
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
totalCountnumberTotal number of users matching the query
successbooleanOperation success status

clerk_get_user

Retrieve a single user by their ID from Clerk

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to retrieve (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile image URL
hasImagebooleanWhether user has a profile image
primaryEmailAddressIdstringPrimary email address ID
primaryPhoneNumberIdstringPrimary phone number ID
primaryWeb3WalletIdstringPrimary Web3 wallet ID
emailAddressesarrayUser email addresses
idstringEmail address ID
emailAddressstringEmail address
verifiedbooleanWhether email is verified
phoneNumbersarrayUser phone numbers
idstringPhone number ID
phoneNumberstringPhone number
verifiedbooleanWhether phone is verified
externalIdstringExternal system ID
passwordEnabledbooleanWhether password is enabled
twoFactorEnabledbooleanWhether 2FA is enabled
totpEnabledbooleanWhether TOTP is enabled
backupCodeEnabledbooleanWhether backup codes are enabled
bannedbooleanWhether user is banned
lockedbooleanWhether user is locked
deleteSelfEnabledbooleanWhether user can delete themselves
createOrganizationEnabledbooleanWhether user can create organizations
lastSignInAtnumberLast sign-in timestamp
lastActiveAtnumberLast activity timestamp
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata (readable from frontend)
privateMetadatajsonPrivate metadata (backend only)
unsafeMetadatajsonUnsafe metadata (modifiable from frontend)
successbooleanOperation success status

clerk_create_user

Create a new user in your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
emailAddressstringNoEmail addresses for the user (comma-separated for multiple)
phoneNumberstringNoPhone numbers for the user (comma-separated for multiple)
usernamestringNoUsername for the user (must be unique)
passwordstringNoPassword for the user (minimum 8 characters)
firstNamestringNoFirst name of the user
lastNamestringNoLast name of the user
externalIdstringNoExternal system identifier (must be unique)
publicMetadatajsonNoPublic metadata (JSON object, readable from frontend)
privateMetadatajsonNoPrivate metadata (JSON object, backend only)
unsafeMetadatajsonNoUnsafe metadata (JSON object, modifiable from frontend)
skipPasswordChecksbooleanNoSkip password validation checks
skipPasswordRequirementbooleanNoMake password optional

Output

ParameterTypeDescription
idstringCreated user ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile image URL
primaryEmailAddressIdstringPrimary email address ID
primaryPhoneNumberIdstringPrimary phone number ID
emailAddressesarrayUser email addresses
idstringEmail address ID
emailAddressstringEmail address
verifiedbooleanWhether email is verified
phoneNumbersarrayUser phone numbers
idstringPhone number ID
phoneNumberstringPhone number
verifiedbooleanWhether phone is verified
externalIdstringExternal system ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
successbooleanOperation success status

clerk_update_user

Update an existing user in your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to update (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
firstNamestringNoFirst name of the user
lastNamestringNoLast name of the user
usernamestringNoUsername (must be unique)
passwordstringNoNew password (minimum 8 characters)
externalIdstringNoExternal system identifier
primaryEmailAddressIdstringNoID of verified email to set as primary
primaryPhoneNumberIdstringNoID of verified phone to set as primary
publicMetadatajsonNoPublic metadata (JSON object)
privateMetadatajsonNoPrivate metadata (JSON object)
unsafeMetadatajsonNoUnsafe metadata (JSON object)
skipPasswordChecksbooleanNoSkip password validation checks

Output

ParameterTypeDescription
idstringUpdated user ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile image URL
primaryEmailAddressIdstringPrimary email address ID
primaryPhoneNumberIdstringPrimary phone number ID
emailAddressesarrayUser email addresses
idstringEmail address ID
emailAddressstringEmail address
verifiedbooleanWhether email is verified
phoneNumbersarrayUser phone numbers
idstringPhone number ID
phoneNumberstringPhone number
verifiedbooleanWhether phone is verified
externalIdstringExternal system ID
bannedbooleanWhether user is banned
lockedbooleanWhether user is locked
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
successbooleanOperation success status

clerk_delete_user

Delete a user from your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to delete (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringDeleted user ID
objectstringObject type (user)
deletedbooleanWhether the user was deleted
successbooleanOperation success status

clerk_ban_user

Ban a user, preventing them from signing in

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to ban (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
bannedbooleanWhether the user is banned
lockedbooleanWhether the user is locked
lockoutExpiresInSecondsnumberSeconds until lockout expires
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_unban_user

Remove a ban from a user, allowing them to sign in again

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to unban (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
bannedbooleanWhether the user is banned
lockedbooleanWhether the user is locked
lockoutExpiresInSecondsnumberSeconds until lockout expires
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_lock_user

Lock a user account, blocking sign-in attempts

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to lock (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
bannedbooleanWhether the user is banned
lockedbooleanWhether the user is locked
lockoutExpiresInSecondsnumberSeconds until lockout expires
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_unlock_user

Unlock a previously locked user account

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user to unlock (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringUser ID
usernamestringUsername
firstNamestringFirst name
lastNamestringLast name
bannedbooleanWhether the user is banned
lockedbooleanWhether the user is locked
lockoutExpiresInSecondsnumberSeconds until lockout expires
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_get_user_oauth_token

Retrieve a user's OAuth access token for a connected external provider (e.g. Google, GitHub, Microsoft) obtained via Clerk SSO

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesThe ID of the user (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
providerstringYesOAuth provider slug, e.g. google, github, microsoft, discord (without the oauth_ prefix)

Output

ParameterTypeDescription
accessTokensarrayOAuth access tokens for the connected provider
externalAccountIdstringExternal account ID
tokenstringOAuth access token
expiresAtnumberExpiration timestamp
providerstringOAuth provider slug
labelstringToken label
scopesarrayOAuth scopes granted to the token
publicMetadatajsonPublic metadata associated with the token
successbooleanOperation success status

clerk_list_organizations

List all organizations in your Clerk application with optional filtering

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)
includeMembersCountbooleanNoInclude member count for each organization
querystringNoSearch by organization ID, name, or slug (e.g., Acme Corp or acme-corp)
orderBystringNoSort field (name, created_at, members_count) with +/- prefix

Output

ParameterTypeDescription
organizationsarrayArray of Clerk organization objects
idstringOrganization ID
namestringOrganization name
slugstringOrganization slug
imageUrlstringOrganization image URL
hasImagebooleanWhether organization has an image
membersCountnumberNumber of members
pendingInvitationsCountnumberNumber of pending invitations
maxAllowedMembershipsnumberMax allowed memberships
adminDeleteEnabledbooleanWhether admin delete is enabled
createdBystringCreator user ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
totalCountnumberTotal number of organizations
successbooleanOperation success status

clerk_get_organization

Retrieve a single organization by ID or slug from Clerk

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID or slug of the organization to retrieve (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC or my-org-slug)

Output

ParameterTypeDescription
idstringOrganization ID
namestringOrganization name
slugstringOrganization slug
imageUrlstringOrganization image URL
hasImagebooleanWhether organization has an image
membersCountnumberNumber of members
pendingInvitationsCountnumberNumber of pending invitations
maxAllowedMembershipsnumberMax allowed memberships
adminDeleteEnabledbooleanWhether admin delete is enabled
createdBystringCreator user ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
successbooleanOperation success status

clerk_create_organization

Create a new organization in your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
namestringYesName of the organization
createdBystringYesUser ID of the creator who will become admin (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC)
slugstringNoSlug identifier for the organization
maxAllowedMembershipsnumberNoMaximum member capacity (0 for unlimited)
publicMetadatajsonNoPublic metadata (JSON object)
privateMetadatajsonNoPrivate metadata (JSON object)

Output

ParameterTypeDescription
idstringCreated organization ID
namestringOrganization name
slugstringOrganization slug
imageUrlstringOrganization image URL
hasImagebooleanWhether organization has an image
membersCountnumberNumber of members
pendingInvitationsCountnumberNumber of pending invitations
maxAllowedMembershipsnumberMax allowed memberships
adminDeleteEnabledbooleanWhether admin delete is enabled
createdBystringCreator user ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
successbooleanOperation success status

clerk_update_organization

Update an existing organization in your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization to update (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
namestringNoName of the organization
slugstringNoSlug identifier for the organization
maxAllowedMembershipsnumberNoMaximum member capacity (0 for unlimited)
adminDeleteEnabledbooleanNoWhether admins can delete the organization

Output

ParameterTypeDescription
idstringOrganization ID
namestringOrganization name
slugstringOrganization slug
imageUrlstringOrganization image URL
hasImagebooleanWhether organization has an image
membersCountnumberNumber of members
pendingInvitationsCountnumberNumber of pending invitations
maxAllowedMembershipsnumberMax allowed memberships
adminDeleteEnabledbooleanWhether admin delete is enabled
createdBystringCreator user ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
publicMetadatajsonPublic metadata
successbooleanOperation success status

clerk_delete_organization

Delete an organization from your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization to delete (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringDeleted organization ID
objectstringObject type (organization)
deletedbooleanWhether the organization was deleted
successbooleanOperation success status

clerk_list_organization_memberships

List members of a Clerk organization with optional filtering and pagination

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)
orderBystringNoSort field (e.g., created_at) with +/- prefix for direction
rolestringNoFilter by role, comma-separated for multiple (e.g., org:admin,org:member)

Output

ParameterTypeDescription
membershipsarrayArray of Clerk organization membership objects
idstringMembership ID
rolestringMember role
roleNamestringHuman-readable role name
permissionsarrayPermissions granted by the role
organizationIdstringOrganization ID
userIdstringMember user ID
firstNamestringMember first name
lastNamestringMember last name
imageUrlstringMember profile image URL
identifierstringMember identifier (e.g., email)
usernamestringMember username
bannedbooleanWhether the member is banned
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of memberships
successbooleanOperation success status

clerk_add_organization_member

Add a user as a member of a Clerk organization with a given role

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
userIdstringYesID of the user to add as a member
rolestringYesRole to assign, e.g. org:admin or org:member

Output

ParameterTypeDescription
idstringMembership ID
rolestringMember role
roleNamestringHuman-readable role name
permissionsarrayPermissions granted by the role
organizationIdstringOrganization ID
userIdstringMember user ID
firstNamestringMember first name
lastNamestringMember last name
imageUrlstringMember profile image URL
identifierstringMember identifier (e.g., email)
usernamestringMember username
bannedbooleanWhether the member is banned
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_update_organization_membership

Change a member's role within a Clerk organization

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
userIdstringYesID of the member whose role is being changed
rolestringYesNew role to assign, e.g. org:admin or org:member

Output

ParameterTypeDescription
idstringMembership ID
rolestringMember role
roleNamestringHuman-readable role name
permissionsarrayPermissions granted by the role
organizationIdstringOrganization ID
userIdstringMember user ID
firstNamestringMember first name
lastNamestringMember last name
imageUrlstringMember profile image URL
identifierstringMember identifier (e.g., email)
usernamestringMember username
bannedbooleanWhether the member is banned
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_remove_organization_member

Remove a member from a Clerk organization

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
userIdstringYesID of the member to remove

Output

ParameterTypeDescription
idstringMembership ID
rolestringMember role
roleNamestringHuman-readable role name
permissionsarrayPermissions granted by the role
organizationIdstringOrganization ID
userIdstringMember user ID
firstNamestringMember first name
lastNamestringMember last name
imageUrlstringMember profile image URL
identifierstringMember identifier (e.g., email)
usernamestringMember username
bannedbooleanWhether the member is banned
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_create_organization_invitation

Invite a user by email to join a Clerk organization with a given role

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
emailAddressstringYesEmail address of the user to invite
rolestringYesRole to assign on acceptance, e.g. org:admin or org:member
inviterUserIdstringNoUser ID of the inviter
redirectUrlstringNoURL to redirect to after the invitation is accepted
expiresInDaysnumberNoDays until the invitation expires (1-365, default 30)
publicMetadatajsonNoPublic metadata (JSON object)
privateMetadatajsonNoPrivate metadata (JSON object)
notifybooleanNoWhether Clerk sends the invitation email (default true)

Output

ParameterTypeDescription
idstringInvitation ID
emailAddressstringInvited email address
rolestringRole to assign on acceptance
roleNamestringHuman-readable role name
organizationIdstringOrganization ID
inviterIdstringUser ID of the inviter
inviterEmailstringInviter's email address
inviterFirstNamestringInviter's first name
inviterLastNamestringInviter's last name
statusstringInvitation status
urlstringInvitation URL
expiresAtnumberExpiration timestamp
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_list_organization_invitations

List pending and past invitations for a Clerk organization

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
organizationIdstringYesThe ID of the organization (e.g., org_2NNEqL2nrIRdJ194ndJqAHwEfxC)
statusstringNoFilter by status: pending, accepted, revoked, or expired
emailAddressstringNoFilter by invited email address
orderBystringNoSort field (created_at, email_address) with +/- prefix (default: -created_at)
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)

Output

ParameterTypeDescription
invitationsarrayArray of Clerk organization invitation objects
idstringInvitation ID
emailAddressstringInvited email address
rolestringRole to assign on acceptance
roleNamestringHuman-readable role name
organizationIdstringOrganization ID
inviterIdstringUser ID of the inviter
inviterEmailstringInviter's email address
inviterFirstNamestringInviter's first name
inviterLastNamestringInviter's last name
statusstringInvitation status
urlstringInvitation URL
expiresAtnumberExpiration timestamp
publicMetadatajsonPublic metadata
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of invitations
successbooleanOperation success status

clerk_list_sessions

List sessions for a user or client in your Clerk application

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringNoUser ID to list sessions for (e.g., user_2NNEqL2nrIRdJ194ndJqAHwEfxC; required if clientId not provided)
clientIdstringNoClient ID to list sessions for (required if userId not provided)
statusstringNoFilter by session status (abandoned, active, ended, expired, pending, removed, replaced, revoked)
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)

Output

ParameterTypeDescription
sessionsarrayArray of Clerk session objects
idstringSession ID
userIdstringUser ID
clientIdstringClient ID
statusstringSession status
lastActiveAtnumberLast activity timestamp
lastActiveOrganizationIdstringLast active organization ID
expireAtnumberExpiration timestamp
abandonAtnumberAbandon timestamp
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of sessions
successbooleanOperation success status

clerk_get_session

Retrieve a single session by ID from Clerk

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
sessionIdstringYesThe ID of the session to retrieve (e.g., sess_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringSession ID
userIdstringUser ID
clientIdstringClient ID
statusstringSession status
lastActiveAtnumberLast activity timestamp
lastActiveOrganizationIdstringLast active organization ID
expireAtnumberExpiration timestamp
abandonAtnumberAbandon timestamp
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_revoke_session

Revoke a session to immediately invalidate it

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
sessionIdstringYesThe ID of the session to revoke (e.g., sess_2NNEqL2nrIRdJ194ndJqAHwEfxC)

Output

ParameterTypeDescription
idstringSession ID
userIdstringUser ID
clientIdstringClient ID
statusstringSession status (should be revoked)
lastActiveAtnumberLast activity timestamp
lastActiveOrganizationIdstringLast active organization ID
expireAtnumberExpiration timestamp
abandonAtnumberAbandon timestamp
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_list_allowlist_identifiers

List email/phone/web3-wallet identifiers on your Clerk instance allowlist

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
limitnumberNoNumber of results per page (e.g., 10, 50, 100; range: 1-500, default: 10)
offsetnumberNoNumber of results to skip for pagination (e.g., 0, 10, 20)

Output

ParameterTypeDescription
identifiersarrayArray of Clerk allowlist identifier objects
idstringAllowlist identifier ID
identifierstringEmail, phone, or web3 wallet identifier
identifierTypestringType of identifier
invitationIdstringAssociated invitation ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of allowlist identifiers
successbooleanOperation success status

clerk_create_allowlist_identifier

Add an email, phone number, or web3 wallet to your Clerk instance allowlist

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
identifierstringYesEmail address, phone number, or web3 wallet to allow (wildcards like *@example.com supported for email)
notifybooleanNoWhether to notify the identifier owner by email (default false)

Output

ParameterTypeDescription
idstringAllowlist identifier ID
identifierstringEmail, phone, or web3 wallet identifier
identifierTypestringType of identifier
invitationIdstringAssociated invitation ID
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_delete_allowlist_identifier

Remove an identifier from your Clerk instance allowlist

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
identifierIdstringYesID of the allowlist identifier to delete

Output

ParameterTypeDescription
idstringDeleted allowlist identifier ID
objectstringObject type (allowlist_identifier)
deletedbooleanWhether the identifier was deleted
successbooleanOperation success status

clerk_list_blocklist_identifiers

List email/phone/web3-wallet identifiers on your Clerk instance blocklist

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication

Output

ParameterTypeDescription
identifiersarrayArray of Clerk blocklist identifier objects
idstringBlocklist identifier ID
identifierstringEmail, phone, or web3 wallet identifier
identifierTypestringType of identifier
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of blocklist identifiers
successbooleanOperation success status

clerk_create_blocklist_identifier

Add an email, phone number, or web3 wallet to your Clerk instance blocklist to prevent sign-ups

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
identifierstringYesEmail address, phone number, or web3 wallet to block

Output

ParameterTypeDescription
idstringBlocklist identifier ID
identifierstringEmail, phone, or web3 wallet identifier
identifierTypestringType of identifier
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_delete_blocklist_identifier

Remove an identifier from your Clerk instance blocklist

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
identifierIdstringYesID of the blocklist identifier to delete

Output

ParameterTypeDescription
idstringDeleted blocklist identifier ID
objectstringObject type (blocklist_identifier)
deletedbooleanWhether the identifier was deleted
successbooleanOperation success status

clerk_list_jwt_templates

List custom JWT templates configured on your Clerk instance

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication

Output

ParameterTypeDescription
templatesarrayArray of Clerk JWT template objects
idstringJWT template ID
namestringJWT template name
claimsjsonCustom claims defined on the template
lifetimenumberToken lifetime in seconds
allowedClockSkewnumberAllowed clock skew in seconds
customSigningKeybooleanWhether a custom signing key is configured
signingAlgorithmstringSigning algorithm used
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
totalCountnumberTotal number of JWT templates
successbooleanOperation success status

clerk_get_jwt_template

Retrieve a single custom JWT template by ID from Clerk

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
templateIdstringYesID of the JWT template to retrieve

Output

ParameterTypeDescription
idstringJWT template ID
namestringJWT template name
claimsjsonCustom claims defined on the template
lifetimenumberToken lifetime in seconds
allowedClockSkewnumberAllowed clock skew in seconds
customSigningKeybooleanWhether a custom signing key is configured
signingAlgorithmstringSigning algorithm used
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_create_actor_token

Create an actor token to impersonate a user (God Mode / act-as-user), e.g. for support tooling

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
userIdstringYesID of the user to impersonate
actorjsonYesActor JSON object identifying who is impersonating, must include a "sub" field, e.g. {"sub": "user_support_agent_id"}
expiresInSecondsnumberNoSeconds until the token expires (default 3600)
sessionMaxDurationInSecondsnumberNoMax duration in seconds for sessions created with this token (default 1800)

Output

ParameterTypeDescription
idstringActor token ID
statusstringActor token status
userIdstringID of the impersonated user
actorjsonActor object identifying who is impersonating
tokenstringSigned actor token (JWT)
urlstringSign-in URL for the actor token
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

clerk_revoke_actor_token

Revoke an actor token before it is used or expires

Input

ParameterTypeRequiredDescription
secretKeystringYesThe Clerk Secret Key for API authentication
actorTokenIdstringYesID of the actor token to revoke

Output

ParameterTypeDescription
idstringActor token ID
statusstringActor token status (should be revoked)
userIdstringID of the impersonated user
actorjsonActor object identifying who is impersonating
tokenstringSigned actor token (JWT)
urlstringSign-in URL for the actor token
createdAtnumberCreation timestamp
updatedAtnumberLast update timestamp
successbooleanOperation success status

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

Clerk Organization Created

Trigger workflow when a Clerk organization is created

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
organizationIdstringClerk organization ID (data.id)
namestringOrganization name (data.name)
slugstringOrganization slug (data.slug)
createdBystringUser ID of the creator (data.created_by)
membersCountnumberNumber of members (data.members_count)
maxAllowedMembershipsnumberMaximum allowed memberships (data.max_allowed_memberships)
createdAtnumberOrganization creation timestamp (data.created_at)

Clerk Organization Deleted

Trigger workflow when a Clerk organization is deleted

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
organizationIdstringDeleted Clerk organization ID (data.id)
deletedbooleanWhether the organization was deleted (data.deleted)

Clerk Organization Membership Created

Trigger workflow when a Clerk organization membership is created

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
membershipIdstringMembership ID (data.id)
rolestringMembership role, e.g. org:admin (data.role)
organizationIdstringOrganization ID (data.organization.id)
userIdstringUser ID of the member (data.public_user_data.user_id)
createdAtnumberMembership creation timestamp (data.created_at)

Clerk Organization Membership Deleted

Trigger workflow when a Clerk organization membership is deleted

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
membershipIdstringDeleted membership ID (data.id)
deletedbooleanWhether the membership was deleted (data.deleted)

Clerk Organization Membership Updated

Trigger workflow when a Clerk organization membership is updated

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
membershipIdstringMembership ID (data.id)
rolestringMembership role, e.g. org:admin (data.role)
organizationIdstringOrganization ID (data.organization.id)
userIdstringUser ID of the member (data.public_user_data.user_id)
createdAtnumberMembership creation timestamp (data.created_at)

Clerk Organization Updated

Trigger workflow when a Clerk organization is updated

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
organizationIdstringClerk organization ID (data.id)
namestringOrganization name (data.name)
slugstringOrganization slug (data.slug)
createdBystringUser ID of the creator (data.created_by)
membersCountnumberNumber of members (data.members_count)
maxAllowedMembershipsnumberMaximum allowed memberships (data.max_allowed_memberships)
createdAtnumberOrganization creation timestamp (data.created_at)

Clerk Session Created

Trigger workflow when a Clerk session is created

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
sessionIdstringClerk session ID (data.id)
userIdstringUser the session belongs to (data.user_id)
clientIdstringClient ID for the session (data.client_id)
statusstringSession status (data.status)
createdAtnumberSession creation timestamp (data.created_at)

Clerk Session Ended

Trigger workflow when a Clerk session ends

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
sessionIdstringClerk session ID (data.id)
userIdstringUser the session belongs to (data.user_id)
clientIdstringClient ID for the session (data.client_id)
statusstringSession status (data.status)
createdAtnumberSession creation timestamp (data.created_at)

Clerk Session Removed

Trigger workflow when a Clerk session is removed

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
sessionIdstringClerk session ID (data.id)
userIdstringUser the session belongs to (data.user_id)
clientIdstringClient ID for the session (data.client_id)
statusstringSession status (data.status)
createdAtnumberSession creation timestamp (data.created_at)

Clerk Session Revoked

Trigger workflow when a Clerk session is revoked

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
sessionIdstringClerk session ID (data.id)
userIdstringUser the session belongs to (data.user_id)
clientIdstringClient ID for the session (data.client_id)
statusstringSession status (data.status)
createdAtnumberSession creation timestamp (data.created_at)

Clerk User Created

Trigger workflow when a Clerk user is created

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
userIdstringClerk user ID (data.id)
firstNamestringUser's first name
lastNamestringUser's last name
usernamestringUser's username
imageUrlstringProfile image URL
primaryEmailAddressIdstringPrimary email address ID
emailAddressesjsonArray of email address objects
phoneNumbersjsonArray of phone number objects
externalIdstringExternal system ID linked to the user
createdAtnumberUser creation timestamp (data.created_at)
updatedAtnumberUser last update timestamp (data.updated_at)

Clerk User Deleted

Trigger workflow when a Clerk user is deleted

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
userIdstringDeleted Clerk user ID (data.id)
deletedbooleanWhether the user was deleted (data.deleted)

Clerk User Updated

Trigger workflow when a Clerk user is updated

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)
userIdstringClerk user ID (data.id)
firstNamestringUser's first name
lastNamestringUser's last name
usernamestringUser's username
imageUrlstringProfile image URL
primaryEmailAddressIdstringPrimary email address ID
emailAddressesjsonArray of email address objects
phoneNumbersjsonArray of phone number objects
externalIdstringExternal system ID linked to the user
createdAtnumberUser creation timestamp (data.created_at)
updatedAtnumberUser last update timestamp (data.updated_at)

Clerk Webhook

Trigger workflow on any Clerk webhook event

Configuration

ParameterTypeRequiredDescription
signingSecretstringYesCopy this from your Clerk webhook endpoint to verify event signatures.

Output

ParameterTypeDescription
typestringEvent type (e.g., user.created, session.created)
objectstringAlways "event"
timestampnumberTimestamp in milliseconds when the event occurred
instance_idstringIdentifier of your Clerk instance
datajsonRaw event data object (shape varies by event type)

On this page

Usage Instructions
Actions
clerk_list_users
Input
Output
clerk_get_user
Input
Output
clerk_create_user
Input
Output
clerk_update_user
Input
Output
clerk_delete_user
Input
Output
clerk_ban_user
Input
Output
clerk_unban_user
Input
Output
clerk_lock_user
Input
Output
clerk_unlock_user
Input
Output
clerk_get_user_oauth_token
Input
Output
clerk_list_organizations
Input
Output
clerk_get_organization
Input
Output
clerk_create_organization
Input
Output
clerk_update_organization
Input
Output
clerk_delete_organization
Input
Output
clerk_list_organization_memberships
Input
Output
clerk_add_organization_member
Input
Output
clerk_update_organization_membership
Input
Output
clerk_remove_organization_member
Input
Output
clerk_create_organization_invitation
Input
Output
clerk_list_organization_invitations
Input
Output
clerk_list_sessions
Input
Output
clerk_get_session
Input
Output
clerk_revoke_session
Input
Output
clerk_list_allowlist_identifiers
Input
Output
clerk_create_allowlist_identifier
Input
Output
clerk_delete_allowlist_identifier
Input
Output
clerk_list_blocklist_identifiers
Input
Output
clerk_create_blocklist_identifier
Input
Output
clerk_delete_blocklist_identifier
Input
Output
clerk_list_jwt_templates
Input
Output
clerk_get_jwt_template
Input
Output
clerk_create_actor_token
Input
Output
clerk_revoke_actor_token
Input
Output
Triggers
Clerk Organization Created
Configuration
Output
Clerk Organization Deleted
Configuration
Output
Clerk Organization Membership Created
Configuration
Output
Clerk Organization Membership Deleted
Configuration
Output
Clerk Organization Membership Updated
Configuration
Output
Clerk Organization Updated
Configuration
Output
Clerk Session Created
Configuration
Output
Clerk Session Ended
Configuration
Output
Clerk Session Removed
Configuration
Output
Clerk Session Revoked
Configuration
Output
Clerk User Created
Configuration
Output
Clerk User Deleted
Configuration
Output
Clerk User Updated
Configuration
Output
Clerk Webhook
Configuration
Output