Auth

Approve CLI device authorization

post/cli/auth/approve

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/cli/auth/approve
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

device_codestring
namestring

Name for the resulting API token

scopesstring

Compatibility field; when present it must match the displayed requested scope

user_codestring
workspace_idstring

Workspace the resulting token is limited to

Example request

{
  "$schema": "https://example.com/api/v1/schemas/ApproveCLIAuthInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

okboolean required

Example response

{
  "$schema": "https://example.com/api/v1/schemas/CLIAuthDecisionOutputBody.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.