Redeem a bootstrap echo link
const url = 'https://example.com/api/identity/echo/redeem';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/identity/echo/redeem \ --header 'Content-Type: application/json' \ --data '{}'Consumes the one-time code a ssoosshd identity echo link
carries in its fragment and returns the authorization URL
for a claims echo, as the admin start does. No session or
role is needed, and none is granted: the echo shows whoever
signs in their own claims and establishes nothing.
A code works once. A wrong, used or expired code all get the same 404, so the endpoint tells a guesser nothing.
Request Bodyrequired
Section titled “Request Bodyrequired”The code from the link
Responses
Section titled “Responses”Where to send the browser
object
AuthorizationURL carries prompt=login, so the provider issues a fresh token rather than replaying its own session.
Example generated
{ "authorization_url": "example"}Malformed body
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}Cross-origin call
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}The code is wrong, used or expired
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}