Skip to Content
ZITADEL Docs
APIsCore ResourcesV2OIDC

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*auth_request_id

The ID of the Auth Request to finalize.

Request Body

application/json
  1. body
error*

The error that occurred during the authorization flow, to inform the application. This creates a callback URL with the error details set. See: https://openid.net/specs/openid-connect-core-1_0.html#AuthError

Response Body

Success

application/json
  1. response
details?
callbackUrl?callback_url

The callback URL where the user should be redirected using an HTTP "302 FOUND" status. This contains details for the application to obtain the tokens on success, or error details on failure. Note that this field must be treated as credentials, as the contained code can be used to obtain tokens on behalf of the user."

Example Request
curl -X POST 'https://example.com/v2/oidc/auth_requests/string' \  -H 'Content-Type: application/json' \  -d '{  "error": {}}'
Example Response200
{  "details": {    "sequence": 0,    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string",    "creationDate": "2023-01-15T01:30:15.01Z"  },  "callbackUrl": "string"}

Was this page helpful?