User
Read basic profile information for the authenticated API key owner.
GET
/userScopes:user:readThe user endpoint returns basic profile information for the account that owns the API key.
GET https://api.donethat.ai/userRequired scope: user:read
Pass your API key in the x-api-key header. Only GET is supported; other methods return 405 with { "success": false, "error": "Method Not Allowed" }.
Response
{
"success": true,
"name": "Alex Morgan",
"email": "[email protected]"
}
| Field | Type | Notes |
|---|---|---|
name | string | null | DoneThat settings name when set; otherwise Firebase Auth display name; otherwise the local part of the sign-in email. |
email | string | Primary sign-in email from Firebase Auth. |
Example
curl -X GET "https://api.donethat.ai/user" \
-H "x-api-key: YOUR_API_KEY"
Errors
Uses the standard API envelope (success, error). Common cases:
| Status | Cause |
|---|---|
401 | Missing or invalid API key |
403 | Key lacks user:read |
405 | Method other than GET |
429 | Rate limit exceeded |
500 | Unexpected server error |