Read an event type

Read one event type by the slug that pages and events reference it with.

GET https://sitepaste.com/api/v1/public/sites/{siteId}/event-types/{slug}

Requires the content scope.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/event-types/breathwork" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

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

Response

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

404 when the site has no event type with that slug; 400 when the path slug is malformed.