Skip to navigation

Exchange a Google ID token for an API session

See research R2. The returned token lasts 8 hours; permissions are re-read on each call.

Headers

Idempotency-KeystringOptionalformat: "uuid"

One key per user attempt; retries reuse it and get the original result.

Request

This endpoint expects an object.
googleIdTokenstringOptional<=4096 characters
ID token from Google Identity Services.
testEmailstringOptionalformat: "email"<=255 characters

Dev only: sign in as this active user without Google. Refused (401) in prod and wherever test sign-in is off.

Response

Signed in
tokenstring<=4096 characters

Send as Authorization: Bearer on every admin call.

expiresAtdatetime
meobject

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error