Users

Regenerate user API key

POST
/api/user/api-key/regenerate

Rotates the authenticated user API key and returns the new value. The previous key is invalidated immediately.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/user/api-key/regenerate"
{  "success": true,  "message": "API key regenerated",  "data": {    "apiKey": "tk_live_7c2b3d8e21a9f6c2b3d8e21a9f6c2b3d8e21"  }}