Create API Token
POST /tokens
đ€ Authentification Utilisateur Requise
Ce point dâaccĂšs permet Ă lâutilisateur actuellement authentifiĂ© de crĂ©er un nouveau jeton dâAPI persistant. Ces jetons sont utilisĂ©s pour authentifier des requĂȘtes programmatiques Ă lâAPI (par exemple, depuis un script, une application tierce, etc.) sans utiliser le mot de passe de lâutilisateur.
đš Attention : Sauvegardez votre Jeton !
Le jeton complet (full_token) nâest retournĂ© quâune seule et unique fois, dans la rĂ©ponse de cette requĂȘte. Pour des raisons de sĂ©curitĂ©, il nâest pas stockĂ© en clair et il sera impossible de le rĂ©cupĂ©rer Ă nouveau.
Copiez et sauvegardez ce jeton dans un endroit sûr immédiatement.
Example :
{
"name": "My Awesome Tofken"
}Authorizations
Section titled âAuthorizations âRequest Body
Section titled âRequest Body âobject
Un nom descriptif pour votre jeton (ex: âScript de reporting nocturneâ).
La date et lâheure dâexpiration du jeton (format ISO 8601). Si omis, le jeton nâexpirera jamais.
Examples
Responses
Section titled â Responses âSuccessful response (inferred from assertions)
object
The unique numeric identifier for the token record. Use this ID to manage (e.g., delete) the token later.
Example
42The human-readable name provided by the user for this token, used for identification purposes.
Example
My Production Server KeyIndicates if the token is currently active. If false, any API request using this token will be rejected.
Example
trueThe ISO 8601 timestamp for when this token will automatically expire. A null value means the token never expires.
Example
2026-01-01T00:00:00ZThe ISO 8601 timestamp of the last time this token was used to successfully authenticate. Will be null if never used.
The complete, secret API token. IMPORTANT: This value is returned only once upon creation. You must copy and store it securely. It cannot be retrieved again.
Example
authotk_a1b2c3d4.abcdef1234567890abcdef1234567890abcdef1234567890abcdef123456Example
{ "id": 6, "name": "My Afwesome Token", "token_prefix": "authotk_62ad6f3f", "is_active": true, "expires_at": null, "last_used_at": null, "created_at": "2025-11-14T10:06:51.811521+01:00", "full_token": "authotk_62ad6f3f.fbafaeaafa1b70bc1d541245e7fc7672f4800fa35b350d2bf0024482ab9fdf60"}