AYMS API
Organizations can connect their websites and systems to AYMS: read the multilingual exercise and education libraries and courses, and publish job openings.
No endpoint returns patient data, and no key can be given access to it.
Get a key
- An owner or admin of a verified organization opens Manage, then the organization, then API keys.
- They create a key with only the scopes it needs, on a two-step verification session.
- The key is shown once. Send it in the Authorization header of every request.
Authorization: Bearer ayms_xxxxxxxx_<secret>Scopes
| Scope | Allows |
|---|---|
exercises:read | Read the exercise library (titles, instructions and precautions in every language). |
education:read | Read published patient education articles. |
opportunities:read | Read your organization's opportunities. |
opportunities:write | Post opportunities for your organization (checked for patient data like posts in the app). |
courses:read | Read published courses. |
Endpoints
GET /api/v1/exercisesExercise library. Scope: exercises:read. Multilingual titles and instructions.GET /api/v1/educationPatient education articles. Scope: education:read.GET /api/v1/coursesPublished courses. Scope: courses:read.GET /api/v1/opportunitiesYour organization's opportunities. Scope: opportunities:read.POST /api/v1/opportunitiesPost an opportunity for your organization. Scope: opportunities:write. The organization must be verified; text is checked for patient data.
Machine-readable description (OpenAPI 3.1): /api/v1/openapi.json
Examples
curl -H "Authorization: Bearer ayms_xxxxxxxx_<secret>" \
"https://ayms.webmister.ai/api/v1/exercises?region=knee"curl -X POST -H "Authorization: Bearer ayms_xxxxxxxx_<secret>" \
-H "Content-Type: application/json" \
-d '{"kind":"job","title":"Physiotherapist","description":"Full-time role in our outpatient clinic."}' \
"https://ayms.webmister.ai/api/v1/opportunities"Limits and errors
- 120 requests per minute per key; above that the API answers 429.
- Errors are JSON with a stable code: unauthorized (401), forbidden or organization_not_verified (403), invalid_body or phi_detected (422), rate_limited (429), unavailable (503).
- Revoking a key in Manage stops it immediately.
{ "error": { "code": "rate_limited", "message": "More than 120 requests per minute." } }