Esc

Responses & errors

Every route answers with the same envelope, and every failure carries a stable error code.

Response envelope#

Success puts the resource under data (and pagination under meta); failure puts a stable code under error.

envelope
// success
{ "data": <resource | resource[]>,
  "meta": { "pagination": { "cursor": "abc", "hasMore": true, "truncated": false } } }
 
// error
{ "error": { "code": "session_unavailable", "message": "…", "status": 401 } }

Error codes#

CodeHTTPWhen
unauthorized401API key missing, invalid or expired.
session_unavailable401The Skool connection expired or is missing. Reconnect the account.
forbidden403The API key lacks the scope this route requires, or X-Skool-Connection names a connection the key is not bound to.
admin_required403The 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_required409Deleting 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_failed400The ?code= Skool emailed was wrong or old. Use the latest email, or call without code to get a new one.
invalid_request400Bad 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_found404Group 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_required402No 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_limited42960 req/min per key exceeded. See Retry-After.
quota_exceeded429Monthly quota (30,000 requests) used up. Resets on the 1st of the month (UTC). No Retry-After.
connection_limit409Every Skool account seat on the plan is in use (Hobby 1, Pro 3). Disconnect one or upgrade (management API).
community_limit409The plan's communities visible to agents are in use (Hobby 1). Hide one or upgrade to Pro for unlimited (management API).
skool_bad_request400/403/404Skool returned a hard 4xx (passthrough).
skool_upstream_error502Skool failed (5xx/429) after retries.
skool_shape_changed502Skool's response shape changed (unrecognizable payload).

MySkool is not affiliated with Skool. Skool™ is a trademark of Skool, Inc.