· View as Markdown

Use with AI agents

Every page of this documentation is available as Markdown, so you can give it to an AI agent or a chat assistant.

Point your agent at the documentation

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.

Get the documentation as Markdown

  • One page: add .md to its URL, for example authentication.md, or use Copy page at the top of any page.
  • One page, from a tool: request its URL with an Accept: text/markdown header.
  • Every page: llms.txt lists them with a short description, following the llms.txt format. llms-full.txt holds them all in one file, for tools that load the whole documentation at once.
  • Exact schemas: the OpenAPI specification describes every endpoint, parameter and field.
curl https://ridewithgps.com/api/v1/doc/endpoints/routes \
  -H "Accept: text/markdown"

Keep your keys safe

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.