Get Publication Events
Required scope:
public-api:read
Description
This endpoint returns publication events (publish
, unpublish
, update
) for a project.
Related
Use Cases
- Reliably fetch documents publication state changes to sync with another system
- Cache invalidation management
Endpoint
GET /api/v1/publicationEvents
Parameters
Name | Type | Required | Notes |
---|---|---|---|
:channelHandle | string | The handle of the channel for which you want to get the events | |
?limit | integer | Number of events to return. Default: 100. Highest limit: 1000 | |
?reverse | boolean | Returns the events in reverse order, starting at the biggest id | |
?contentTypes | string | Comma separated list of content types to use as filter | |
?documentTypes | string | Comma separated list of document types to use as filter. Can be one of article , page , data-record | |
?after | integer | Deprecated: Please use id.gte instead. Return matching events after this event id | |
?id.gte | string | Filter by event id range. Supported filters: Example: To retrieve all events since you’ve fetched the last entry, use | |
?createdAt.gte | string | Filter by event date range. Supported filters: Example: To retrieve all events since a specific timestamp, use |