auth
Me Regenerate
Deactivate the calling API key and issue a replacement.
Path-clean replacement for /api/keys/{api_key}/regenerate. The request must carry the old key in the X-API-Key header; after success the old key is permanently deactivated and the response carries the new_key to use for subsequent requests.
curl example:
curl -X POST -H "X-API-Key: ht_abc123" https://api.halalterminal.com/api/auth/me/regenerate
post/api/auth/me/regenerate
Request
- Base URL: https://api.halalterminal.com
- URL: https://api.halalterminal.com/api/auth/me/regenerate
- Auth: API key in header X-API-Key
Response
The old (deactivated) key and the new replacement key
Example response
{
"email": "dev@example.com",
"new_key": "ht_xyz789ghi012",
"old_key": "ht_abc123def456",
"plan": "starter"
}Changes
No recorded changes to this operation across all 1 revision of this API.