Inboxes
List pending events
No auth requiredLists pending (non-expired) events for the inbox, newest first, cursor paginated. Expired events are never returned.
GET
/api/inboxes/{id}/eventsParameters
Path
idstringrequiredThe inbox ID (`inbox_…`).Query
limitintegerNumber of results to return (1–100).afterstringCursor for pagination — the ID of the last item from the previous page.Responses
200A list of pending events.
object"list"dataInboxEvent[]idstringUnique identifier for the inbox event, prefixed with `inbevt_`.Example: "inbevt_xxxxxxxxxxxxxxxxxxxxxxxx"object"inbox_event"inbox_idstringID of the containing inbox (inbox_…).organization_idstring | nullOwning organization ID, or null if the resource is public (created without an API key).content_typestring | nullContent-Type of the ingested request, if provided.bodystring | nullRaw event body.parsed_bodyobjectParsed body when the content type included application/json, otherwise null.size_bytesinteger | nullsourcestring | nullOptional source label from ?source= or the X-Inbox-Source header, truncated to 200 characters.expires_atinteger | nullWhen the event expires — expired events are never returned by reads and are eventually purged. Unix timestamp in seconds.received_atinteger | nullWhen the event was ingested. Unix timestamp in seconds.has_morebooleannext_cursorstring | nullID to pass as ?after= for the next page, or null.total_countinteger401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.403The caller is authenticated but lacks access to the resource.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.404The resource does not exist or is not visible to the caller.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl https://agtls.dev/api/inboxes/{id}/events