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
An object containing the user’s profile information.
Information about the user’s current subscription plan.
Information about the user’s credit balance.
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"
}
]
}