clerk platform api v1

Provision auth
from the terminal.

One command to create a Clerk app with development and production instances, keys, and templates. Built for developers who ship fast.

View source
provision.sh
# Create app with dev + prod instances
$ clerk apps create \
    --name "my-saas-app" \
    --environment-types development,production \
    --template b2c-saas \
    -o json

# Response (30 seconds)
{
  "application_id": "app_2x9...",
  "instances": [
    { "environment_type": "development" },
    { "environment_type": "production"  }
  ]
}

What PLAPI enables

Programmatic access to everything in the Clerk dashboard.

CLI-First Provisioning

Create Clerk applications with a single command. Dev + prod instances, templates, and keys in 30 seconds.

Multi-Environment

Separate development and production instances from day one. Each with its own keys and configuration.

B2B/B2C Templates

Start with pre-configured templates for B2B SaaS (orgs), B2C, or waitlist patterns. Zero manual setup.

Agentic Provisioning

AI coding tools can autonomously provision auth. Cursor, v0, and Windsurf integrate via APP protocol.

Secret Management

Keys are returned inline. Pipe them to Vercel, .env files, or your CI/CD pipeline automatically.

JSON Output

Machine-readable output for every command. Build scripts, agents, and automation on top of PLAPI.

How it works

01

Authenticate

Run clerk login or set your platform API key. One-time setup.

02

Provision

Create apps, instances, and configure domains with a single CLI command.

03

Ship

Keys are returned inline. Pipe to Vercel env, .env files, or your deploy script.