Read an event

Read one event by ID. Hidden events are served here too, unlike on the published site.

GET https://sitepaste.com/api/v1/public/sites/{siteId}/events/{eventId}

Requires the content scope.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/events/4ghjanhpo9sy" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Response

The event record, in the shape list events returns each entry in.

400 when {eventId} is malformed; 404 when it is well formed but names no event on the site.