Organization API › Me
Get email preferences
GET/api/v1/users/me/preferences
Which emails the key's person receives. For an organization key, the defaults.
Permission: none — any valid API key of the organization.
Authorization
Responses
200
The preferences.
dataobject requireduser_idstringemail_invitationsbooleanemail_alertsbooleanemail_weekly_digestbooleanemail_marketingbooleanupdated_atstring (date-time)
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
Example request
curl -X GET 'https://evohub.io/api/v1/users/me/preferences' \
-H 'Authorization: Bearer <TOKEN>'