Every page of this documentation is available as Markdown, so you can give it to an AI agent or a chat assistant.
Add this to your project's agent instructions (AGENTS.md, CLAUDE.md, Cursor rules or similar):
## Ride with GPS API
- Documentation index: https://ridewithgps.com/api/v1/doc/llms.txt. Fetch the pages you need as Markdown (`.md`).
- OpenAPI specification: https://ridewithgps.com/api/v1/openapi.yaml. Use it for exact fields and types.
- Authenticate with the `x-rwgps-api-key` and `x-rwgps-auth-token` headers, or with OAuth. Read keys and tokens from the environment; never write them in code.
- Route and trip uploads return a task: poll its `url` until `status` is `completed`.
Then ask your agent for what you need, for example:
Read the Ride with GPS API documentation index at https://ridewithgps.com/api/v1/doc/llms.txt, then write a script that uploads the GPX files in
rides/as routes and prints their URLs.
.md to its URL, for example authentication.md, or use Copy page at the top of any page.Accept: text/markdown header.curl https://ridewithgps.com/api/v1/doc/endpoints/routes \
-H "Accept: text/markdown"
An agent that calls the API acts with your API key and authentication token: it can do anything that account can. Keep the token out of files you share, and delete it on your API clients page when you are done.