Skip to content

The organization's events, oldest first

GET
/v1/orgs/{org}/events
curl --request GET \
--url 'https://example.com/v1/orgs/example/events?limit=50' \
--header 'Authorization: Bearer <token>'

What changed: finding.new, finding.known_exploited, finding.resolved, release.matched, proposal.filed and org.feed_subscription_changed of the last 30 days, oldest first, each as webhooks get it (the same JSON, byte for byte). For agents and scripts that poll: keep next and send it as after on the next request to get only what came since; while more is true, ask again right away. An event appears once every database transaction older than it has ended, so a poll never skips one. The MCP tool list_events reads the same feed.

Reading the feed marks the organization as listening for 30 days (at most one write an hour), so Affectra produces finding events for it even without webhooks or email.

org
required
string

Organization (tenant) slug, e.g. alpenrobotik

after
string

The next of the previous answer. Leave it out to start at the oldest event. A cursor that doesn’t parse, or one older than 30 days, answers events.cursorInvalid; start again without it.

type
Array<string>
Allowed values: finding.new finding.known_exploited finding.resolved release.matched proposal.filed org.feed_subscription_changed

Only these types; repeat the parameter for several.

limit
integer
default: 50 >= 1 <= 200

A page

Media typeapplication/json
object
events
required

Oldest first. Each is the event JSON webhooks get (id, type, occurred_at, org, data); see the webhooks guide for each type’s data. Finding events (finding.new, finding.known_exploited, finding.resolved) are one per finding group, a CVE in a release: data.vulnerability is the advisory the event is about, and data.group is FindingEventGroup.

Array<object>
object
key
additional properties
any
next
required

The cursor to send as after on the next request; opaque

string
more
required

More events are waiting after next

boolean

Example generated

{
"events": [
{}
],
"next": "example",
"more": true
}

Events.cursorInvalid, or request.invalid (params.field type or limit)

Auth.roleTooLow

No such object in this organization, no such organization, or the caller does not belong to it

Over the operation’s rate-limit budget (x-affectra-budget): code request.rateLimited with params.budget. Wait Retry-After seconds before trying again.

Media typeapplication/problem+json

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
status
required

The HTTP status

integer
code
required

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.

string
Allowed values: notFound internal request.invalidJson request.invalid request.alreadyExists request.timeInvalid auth.required auth.csrfMissing email.invalid accounts.passwordUnavailable locale.invalid request.rateLimited auth.sessionRequired auth.roleTooLow auth.githubTokenUploadOnly org.suspended org.required request.fieldRequired request.textInvalid request.timeout server.notReady catalog.unavailable report.invalid report.wrongTenant settings.csafNamespaceInvalid settings.digestHourInvalid settings.timeZoneInvalid sbom.invalid sbom.limitExceeded sbom.signatureInvalid sbom.signatureRequired sbom.signatureUnavailable upload.hardwareRevisionRenamed upload.malformed upload.unexpectedPart upload.sbomMissing upload.tooLarge upload.unreadable provenance.invalid provenance.sbomAttestation provenance.signatureRequired provenance.unavailable vex.vulnerabilityInvalid vex.statusInvalid vex.justificationUnknown vex.justificationNotAllowed vex.justificationRequired vex.actionRequired vex.statementTooLong vex.csafNamespaceRequired vex.csafNoStatements release.hasVexStatements finding.refInvalid mapping.purlInvalid mapping.purlVersioned mapping.purlCoveredByOsv mapping.cpeFieldInvalid mapping.builtIn mapping.csafProviderUnknown mapping.csafKindInvalid mapping.csafValueInvalid feeds.notSubscribable accounts.setupEmailLimit member.exists member.joined member.roleInvalid member.ownerGrantDenied member.ownerChangeDenied member.ownerRemoveDenied member.lastOwner github.orgInvalid github.teamInvalid github.roleInvalid github.adminRequired key.nameInvalid key.roleInvalid key.purposeInvalid product.keyInvalid product.keyExists product.keyLocked product.supportEndsInvalid alias.reportedInvalid alias.exists publisher.repositoryInvalid publisher.fieldTooLong publisher.idsIncomplete publisher.repositoryNotFound publisher.githubUnreachable publisher.workflowInvalid publisher.refPatternPrefix publisher.refPatternInvalid publisher.exists graph.vulnerabilityUnknown graph.timeout proposal.evidenceUnknown proposal.evidenceTooLarge proposal.kindInvalid proposal.basisInvalid proposal.notCarryOver proposal.basisMismatch proposal.notPending proposal.sourceSuperseded proposal.ownProposal proposal.fourEyes proposal.personRequired proposal.batchTooLarge proposal.vulnerabilityChanged proposal.reportedChanged proposal.releaseUnknown proposal.evidenceMissing notifications.unavailable notifications.findingsInvalid notifications.tokenInvalid webhook.urlRejected webhook.limitReached webhook.formatUnavailable webhook.headerInvalid webhook.eventTypesInvalid webhook.disabled events.cursorInvalid
detail
required

What went wrong

string
params
required

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
key
additional properties
any

Example

{
"code": "notFound"
}
Retry-After
integer
>= 1

Seconds until a request would be allowed again, at least 1

Notifications.unavailable