[{"data":1,"prerenderedAt":162},["ShallowReactive",2],{"docs-\u002Fdocs\u002Frest-api\u002Fopenapi":3,"_apollo:default":161,"_apollo:stationEditor":161,"_apollo:feedManagement":161,"_apollo:transferAnalyst":161},{"id":4,"title":5,"body":6,"description":151,"extension":152,"meta":153,"navigation":155,"path":156,"seo":157,"stem":158,"__hash__":159,"lastUpdated":160},"content\u002Fdocs\u002Frest-api\u002Fopenapi.md","REST API - OpenAPI schema",{"type":7,"value":8,"toc":144},"minimark",[9,14,26,37,46,57,75,79,82,88,97,101,104,121,132,136],[10,11,13],"h2",{"id":12},"openapi-schema","OpenAPI schema",[15,16,17,18,25],"p",{},"The Transitland v2 REST API publishes a machine-readable ",[19,20,24],"a",{"href":21,"rel":22},"https:\u002F\u002Fspec.openapis.org\u002Foas\u002Fv3.0.0\u002F",[23],"nofollow","OpenAPI 3.0"," description of its endpoints, parameters, and response shapes:",[27,28,33],"pre",{"className":29,"code":31,"language":32},[30],"language-text","https:\u002F\u002Ftransit.land\u002Fapi\u002Fv2\u002Frest\u002Fopenapi.json\n","text",[34,35,31],"code",{"__ignoreMap":36},"",[38,39,40,41,45],"info",{},"\nThe schema document itself is served without an API key, so you can fetch it and point tooling at it before signing up. The endpoints it describes still require a key. See \n",[19,42,44],{"href":43},"\u002Fdocumentation\u002Frest-api#configuring-access","\nConfiguring access\n","\n.\n",[15,47,48,49,52,53,56],{},"The document is generated by the running API server, so it describes what is currently deployed rather than a separately maintained copy. Its ",[34,50,51],{},"servers"," entry is the live base URL, ",[34,54,55],{},"https:\u002F\u002Ftransit.land\u002Fapi\u002Fv2\u002Frest",", so paths from the schema resolve correctly without extra configuration.",[15,58,59,60,64,65,69,70,74],{},"The reference pages in this section, such as ",[19,61,63],{"href":62},"\u002Fdocumentation\u002Frest-api\u002Ffeeds","Feeds",", ",[19,66,68],{"href":67},"\u002Fdocumentation\u002Frest-api\u002Fstops","Stops",", and ",[19,71,73],{"href":72},"\u002Fdocumentation\u002Frest-api\u002Froutes","Routes",", render their parameter tables and response trees from a snapshot of this schema.",[10,76,78],{"id":77},"browsing-the-schema","Browsing the schema",[15,80,81],{},"Fetch it directly:",[27,83,86],{"className":84,"code":85,"language":32},[30],"curl https:\u002F\u002Ftransit.land\u002Fapi\u002Fv2\u002Frest\u002Fopenapi.json\n",[34,87,85],{"__ignoreMap":36},[15,89,90,91,96],{},"Or read the endpoints in a browser with any OpenAPI viewer. For example, ",[19,92,95],{"href":93,"rel":94},"https:\u002F\u002Fredocly.github.io\u002Fredoc\u002F?url=https:\u002F\u002Ftransit.land\u002Fapi\u002Fv2\u002Frest\u002Fopenapi.json",[23],"this schema rendered in ReDoc",".",[10,98,100],{"id":99},"using-the-schema","Using the schema",[15,102,103],{},"The schema is a starting point for tooling rather than something you necessarily need to read by hand:",[105,106,107,115],"ul",{},[108,109,110,114],"li",{},[111,112,113],"strong",{},"Import it into an API client"," such as Postman, Insomnia, or Bruno to get a ready-made collection of requests.",[108,116,117,120],{},[111,118,119],{},"Give it to an editor or coding agent"," so completions and generated code match the API's actual parameters.",[122,123,124,125,128,129,131],"warning",{},"\nThe schema does not declare a security scheme, so generated clients and imported collections will not prompt you for credentials. Add your API key yourself as an \n",[34,126,127],{},"\napikey\n","\n query parameter or \n",[34,130,127],{},"\n header on each request.\n",[10,133,135],{"id":134},"other-transitland-apis","Other Transitland APIs",[15,137,138,139,143],{},"The ",[19,140,142],{"href":141},"\u002Fdocumentation\u002Fgraphql-api","GraphQL API"," is not described by an OpenAPI document. It is introspectable instead, so a GraphQL client can read its schema directly from the endpoint.",{"title":36,"searchDepth":145,"depth":145,"links":146},2,[147,148,149,150],{"id":12,"depth":145,"text":13},{"id":77,"depth":145,"text":78},{"id":99,"depth":145,"text":100},{"id":134,"depth":145,"text":135},"The Transitland v2 REST API publishes an OpenAPI 3.0 schema at openapi.json for use in API clients, code generators, editors, and OpenAPI viewers.","md",{"layout":154},"documentation",true,"\u002Fdocs\u002Frest-api\u002Fopenapi",{"title":5,"description":151},"docs\u002Frest-api\u002Fopenapi","c_GHnE_awhxmXIxJjwL_zTmTfthl-V-qpkxw0Q_R98U","2026-10-02T21:22:46-07:00","{}",1793614317129]