Identity

Approve CLI access to a project

Requires an explicit browser action, application/json, an allowed console Origin, and an owner/admin membership in the active project's organization. Approves the displayed scopes and a thirty-day credential. No API key is created until the waiting CLI exchanges the grant.

post/auth/cli/device/approve

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/auth/cli/device/approve
  • Auth: API key in cookie pyai_session

Headers

Originstring uri required

An allowed PyAI console origin.

Request body

user_codestring required
project_idstring required

Response

Approved.

status'approved' required

Changes

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