Exchange Session Token

GET {{baseUrl}}/sessions/token-exchange?init_code=<string>&return_to_code=<string>

Request Params

KeyDatatypeRequiredDescription
init_codestring(Required) The part of the code return when initializing the flow.
return_to_codestring(Required) The part of the code returned by the return_to URL.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;session&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;active&quot;:&quot;\u003cboolean\u003e&quot;,&quot;authenticated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;authentication_methods&quot;:[{&quot;aal&quot;:&quot;aal0&quot;,&quot;completed_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;method&quot;:&quot;v0.6_legacy_session&quot;,&quot;organization&quot;:&quot;\u003cstring\u003e&quot;,&quot;provider&quot;:&quot;\u003cstring\u003e&quot;},{&quot;aal&quot;:&quot;aal1&quot;,&quot;completed_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;method&quot;:&quot;webauthn&quot;,&quot;organization&quot;:&quot;\u003cstring\u003e&quot;,&quot;provider&quot;:&quot;\u003cstring\u003e&quot;}],&quot;authenticator_assurance_level&quot;:&quot;aal0&quot;,&quot;devices&quot;:[{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;ip_address&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;user_agent&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;ip_address&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;user_agent&quot;:&quot;\u003cstring\u003e&quot;}],&quot;expires_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;identity&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;schema_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;schema_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;traits&quot;:{&quot;description&quot;:&quot;Traits represent an identity&#39;s traits. The identity is able to create, modify, and delete traits\nin a self-service manner. The input will always be validated against the JSON Schema defined\nin `schema_url`.&quot;},&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;credentials&quot;:{&quot;dolore__e&quot;:{&quot;config&quot;:{},&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;identifiers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;type&quot;:&quot;profile&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;version&quot;:&quot;\u003clong\u003e&quot;},&quot;in_&quot;:{&quot;config&quot;:{},&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;identifiers&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;type&quot;:&quot;webauthn&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;version&quot;:&quot;\u003clong\u003e&quot;}},&quot;metadata_admin&quot;:{&quot;description&quot;:&quot;NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-&quot;,&quot;nullable&quot;:true},&quot;metadata_public&quot;:{&quot;description&quot;:&quot;NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-&quot;,&quot;nullable&quot;:true},&quot;organization_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;recovery_addresses&quot;:[{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;via&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;via&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;}],&quot;state&quot;:&quot;active&quot;,&quot;state_changed_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;verifiable_addresses&quot;:[{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;verified&quot;:&quot;\u003cboolean\u003e&quot;,&quot;via&quot;:&quot;email&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;verified_at&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;verified&quot;:&quot;\u003cboolean\u003e&quot;,&quot;via&quot;:&quot;sms&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;verified_at&quot;:&quot;\u003cdateTime\u003e&quot;}]},&quot;issued_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;tokenized&quot;:&quot;\u003cstring\u003e&quot;},&quot;continue_with&quot;:[{&quot;action&quot;:&quot;show_verification_ui&quot;,&quot;flow&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;verifiable_address&quot;:&quot;\u003cstring\u003e&quot;,&quot;url&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;action&quot;:&quot;show_verification_ui&quot;,&quot;flow&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;verifiable_address&quot;:&quot;\u003cstring\u003e&quot;,&quot;url&quot;:&quot;\u003cstring\u003e&quot;}}],&quot;session_token&quot;:&quot;\u003cstring\u003e&quot;}