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

    Trips & Itinerary API · v1

    📖Overview🧪API Reference (Try It)
    Guides
    🚀Getting Started🔐Authentication🗺️Itinerary✏️Operations👥Permissions💡Proposals⚠️Errors
    ⬇️Download openapi.yaml
    Developers / Trips / Errors

    Errors

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

    The Trips & Itinerary API returns resource objects on success and a simple error object on failure:

    { "error": "Access denied" }
    

    For request-body validation failures, error is instead an array of structured validation issues:

    { "error": [ { "path": ["base_revision"], "message": "Required" } ] }
    

    Status codes

    StatusMeaningTypical error
    400Malformed request — bad id, invalid body, or (for proposals) an already-resolved/expired proposal."Invalid trip id" or a validation-issues array
    401No valid session cookie or bearer token."Authentication required"
    403Authenticated but not authorized — not a member, insufficient role, or (permissions) not the owner."Access denied"
    404The trip, proposal, or user was not found."Trip not found"
    409Timeline operation conflict — stale base_revision or failed validation."Revision conflict" (with code: STALE_REVISION)
    500Unexpected server error."Internal server error"

    Handling 409 conflicts

    The 409 body carries a code field:

    codeWhat to do
    STALE_REVISIONRe-read the itinerary (or call the diff endpoint), re-apply your change against the new revision, and retry.
    VALIDATION_FAILEDThe operation is invalid against the current timeline; read the error message and adjust the payload.

    See operations.md for a worked example.

    Previous
    ← Proposals