Zum Inhalt springen
ARD Eventhub
Esc
navigateopen⌘Jpreview

Swap login credentials for a token

POST/auth/login
Request body
application/json
emailstring
passwordstring
Responses
200Authentication successful
expiresInnumberrequired
TTL for the token in seconds
expiresstringrequired
ISO8601 compliant timestamp for the token expiry
tokenstringrequired
ready to use token for API queries
refreshTokenstringrequired
refresh token to be used with `/auth/refresh`/ endpoint
userobjectrequired
Firebase-type user object obtained by decoding the JWT token
Show properties
object
tracestring | nullrequireddeprecated
Always null. Deprecated; may be removed in a future release.
400Bad Request (invalid input)
messagestringrequired
errorsopenApiErrorItem[]required
min items 1
Show properties
Array of openApiErrorItem
openApiErrorItem
tracestring | nullrequireddeprecated
Always null. Deprecated; may be removed in a future release.
413Payload Too Large (JSON body exceeds 400kb limit)
messagestringrequired
errorsopenApiErrorItem[]required
Show properties
Array of openApiErrorItem
openApiErrorItem
tracestring | nullrequireddeprecated
Always null. Deprecated; may be removed in a future release.
500Internal server error
messagestringrequired
tracestring | nullrequireddeprecated
Always null. Deprecated; may be removed in a future release.
Request
curl -X POST "/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "my-email@example.com",
  "password": "my-password"
}'
Response
{
  "expiresIn": 3600,
  "expires": "2020-01-19T06:00:00+01:00",
  "token": "ey...",
  "refreshToken": "A0...",
  "user": {},
  "trace": null
}