GET /user
Return the authenticated user's account record. Useful as a token health-check.
curl https://api.chuger.com/user \
-H "Authorization: Bearer YOUR_API_TOKEN"
const res = await fetch('https://api.chuger.com/user', {
headers: { Authorization: `Bearer ${process.env.CHUGER_TOKEN}` },
});
const user = await res.json();
import os, requests
r = requests.get(
"https://api.chuger.com/user",
headers={"Authorization": f"Bearer {os.environ['CHUGER_TOKEN']}"},
)
user = r.json()
{
"id": 42,
"name": "Jane Doe",
"email": "[email protected]",
"email_verified_at": "2026-01-12T15:30:00.000000Z",
"created_at": "2026-01-12T15:25:00.000000Z",
"updated_at": "2026-05-10T09:13:00.000000Z"
}
{
"message": "Unauthenticated."
}
Return the authenticated user's account record. Useful for verifying that an API token is valid and discovering basic profile information.
GET https://api.chuger.com/user
Note the path — unlike the other endpoints, this one is not under /v1. The shape may evolve over time as your account model is extended.
Authentication
Bearer token in the Authorization header. See Authentication.
Cost
Free — no credits are deducted and the endpoint is not rate-limited.
Example
The exact fields returned reflect your account model and may include additional profile attributes over time. Treat unknown fields defensively.
Errors
| Status | When |
|---|---|
401 | Missing / invalid token |
See Errors for the full reference.
Tips
- Hit this endpoint as a quick health check from CI / startup code to confirm the token in your environment still works
- Combine with
/v1/creditsto surface user + balance in a single dashboard widget
Was this page helpful?