Exchange authorization code

Exchanges a single-use authorization code for a Cognito JWT. The code is invalidated immediately after use. Codes are issued by POST /session and embedded in magic links sent to users.

Events fired

EventTriggerDescription
authorization.CodeRedeemedsyncFired when the code is successfully exchanged.
authorization.CodeRedeemFailedsyncFired when the code is invalid or already redeemed.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 43 and 43

Single-use token previously issued by the generate endpoint.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json