GET
/
user
/
account
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": "john.doe@example.com",
   "statusCode": 200,
   "usage": {
      "remainingCredits": 5
   },
   "requestCompletionTime": "50 ms",
   "timestamp": "2024-09-12T02:44:45.213Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
status
string
name
string

The name of the user

email
string

The email address of the user

statusCode
integer
usage
object
requestCompletionTime
string

Time taken to complete the request

timestamp
string