GET
/
user
/
account
curl --request GET \
  --url https://api.imagior.com/user/account \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "name": "<string>",
  "email": "<string>",
  "statusCode": 200,
  "usage": {
    "remainingCredits": 123
  },
  "requestCompletionTime": "<string>",
  "timestamp": "2023-11-07T05:31:56Z"
}
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
Account details retrieved successfully
status
string
Example:

"success"

name
string

The name of the user

email
string

The email address of the user

statusCode
integer
Example:

200

usage
object
requestCompletionTime
string

Time taken to complete the request

timestamp
string