# Intervals (Running Events)

> Manage your Intervals running events from workflows: create events, register runners, and read registrations, awards and official results.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/intervals-run

## Actions

### Create event

Add an event to your organization. Intervals makes its web address from the name and date.

**Inputs**

- Repeat-safe key (`idempotency_key`, text, required): Any text new to this request, such as a UUID. Intervals needs one; sending the same key again returns the first result instead of creating a second one.
- Name (`name`, text, required): The event's name, up to 200 characters.
- Type (`type`, text, required): What kind of event it is. One of: `race`, `runClub` (Run club), `timeTrial` (Time trial), `other`.
- Date (`date`, date, required): The event day on the venue's calendar, up to 5 years ahead.
- End date (`endDate`, date): The last day, for an event over several days.
- Start time (`startTime`, time): The start time on the venue's clock.
- End time (`endTime`, time): The end time on the venue's clock.
- Venue (`address_venue`, text): The place or venue name, such as Copley Square.
- Street address (`address_street`, text): The street address.
- City (`address_city`, text): The city or town. Needed when you give an address.
- State or region (`address_region`, text): The state, province or region.
- Postal code (`address_postal_code`, text): The postal or ZIP code.
- Country code (`address_country`, text): The two-letter country code, such as US. Needed when you give an address.
- Latitude (`lat`, number): The venue latitude. From -90 to 90.
- Longitude (`lng`, number): The venue longitude. From -180 to 180.
- Description (`description`, text): A description, up to 10,000 characters.
- Website (`websiteUrl`, text): The event's website.
- Registration page (`registrationUrl`, text): Where runners register.
- Repeats (`repeats`, text): For a race: held once, or every year on the same weekday of the same month. One of: `once`, `yearly` (Every year).

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "eventId": "e83ghi012jkl345"
    }
  }
}
```

### Get collection

Get one collection.

**Inputs**

- Collection (`slug`, text, required): The collection to read.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "cardImageUrl": "https://example.com/page",
      "coverImageUrl": "https://example.com/page",
      "description": "Our seasonal series of lakefront road races.",
      "id": "c14abc789def012",
      "name": "Lakefront Race Series",
      "organizationId": "k57abc123def456",
      "slug": "lakefront-race-series",
      "status": "active"
    }
  }
}
```

### Get event

Get an event with its runs (distances) and their registration state.

**Inputs**

- Event (`event_id`, text, required): The event to read.
- Edition (`edition`, text): An edition's ID from List event editions. Leave empty for the edition the event's page shows.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "edition": {
        "endDate": "Example",
        "id": "ed41abc567def890",
        "label": "2025",
        "published": true,
        "startDate": "2025-06-14",
        "temporalStatus": "future",
        "tentative": false,
        "url": "https://intervals.run/races/lakefront-5k-june-14-e72tuv9"
      },
      "event": {
        "address": {
          "addressCountry": "Example",
          "addressLocality": "Example",
          "addressRegion": "Example",
          "name": "Example",
          "postalCode": "Example",
          "streetAddress": "Example"
        },
        "cardImageUrl": "https://example.com/page",
        "coverImageUrl": "https://example.com/page",
        "date": "2025-06-14",
        "description": "Weekly lakefront 5K race along the scenic shore path.",
        "endDate": "Example",
        "endTime": "2026-03-18T14:00:00.000Z",
        "facets": {
          "configurations": [
            "loop"
          ],
          "distanceStandards": [
            "5K"
          ],
          "gradients": [
            "net_downhill"
          ],
          "holidays": [
            "Example"
          ],
          "landforms": [
            "coastal"
          ],
          "profiles": [
            "flat"
          ],
          "runFormats": [
            "virtual"
          ],
          "surfaces": [
            "road"
          ],
          "urbanizations": [
            "megacity"
          ],
          "waterfronts": [
            "ocean"
          ]
        },
        "id": "e72tuv901wxy234",
        "lat": 1.5,
        "lng": 1.5,
        "name": "Lakefront 5K - June 14",
        "organizationId": "k57abc123def456",
        "registrationUrl": "https://example.com/page",
        "slug": "lakefront-5k-june-14",
        "startTime": "08:00",
        "startsAt": "2026-03-18T14:00:00.000Z",
        "temporalStatus": "future",
        "timezone": "Example",
        "type": "race",
        "websiteUrl": "https://northshorerace.com/lakefront-5k"
      },
      "runs": [
        {
          "date": "2025-06-14",
          "distanceLabel": "5K",
          "distanceMeters": 5000,
          "distanceStandard": "5K",
          "entryCount": 1.5,
          "eventId": "e72tuv901wxy234",
          "eventStatus": "scheduled",
          "id": "r41abc567def890",
          "isDuo": true,
          "isHandcycle": true,
          "isRelay": true,
          "isVirtual": true,
          "isWalking": true,
          "isWheelchair": true,
          "maxParticipants": 400,
          "registration": {
            "closesAt": "2025-06-13T23:59:59-04:00",
            "isOpen": true,
            "opensAt": "2026-03-18T14:00:00.000Z",
            "phase": "open"
          },
          "registrationCount": 187,
          "registrationUrl": "https://example.com/page",
          "relay": {
            "legs": [
              {
                "atMeters": 1.5,
                "label": "Example"
              }
            ],
            "teamSize": 1.5
          },
          "startTime": "08:00",
          "startsAt": "2026-03-18T14:00:00.000Z"
        }
      ]
    }
  }
}
```

### Get event awards

See what each of an event's runs awards: the award groups, how many places, and the prizes.

**Inputs**

- Event (`event_id`, text, required): The event to read.
- Edition (`edition`, text): An edition's ID from List event editions. Leave empty for the edition the event's page shows.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": [
      {
        "duplicatePolicy": "highest_only",
        "eventStatus": "scheduled",
        "runId": "r41abc567def890",
        "segments": [
          {
            "depth": 3,
            "label": "Overall",
            "prizes": [
              {
                "currency": "usd",
                "fmvCents": 50000,
                "label": "Example",
                "type": "cash"
              }
            ],
            "segmentId": "overall"
          }
        ]
      }
    ]
  }
}
```

### Get official results

Get the official, published podiums for one run of an event.

**Inputs**

- Event (`event_id`, text, required): The event to read.
- Edition (`edition`, text): An edition's ID from List event editions. Leave empty for the edition the event's page shows.
- Run (`run`, text): The run (distance) ID from Get event. Needed when the event has more than one run.
- Award group (`segment`, text): Only this award group, such as overall or sex:female. Get event awards lists them.
- Version (`version`, number): An earlier published version to read. Leave empty for the current one. At least 1.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "eventStatus": "scheduled",
      "publication": {
        "origin": "Example",
        "publishedAt": "2025-06-14T15:20:00.000Z",
        "version": 2
      },
      "runId": "r41abc567def890",
      "segments": [
        {
          "entrant": "Example",
          "label": "Overall",
          "podium": [
            {
              "bib": "12",
              "name": "Alex Johnson",
              "nameHidden": true,
              "participantId": "p89xyz345uvw678",
              "place": 1,
              "placingTime": 1012
            }
          ],
          "segmentId": "overall",
          "teams": [
            {
              "members": [
                {
                  "legLabel": "Example",
                  "name": "Example",
                  "nameHidden": true,
                  "position": 1
                }
              ],
              "name": "Example",
              "nameHidden": true,
              "place": 1,
              "placingTime": 1.5,
              "teamId": "id_123"
            }
          ]
        }
      ]
    }
  }
}
```

### Get organization

Get the Intervals organization your API key belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "id": "k57abc123def456",
      "name": "North Shore Race Management",
      "roles": [
        "organizer"
      ],
      "slug": "north-shore-race-mgmt"
    }
  }
}
```

### List collection events

List the events in a collection, with a summary of each.

**Inputs**

- Collection (`slug`, text, required): The collection whose events to list.
- Page size (`limit`, number): How many events a page holds, up to 100. Intervals sends 50 if you leave it empty. From 1 to 100.
- Next page (`after`, text): The cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "cursor": "Example",
    "data": [
      {
        "collectionId": "c14abc789def012",
        "displayOrder": 1,
        "event": {
          "address": {
            "addressCountry": "Example",
            "addressLocality": "Example",
            "addressRegion": "Example",
            "name": "Example",
            "postalCode": "Example",
            "streetAddress": "Example"
          },
          "cardImageUrl": "https://example.com/page",
          "coverImageUrl": "https://example.com/page",
          "date": "2025-06-14",
          "description": "Example",
          "facets": {
            "configurations": [
              "loop"
            ],
            "distanceStandards": [
              "5K"
            ],
            "gradients": [
              "net_downhill"
            ],
            "holidays": [
              "Example"
            ],
            "landforms": [
              "coastal"
            ],
            "profiles": [
              "flat"
            ],
            "runFormats": [
              "virtual"
            ],
            "surfaces": [
              "road"
            ],
            "urbanizations": [
              "megacity"
            ],
            "waterfronts": [
              "ocean"
            ]
          },
          "id": "e72tuv901wxy234",
          "lat": 1.5,
          "lng": 1.5,
          "name": "Lakefront 5K - June 14",
          "organizationId": "k57abc123def456",
          "registrationUrl": "https://example.com/page",
          "slug": "lakefront-5k-june-14",
          "startTime": "2026-03-18T14:00:00.000Z",
          "startsAt": "2026-03-18T14:00:00.000Z",
          "temporalStatus": "future",
          "timezone": "Example",
          "type": "race",
          "websiteUrl": "https://example.com/page"
        },
        "eventId": "e72tuv901wxy234"
      }
    ],
    "hasMore": false
  }
}
```

### List collections

List one page of your organization's collections: race series that bundle events.

**Inputs**

- Status (`status`, text): Only collections with this status. One of: `active`, `paused`, `archived`.
- Page size (`limit`, number): How many collections a page holds, up to 100. Intervals sends 50 if you leave it empty. From 1 to 100.
- Next page (`after`, text): The cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "cursor": "Example",
    "data": [
      {
        "cardImageUrl": "https://cdn.intervals.run/collections/lakefront-race-series-card.jpg",
        "coverImageUrl": "https://example.com/page",
        "description": "Our seasonal series of lakefront road races.",
        "id": "c14abc789def012",
        "name": "Lakefront Race Series",
        "organizationId": "k57abc123def456",
        "slug": "lakefront-race-series",
        "status": "active"
      }
    ],
    "hasMore": false
  }
}
```

### List event editions

List the editions of an event, earliest first: each time it is held.

**Inputs**

- Event (`event_id`, text, required): The event whose editions to list.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": [
      {
        "endDate": "Example",
        "id": "ed31abc567def890",
        "label": "2024",
        "published": true,
        "startDate": "2024-06-15",
        "temporalStatus": "past",
        "tentative": false,
        "url": "https://intervals.run/races/lakefront-5k-e72tuv9/2024-ed31abc"
      }
    ]
  }
}
```

### List events

List one page of your organization's events, filtered by type or date.

**Inputs**

- Type (`type`, text): Only events of this type. One of: `race`, `runClub` (Run club), `timeTrial` (Time trial), `other`.
- From (`dateFrom`, date): Only events on or after this day, on the venue's calendar.
- Until (`dateTo`, date): Only events on or before this day, on the venue's calendar.
- Page size (`limit`, number): How many events a page holds, up to 100. Intervals sends 50 if you leave it empty. From 1 to 100.
- Next page (`after`, text): The cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "cursor": "Example",
    "data": [
      {
        "address": {
          "addressCountry": "Example",
          "addressLocality": "Example",
          "addressRegion": "Example",
          "name": "Example",
          "postalCode": "Example",
          "streetAddress": "Example"
        },
        "cardImageUrl": "https://example.com/page",
        "coverImageUrl": "https://example.com/page",
        "date": "2025-06-14",
        "description": "Weekly lakefront 5K race along the scenic shore path.",
        "facets": {
          "configurations": [
            "loop"
          ],
          "distanceStandards": [
            "5K"
          ],
          "gradients": [
            "net_downhill"
          ],
          "holidays": [
            "Example"
          ],
          "landforms": [
            "coastal"
          ],
          "profiles": [
            "flat"
          ],
          "runFormats": [
            "virtual"
          ],
          "surfaces": [
            "road"
          ],
          "urbanizations": [
            "megacity"
          ],
          "waterfronts": [
            "ocean"
          ]
        },
        "id": "e72tuv901wxy234",
        "lat": 1.5,
        "lng": 1.5,
        "name": "Lakefront 5K - June 14",
        "organizationId": "k57abc123def456",
        "registrationUrl": "https://example.com/page",
        "slug": "lakefront-5k-june-14",
        "startTime": "08:00",
        "startsAt": "2026-03-18T14:00:00.000Z",
        "temporalStatus": "future",
        "timezone": "Example",
        "type": "race",
        "websiteUrl": "https://northshorerace.com/lakefront-5k"
      }
    ],
    "hasMore": false
  }
}
```

### List recurring schedules

List how your organization's events repeat, such as a weekly club run.

**Inputs**

- Status (`status`, text): Only schedules with this status. One of: `active`, `paused`, `archived`.
- How many (`limit`, number): How many to show, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": [
      {
        "eventId": "e72tuv901wxy234",
        "id": "rc91abc234def567",
        "label": "Saturday parkrun",
        "schedule": {
          "dayOfMonth": 1,
          "daysOfWeek": [
            6
          ],
          "durationMinutes": 60,
          "frequency": "weekly",
          "rrule": "Example",
          "startTime": "09:00"
        },
        "status": "active"
      }
    ]
  }
}
```

### List registrations

List one page of an event's registrations.

**Inputs**

- Event (`eventId`, text, required): The event whose registrations to list.
- Page size (`limit`, number): How many registrations a page holds, up to 100. Intervals sends 50 if you leave it empty. From 1 to 100.
- Next page (`after`, text): The cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "cursor": "Example",
    "data": [
      {
        "bibIdentifier": "Example",
        "checkedIn": true,
        "email": "runner@example.com",
        "eventId": "e72tuv901wxy234",
        "eventRunId": "r41abc567def890",
        "id": "p89xyz345uvw678",
        "name": "Alex Johnson",
        "paceGroup": "Example",
        "participantStatus": "checked_in",
        "registrationStatus": "confirmed",
        "registrationType": "free",
        "teamId": "id_123"
      }
    ],
    "hasMore": false
  }
}
```

### Register participant

Sign a runner up for one run (distance) of an event.

**Inputs**

- Repeat-safe key (`idempotency_key`, text, required): Any text new to this request, such as a UUID. Intervals needs one; sending the same key again returns the first result instead of creating a second one.
- Run (`eventRunId`, text, required): The run (distance) ID from Get event.
- Email (`email`, text, required): The runner's email address.
- Name (`name`, text): The runner's name.
- Status (`status`, text): Confirmed or on the waitlist. Intervals confirms them if you leave it empty. One of: `confirmed`, `waitlist`.
- Pace group (`paceGroup`, text): The pace group or corral, exactly as the organizer named it.
- Notes (`notes`, text): Notes, up to 2,000 characters.

**Outputs**

- `data` (object): The response from Intervals (Running Events).

**Example output**

```json
{
  "data": {
    "data": {
      "participantId": "p89xyz345uvw678"
    }
  }
}
```
