Skip to content

Using the API

Base URL: https://<server>/api/v1. A request runs as the key's owner, under the same access checks as the app.

Authentication

Authorization: Bearer ppk_…

Keys are created under My Settings › Security › API keys (help). A key cannot create or delete keys.

Key option Effect
Read-only GET, HEAD, OPTIONS only
Community access One community; others return 403
Expiration Rejected after this time
Status detail Cause
401 NOT_AUTHENTICATED No credential
401 COULD_NOT_VALIDATE_CREDENTIALS Unknown, expired or disabled key
403 USER_API_KEY_READ_ONLY Write with a read-only key
403 USER_API_KEY_RESOURCE_ONLY Single-resource key (calendar feed) used elsewhere
403 COMMUNITY_ACCESS_DENIED Key limited to another community, or owner not a member
403 COMMUNITY_API_KEYS_REFUSED Community disabled API access for the owner

Keys also fail while the owner is suspended or lacks a second factor the server requires (all cases).

Paths

Path Scope
/communities/ Communities the owner belongs to, with id
/c/{community_id}/… That community's content
/me/… The owner's items across communities

Content in an initiative the owner cannot access returns 404.

Pagination

Query: page (from 1), page_size. Default and maximum vary by route, usually 20 and 100; see the reference.

{"items": [], "total_count": 57, "page": 2, "page_size": 20, "has_next": true, "has_prev": true}

Errors

detail is a machine-readable code, e.g. {"detail": "USER_API_KEY_READ_ONLY"}. All codes: messages.py.

422: detail is a list of {loc, msg, type}.

Rate limits

Default 100/minute, set by RATE_LIMIT_DEFAULT
Counted by Client address, for API-key requests
Calendar feed 30/minute
Exceeded 429, {"error": "Rate limit exceeded: 100 per 1 minute"}

Some other routes set their own limits.

Versioning

  • Prefix /api/v1.
  • GET /version returns {"version": "0.80.2"}, no auth.
  • Each GitHub release attaches openapi.json and initiative-plugin-api.json.
  • operationId is the handler name (list_projects).
  • Every change is diffed against the last release's spec. Intentional breaks are listed in api-breaking-changes.md until they ship.