Clara-Backend
  1. API Key
Clara-Backend
  • Get Started
  • Quickstart (Rest API)
  • Quickstart (MCP Server)
  • Auth
    • Register
      POST
    • Google OAuth
      POST
    • Login
      POST
    • Logout
      DELETE
    • Change Password
      PATCH
    • Send OTP
      POST
    • Activate
      POST
    • Enable 2FA
      POST
    • Disable 2FA
      DELETE
  • User
    • View
      GET
    • Update
      PATCH
  • API Key
    • View
      GET
    • Reset
      POST
  • Transaction
    • View All
      GET
    • View
      GET
  • Task
    • View All
      GET
    • View
      GET
  • Agent
    • Supported Attachments
      GET
    • Analysis
      POST
  • Stripe
    • Rate
      GET
    • Portal
      POST
    • Buy
      POST
  • Misc
    • Health
    • Version
  1. API Key

Reset

Prod Env
https://backend.clara.crazi.co/api/v1
Prod Env
https://backend.clara.crazi.co/api/v1
POST
https://backend.clara.crazi.co/api/v1
/users/{user_id}/api_key
This endpoint lets a user reset their API key on Clara. Using this would make your old API key token invalid.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Responses

🟢201Success
text/plain
Body

🟠401Unauthorized
🟠403Forbidden
🟠404Resource Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://backend.clara.crazi.co/api/v1/users/user_ac19b010fec5428a8ae131596731b7c8/api_key' \
--header 'Authorization: Bearer <token>'
Response Response Example
201 - Success
{
  "data": {
    "created_at": "Thu, 27 Nov 2025 00:37:13 GMT",
    "id": "api_key_636a926f9ce84ce3974df9c2c1988edb",
    "token": "clara_api_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzMxZTgyNzA3MGRjZjQ0MTk4ZWMxMWE5MTEyYTlhNTcyIiwicm9sZSI6ImFwaV9rZXkifQ.YE0GlvpooXQ9qENX_Hu4RN18RUKDbb1woPg5HbbxSeo",
    "updated_at": "Thu, 27 Nov 2025 00:37:13 GMT",
    "user_id": "user_31e827070dcf44198ec11a9112a9a572"
  },
  "message": "API key reset successfully.",
  "status": "success"
}
Modified at 2025-11-27 01:52:10
Previous
View
Next
Transaction
Built with