# Ride with GPS API

> Documentation index: https://ridewithgps.com/api/v1/doc/llms.txt

Welcome to the Ride with GPS API documentation.

Use of the public API is subject to our [API Terms of Service](https://ridewithgps.com/api/v1/doc/terms.md).

Please email [developers@ridewithgps.com](mailto:developers@ridewithgps.com) with any feedback or questions.

## Where to start

**If you build an app for riders**, read [Authentication](https://ridewithgps.com/api/v1/doc/authentication.md#oauth) to connect their accounts with OAuth, then use the [Routes](https://ridewithgps.com/api/v1/doc/endpoints/routes.md) and [Trips](https://ridewithgps.com/api/v1/doc/endpoints/trips.md) endpoints.

**If you use an organization account**, start with the [Organizations overview](https://ridewithgps.com/api/v1/doc/organizations/overview.md). The pages in the Organizations section, such as experiences and club members, only work with an organization account.

**If you work with an AI agent**, see [Use with AI agents](https://ridewithgps.com/api/v1/doc/ai_agents.md) for the instructions to give it. Every page is also available as Markdown.

## API clients and authentication

You need an API client for every API request. [Manage the API clients](https://ridewithgps.com/api/api_clients) of your account.

When you create an API client, it gets an API key (`api_key`).

We recommend that you authenticate with **OAuth**, which you set up on your [API clients management page](https://ridewithgps.com/api/api_clients).

The API also supports Basic authentication, using your `api_key` and an authentication token. You can create authentication tokens on the API clients management page.

[Read more about authentication](https://ridewithgps.com/api/v1/doc/authentication.md)


## Versioning

Our current (and only) API version is `v1` and is available at the `https://ridewithgps.com/api/v1` namespace.

Only major, incompatible changes will trigger a version upgrade. We will add new endpoints and keys to existing responses without a version upgrade.

## Formats

The API responds with JSON, and accepts JSON request bodies, except file uploads, which are sent as `multipart/form-data`. To specify JSON, you can either add a `content-type: application/json` header to your requests, or add a `.json` extension to the endpoints you call. The documentation specifies URLs with a `.json` extension.


## Webhooks

You can configure your API client to send webhooks to your servers whenever one of your users creates, updates, deletes, pins or unpins a route or a trip, when their events or the RSVPs to them change, when their organization's members change, or when they disconnect your app.

[Read more about webhooks](https://ridewithgps.com/api/v1/doc/webhooks.md)

## Responses and errors

Every response has a root key named after the resource, lists are paginated, and errors come back as an `errors` array. [Read more about responses and errors](https://ridewithgps.com/api/v1/doc/responses.md)
