Skip to Content
RegistrationClient ManagementManage redirect URIs

Manage redirect URIs

Redirect URIs are the callback URLs to which users are sent after an OAuth2 authorization flow. Only registered redirect URIs can be used in authorization requests.

Before changing redirect URIs, obtain a management access token with scope=tpp:write.

Update redirect URIs

Use PATCH /tpp/redirect-uris to replace your registered redirect URIs.

PATCH https://api.openbanking.prod.lunar.app/tpp/redirect-uris Content-Type: application/json Authorization: Bearer <access-token> X-Request-ID: <unique-request-id> { "redirectUris": [ "https://mycompany.com/oauth2/callback", "https://mycompany.com/alternative-callback" ] }

A successful request returns 204 No Content.

The X-Request-ID header is required and must be unique for the request. It provides idempotency: retrying a request with the same ID returns the same result.

Last updated on