Creates a login token
POST
https://api.datawrapper.de/v3/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.
Example Request
curl --request POST \
--url https://api.datawrapper.de/v3/auth/login-tokens \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"chartId": "string",
"step": "edit"
}'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Yes | The format of the request body. |
Request Body
| Field | Type | Allowed values | Required | Description |
|---|---|---|---|---|
chartId | string | 5 characters | Yes | A chart ID. |
step | string | edit, upload, describe, visualize, publish, basemap, data, markers, design, annotateor preview Default: edit | No | An edit step in the chart editor. |