Documentation
REST API reference
Every public REST endpoint, grouped by domain.
REST API
Every endpoint Slope's app uses is also a REST endpoint you can call directly. Base URL:https://api.slope.to. Auth: Bearer JWT (Cognito-issued, same as the app).
Auto-generated reference
FastAPI auto-generates an OpenAPI 3 schema. Live URLs:
- https://api.slope.to/docs — Swagger UI
- https://api.slope.to/openapi.json — raw schema
Auth header
Authorization: Bearer <Cognito ID token>
Get a token by signing in via the Cognito SDK (amazon-cognito-identity-js) or directly against the user pool's InitiateAuth endpoint.
Org-scoped paths
Every protected route includes /organizations/{org_id}/.... The token's subclaim must correspond to a user who is a member of that org or you'll get 404 (not 403 — we don't leak existence of orgs you can't see).