DevZero Logo
DevZero

create a new CLI session

creates a CLI session so a user can authenticate between CLI and browser; this is a public endpoint, session last a max of 5 minutes

POST
/cli/sessions
/cli/sessions

Request Body

application/jsonOptional

bodyunknown

curl -X POST "https://api.devzero.io/backend/v0/cli/sessions" \
  -H "Content-Type: application/json" \
  -d 'null'

session created

{
  "access_token": "string",
  "access_token_expires_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "login_url": "string",
  "user_email": "string",
  "user_id": "string"
}