# Ladderline auth.md

How software agents authenticate with Ladderline. Ladderline does not publish OAuth metadata, so this file is self-contained.

## Audience

AI agents, scripts and other automated clients that want to read Ladderline data, and club membership systems that manage their members' accounts.

## Registration and provisioning

- **Public data: no registration.** Anyone can call the public API without an account, key or token.
- **Club membership systems: provisioned by hand.** A club asks at support@ladderline.app. Ladderline checks the club and issues one API key for that club. Being tested; not yet generally available.
- **No self-service agent registration.** There is no OAuth server, no `/agent/auth` endpoint and no credentials to claim.

## Supported methods

| Method | Who | Endpoints |
|---|---|---|
| `none` (anonymous, read-only) | Any agent | `GET https://app.ladderline.app/api/public/clubs`, `GET https://app.ladderline.app/api/health` |
| `api_key` (issued on request) | A club's own membership system | `https://app.ladderline.app/<club>/api/ext/v1/members`: add, list and end the club's members' accounts |

## Using credentials

- Public endpoints: send no credentials.
- API keys (they start `llx_`): send `Authorization: Bearer <key>` over HTTPS only. Limits: 60 calls a minute and 50 new members a day per club, within the club's player limit. Keys are per club, can be revoked by Ladderline at any time, and never give access to other clubs, passwords or staff roles.

## Rules for agents

- Don't create player or club accounts, join clubs or submit results for anyone. Accounts belong to people, and a club's staff approve who joins.
- Don't sign in with a person's password, or get around sign-in, bot checks or rate limits.
- Cache responses (the club directory sets `max-age=600`). Limits per IP address: club directory 30 requests a minute, health 60.

## More

- OpenAPI: https://www.ladderline.app/openapi.json
- API catalog: https://www.ladderline.app/.well-known/api-catalog
- Docs: https://www.ladderline.app/api
- Security contact: https://www.ladderline.app/.well-known/security.txt
- Support: support@ladderline.app
