Clerk Client API

Used to interact with the Client Object.

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/client Get the current browser client · Get Current Client #
Ask an LLM
“Which client and sessions does the current browser have?”
“Can I read the client from the authorization header instead of cookies?”
Tell an agent
Get the current client.
Show the sessions on this browser's client.
PUT /v1/client Create a new client via PUT · Create New Client #
Ask an LLM
“Can I create a fresh client with a PUT request?”
“Is there an idempotent PUT variant for creating a new client object?”
Tell an agent
Create a new client using the PUT endpoint.
Replace this browser's client with a new one via PUT.
POST /v1/client Create a new client via POST · Create New Client #
Ask an LLM
“How do I create a new client and have it set in the response cookies?”
“Can a new client be returned in the authorization header with a POST?”
Tell an agent
Create a new client using the POST endpoint.
Start a fresh client via POST and set its cookie.
DELETE /v1/client Sign out all sessions on this client · Delete Client's Sessions #
Ask an LLM
“How do I sign out of every session in the current browser at once?”
“Can I end all sessions of the current client in one call?”
Tell an agent destructive · confirm first
End all sessions on the current client.
Sign out every account in this browser.
GET /v1/client/sync Start syncing a satellite domain's client · Sync Clients Across Multiple Domains #
Ask an LLM
“How does a satellite domain start syncing the session from the primary domain?”
“What begins the multi-domain session sync process?”
Tell an agent
Start client sync for satellite domain {link_domain}.
Sync this satellite with the primary and return to {redirect_url}.
GET /v1/client/link Finish linking clients across domains · Link Clients Across Multiple Domains #
Ask an LLM
“How is the satellite and primary domain sync completed?”
“What token links the clients of two domains together?”
Tell an agent
Link clients across domains with token {__clerk_token}.
Complete the satellite-to-primary client link.
GET /v1/client/handshake Refresh a session token through a handshake · Generate and Return a New Session Token for a Given Client #
Ask an LLM
“How does my server get a fresh session token when it can't tell if the user is signed in?”
“Can the handshake return a token for a specific active organization?”
Tell an agent
Run a handshake to refresh the session token and redirect to {redirect_url}.
Handshake for a new session token scoped to organization {organization_id}.
GET /v1/agents/tasks Create a session from an agent task ticket · Create Session from Agent Task #
Ask an LLM
“How does an AI agent get signed in without going through the sign-in page?”
“Do agent task tickets bypass MFA, and can they be reused?”
Tell an agent
Create a session from agent task ticket {ticket}.
Sign the agent in directly using task ticket {ticket}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/clerk-com:clerk-com-client-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

clerk-com-client-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Clerk Frontend Client API
  version: v1
  description: The Clerk REST Frontend API, meant to be accessed from a browser or native environment.
  x-logo:
    url: https://clerk.com/_next/image?url=%2Fimages%2Fclerk-logo.svg&w=96&q=75
    altText: Clerk docs
    href: https://clerk.com/docs
  contact:
    email: support@clerk.com
    name: Clerk Team
    url: https://clerk.com/support
  termsOfService: https://clerk.com/terms
  license:
    name: MIT
    url: https://github.com/clerk/javascript/blob/main/LICENSE
servers:
- url: https://{domain}.clerk.accounts.dev
  variables:
    domain:
      default: example-destined-camel-13
      description: Your Development Instance Frontend API Domain.
security:
- {}
- DevBrowser: []
- ProductionBrowser: []
- ProductionNativeApp: []
  ProductionNativeFlag: []
tags:


# --- truncated at 32 KB (59 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/clerk-com/refs/heads/main/openapi/clerk-com-client-api-openapi.yml