Skip to main content
POST
/
auth
/
cli
/
approve
Approve CLI auth session
curl --request POST \
  --url https://api.case.dev/auth/cli/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userCode": "<string>",
  "approvedScopes": {}
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
userCode
string
required

Short user code shown in CLI login flow

approvedScopes
object

Optional explicit scope grant. Defaults to requested scopes.

Response

Success