Skip to main content
Events represent actions that occur in your connected integrations, such as a new GitHub pull request, a Slack message, or a Jira issue update. Use the Events API to query historical events or inspect a specific event in detail.

List Events

Returns a paginated, filterable list of events for a workspace.

Path Parameters

string
required
The workspace ID to query events for.

Query Parameters

string
Filter by event type, e.g. pull_request, message, issue.
string
Filter by integration source, e.g. github, slack, jira.
string
ISO 8601 timestamp. Only return events created after this time.
integer
default:"20"
Maximum number of events to return. Maximum is 100.
string
Cursor from a previous response to fetch the next page.

Response

array
Array of event objects.
string
Unique event identifier, e.g. evt_mno345.
string
Event type, e.g. pull_request, message, issue.
string
Integration source that fired the event.
object
Provider-specific event payload.
string
ISO 8601 timestamp of when the event was received.
object
Cursor pagination metadata.

Get an Event

Retrieves a single event by its ID.

Path Parameters

string
required
The workspace ID.
string
required
The event ID to retrieve.

Response

Event Object Shape

Every event shares the following fields:
string
Unique identifier for the event.
string
Category of the event. Common values: pull_request, push, message, issue, commit.
string
Name of the integration that produced the event.
object
Raw data from the provider. The structure varies by type and source.
string
ISO 8601 timestamp when Moonshadow received the event.

Filter Examples

Then use the next_cursor from the response on subsequent requests:

Filtering and Webhooks

For real-time event delivery, you can subscribe to webhooks instead of polling the Events API. See the Webhooks Guide for setup instructions.