Storyden
Auth

O Auth Device Consent Submit

Approve or deny a pending OAuth device authorisation request for the currently signed-in account. On approval Storyden recomputes the granted scope from the current account permissions and client policy. For first-party inherited clients this means the final token scope may include Storyden permission scopes that were not present in the original device authorisation request.

Approve or deny a pending OAuth device authorisation request for the currently signed-in account.

On approval Storyden recomputes the granted scope from the current account permissions and client policy. For first-party inherited clients this means the final token scope may include Storyden permission scopes that were not present in the original device authorisation request.

POST/oauth/device/consent
storyden-session<token>

In: cookie

Request Body

application/json

user_code*string
decision*string
Value in"approve" | "deny"

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/oauth/device/consent" \  -H "Content-Type: application/json" \  -d '{    "user_code": "string",    "decision": "approve"  }'
{
  "status": "approved"
}
{
  "error": "string",
  "error_description": "string"
}
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}