Regenerate a doctor account's API key
Rotate the API key for a doctor account, identified by its publicId (acc_*) or internalCode. The previous key is revoked with a short grace window; the new raw key is returned once — store it securely. Limited to one regeneration per account every 2 minutes (429 rate_limit_exceeded).
Autorizações
Chave de API enviada como token Bearer
Parâmetros de caminho
Corpo
Request body for regenerating (rotating) a doctor account's API key.
New key lifetime in days (1–365). Omit to keep the account's default lifetime.
1 <= x <= 365365
Resposta
Resposta bem-sucedida
Response after rotating a doctor account's API key.
Mirrors the API-key fields returned on account creation, for the rotated key. The raw key is shown only once — store it securely.
Account publicId (acc_*) the key belongs to.
"acc_a1b2c3d4e5f6g7h8"
Raw API key. Shown only once — store it securely.
"<shown-once-store-securely>"
API key publicId (ak_*).
"ak_a1b2c3d4e5f6g7h8"
Non-secret key prefix, safe to display/store for identification.
"sk_prod_a1b2c3d4...e5f6"
"prod"
"2027-01-15T10:30:00Z"