Clara-Backend
  1. User
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. User

Update

Prod Env
https://backend.clara.crazi.co/api/v1
Prod Env
https://backend.clara.crazi.co/api/v1
PATCH
https://backend.clara.crazi.co/api/v1
/users/{user_id}
This endpoint lets a user update their account details on Clara. Certain fields cannot be changed and will be rejected if included.
Forbidden keys:
id
email
password
credits
is_2fa_enabled
is_active
created_at
updated_at

Request

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

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Resource Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://backend.clara.crazi.co/api/v1/users/user_ac19b010fec5428a8ae131596731b7c8' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "first_name": "Vibhanshu",
  "last_name": "Rathod",
  "is_dark_mode": false
}'
Response Response Example
200 - Success
{
  "data": {
    "created_at": "Wed, 26 Nov 2025 23:51:28 GMT",
    "credits": 0.0,
    "email": "hello@crazi.co",
    "first_name": "Vibhanshu",
    "id": "user_31e827070dcf44198ec11a9112a9a572",
    "is_2fa_enabled": false,
    "is_active": true,
    "is_dark_mode": false,
    "last_name": "Rathod",
    "updated_at": "Thu, 27 Nov 2025 00:20:54 GMT"
  },
  "message": "User updated successfully.",
  "status": "success"
}
Modified at 2025-11-27 01:51:24
Previous
View
Next
API Key
Built with