API referenceC L I
Exchange a login's redeem code for its credential
For a login opened with loopbackRedirect: send the operation token as the bearer credential and the code the approval page delivered to the local listener. Answers once; a second redemption is refused with already_completed. Never print or log the credential.
Authorization
CliPollProof AuthorizationBearer <token>
The initiating CLI's private operation token, distinct from the browser's approval proof.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/cli/login/string/redeem" \ -H "Content-Type: application/json" \ -d '{ "redeemCode": "string" }'{ "credential": { "token": "string" }, "account": { "id": "string", "name": "string", "createdAt": "string", "claimed": true, "expiresAt": "string" }}