SyncPilledDocs

Ask to log a CLI in, approved in the console

POST
/v1/cli/login

The CLI makes 32 random bytes as its token and keeps them; only their digest is stored. A person who may make keys approves the link in the hosted console, and the CLI collects a management key with poll. Hosted only: behind Cloudflare Access, log in with a key made in the console.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/cli/login" \  -H "Content-Type: application/json" \  -d '{    "token": "stringstringstringstringstringst",    "label": "string"  }'
{  "id": "string",  "user_code": "string",  "approval_url": "string",  "expires_at": "string"}