Clerk Dev Browser API

The Dev Browser API from Clerk — 2 operation(s) for dev browser.

Operations 3

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

POST /v1/dev_browser/set_first_party_cookie Set the dev browser first-party cookie · Post Dev Browser Init Set Cookie #
Ask an LLM
“How does a development instance set its first-party dev browser cookie?”
“What sets the dev browser cookie on my own domain?”
Tell an agent
Set the dev browser first-party cookie.
Write the development first-party cookie for this browser.
GET /v1/dev_browser/init Initialize a dev browser for a development instance · Initialize Dev Browser for Development and Staging Instances #
Ask an LLM
“How do I initialize a dev browser for a staging or development instance?”
“Which origin does dev browser initialization apply to?”
Tell an agent
Initialize a dev browser for origin {origin}.
Start a development browser session.
POST /v1/dev_browser Create a Dev Browser token · Create a Dev Browser Token #
Ask an LLM
“How do I authenticate requests against a development instance?”
“What token must be set before calling a dev instance's frontend API?”
Tell an agent
Create a Dev Browser token.
Generate a DevBrowser token for my development instance.

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-dev-browser-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-dev-browser-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Clerk Frontend Dev Browser 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:
- name: Dev Browser
paths:
  /v1/dev_browser/set_first_party_cookie:
    post:
      summary: Post Dev Browser Init Set Cookie
      description: post dev_browser/set_first_party_cookie
      operationId: postDevBrowserInitSetCookie
      responses:
        '200':
          description: A cookie for the dev browser was set.
      tags:
      - Dev Browser
  /v1/dev_browser/init:
    get:
      summary: Initialize Dev Browser for Development and Staging Instances
      description: get dev_browser/init
      operationId: getDevBrowserInit
      parameters:
      - in: query
        name: origin
        description: The origin of the request
        schema:
          type: string
      responses:
        '200':
          description: Successfully initialized the dev browser.
        '400':
          $ref: '#/components/responses/ClerkErrors'
        '500':
          $ref: '#/components/responses/ClerkErrors'
      tags:
      - Dev Browser
  /v1/dev_browser:
    post:
      summary: Create a Dev Browser Token
      description: 'Generate a Dev Browser API token.


        This is used to authenticate Development Instances with the `DevBrowser` scheme.

        It must be set before making any request to a dev instance, even for endpoints that are public.'
      operationId: createDevBrowser
      security: []
      tags:
      - Dev Browser
      responses:
        '200':
          description: A DevBrowser was created.
        '400':
          description: The hostname is invalid.
components:
  schemas:
    ClerkErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ClerkError'
        meta:
          type: object
        clerk_trace_id:
          type: string
      required:
      - errors
    ClerkError:
      type: object
      properties:
        message:
          type: string
        long_message:
          type: string
        code:
          type: string
        meta:
          type: object
      required:
      - message
      - long_message
      - code
  responses:
    ClerkErrors:
      description: Request was not successful
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ClerkErrors'
  securitySchemes:
    ProductionBrowser:
      type: apiKey
      in: cookie
      name: __client
      description: 'The Client API token sent in the form of a browser cookie.


        Used to authenticate production browser applications.'
    DevBrowser:
      type: apiKey
      in: query
      name: __dev_session
      description: 'A Dev Browser API token sent as a query parameter.


        Used to authenticate only dev instances.


        To generate a dev instance API token you must first make a request to `/v1/dev_browser`

        and copy it from the response.'
    ProductionNativeApp:
      type: http
      scheme: bearer
      description: 'The Client API token sent in the `Authorization` header.


        Used to authenticate native applications.'
    ProductionNativeFlag:
      type: apiKey
      in: query
      name: _is_native
      description: 'If sent and the value is true, it instructs the server to parse the API token from the `Authorization` header.


        It should always be set to true when using the `Authorization` header authentication strategy.'
    ClientCredentials:
      type: http
      scheme: basic
      description: HTTP Basic Authentication using Client ID as username and Client Secret as password.
x-tagGroups:
- name: Environment
  tags:
  - Environment
- name: Client
  tags:
  - Client
  - Sessions
  - Sign Ins
  - Sign Ups
- name: User
  tags:
  - User
  - Active Sessions
  - Email Addresses
  - Phone Numbers
  - Web3 Wallets
  - Passkeys
  - External Accounts
  - TOTP
  - Backup Codes
  - Organizations Memberships
  - API Keys
- name: Organizations
  tags:
  - Organization
  - Organization Creation Defaults
  - Invitations
  - Membership Requests
  - Members
  - Domains
  - Roles
- name: Billing
  tags:
  - Plans
  - Subscriptions
  - Subscription Items
  - Checkouts
  - Payment Methods
  - Statements
  - Payment Attempts
- name: Other
  tags:
  - Well Known
  - DevBrowser
  - DevTools
  - Health
  - OAuth2 Identity Provider
  - OAuth2 Callbacks
  - SAML
  - Waitlist
  - Enterprise Connections