Authentication

Start device authorization for Masko CLI (remote terminals)

No bearer required. Show user_code and verification_uri_complete, then poll auth/token at interval seconds. Codes expire after 600 seconds. Explicit signed-in browser approval selects the workspace. Uses the Masko JSON envelope and device-grant semantics, not form-encoded OAuth transport.

post/v1/auth/device

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/auth/device
  • Auth: none required

Request body

client_id'masko-cli' required
device_namestring required
scope'read' | 'write'

Response

Success. Cache-Control: no-store.

Changes

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