Called by the dashboard authorize page on behalf of the authenticated
user. Resolves a pending grant identified by user_code. Idempotent
against the same user_code only while the grant is still pending.
curl --request POST \
--url https://app.dynamicauth.com/api/v0/auth/grant/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_code": "<string>",
"action": "approve"
}
'{
"status": "approve"
}Documentation Index
Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body for POST /auth/grant/approve.
The user_code displayed in the client's terminal/UI.
Outcome of an /auth/grant/approve call. approve mints a fresh client
JWT and stores it against the grant for the polling client to collect;
deny records an access_denied terminal status.
approve, deny Grant resolved.
Response from POST /auth/grant/approve.
Outcome of an /auth/grant/approve call. approve mints a fresh client
JWT and stores it against the grant for the polling client to collect;
deny records an access_denied terminal status.
approve, deny Was this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/auth/grant/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_code": "<string>",
"action": "approve"
}
'{
"status": "approve"
}