OAuth Consent

Allow: issue a one-time code and return to the app

post/oauth/consent

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/oauth/consent
  • 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"

client_idstring required
redirect_uristring required
statestring nullable
code_challengestring required
code_challenge_methodstring required
read_onlyboolean

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

resourcestring nullable
workspace_idinteger nullable

Response

Return to the app

redirect_urlstring required

Where to send the browser next: back to the app

Changes

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