---
deprecated: true
search:
  tags:
    - auth
    - POST
seo:
  description: >-
    Deprecated. This HTTPS ingest endpoint stays available until publishers
    finish moving to… Reference for the POST /auth/login endpoint in the ARD
    Eventhub API.
sidebar:
  label: Swap login credentials for a token
  badge: POST
title: Swap login credentials for a token
type: openapi-operation
---
Deprecated. This HTTPS ingest endpoint stays available until publishers finish moving to Eventhub Connect (MQTT), then it is removed.

`POST /auth/login`

**Deprecated.**

**Request body** (`application/json`)

- `email` (string)
- `password` (string)

Request body example:

```json
{
  "email": "my-email@example.com",
  "password": "my-password"
}
```

**Responses**

- `200` — Authentication successful
- `400` — Bad Request (invalid input)
- `413` — Payload Too Large (JSON body exceeds 400kb limit)
- `500` — Internal server error

Response example, 200:

```json
{
  "expiresIn": 3600,
  "expires": "2020-01-19T06:00:00+01:00",
  "token": "ey...",
  "refreshToken": "A0...",
  "user": {
    "property1": null,
    "property2": null
  },
  "trace": null
}
```
