Skip to main content

Clerk integration for AI agents

Manage users, organizations, and sessions in Clerk

Clerk is a Sim integration in the Security category. Sim is the AI workspace where teams build and deploy AI agents. Sim's Clerk integration provides 34 tools and 14 triggers that AI agents can use inside Sim's visual workflow builder. Clerk requires no authentication. Free to start at sim.ai.

View docs

Last updated

What Sim agents can do with Clerk

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.

Category
Security
Authentication
None required
Tools
34
Triggers
14
Documentation
Clerk docs

How to automate Clerk with Sim

  1. Create a free account

    Sign up at sim.ai in seconds. No credit card required. Your workspace is ready immediately.

  2. Add a Clerk block

    Open your workspace, drag a Clerk block onto the workflow builder. No authentication is needed.

  3. Configure, connect, and run

    Pick the tool you need, wire in an AI agent for reasoning or data transformation, and run. Your Clerk automation is live.

Clerk triggers

Add a Clerk trigger to a Sim agent and it starts a run whenever one of these Clerk events occurs.

Clerk User Created

Trigger workflow when a Clerk user is created

Clerk User Updated

Trigger workflow when a Clerk user is updated

Clerk User Deleted

Trigger workflow when a Clerk user is deleted

Clerk Session Created

Trigger workflow when a Clerk session is created

Clerk Session Ended

Trigger workflow when a Clerk session ends

Clerk Session Removed

Trigger workflow when a Clerk session is removed

Clerk Session Revoked

Trigger workflow when a Clerk session is revoked

Clerk Organization Created

Trigger workflow when a Clerk organization is created

Clerk Organization Updated

Trigger workflow when a Clerk organization is updated

Clerk Organization Deleted

Trigger workflow when a Clerk organization is deleted

Clerk Organization Membership Created

Trigger workflow when a Clerk organization membership is created

Clerk Organization Membership Updated

Trigger workflow when a Clerk organization membership is updated

Clerk Organization Membership Deleted

Trigger workflow when a Clerk organization membership is deleted

Clerk Webhook

Trigger workflow on any Clerk webhook event

Agent templates

Ready-to-use templates featuring Clerk. Click any to build it instantly.

Clerk tools

34 Clerk tools available to Sim agents.

List Users

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

Get User

Retrieve a single user by their ID from Clerk

Create User

Create a new user in your Clerk application

Update User

Update an existing user in your Clerk application

Delete User

Delete a user from your Clerk application

Ban User

Ban a user, preventing them from signing in

Unban User

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

Lock User

Lock a user account, blocking sign-in attempts

Unlock User

Unlock a previously locked user account

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

List Organizations

List all organizations in your Clerk application with optional filtering

Get Organization

Retrieve a single organization by ID or slug from Clerk

Create Organization

Create a new organization in your Clerk application

Update Organization

Update an existing organization in your Clerk application

Delete Organization

Delete an organization from your Clerk application

List Organization Memberships

List members of a Clerk organization with optional filtering and pagination

Add Organization Member

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

Update Organization Membership

Change a member's role within a Clerk organization

Remove Organization Member

Remove a member from a Clerk organization

Create Organization Invitation

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

List Organization Invitations

List pending and past invitations for a Clerk organization

List Sessions

List sessions for a user or client in your Clerk application

Get Session

Retrieve a single session by ID from Clerk

Revoke Session

Revoke a session to immediately invalidate it

List Allowlist Identifiers

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

Create Allowlist Identifier

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

Delete Allowlist Identifier

Remove an identifier from your Clerk instance allowlist

List Blocklist Identifiers

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

Create Blocklist Identifier

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

Delete Blocklist Identifier

Remove an identifier from your Clerk instance blocklist

List JWT Templates

List custom JWT templates configured on your Clerk instance

Get JWT Template

Retrieve a single custom JWT template by ID from Clerk

Create Actor Token

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

Revoke Actor Token

Revoke an actor token before it is used or expires

Frequently asked questions

Sim's Clerk integration adds 34 tools and 14 triggers to the AI agents you build in Sim's visual workflow builder. Manage users, organizations, and sessions in Clerk.

Every agent your company runs. All in one place.