Endpoints
Create an event
Add a new event to your organization. Supports idempotent requests via the Idempotency-Key header.
POST
/eventscurl -X POST https://api.intervals.run/events \
-H "Authorization: Bearer INTERVALS_PARTNER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Summer Solstice 10K",
"slug": "summer-solstice-10k",
"type": "race",
"date": "2025-06-21",
"startTime": "07:30",
"description": "Celebrate the longest day with a scenic 10K.",
"websiteUrl": "https://northshorerace.com/solstice-10k",
"registrationUrl": "https://runsignup.com/solstice-10k"
}'Headers
Content-TypestringrequiredMust be application/json.
Idempotency-KeystringUnique key to prevent duplicate creation on retry. UUID recommended.
Request Body
application/json
namestringrequiredEvent name
slugstringrequiredURL-friendly slug (must be unique within org)
typeenum<string>requiredEvent type
Available options: race,runClub,timeTrial,other
datestringrequiredEvent date (YYYY-MM-DD)
endDatestringEnd date for multi-day events (YYYY-MM-DD)
startTimestringStart time (HH:MM or HH:MM:SS)
endTimestringEnd time (HH:MM or HH:MM:SS)
addressobjectEvent location
latnumberLatitude
lngnumberLongitude
descriptionstringEvent description
websiteUrlstringEvent website URL
registrationUrlstringRegistration page URL
Authorization
write:events{
"data": {
"eventId": "e83ghi012jkl345"
}
}Request
curl -X POST https://api.intervals.run/events \
-H "Authorization: Bearer INTERVALS_PARTNER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Summer Solstice 10K",
"slug": "summer-solstice-10k",
"type": "race",
"date": "2025-06-21",
"startTime": "07:30",
"description": "Celebrate the longest day with a scenic 10K.",
"websiteUrl": "https://northshorerace.com/solstice-10k",
"registrationUrl": "https://runsignup.com/solstice-10k"
}'Response
{
"data": {
"eventId": "e83ghi012jkl345"
}
}