Make a one-time code for the current user. A desktop app or a script on the same computer uses this code to get its own tokens. The code is linked to the PKCE challenge in the body. The code expires after 60 seconds. A bot cannot make a code. A user who must set up two-factor authentication first cannot make a code.
POST
/auth/app-login/code
curl \
--request POST '/api/auth/app-login/code' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}'
Request examples
{
"code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}
Response examples (201)
{
"code": "string"
}