Administration

Create a new API key. Returns the plaintext token ONCE.

Create a new API key. Returns the plaintext token ONCE.

The plaintext is `eyk_<prefix>_<secret>`. After this call, only the
prefix and the SHA-256 hash of the secret are persisted — the
plaintext is never recoverable. Copy it immediately.

Permissions requises : admin:api_keys

post/api/v1/admin/api-keys

Request

  • Base URL: https://erp.eyeot.fr/api/v1
  • URL: https://erp.eyeot.fr/api/v1/api/v1/admin/api-keys
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

expires_atstring date-time nullable

Date d'expiration ISO 8601 (UTC). null = jamais. Recommandé pour les clés temporaires (audit, démo, etc.).

namestring required

Libellé humain pour identifier la clé.

scopesstring[] required

Liste de permission strings (ex: ['stock:read', 'crm:read']). Doit être un sous-set des permissions du créateur.

Response

Succès — payload {data, meta} (cf. API-GUIDE §3.1)

Changes

No recorded changes to this operation across all 1 revision of this API.