Change a one-time browser login code into a new pair of access and refresh tokens. You can use a code one time only. The code verifier must agree with the PKCE challenge of the code. The response has the same shape as the response of a login. This route does not set cookies. The organisation has the chat tokens only for an administrator.
POST
/auth/app-login/token
curl \
--request POST '/api/auth/app-login/token' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"code": "string",
"code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
}'
Request examples
{
"code": "string",
"code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
}
Response examples (200)
{
"login": true,
"user": {},
"organisation": {},
"access_token": "string",
"refresh_token": "string"
}