Fetch the source event entry when you already know its document ID.
Request
curl --request GET \
--url "https://api.24social.io/api/v3/YOUR_ORGANISATION_SLUG/event/EVENT_DOCUMENT_ID" \
--header "Authorization: Bearer YOUR_API_TOKEN"const response = await fetch(
"https://api.24social.io/api/v3/YOUR_ORGANISATION_SLUG/event/EVENT_DOCUMENT_ID",
{
headers: {
Authorization: "Bearer YOUR_API_TOKEN"
}
}
);
if (!response.ok) {
throw new Error(`24Social API returned ${response.status}`);
}
const event = await response.json();This endpoint returns the event entry. Use Get events when you need occurrence-specific dates for recurring events.
Response
{
"id": "EVENT_DOCUMENT_ID",
"fields": {
"eventName": "Example event",
"slug": "example-event"
},
"sys": {
"contentForm": {
"id": "event"
},
"status": "published"
}
}