Skip to main content
Note: This operation does not consume any account credits, but rate limits apply.

Retrieve Account Details

This endpoint retrieves the account details of the authenticated user, including their name, email, and the number of remaining credits.

Request

  • Endpoint: GET /user/account
  • Authorization: Bearer token required

Response

A successful response will return the user’s account details and information about the remaining credits.

Example Response

{
   "status": "success",
   "name": "John Doe",
   "email": "[email protected]",
   "statusCode": 200,
   "usage": {
      "remainingCredits": 5
   },
   "requestCompletionTime": "50 ms",
   "timestamp": "2024-09-12T02:44:45.213Z"
}