Sign in with an Apple ID token
/v1/auth/apple/tokenFor iOS apps. Returns a session like `POST /v1/auth/login`, or 202 with a second-factor challenge.
Request body application/json · required
authorization_codestringauthorizationCode, exchanged for a refresh token revoked when the account is deleted
max length 4096id_tokenstringrequiredidentityToken from ASAuthorizationAppleIDCredential
max length 16384namestringfullName, which Apple gives only the first time
max length 200noncestringrequiredFrom POST /v1/auth/apple/nonce, before hashing
max length 256transportstringbearer (native apps): the token in the response; cookie: an HttpOnly session cookie
one of "cookie", "bearer" · default "bearer"Responses
mfaobjectchallenge_tokenstringrequiredSend it to POST /v1/auth/login/mfa. It is shown once.
expires_atstring (date-time)requiredmethodsarray of stringrequiredSecond factors accepted: totp (a code from the authenticator app), passkey or recovery_code
sessionobjectcreated_atstring (date-time)requiredcurrentbooleanrequiredThe session making this request
expires_atstring (date-time)requiredWhen the session ends unless used again
idstringrequiredipstringlast_seen_atstring (date-time)requiredmfa_verifiedbooleanrequiredSigned in or confirmed with a second factor
user_agentstringtokenstringOnly with transport bearer: send it as Authorization: Bearer <token>. It is shown once.
userobjectcreated_atstring (date-time)requiredemailstringrequiredemail_verifiedbooleanrequiredhas_passwordbooleanrequiredThe account has a password; accounts created with Google or Apple don't, until they reset one
idstringrequiredrolesarray of stringrequiredPlatform roles, such as platform_admin
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type