Skip to main content

Exchange Token

Exchange a Consumer's active session token for a single-use act_token during an App-to-App consent handoff.

In the App-to-App (Redirect to App) flow, a Consumer is redirected from the browser into your installed mobile app to authorise CDR data sharing. This endpoint provides the short-lived handoff token your app needs to open the hosted consent page without forcing them to log in or enter an OTP again. Using OAuth 2.0 Token Exchange (RFC 8693), your backend exchanges the Consumer’s active session token (subject_token) for a single-use act_token. This new token is bound to the specific authorisation in progress and its purpose is strictly limited to these in-flight handoffs; it cannot be used to mint general-purpose sessions or credentials.

Your backend server must call this endpoint directly, never the native mobile app. The required OAuth 2.0 client credential is a server-held credential and must never be embedded in a mobile binary (see the Consent API Security Profile).

Unlike the rest of this API, which uses our HaaS JSON convention, this operation follows standard RFC 8693 and RFC 6749 wire formats. Send requests as application/x-www-form-urlencoded without an x-haas-v header or an in-payload version discriminator. Successful responses return standard OAuth JSON, while failures return a bare {error, error_description} object instead of the urn:dio: error envelope. You can use this to distinguish error sources: a 400 from this service always includes error and error_description, whereas a 400 from the proxy or edge layer (such as a route miss or rate limit) carries neither.

Finally, every request includes a {realmName} path parameter identifying the target Holder Brand. Consistent with the rest of this API, requests for a non-existent or unentitled realm return an identical 404 response so the two cases cannot be distinguished.

Exchange Token​

Loading...