JSON output#
Every command speaks JSON, with stable exit codes an agent can branch on. Prefer a native tool call? The MCP serverexposes the same surface to Claude Code, Cursor & Codex.
# --json on every command → one JSON object to stdout
myskool posts list --group $GID --sort best-1w --json | jq '.data[].title'
# calendar: November's sessions, with local time and occurrence id
myskool events list --group $GID --from 2026-11-01 --to 2026-12-01 --json \
| jq '.data[] | {id, occurrenceId, title, startLocal}'
# a weekly Q&A, Thursdays 7pm Lima time, 12 sessions
myskool events create --group $GID --title "Weekly Q&A" --start 2026-11-05T19:00 \
--timezone America/Lima --location zoom --location-value https://zoom.us/j/123456789 \
--repeat weekly --days thu --count 12
# move one session to Friday; drop the series from Dec 3 on
myskool events update $EVENT_ID --occurrence 1794528000 --scope occurrence --start 2026-11-13T19:00
myskool events delete $EVENT_ID --occurrence 1796342400 --scope following --yes
# stable exit codes: 0 ok · 2 usage · 3 auth · 4 scope · 5 not found · 6 rate-limited · 7 upstream · 8 billing
Exit codes#
| Code | Meaning |
|---|---|
0 | ok |
1 | unexpected error |
2 | usage or invalid argument (also HTTP 400) |
3 | no key, invalid key or expired Skool session (401) |
4 | the key lacks the scope, or the account is not a community admin (403) |
5 | not found (404) |
6 | rate limited or monthly quota used up (429) |
7 | upstream failure: Skool, timeout or network |
8 | no active subscription (402) |