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

MethodPathScopeDescription
get/api/v1/projectsreadList published projects
get/api/v1/projects/{slug}readGet one project incl. specs and links
get/api/v1/datasetsreadList open datasets
get/api/v1/docs/searchreadSearch the documentation
get/api/v1/firmware/latestreadLatest firmware per channel
get/api/v1/providersreadAnalytics providers with capabilities and prices
get/api/v1/mereadAuthenticated account
get/api/v1/creditsreadPaid and research credit balances
get/api/v1/devicesreadList your devices
post/api/v1/deviceswriteRegister a device
get/api/v1/activitiesreadList your activities
post/api/v1/activitieswriteUpload an activity summary
post/api/v1/analysesanalyzeRun an analytics provider on an activity (costs credits)
get/api/v1/analyses/{id}readFetch an analysis result
post/api/v1/auth/loginpublicSign in with email and password (apps). Returns an API key; if 2FA is on, repeat the call with "code"
post/api/v1/auth/logoutreadRevoke the API key used for this request
get/api/v1/contributionsreadYour research contributions
Try it in the explorer