Zum Inhalt springen
ARD Eventhub
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Swap login credentials for a token

Deprecated. This HTTPS ingest endpoint stays available until publishers finish moving to Eventhub Connect (MQTT), then it is removed.

POST/auth/loginveraltet
Request-Body
application/json
emailstring
passwordstring
Antworten
200

Authentication successful

expiresInnumbererforderlich

TTL for the token in seconds

expiresstringerforderlich

ISO8601 compliant timestamp for the token expiry

tokenstringerforderlich

ready to use token for API queries

refreshTokenstringerforderlich

refresh token to be used with /auth/refresh/ endpoint

userobjecterforderlich

Firebase-type user object obtained by decoding the JWT token

Eigenschaften anzeigen
object
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

400

Bad Request (invalid input)

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
min. 1 Elemente
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

413

Payload Too Large (JSON body exceeds 400kb limit)

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

500

Internal server error

messagestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

Ausprobieren
Server
Bodyapplication/json
Anfrage
curl -X POST '/auth/login' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "my-email@example.com",
  "password": "my-password"
}'
Antwort
{
  "expiresIn": 3600,
  "expires": "2020-01-19T06:00:00+01:00",
  "token": "ey...",
  "refreshToken": "A0...",
  "user": {
    "property1": null,
    "property2": null
  },
  "trace": null
}