{"openapi":"3.1.0","info":{"title":"Road Mates Agent API","version":"1.0.0","summary":"The Road Mates road catalog for AI agents: roads, phases, guides, resources and the road finder.","description":"Free and read-only. Every road, phase and guide carries `url`, its page on Road Mates: link people there.\n\nWithout a key: the API and MCP work with no sign-in, but one address can make 60 requests a minute. With a key: 600 a minute. A key is free (Road Mates → Settings → API keys), sent as `Authorization: Bearer rm_…`.\n\nThe same catalog is an MCP server at https://roadmates.co/api/mcp (Streamable HTTP; tools list_roads, get_road, get_guide, find_road).","contact":{"name":"Road Mates","url":"https://roadmates.co/"}},"servers":[{"url":"https://roadmates.co"}],"security":[{},{"apiKey":[]}],"paths":{"/api/v1/roads":{"get":{"operationId":"listRoads","summary":"List every road in the catalog, a page at a time.","parameters":[{"name":"limit","in":"query","description":"Roads a page, 1 to 50.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"after","in":"query","description":"The `next_cursor` of the page before: the list goes on after this slug.","schema":{"type":"string"}},{"name":"category","in":"query","description":"Only the roads in one category.","schema":{"type":"string","enum":["tech-data","engineering","health","business","marketing-media","art-design","music-performance","sports-games","languages-tests","education","moving-abroad","aviation-public-service"]}}],"responses":{"200":{"description":"A page of roads, by slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoadPage"}}}},"400":{"description":"A bad limit, cursor or category.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key sent isn't valid (malformed, unknown or revoked). Send an active key, or none.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: 60 requests a minute per IP without a key, 600 a minute per key.","headers":{"Retry-After":{"description":"Seconds until the limit resets.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"The catalog couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The key couldn't be checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/roads/{slug}":{"get":{"operationId":"getRoad","summary":"One road: every phase in order with what it is, how long it takes, its proof and its resources.","parameters":[{"name":"slug","in":"path","required":true,"description":"The road's slug, as in its page address /roadmaps/{slug}.","schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","maxLength":200}}],"responses":{"200":{"description":"The road.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Road"}}}},"401":{"description":"The key sent isn't valid (malformed, unknown or revoked). Send an active key, or none.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: 60 requests a minute per IP without a key, 600 a minute per key.","headers":{"Retry-After":{"description":"Seconds until the limit resets.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"The catalog couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The key couldn't be checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/roads/{slug}/guide":{"get":{"operationId":"getGuide","summary":"A road's full \"How to become\" guide, when it has one.","parameters":[{"name":"slug","in":"path","required":true,"description":"The road's slug, as in its page address /roadmaps/{slug}.","schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","maxLength":200}}],"responses":{"200":{"description":"The guide.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Guide"}}}},"401":{"description":"The key sent isn't valid (malformed, unknown or revoked). Send an active key, or none.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: 60 requests a minute per IP without a key, 600 a minute per key.","headers":{"Retry-After":{"description":"Seconds until the limit resets.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"The catalog couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The key couldn't be checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/find":{"get":{"operationId":"findRoad","summary":"Find the road for what someone wants to become.","parameters":[{"name":"q","in":"query","required":true,"description":"What they want to become, e.g. \"a chef\" or \"data scientist\".","schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"The best road (or none) and every match.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindResult"}}}},"400":{"description":"A missing or over-long q.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key sent isn't valid (malformed, unknown or revoked). Send an active key, or none.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Over the rate limit: 60 requests a minute per IP without a key, 600 a minute per key.","headers":{"Retry-After":{"description":"Seconds until the limit resets.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"The catalog couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The key couldn't be checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Optional. A free key from Road Mates → Settings → API keys (rm_…) raises the rate limit."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["bad_request","unauthorized","not_found","rate_limited","internal","unavailable"]},"message":{"type":"string"}}}}},"Category":{"oneOf":[{"type":"object","required":["slug","label"],"properties":{"slug":{"type":"string","enum":["tech-data","engineering","health","business","marketing-media","art-design","music-performance","sports-games","languages-tests","education","moving-abroad","aviation-public-service"]},"label":{"type":"string"}}},{"type":"null"}]},"RoadSummary":{"type":"object","required":["slug","name","category","phase_count","url","api_url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/Category"},"phase_count":{"type":"integer"},"url":{"type":"string","format":"uri","description":"The road's page."},"api_url":{"type":"string","format":"uri","description":"This road in the API."}}},"RoadPage":{"type":"object","required":["data","next_cursor","next_url"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RoadSummary"}},"next_cursor":{"oneOf":[{"type":"string","description":"Pass as `after` for the next page."},{"type":"null"}]},"next_url":{"oneOf":[{"type":"string","format":"uri","description":"The next page."},{"type":"null"}]}}},"Resource":{"type":"object","required":["title","url","type"],"properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri","description":"The resource."},"type":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"Phase":{"type":"object","required":["position","name","description","typical_duration","proof_needed","common_bottlenecks","resources","url"],"properties":{"position":{"type":"integer","minimum":1},"name":{"type":"string"},"description":{"oneOf":[{"type":"string"},{"type":"null"}]},"typical_duration":{"oneOf":[{"type":"string"},{"type":"null"}]},"proof_needed":{"oneOf":[{"type":"string","description":"The proof that shows the phase is done."},{"type":"null"}]},"common_bottlenecks":{"type":"array","items":{"type":"string"},"description":"Where people get stuck."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"url":{"type":"string","format":"uri","description":"The phase's page."}}},"SimilarRoad":{"type":"object","required":["slug","name","phase_count","url","api_url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"phase_count":{"type":"integer"},"url":{"type":"string","format":"uri","description":"The road's page."},"api_url":{"type":"string","format":"uri","description":"This road in the API."}}},"Road":{"type":"object","required":["slug","name","category","url","api_url","join_url","guide_url","guide_api_url","image_url","length","phase_count","phases","similar"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/Category"},"url":{"type":"string","format":"uri","description":"The road's page."},"api_url":{"type":"string","format":"uri","description":"This road in the API."},"join_url":{"type":"string","format":"uri","description":"Sign up and start this road."},"guide_url":{"oneOf":[{"type":"string","format":"uri","description":"The road's guide page."},{"type":"null"}]},"guide_api_url":{"oneOf":[{"type":"string","format":"uri","description":"The guide in the API."},{"type":"null"}]},"image_url":{"type":"string","format":"uri","description":"The road as one PNG."},"length":{"oneOf":[{"type":"string","description":"How long the whole road usually takes."},{"type":"null"}]},"phase_count":{"type":"integer"},"phases":{"type":"array","items":{"$ref":"#/components/schemas/Phase"}},"similar":{"type":"array","items":{"$ref":"#/components/schemas/SimilarRoad"}}}},"RoadLink":{"type":"object","required":["slug","name","url","api_url"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"The road's page."},"api_url":{"type":"string","format":"uri","description":"This road in the API."}}},"FindResult":{"type":"object","required":["query","best","roads","signup_url"],"properties":{"query":{"type":"string"},"best":{"oneOf":[{"$ref":"#/components/schemas/RoadLink"},{"type":"null"}]},"roads":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/RoadLink"},"description":"Every match, closest first."},"signup_url":{"oneOf":[{"type":"string","format":"uri","description":"Sign up with this goal: Road Mates makes the road when the catalog has none."},{"type":"null"}]}}},"Guide":{"type":"object","required":["title","summary","url","published_at","updated_at","road","format","body"],"properties":{"title":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri","description":"The guide's page."},"published_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"road":{"$ref":"#/components/schemas/RoadLink"},"format":{"type":"string","const":"markdown","description":"Every line of body is Markdown with links and bold only."},"body":{"type":"object","required":["opening","sections","phases","faq","sources"],"properties":{"opening":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object"}},"phases":{"type":"array","items":{"type":"object"}},"faq":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"sources":{"type":"array","items":{"type":"object","required":["title","publisher","url"],"properties":{"title":{"type":"string"},"publisher":{"type":"string"},"url":{"type":"string","format":"uri","description":"The source."}}}}}}}}}}}