Skip to content
openlaunch
Esc
↑↓navigate↵open⌘Jpreview

Authorize CLI login

Starts a CLI login for the signed-in identity: returns a one-time code delivered to the loopback callback, valid for 60 seconds.

POST/v1/cli-login/authorize
Authorization
AuthorizationBearer token (Clerk owner session) · headerrequired

Owner identity required.

Request body
requiredapplication/json
callbackUrlstring<uri>required

Exact 127.0.0.1 loopback callback URL with a port.

statestringrequired
challengestringrequired

PKCE S256 challenge.

Responses
200

Successful response

dataCliAuthorizationrequired
Show properties
codestringrequired

One-time login code; consumed by the exchange call.

statestringrequired
callbackUrlstring<uri>required
400

Invalid request or validation failure

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
401

Missing or invalid credential

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
403

Insufficient access or grant

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
404

Resource not found

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
413

Request body exceeds the 16 KiB limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
429

Rate limit or workspace capacity limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
500

Internal error

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
503

Service or required integration is not configured

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://www.openlaunch.dev/v1/cli-login/authorize' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "callbackUrl": "http://example.com",
  "state": "string",
  "challenge": "string"
}'
Response
{
  "data": {
    "code": "string",
    "state": "string",
    "callbackUrl": "http://example.com"
  }
}