✈
    TravelmodeDevelopers
    🔎/
    🔑Manage API Keys
    Feature
    🌦️Weather🛂Visa🧩Platform🧭Trips🤖Agent Runs📅Events

    Events API · v1

    📖Overview🧪API Reference (Try It)
    Guides
    🚀Getting Started🔐Authentication📅Events⚠️Errors
    ⬇️Download openapi.yaml
    Developers / Events

    Events API

    Create, read, update, and delete itinerary events shared across one or more trips.

    Production base URLhttps://api.travelmode.ai
    Versionv1
    Specopenapi.yaml

    🧪 Open the API Reference

    Browse every endpoint, search the schema, and call production with the built-in Authorize / Try It console.

    🚀 Getting Started

    Create an event and attach it to a trip.

    Guides

    🚀

    Getting Started

    Create an event and attach it to a trip.

    🔐

    Authentication

    Session cookie, bearer token, and planner gating.

    📅

    Events

    Create, read, update, and delete events across trips.

    ⚠️

    Errors

    Status codes, soft-delete 410, and the error shape.

    Travelmode Events API

    Last verified: 2026-06-20 (Task #390 — User APIs documentation).

    This directory holds the public contract for the Events feature of the Travelmode developer platform. The OpenAPI spec is the source of truth; the markdown guides add narrative guidance and worked examples.

    An event (a flight, stay, activity, meal, transit leg, and so on) can be attached to one or more trips through the many-to-many trip-events join, so the same booking can appear on every traveller's trip.

    Auth model: these endpoints use the end-user auth model (session cookie or mobile / extension bearer token), not a tm_ developer key. Reads and creates require trip membership; updates and deletes are planner-only. See authentication.md.

    Hosted developer portal

    URLWhat it serves
    /developers/eventsEvents feature overview (this README).
    /developers/events/<slug>Each markdown guide (getting-started, authentication, events, errors).
    /developers/events/referenceInteractive OpenAPI 3.1 reference with Authorize and Try It.
    /developers/events/openapi.yamlCanonical YAML spec, served raw.
    /developers/events/openapi.jsonSame spec, JSON-encoded for tooling.

    Files

    FileWhat it contains
    openapi.yamlOpenAPI 3.1 spec — every Events path, schema, and example. Validated by npm run check:openapi.
    getting-started.mdBase URL, auth quickstart, create your first event.
    authentication.mdSession cookie, bearer token, and planner gating.
    events.mdCreate, read, update, and delete events across trips.
    errors.mdStatus codes, the soft-delete 410, and the error shape.

    Quick links

    • Response shape: resource objects (no { data, meta } envelope).
    • Error shape: { "error": <string | array> } — see errors.md.
    • A soft-deleted event returns 410 Gone.

    Validating the spec

    npm run check:openapi