Create a schedule
Body: { setup_id, frequency (daily|weekly|every_two_weeks|monthly), timezone (IANA), local_time (HH:MM), start_date (YYYY-MM-DD) }. Creating a schedule authorizes recurring paid work, so the wallet must be activated with auto-reload enabled and authorized (402 otherwise), and the setup must be an accessible, non-archived setup (404 otherwise). The stored grid is the local settings; responses always carry the next occurrence in UTC (DST-anchored: a missing local time runs at the next valid local time, a doubled local time runs once, and a monthly schedule set for a missing day runs on that month’s final day). One ACTIVE schedule per setup: a second active schedule answers 409. An invalid grid answers 400.
/schedulesAuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
Idempotency-KeystringrequiredA new value, such as a UUID, for each new request. Send the same value to retry a request safely; see https://docs.zaraftis.com/conventions#safe-retries-with-idempotency-key.
application/jsonsetup_idstring<uuid>requiredfrequencystringrequireddailyweeklyevery_two_weeksmonthlytimezonestringrequiredlocal_timestringrequiredstart_datestringrequiredThe created schedule with its UTC next occurrence
ScheduleEnvelopebad_request or validation_failed
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredwallet_not_activated, insufficient_credits, or payment_action_required
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequirednot_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredconflict, duplicate_url, or idempotency_conflict
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired