OAuth Consent

Approve a CLI device sign-in

post/oauth/device-approve

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/oauth/device-approve
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Request body

project_idinteger nullable

One project; with project_ids it must be one of them

project_idsinteger[] nullable

The projects to pin the sign-in to; null = "All projects"

user_codestring required
workspace_idinteger nullable
read_onlyboolean

Grant read-only access: the app may read but never change anything

Response

Decision recorded

Changes

No recorded changes to this operation across all 3 revisions of this API.