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/authorizeAuthorization
AuthorizationBearer token (Clerk owner session) · headerrequiredOwner identity required.
Request body
requiredapplication/jsoncallbackUrlstring<uri>requiredExact 127.0.0.1 loopback callback URL with a port.
statestringrequiredchallengestringrequiredPKCE S256 challenge.
Responses
200
Successful response
dataCliAuthorizationrequiredShow propertiesHide properties
codestringrequiredOne-time login code; consumed by the exchange call.
statestringrequiredcallbackUrlstring<uri>required400
Invalid request or validation failure
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring401
Missing or invalid credential
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring403
Insufficient access or grant
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring404
Resource not found
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring413
Request body exceeds the 16 KiB limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring429
Rate limit or workspace capacity limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring500
Internal error
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring503
Service or required integration is not configured
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring