ZITADEL Docs
APIsCore ResourcesV2OIDC

CreateCallback

Create Callback

Finalize an Auth Request and get the callback URL for success or failure. The user must be redirected to the URL in order to inform the application about the success or failure. On success, the URL contains details for the application to obtain the tokens. This method can only be called once for an Auth request.

Required permissions:

  • session.link
POST
/v2/oidc/auth_requests/{auth_request_id}

Path Parameters

auth_request_id*string

The ID of the Auth Request to finalize.

Response Body

application/json

application/json

curl -X POST "https://loading/v2/oidc/auth_requests/string"
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  },
  "callbackUrl": "string"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?