Response envelope#
Success puts the resource under data (and pagination under meta); failure puts a stable code under error.
// success
{ "data": <resource | resource[]>,
"meta": { "pagination": { "cursor": "abc", "hasMore": true, "truncated": false } } }
// error
{ "error": { "code": "session_unavailable", "message": "…", "status": 401 } }
Error codes#
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | API key missing, invalid or expired. |
| session_unavailable | 401 | The Skool connection expired or is missing. Reconnect the account. |
| forbidden | 403 | The API key lacks the scope this route requires, or X-Skool-Connection names a connection the key is not bound to. |
| admin_required | 403 | The connected Skool account is not an admin of that community: Skool hides cancelling, churned and banned members from it, and only admins can create, edit or delete calendar events and classroom courses. Another key won't help. |
| verification_required | 409 | Deleting a course: Skool just emailed a 4-digit code to the connected account's owner. Call the DELETE again with ?code=. A recent verification skips it. |
| verification_failed | 400 | The ?code= Skool emailed was wrong or old. Use the latest email, or call without code to get a new one. |
| invalid_request | 400 | Bad input: missing ?group=, invalid JSON body, empty title/content, unknown label or course (the message lists the group's options), an event without timezone. |
| not_found | 404 | Group not cached for this connection, the post/comment/event does not exist (or was already deleted), or the user is not a member of the group. |
| payment_required | 402 | No active subscription, or the free trial ended (or never started: it starts when you connect your first Skool account). The message says which. Pick or reactivate a plan at myskool.xyz/billing. |
| rate_limited | 429 | 60 req/min per key exceeded. See Retry-After. |
| quota_exceeded | 429 | Monthly quota (30,000 requests) used up. Resets on the 1st of the month (UTC). No Retry-After. |
| connection_limit | 409 | Every Skool account seat on the plan is in use (Hobby 1, Pro 3). Disconnect one or upgrade (management API). |
| community_limit | 409 | The plan's communities visible to agents are in use (Hobby 1). Hide one or upgrade to Pro for unlimited (management API). |
| skool_bad_request | 400/403/404 | Skool returned a hard 4xx (passthrough). |
| skool_upstream_error | 502 | Skool failed (5xx/429) after retries. |
| skool_shape_changed | 502 | Skool's response shape changed (unrecognizable payload). |