Arnold club API
JSON API · version 1 · https://getarnold.app/api/v1
The club API connects your club's own systems to Arnold, for example the member and board areas of your website. It lets you:
- list your members and link them to your own member records;
- read sessions with limited places: who registered, who came, who cancelled and when, and how waitlist places were taken;
- push booking suspensions that your club decided (cards, sanctions). Arnold enforces them in the app.
A machine-readable description is available as an OpenAPI 3.1 file. Import it into Postman, Insomnia, Bruno or a code generator.
Quick start
- A club admin opens Club → Settings → API in Arnold and clicks Create a key. To push suspensions, tick Can manage suspensions.
- Copy the key (
arn_…). It is shown only once. Store it as a secret on your server. - Call the API:
curl -H "Authorization: Bearer $ARNOLD_API_KEY" \
"https://getarnold.app/api/v1/training_sessions?from=2026-11-16&to=2026-11-22"
Authentication
Send the key on every request in the Authorization header:
Authorization: Bearer arn_xxxxxxxxxxxxxxxx
- A key only reaches its own club's data.
- A missing, invalid or revoked key gets
401. An admin can revoke a key at any time from the same page. - Keys read by default. Without Can manage suspensions, writes get
403. - Never ship a key to a browser or a mobile app: call the API from your server.
Rate limit: 120 requests per minute per client. Beyond that, 429.
Conventions
- Requests and responses are JSON. Send
Content-Type: application/jsonwith a body. - Times are ISO 8601 with offset (
2026-11-17T07:00:00+01:00). Dates areYYYY-MM-DDin the club time zone (Europe/Paris). - Ids are stable UUIDs, except suspension ids, which are your own.
Activities
GET /api/v1/club_activities
The club's activities (swimming, cycling…), sorted by name. Use their id as club_activity_id to filter sessions and to create suspensions. Any key can read them.
curl -H "Authorization: Bearer $ARNOLD_API_KEY" \
"https://getarnold.app/api/v1/club_activities"
{
"club_activities": [
{ "id": "a2b3…", "name": "Swimming" },
{ "id": "b3c4…", "name": "Cycling" }
]
}
Members
GET /api/v1/members
The club's members, sorted by last name then first name. Any key can read them.
| Parameter | Required | Description |
|---|---|---|
email | no | Only the member with this email (case and surrounding spaces ignored) |
curl -H "Authorization: Bearer $ARNOLD_API_KEY" \
"https://getarnold.app/api/v1/members?email=roman@example.com"
{
"members": [
{ "id": "1a2b…", "first_name": "Roman", "last_name": "D.", "email": "roman@example.com" }
]
}
id is the same value as member.id in /training_sessions and the member_id that suspensions take.
Linking your members to Arnold: match them once by email, then store Arnold's id in your own member record and use it from then on. Emails can change on either side; the id does not.
GET /api/v1/members/{id}
One member by their Arnold id, for example to check that a stored id is still valid before pushing a suspension. Returns 404 for an unknown id, a member of another club, or someone who is no longer a member. Any key can read it.
curl -H "Authorization: Bearer $ARNOLD_API_KEY" \
"https://getarnold.app/api/v1/members/1a2b…"
{
"member": { "id": "1a2b…", "first_name": "Roman", "last_name": "D.", "email": "roman@example.com" }
}
Sessions
GET /api/v1/training_sessions
Sessions with limited places starting between two dates, with their registrations.
| Parameter | Required | Description |
|---|---|---|
from | yes | First day, YYYY-MM-DD |
to | yes | Last day, inclusive. The range covers at most 31 days |
club_activity_id | no | Only this activity, an id from /club_activities |
{
"training_sessions": [
{
"id": "6f1c…",
"title": null,
"activity": { "id": "a2b3…", "name": "Swimming" },
"starts_at": "2026-11-17T07:00:00+01:00",
"ends_at": "2026-11-17T08:00:00+01:00",
"status": "scheduled",
"capacity": 16,
"lignes": [{ "id": "c4d5…", "name": "Lane 1", "capacity": 8 }],
"late_cancellation_window_hours": 12,
"registrations": [
{
"id": "e6f7…",
"member": { "id": "1a2b…", "first_name": "Roman", "last_name": "D.", "email": "roman@example.com" },
"status": "registered",
"ligne": { "id": "c4d5…", "name": "Lane 1" },
"attendance": { "status": "absent", "source": "coach", "marked_at": "2026-11-17T07:05:12+01:00" },
"waitlisted_at": null,
"waitlist_place": {
"offered_at": "2026-11-16T18:30:00+01:00",
"taken_at": "2026-11-16T18:41:07+01:00",
"taken_by": "member"
},
"cancellation": null
},
{
"id": "0a9b…",
"member": { "id": "3c4d…", "first_name": "Marie", "last_name": "L.", "email": "marie@example.com" },
"status": "cancelled",
"ligne": null,
"attendance": null,
"waitlisted_at": null,
"waitlist_place": null,
"cancellation": {
"cancelled_at": "2026-11-17T01:12:44+01:00",
"late": true,
"ligne": { "id": "c4d5…", "name": "Lane 1" },
"waitlist_size": 3,
"place_taken": true
}
}
]
}
]
}
Session fields
status:scheduledorcancelled(cancelled by the club: no incident counts).capacity: total places.lignes: the lanes or groups, each with its own capacity (empty when the session has none).late_cancellation_window_hours: the club's rule, set in Club → Settings → Club profile. A cancellation less than this many hours beforestarts_atis late.
Registration fields
status:registered,confirmed: holds a place;pending_confirmation: a place proposed by the weekly allocation, not answered yet;waitlisted: on the waitlist (waitlisted_atsays since when);cancelled: the member cancelled their place (seecancellation).
attendance:nulluntil the roll call. Otherwisestatusispresentorabsent, andsourceisqr(the member scanned the QR code),coachoradmin.waitlist_place: set when the member got their place from the waitlist.offered_at: when Arnold offered the freed place (nullfor a last-minute place taken without an offer);taken_at: when the place was taken;taken_by:member(accepted in the app) orclub(assigned by staff). Arnold never assigns a waitlist place on its own.
cancellation(only forcancelled):cancelled_at: exact time of the member's cancellation;late: perlate_cancellation_window_hours;ligne: the lane the freed place was in;waitlist_size: members waiting for that place when it was freed.0means nobody was harmed;place_taken: whether the freed place was taken again. Read it after the session for the final answer.
waitlist_sizeandplace_takenarenullfor cancellations made before the API existed.
Typical use: no-shows and late cancellations
- No-show:
statusisregisteredorconfirmedandattendance.statusisabsent, on ascheduledsession. - Late cancellation:
cancellation.lateistrue, on ascheduledsession. - Nobody harmed:
cancellation.waitlist_sizeis0, orcancellation.place_takenistrue. - Place taken from the waitlist shortly before the session: compare
waitlist_place.taken_atwithstarts_at.
Suspensions
Your club decides cards, suspensions and appeals in its own system. Arnold applies no card rule: it stores the period you send and enforces it.
From starts_on to ends_on (inclusive), for sessions of club_activity_id, the member cannot book a session, join a waitlist, or take a place offered from the waitlist or a last-minute place.
- Places the member already holds are kept. Cancel them yourself if your rules say so.
- Staff can still place the member from Arnold.
- A suspended member on a waitlist keeps their rank but gets no offer.
The member sees a banner on the home screen and a notice on the session screen, with your reason and a link to your url. They get a push notification when the suspension is created, put back in force, changed (period or activity) or lifted. Arnold sends no email.
A suspension is addressed by your own id: letters, digits and _ . : -, up to 100 characters.
PUT /api/v1/suspensions/{id}
Creates the suspension, or replaces it with this body. Sending the same body again changes nothing, so retries are safe. Use it to shorten or extend a suspension. A PUT on a lifted suspension puts it back in force. Requires a key that can manage suspensions.
curl -X PUT -H "Authorization: Bearer $ARNOLD_API_KEY" \
-H "Content-Type: application/json" \
"https://getarnold.app/api/v1/suspensions/card-2026-118" \
-d '{
"member_id": "1a2b…",
"club_activity_id": "a2b3…",
"starts_on": "2026-11-18",
"ends_on": "2026-12-01",
"reason": "2 cards in 4 weeks",
"url": "https://club.example/members/cards/118"
}'
| Field | Required | Description |
|---|---|---|
member_id | yes | An id from /members (also member.id in /training_sessions) |
club_activity_id | yes | An id from /club_activities |
starts_on | yes | First day, YYYY-MM-DD |
ends_on | yes | Last day, inclusive, on or after starts_on |
reason | yes | Shown to the member, up to 200 characters |
url | no | https page the member can open from the app |
201 when created, 200 when replaced:
{
"suspension": {
"id": "card-2026-118",
"member": { "id": "1a2b…", "first_name": "Roman", "last_name": "D.", "email": "roman@example.com" },
"club_activity": { "id": "a2b3…", "name": "Swimming" },
"starts_on": "2026-11-18",
"ends_on": "2026-12-01",
"reason": "2 cards in 4 weeks",
"url": "https://club.example/members/cards/118",
"state": "upcoming",
"lifted_at": null,
"created_at": "2026-11-17T21:04:10+01:00",
"updated_at": "2026-11-17T21:04:10+01:00"
}
}
state is upcoming, current, ended or lifted. An invalid body gets 422 with the failing fields in error.details.
DELETE /api/v1/suspensions/{id}
Lifts the suspension, for example when an appeal is accepted. It stays in the history with lifted_at. Returns the suspension, or 404 for an unknown id. Requires a key that can manage suspensions.
GET /api/v1/suspensions
All the club's suspensions, newest first, lifted ones included, so both systems can check they agree. Optional member_id filter. Any key can read them.
Errors
{ "error": { "code": "range_too_long", "message": "The range cannot exceed 31 days." } }
| HTTP | code | When |
|---|---|---|
| 400 | invalid_date, invalid_range, range_too_long | Bad from / to |
| 401 | invalid_token | Missing, invalid or revoked key |
| 403 | forbidden | The key cannot manage suspensions |
| 404 | not_found | Unknown member or suspension id |
| 422 | invalid | Invalid suspension, see details |
| 429 | rate_limited | More than 120 requests per minute |
Support
A question, or a need the API does not cover yet? Write to contact@getarnold.app.