---
title: "Creates a login token"
method: POST
path: "/auth/login-tokens"
---

# Creates a login token

`POST /auth/login-tokens`

Creates a new login token to authenticate a user, for use in CMS integrations. Login tokens are valid for five minutes and can only be used once.

## Request body

- object
  - `chartId` string, required — A chart ID.
  - `step` 'edit' | 'upload' | 'describe' | 'visualize' | 'publish' | 'basemap' | 'data' | 'markers' | 'design' | 'annotate' | 'preview' — An edit step in the chart editor.

## Response `default`

Successful

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
