{
    "endpoint": "https://seethecourse.com/submit/",
    "method": "POST",
    "content_type": "application/json",
    "about": "Submit a running race (or a correction to a listed race) to the See the Course calendar. Every submission is reviewed by a person and checked against the official race website before anything is published. Nothing is published automatically. Do not submit personal data other than the contact email.",
    "fields": {
        "name": {
            "type": "string",
            "required": true,
            "max": 200,
            "note": "Official race name."
        },
        "official_url": {
            "type": "url",
            "required": true,
            "note": "Official race website (https://…)."
        },
        "date": {
            "type": "date",
            "format": "YYYY-MM-DD",
            "required": true,
            "note": "Date of the next edition."
        },
        "country": {
            "type": "string",
            "format": "ISO 3166-1 alpha-2",
            "required": true,
            "example": "US"
        },
        "city": {
            "type": "string",
            "required": true,
            "max": 120
        },
        "distances": {
            "type": "array",
            "items": [
                "marathon",
                "half",
                "10k",
                "5k",
                "ultra"
            ],
            "note": "At least one of these, or distances_other."
        },
        "distances_other": {
            "type": "string",
            "max": 200,
            "example": "8K, 3K family run"
        },
        "type": {
            "type": "string",
            "enum": [
                "road",
                "trail",
                "walk",
                "ultra"
            ],
            "default": "road"
        },
        "start_time": {
            "type": "string",
            "format": "HH:MM (24-hour, local time)"
        },
        "venue": {
            "type": "string",
            "max": 300,
            "note": "Start location."
        },
        "registration_url": {
            "type": "url"
        },
        "reg_open": {
            "type": "date"
        },
        "reg_close": {
            "type": "date"
        },
        "fee": {
            "type": "string",
            "max": 300
        },
        "course_map_url": {
            "type": "url",
            "note": "Official course map page or PDF."
        },
        "details": {
            "type": "string",
            "max": 3000,
            "note": "Anything else. For a correction: what should change (required)."
        },
        "race": {
            "type": "string",
            "note": "For a correction only: the race slug from its page address, e.g. \"chicago-marathon\". Then send details, source_url, relation, email, consent."
        },
        "source_url": {
            "type": "url",
            "note": "For a correction: the official page that shows the change."
        },
        "relation": {
            "type": "string",
            "enum": [
                "organizer",
                "runner",
                "other"
            ],
            "note": "Who is submitting (on whose behalf an agent acts)."
        },
        "email": {
            "type": "email",
            "required": true,
            "note": "Contact for questions about this submission. Never published; deleted 90 days after a decision."
        },
        "consent": {
            "type": "boolean",
            "required": true,
            "note": "true = the information is correct to the best of the submitter's knowledge and the race details (not the email) may be published."
        },
        "submitted_by": {
            "type": "string",
            "max": 120,
            "note": "Optional: name of the agent or tool sending this."
        },
        "lang": {
            "type": "string",
            "enum": [
                "ko",
                "en",
                "ja"
            ],
            "default": "en",
            "note": "Language of the free-text fields."
        }
    },
    "responses": {
        "201": "{\"ok\":true,\"id\":123,\"status\":\"received\"}",
        "400": "{\"ok\":false,\"errors\":{\"field\":\"message\"}}",
        "413": "body over 32 KB",
        "429": "too many submissions from this network"
    },
    "limits": "5 per hour and 20 per day per network.",
    "example": {
        "name": "Example City Marathon",
        "official_url": "https://example.org/marathon",
        "date": "2027-04-18",
        "country": "US",
        "city": "Example City",
        "distances": [
            "marathon",
            "half"
        ],
        "type": "road",
        "relation": "organizer",
        "email": "races@example.org",
        "consent": true,
        "submitted_by": "example-agent/1.0"
    }
}