Enterprise: the API, webhooks and MCP server are live for schools on the Enterprise plan. The owner allows every key and AI connection. Ask about Enterprise
On this page
API Reference / Locations
Locations
Read the owner’s saved lesson locations. A connection needs classes:read and sees only its permitted locations.
Retry-After and X-RateLimit-RemainingPer key or agent connection, on the Enterprise plan.
/v1/locationsList locations
Returns location ids, names and addresses. Location ids are used in the connection’s access settings and supported lesson filters.
Access: classes:read · MCP: list_locations
Headers
- AuthorizationstringRequired
Bearer <token>: an API key or an agent OAuth access token. App subscription routes require a dedicated app key. - Swum-Versiondate
Pins the response shape. Default:
2026-10-25.
Query parameters
- updated_sincedate-time
Effective update time after an ISO 8601 timestamp with an explicit time zone. Follow every page, including the legacy-record suffix.
- limitinteger
1–200; default 50. Minimum 1. Maximum 200. Default: 50.
- cursorstring
Opaque next_cursor from the previous page. Keep the same filters.
Pagination
Keep calling with cursor=next_cursor until next_cursor is null. A filtered page may be short or empty while a next cursor remains.
curl "${SWUM_API_BASE:-https://api.swum.ai}/v1/locations" \
-H "Authorization: Bearer ${SWUM_API_KEY}"{
"data": [
{
"id": "pool_example",
"name": "Riverside Pool",
"address": "10 Example Lane",
"updated_at": null
}
],
"next_cursor": null
}