DoneThat

User

Read basic profile information for the authenticated API key owner.

GET/userScopes:user:read

The user endpoint returns basic profile information for the account that owns the API key.

GET https://api.donethat.ai/user

Required 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]"
}
FieldTypeNotes
namestring | nullDoneThat settings name when set; otherwise Firebase Auth display name; otherwise the local part of the sign-in email.
emailstringPrimary 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:

StatusCause
401Missing or invalid API key
403Key lacks user:read
405Method other than GET
429Rate limit exceeded
500Unexpected server error