{
  "opencollection": "1.0.0",
  "info": {
    "name": "RunSignup Corrals Races API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://runsignup.com/OAuth/Authorize",
      "accessTokenUrl": "https://runsignup.com/OAuth/Token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Races",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Races",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://runsignup.com/Rest/races",
            "params": [
              {
                "name": "format",
                "value": "",
                "type": "query",
                "description": "Response format"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "results_per_page",
                "value": "",
                "type": "query",
                "description": "Number of results per page (max 1000)"
              },
              {
                "name": "search_term",
                "value": "",
                "type": "query",
                "description": "Search term to filter races by name"
              },
              {
                "name": "start_date",
                "value": "",
                "type": "query",
                "description": "Filter races starting on or after this date (MM/DD/YYYY)"
              },
              {
                "name": "end_date",
                "value": "",
                "type": "query",
                "description": "Filter races starting on or before this date (MM/DD/YYYY)"
              },
              {
                "name": "state",
                "value": "",
                "type": "query",
                "description": "Filter races by US state abbreviation"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query",
                "description": "Filter races by country code"
              },
              {
                "name": "events",
                "value": "",
                "type": "query",
                "description": "Include event details in response (T/F)"
              }
            ]
          },
          "docs": "Returns a list of upcoming races with event information. Event start and end times are in the timezone of the race. Results are paginated with a maximum of 1,000 races per page."
        },
        {
          "info": {
            "name": "Get Race",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://runsignup.com/Rest/race/:race_id",
            "params": [
              {
                "name": "race_id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the race"
              },
              {
                "name": "format",
                "value": "",
                "type": "query"
              },
              {
                "name": "events",
                "value": "",
                "type": "query",
                "description": "Include event details"
              }
            ]
          },
          "docs": "Returns detailed information about a specific race including all events, registration settings, pricing, and configuration."
        }
      ]
    }
  ],
  "bundled": true
}