Skip to main content

GET /accounts/profile

This endpoint returns detailed information about the user’s account, including their profile, plan, credits, and API keys. This is an authenticated endpoint.

Response

profile
object
An object containing the user’s profile information.
firstName
string
lastName
string
company
string
plan
object
Information about the user’s current subscription plan.
credits
object
Information about the user’s credit balance.
apiKeys
array
A list of the user’s API keys.
curl -X GET https://api.llmgenerator.com/api/v1/accounts/profile \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "profile": {
    "firstName": "Jane",
    "lastName": "Doe",
    "company": "NewCo"
  },
  "plan": {
    "name": "Pro",
    "creditsPerMonth": 500
  },
  "credits": {
    "balance": 350
  },
  "apiKeys": [
    {
      "id": "key_xxxxxxx",
      "name": "Default Key"
    }
  ]
}