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
header
required

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

Response

200 - application/json
email
string

The email address of the user

name
string

The name of the user

requestCompletionTime
string

Time taken to complete the request

status
string
statusCode
integer
timestamp
string
usage
object