POST
/api/v1/me/tokensCreate an API token
Creates an API token (mdk_…). It is shown only in this response.
API token required20 per hour per IP
Guide: API tokens
Code samples and Try itRequest body
#application/json, required
namestringA name to recognise it by, like the script or device that uses it. Up to 80 characters. Default
"API token".
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.
200 response: 6 fields (ApiTokenCreateResponse)
idstringnamestringprefixstringcreated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.last_used_atstring (date-time) | nullISO 8601, for example
2026-11-30T12:00:00Z.tokenstringThe token. Shown only in this response: store it now.