The caller's own email notification preferences in the organization
const url = 'https://example.com/v1/orgs/example/me/notifications';const options = {method: 'GET', headers: {cookie: 'affectra_session=<affectra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/orgs/example/me/notifications \ --cookie affectra_session=<affectra_session>Any member, signed in with the browser session; API keys, user tokens and GitHub Actions tokens get 403 auth.sessionRequired. Email is opt-in: without a choice, findings is none for every role.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization (tenant) slug, e.g. alpenrobotik
Responses
Section titled “Responses”Preferences
object
Finding emails for this organization: none (the default for every role: email is opt-in), known_exploited (a finding is known exploited: in CISA KEV or on ENISA’s list), or all (also new and resolved findings and a release’s first check).
A daily mail of the pending agent proposals this person may decide, at the organization’s send time (proposals_digest_hour and proposals_digest_time_zone in its settings), sent only when one was filed since the last. Off by default.
Show the hint that known-exploited email exists: true for owners and admins who haven’t turned it on and haven’t dismissed the hint. It turns nothing on.
Where the mails go (the account’s address)
Present when Amazon SES won’t deliver to this address (it bounced, or the person marked a mail as spam); no mail goes there, in any organization.
object
Example
{ "findings": "none", "suppressed": { "reason": "bounce" }}Auth.sessionRequired
Over the operation’s rate-limit budget (x-affectra-budget): code request.rateLimited with params.budget. Wait Retry-After seconds before trying again.
Every error answer, Content-Type
application/problem+json. The web app and integrations translate code; detail is English,
for people reading curl output or CI logs, and may change wording at
any time. Match on code, never on detail.
object
The HTTP status
Stable error codes. A code is never renamed; new ones may be added, so
a client falls back to detail for a code it doesn’t know. Another
organization’s object answers notFound, the same as a missing one.
What went wrong
Values the code’s message needs, e.g. {“field”: “version”}. Only values the caller sent or may see. Empty when the message needs none.
object
Example
{ "code": "notFound"}Headers
Section titled “Headers”Seconds until a request would be allowed again, at least 1
Notifications.unavailable (no database)