API reference
Base URL /api/v1 on both hosts. JSON in, JSON out. Machine-readable spec: openapi.json.
Authentication
Create a key in the developer portal and send it as a bearer token. Keys carry scopes: read, write, analyze.
curl -H "Authorization: Bearer mdl_xxx" https://motion.medius-labs.com/api/v1/me
Responses & errors
Successful responses use {"data": …, "meta": …}. Errors use {"error": {"status": 422, "message": "…"}}. HTTP 402 means not enough paid credits; 429 means the per-minute limit was hit (see X-RateLimit-* and retry_after).
Endpoints
| Method | Path | Scope | Description |
|---|---|---|---|
| get | /api/v1/projects | read | List published projects |
| get | /api/v1/projects/{slug} | read | Get one project incl. specs and links |
| get | /api/v1/datasets | read | List open datasets |
| get | /api/v1/docs/search | read | Search the documentation |
| get | /api/v1/firmware/latest | read | Latest firmware per channel |
| get | /api/v1/providers | read | Analytics providers with capabilities and prices |
| get | /api/v1/me | read | Authenticated account |
| get | /api/v1/credits | read | Paid and research credit balances |
| get | /api/v1/devices | read | List your devices |
| post | /api/v1/devices | write | Register a device |
| get | /api/v1/activities | read | List your activities |
| post | /api/v1/activities | write | Upload an activity summary |
| post | /api/v1/analyses | analyze | Run an analytics provider on an activity (costs credits) |
| get | /api/v1/analyses/{id} | read | Fetch an analysis result |
| post | /api/v1/auth/login | public | Sign in with email and password (apps). Returns an API key; if 2FA is on, repeat the call with "code" |
| post | /api/v1/auth/logout | read | Revoke the API key used for this request |
| get | /api/v1/contributions | read | Your research contributions |