# Developer controls (/docs/api/developer-controls)

Manage Applications with your signed-in Strave identity.

The `/developer/*` routes are the control plane for Applications,
Installations, webhooks, and usage budgets. They run under a signed-in Strave
user's session, not an Application OAuth token. An Application can't modify its
own control-plane settings.

## Owners and permissions [#owners-and-permissions]

Every Application is owned by either a user or an organisation, and that owner
pays for its usage. Manage personal Applications under **Developers** >
**Applications** in your settings, or open an organisation's **Developer
applications** page at `strave.gg/o/<organisation-slug>/manage/applications`.

Organisations control access with two role permissions:

- **Developer applications: View.** Lets a member inspect Applications,
  Installations, usage, and budgets.
- **Developer applications: Manage.** Adds full write access: creating and
  editing Applications, managing credentials, setting budgets, transferring
  ownership, and installing Applications on the organisation or its events.

Organisation owners and admins have both permissions by default, while event
managers get view access. You can grant either permission to custom roles in
your organisation's role settings.

If you call a control route for an organisation without the required permission,
Strave returns `404 not_found` rather than `403` so the response doesn't leak
whether the organisation exists.

## Create an Application [#create-an-application]

The developer portal is the quickest way to set up an Application:

1. Open **Settings** > **Developers** > **Applications**, or open your
   organisation's **Developer applications** page, then select **New
   application**.
2. Enter a name and an optional description.
3. Choose where the Application runs. You can't change this after creation:
   - **Server application** for backends, bots, and web apps with a server. It
     can hold credentials and act as itself.
   - **Browser, mobile, or desktop app** for code running on a user's device. It
     signs users in with PKCE and holds no secret.
4. Select **Create application**.
5. If you created a server application, copy the client secret and store it
   right away.

<Callout type="warn">
Strave displays a client secret or API key only once. If you lose it, create a
new one and revoke the old one.
</Callout>

Inside the Application's settings page, every change saves immediately with no
draft or publish step:

| Section        | What you do there                                                                                     |
| -------------- | ----------------------------------------------------------------------------------------------------- |
| General        | Edit name, description, icon, and website. Copy the client ID. Transfer or delete the Application.    |
| OAuth2         | Manage redirect URIs. Copy the client ID and OIDC discovery URL.                                      |
| Permissions    | Turn OAuth scopes on or off. Paid scopes show which plan they need.                                   |
| Credentials    | Add trusted workloads, API keys, and client secrets (server Applications only).                       |
| Installations  | Copy the install link, inspect active installations, and revoke access.                               |
| Usage & limits | Track monthly usage, set hard budgets or warning alerts, and toggle the kill switch for all requests. |

See [Authentication](/docs/api/authentication) for how to use each credential
type.

## Install an Application [#install-an-application]

Sign-in grants your Application access to one player. An Installation grants
access to an entire organisation, letting a server Application read or update
that organisation's data even when no user is signed in (for example, a Discord
bot posting live match results). Every Application is installed on its owner by
default.

To install an Application on another organisation, share its install link from
the **Installations** tab. A member with **Developer applications: Manage**
picks the organisation, reviews the requested permissions, and selects
**Install**. If you turn on new permissions later, existing Installations keep
their previous permissions until a manager opens the install link again and
approves the additions. Every installed Application appears on the
organisation's **Developer applications** page.

The **Installations** tab lists the owner and installed organisations, not
individual players who signed in with Login with Strave.

Ownership transfers stay pending for seven days. To complete one, a member of
the receiving organisation with **Developer applications: Manage** accepts it
on that organisation's **Developer applications** page.

## Usage and quotas [#usage-and-quotas]

Every successful API request consumes `api_calls` units from the Application
owner's monthly quota. Heavier queries cost more units:

| Request         | Units |
| --------------- | ----- |
| Statistics read | 20    |
| List read       | 5     |
| Other read      | 1     |
| Write           | 1     |

All Applications owned by the same user or organisation share one monthly
quota, which resets at the start of each UTC month:

| Owner        | Plan         | Units per month          |
| ------------ | ------------ | ------------------------ |
| User         | Free         | 10,000                   |
| User         | Essential    | 25,000                   |
| User         | Premium      | 50,000                   |
| Organisation | Free         | 25,000                   |
| Organisation | Standard     | 250,000                  |
| Organisation | Professional | 1,000,000                |
| Organisation | Enterprise   | 1,000,000 or by contract |

When a user account or a Free organisation hits its monthly limit, Strave
returns `429 quota_exceeded` until the quota resets. Paid organisations keep
working past their included quota at 0.10 € per 1,000 additional units, drawn
from the plan's included usage credit first.

### Paid permissions [#paid-permissions]

These scopes require an Application owned by an organisation on the
Professional or Enterprise plan:

- `stats:read` for match, event, and participant statistics.
- `analytics:read` for event analytics.
- `esports:read` for esports data.

Organisations on the Standard plan can use `stats:read` on events belonging to
the organisation that owns the Application, not on events from other
Installations.

Requests without the required plan return `403 entitlement_required`. The
**Permissions** tab marks each paid scope with **Professional plan**.

Tier 1 esports matches are not included in the standard API and require a
separate add-on.

### Usage headers [#usage-headers]

Every metered response includes `x-ratelimit-used`, `x-ratelimit-reset`, and
`x-ratelimit-resource`. When a hard cap applies, Strave also sends
`x-ratelimit-limit` and `x-ratelimit-remaining` for whichever ceiling has the
fewest units left: the owner's quota, the Application budget, or the
Installation budget. Because paid organisations don't have a hard quota cap,
their responses only include `x-ratelimit-limit` and `x-ratelimit-remaining`
when you configure a budget.

To prevent an Application from spending past your included quota, set a monthly
budget under **Usage & limits**.

## Authenticate a control request [#authenticate-a-control-request]

If you automate Application setup through the `/developer/*` HTTP routes,
authenticate with a signed-in Strave user session using either method:

- **Session cookie.** Forward the user's Strave session cookie from a trusted
  same-site server or proxy.
- **Convex identity token.** Send `Authorization: Bearer <token>` with a
  short-lived identity token fetched from the Better Auth Convex client:

```ts
const response = await authClient.convex.token({
	fetchOptions: { throw: false },
});
const controlToken = response.data?.token;
```

This control token is separate from `STRAVE_ACCESS_TOKEN` (which is an
Application OAuth token). Keep control tokens out of URLs, logs, source
control, and persistent browser storage.

## Create an Application with the API [#create-an-application-with-the-api]

Application creation is idempotent. Send a fresh `Idempotency-Key` for every
new Application, and reuse that key only when retrying the exact same payload.
`owner.type` must be `user` or `organisation`, `kind` must be `general`,
`clientType` must be `confidential` or `public`, and any URLs must use HTTPS.

```bash
curl --request POST https://strave.gg/api/v2/developer/apps \
  --header "Authorization: Bearer $STRAVE_CONTROL_TOKEN" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: app-create-acme-production" \
  --data '{
    "owner": { "type": "organisation", "id": "org_01K4ZK3J1P" },
    "kind": "general",
    "clientType": "confidential",
    "name": "Acme Tournament Sync",
    "description": "Synchronises brackets and broadcast state.",
    "homepageUrl": "https://integrations.example.com/strave"
  }'
```

A new Application returns `201 Created` with `ETag: "1"` and
`Idempotency-Replayed: false`. For confidential Applications, save
`clientSecret` from this first response immediately; an idempotent retry
returns `clientSecret: null`.

```json
{
	"data": {
		"application": {
			"id": "app_01K4ZKC87A",
			"owner": { "type": "organisation", "id": "org_01K4ZK3J1P" },
			"clientId": "strave_aB3dE5fG7hJ9kL1mN3pQ5r",
			"kind": "general",
			"name": "Acme Tournament Sync",
			"description": "Synchronises brackets and broadcast state.",
			"homepageUrl": "https://integrations.example.com/strave",
			"iconUrl": null,
			"clientType": "confidential",
			"permissions": [],
			"redirectUris": [],
			"status": "active",
			"revision": 1,
			"createdAt": "2026-09-15T09:30:00.000Z",
			"updatedAt": "2026-09-15T09:30:00.000Z"
		},
		"clientSecret": "strave_cs_example"
	}
}
```

## Update without overwriting another change [#update-without-overwriting-another-change]

Control-plane writes use optimistic concurrency so two editors don't clobber
each other. Read the Application first, grab its `ETag`, and pass that value in
`If-Match`:

```bash
curl --request PATCH https://strave.gg/api/v2/developer/apps/app_01K4ZKC87A \
  --header "Authorization: Bearer $STRAVE_CONTROL_TOKEN" \
  --header 'If-Match: "1"' \
  --header "Content-Type: application/json" \
  --data '{
    "name": "Acme Broadcast Sync",
    "permissions": ["event:read", "broadcast:manage"],
    "redirectUris": ["https://integrations.example.com/strave/callback"]
  }'
```

Sending `permissions` or `redirectUris` replaces the full list. Any permission
you remove stops working on the next request.

If someone else updated the Application after you read it, Strave returns
`412 revision_mismatch`. Fetch the latest copy, merge your edit, and retry with
the new `ETag`. Missing or malformed `If-Match` headers return
`428 revision_required`.

## Common failures [#common-failures]

These are the most frequent control-plane errors and how to recover from them:

| Status | Code                       | What to do                                                        |
| ------ | -------------------------- | ----------------------------------------------------------------- |
| `401`  | `authentication_required`  | Sign in again and fetch a fresh control token.                    |
| `404`  | `not_found`                | Use a member with the Manage developer applications permission.   |
| `409`  | `idempotency_key_conflict` | Send the original body or generate a new key for a new request.   |
| `412`  | `revision_mismatch`        | Re-read the resource, merge changes, and retry with the new ETag. |
| `428`  | `revision_required`        | Pass the resource's strong ETag in `If-Match`.                    |

Every response carries an `x-request-id` header. Log it when troubleshooting,
and strip out authorisation headers, cookies, client secrets, and webhook
secrets before sharing logs.