Skip to main content

API Reference

A JSON REST API for your schedules, events, sales, refunds and fan content. API access is a Pro feature: on the hosted service the schedules you read and write have to be on a Pro or Enterprise plan, apart from the few endpoints listed under Authentication. A selfhosted install counts as Enterprise, so nothing here is held back by plan.

Feature overview: API for AI agents

Authentication

Every endpoint except Register and Login authenticates with an API key sent in the X-API-Key header. There are two ways to get one:

  • Open Settings in the admin panel and choose the Developers tab. Under API Settings, switch on Enable API Access and press Save. The key is shown once, beside a copy button, so copy it before you leave the page. See Account Settings.
  • Call the Register or Login endpoints, which return a key in the response body (useful for AI agents and scripted setup).

A key belongs to a user account, not to one schedule. It can reach every schedule where you are the owner or an admin, and nothing else. Followers and members cannot be used to authorise API calls.

Plan requirement

On the hosted service, a schedule must be on a Pro or Enterprise plan for the API to see it. The schedule, event, sale and feedback lists leave out anything that belongs only to free schedules, and single-record reads and writes on a free schedule return 403 API usage is limited to Pro accounts. A few endpoints carry no plan check at all: Create Schedule, so a new account can bootstrap; Delete Schedule, so an owner can always retire one; Create Sale, so a schedule can record a sale it took elsewhere; both List Categories routes; and List Fan Content. A new schedule starts on the Free plan with no trial. Selfhosted installs resolve to Enterprise, so every endpoint is available there.

Key lifetime and rotation

  • A key expires one year after it is issued. After that every request returns 401 API key expired. API Settings shows the expiry date under the key, and says so once the key has expired.
  • Keys are stored hashed, so a lost key cannot be recovered. To rotate one, switch Enable API Access off and press Save, then switch it on and save again. The first save deletes the old key at once, after asking you to confirm, and the second issues a new one.
  • Ten consecutive requests with the same invalid key block that key for 15 minutes with 423 API key temporarily blocked.
  • A request with no X-API-Key header returns 401 API key is required, and an unknown key 401 Invalid API key.
Keep the key server-side

An API key carries full owner and admin rights over your schedules, including sales data and buyer email addresses. Never ship it in client-side code, a mobile app bundle or a public repository.

cURL Example
curl -X GET "https://eventschedule.co.za/api/schedules" \
         -H "X-API-Key: your_api_key_here" \
         -H "Accept: application/json"

Rate Limits

Authenticated requests are counted per IP address, in separate read and write buckets. Every key calling from the same address shares the same two buckets, and a request that fails authentication is not counted:

Operation TypeLimitHTTP Methods
Read operations300 requests/minuteGET
Write operations30 requests/minutePOST, PUT, DELETE

Each bucket counts in a fixed one-minute window that opens with its first counted request. When that minute is up the count starts again from zero, so a client that makes no more than 300 reads and 30 writes in any one window is never refused, however long it runs.

Create Event carries a second throttle of 30 requests per minute on top of the write bucket. It is counted per account and per schedule rather than per address, so a bulk import should pace itself well below that.

Unauthenticated endpoints

The auth endpoints are limited separately, because they run before any key exists:

EndpointLimitCounted per
/api/register/send-code5 codes per hourEmail address
/api/register3 registrations per hourIP address
/api/login5 failed attempts per 15 minutesIP address

The read and write buckets and the three endpoints above all answer 429 with an error message when the limit is hit. A 429 from a read or write bucket also carries a Retry-After header with the number of seconds until that bucket's window resets. The three auth endpoints send no rate limit headers, so back off on the status code there.

The Create Event throttle answers differently, because it is the framework's own: its 429 carries Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining headers, and its body holds a message in place of error. See Response Format for why that request needs an Accept header.

Rate Limit Response (429)
{
        "error": "Rate limit exceeded"
    }

Response Format

Every endpoint answers in JSON. Successful responses wrap the result in a data property: an object for single-record endpoints, an array for list endpoints. List endpoints add a meta object with the pagination counters. Event and sale writes and Upload Flyer put a confirmation in meta.message, while the delete endpoints return theirs as data.message.

Failures return an error string. A validation failure adds an errors object keyed by field name, each holding an array of messages.

Ask for JSON

Send Accept: application/json with every request. A failure raised outside an endpoint is rendered by the framework, which picks its format from that header. Without it, the Create Event throttle, an unknown URL, an unknown venue_id and a server error come back as HTML pages, and the daily cap on new events comes back as a redirect. With it they are JSON, though the framework's own replies name the reason message, not error.

Record IDs

Schedules, events, sub-schedules, tickets and sales are all identified by an opaque encoded string such as "w4K8xU", never by the raw database number. Pass the same string back exactly as you received it. The examples on this page use readable stand-ins such as "evt123". Category IDs are the one exception: they are plain integers.

Dates and times

ValueFormat
An event's starts_at, sent or returnedUTC, Y-m-d H:i:s, with no offset suffix. The schedule's timezone only decides how that instant is shown on the guest page.
starts_after, starts_beforeUTC calendar dates, Y-m-d
event_date on sales, feedback and fan contentY-m-d, the date of the occurrence. For a sale it is the calendar date in the schedule's own timezone.
created_at, updated_at, api_key_expires_at and a returned ticket's sales_start_at and sales_end_atISO 8601 with an offset, such as 2026-07-11T09:12:00+00:00
A ticket's sales_start_at and sales_end_at, when you send themUTC, Y-m-d H:i:s. An offset in the value is not applied.
An agenda part's start_time and end_timePlain text of up to 10 characters such as "20:00", stored and returned as sent
Success Response
{
        "data": [...],
        "meta": {
            "current_page": 1,
            "total": 50
        }
    }
Error Response
{
        "error": "Validation failed",
        "errors": {
            "name": ["The name field is required."]
        }
    }

Pagination

Every list endpoint takes the same two query parameters:

ParameterDefaultDescription
page1Page number to retrieve
per_page100Items per page, maximum 500. Events, sales, feedback and fan content reject a larger value with a 422; schedules clamp it to 500.

The meta object

Every list response returns the same seven counters. Keep requesting page + 1 until it equals last_page.

FieldDescription
current_pageThe page you just received
last_pageThe final page number for this query
per_pagePage size actually applied
totalTotal matching records across all pages
from, to1-based index of the first and last record on this page, or null when the page is empty
pathThe request URL without its query string
cURL
curl -X GET "https://eventschedule.co.za/api/events?page=2&per_page=50" \
         -H "X-API-Key: your_api_key_here"

Register

Registration takes two steps: send a verification code to the email address, then register with the code.

Step 1: Send Verification Code

POST /api/register/send-code

No authentication required. Takes a single email parameter and emails a 6-digit code that is valid for 10 minutes, answering 200 with a confirmation in data.message. Rate limited to 5 codes per email per hour. An address that already belongs to a full account is rejected with a 422.

A new code replaces the one before it, and a code can be tried once: registering with a wrong verification_code uses it up, so request another.

Step 2: Register

POST /api/register

No authentication required. Rate limited to 3 registrations per IP per hour. On success it returns 201 with an API key that is valid for one year, and the account's email is treated as verified.

ParameterRequiredDescription
nameYesYour display name (max 255 characters)
emailYesEmail address (max 255 characters). Disposable-mail domains and @example.com addresses are refused, here and in Step 1.
passwordYesPassword (min 8 characters)
verification_codeYes6-digit code from Step 1
timezoneNoIANA timezone name (default: America/New_York, which is also what an unrecognised name falls back to)
language_codeNoOne of the supported interface languages (default: en)

Both steps watch a hidden website honeypot field. Leave it out entirely: sending any value in it returns 422 Invalid request.

Step 1: Send Code
curl -X POST "https://eventschedule.co.za/api/register/send-code" \
         -H "Content-Type: application/json" \
         -d '{"email": "[email protected]"}'
Step 2: Register
curl -X POST "https://eventschedule.co.za/api/register" \
         -H "Content-Type: application/json" \
         -H "Accept: application/json" \
         -d '{
             "name": "Your Name",
             "email": "[email protected]",
             "password": "a_long_password",
             "verification_code": "123456"
         }'
Response (201)
{
        "data": {
            "api_key": "your_new_api_key",
            "api_key_expires_at": "2027-02-28T00:00:00+00:00",
            "user": {
                "id": "abc123",
                "name": "Your Name",
                "email": "[email protected]"
            }
        }
    }

Login

POST /api/login

No authentication required. Exchanges an email and password for an API key valid for one year.

Login issues a key only when you do not already have one

This is not a session endpoint and it will not hand you a fresh key on demand. If the account already has an unexpired key, login returns 409 and issues nothing, so store the key from the first call. To replace a key you have lost, rotate it under Settings, Developers, as described in Authentication. An expired key does not block login: the call issues a new one.

Two other refusals to handle: an account with two-factor authentication enabled returns 403 and must generate its key from Settings instead, and a wrong email or password returns 401 and counts toward the 5-per-15-minute limit. A successful login clears that count.

ParameterRequiredDescription
emailYesEmail address
passwordYesPassword
cURL
curl -X POST "https://eventschedule.co.za/api/login" \
         -H "Content-Type: application/json" \
         -d '{"email": "[email protected]", "password": "your_password"}'
Response (200)
{
        "data": {
            "api_key": "your_new_api_key",
            "api_key_expires_at": "2027-02-28T00:00:00+00:00",
            "user": {
                "id": "abc123",
                "name": "Your Name",
                "email": "[email protected]"
            }
        }
    }

List Schedules

GET /api/schedules

Returns a paginated list of the schedules where you are the owner or an admin. Deleted schedules are excluded, and on the hosted service so are schedules that are not on a Pro or Enterprise plan. Each row carries the schedule's sub-schedules in a groups array.

ParameterDescription
subdomainFilter by exact subdomain
nameFilter by schedule name (partial match)
typeFilter by type: venue, talent, or curator
cURL
curl -X GET "https://eventschedule.co.za/api/schedules?type=venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "abc123",
                "subdomain": "my-venue",
                "name": "My Venue",
                "type": "venue",
                "email": "[email protected]",
                "timezone": "America/New_York",
                ...
            }
        ],
        "meta": { "current_page": 1, "total": 5 }
    }

Show Schedule

GET /api/schedules/{subdomain}

Returns a single schedule by subdomain, including its sub-schedules in a groups array. You must be the owner or an admin of it, otherwise the response is 404. A schedule that is not on a Pro or Enterprise plan returns 403.

The schedule object

List, Show, Create and Update Schedule return this shape. A field with nothing stored is null.

FieldDescription
idEncoded schedule ID
subdomainThe name every {subdomain} path takes
urlAddress of the schedule's public page. An empty string until the schedule is verified.
typevenue, talent or curator
name, email, phone, websiteName and contact details
show_phone1 when the phone number is shown on the public page, 0 when it is not. Read only, as is phone.
description, short_descriptionMarkdown description and one-line summary
timezone, language_codeIANA timezone name and language code
profile_image_urlURL of the profile image, or null. Read only.
address1, city, state, postal_code, country_codeAddress
created_at, updated_atISO 8601 timestamps
groupsThe schedule's sub-schedules, each with id, name, slug and color
cURL
curl -X GET "https://eventschedule.co.za/api/schedules/my-venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "id": "abc123",
            "subdomain": "my-venue",
            "name": "My Venue",
            "type": "venue",
            "email": "[email protected]",
            "timezone": "America/New_York",
            "created_at": "2026-03-01T12:00:00+00:00",
            "groups": [
                {
                    "id": "def456",
                    "name": "Main Stage",
                    "slug": "main-stage",
                    "color": "#FF5733"
                }
            ],
            ...
        }
    }

Create Schedule

POST /api/schedules

Create a new schedule. There is no plan gate here, so a new account can bootstrap itself, but the schedule starts on the Free plan with no trial and most other endpoints need it on Pro or Enterprise, so on the hosted service subscribe before you start pushing events. You are attached to the new schedule as its owner, and it becomes your default schedule if you had none.

ParameterRequiredDescription
nameYesSchedule name (max 255 characters). The subdomain is generated from it and cannot be set through the API.
typeYesSchedule type: venue, talent, or curator
emailNoContact email (max 255 characters). On the hosted service a schedule made without one takes your account's own address, which is what verifies it (see below). On a selfhosted install it stays empty.
descriptionNoMarkdown description (max 10,000 characters)
short_descriptionNoOne-line summary (max 200 characters)
timezoneNoIANA timezone name (defaults to your account timezone). A name that is not a timezone returns a 422.
language_codeNoSupported language code such as en, es, fr (defaults to your account language)
websiteNoWebsite URL (max 255 characters)
address1, city, state, postal_code, country_codeNoAddress fields, used for venue schedules (max 255 characters each, 20 for postal_code). Send country_code as a two-letter ISO code.

What comes back

The reply is 201, and data holds the schedule object, generated subdomain included. This is the one place the object is returned for a schedule on the Free plan, so you can read what you made. Show Schedule answers 403 for it and List Schedules leaves it out until it is on Pro or Enterprise.

Hosted limits and verification

On the hosted service one account may own up to 50 schedules. Beyond that the endpoint returns a 422.

On the hosted service a schedule is not public until its contact email or phone number is verified: until then its pages answer visitors with a 404, so search engines never see them. Leave email out, or send your account's own address, and the schedule shares your account's verification; any other address is sent a verification link. A selfhosted install treats every new schedule as verified.

cURL
curl -X POST "https://eventschedule.co.za/api/schedules" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{
             "name": "My Venue",
             "type": "venue",
             "email": "[email protected]",
             "city": "New York"
         }'

Update Schedule

PUT /api/schedules/{subdomain}

Update a schedule. Include only the fields you want to change; anything you omit is left alone. Takes the same fields as Create Schedule apart from type: neither the schedule type nor the subdomain can be changed through the API, and any other field in the request is ignored. Requires owner or admin access and a Pro or Enterprise plan. Returns the schedule object.

On the hosted service, changing email clears the schedule's email verification and sends a verification link to the new address. Unless its phone number is verified, the schedule's pages stop being public until that link is followed.

Branding, images, layout and integrations are not exposed here. Edit those in the admin panel, on the Style, Settings and Integrations tabs of the schedule form.

cURL
curl -X PUT "https://eventschedule.co.za/api/schedules/my-venue" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"name": "Updated Name", "description": "New description"}'

Delete Schedule

DELETE /api/schedules/{subdomain}

Retire a schedule. Requires owner access but no plan: an admin gets a 404. There is no undo through the API.

The schedule is flagged as deleted and stops appearing anywhere, and the call also:

  • Deletes its profile, header and background images from storage
  • Deletes its analytics history (page views, referrers and appearances)
  • Tears down its Google Calendar and Outlook sync subscriptions
  • Cancels any running boost campaign and refunds it where money is owed
  • Emails the schedule's members to tell them it was deleted
  • Frees its subdomain for anyone to register, keeping the old name on record so a platform admin can restore the schedule

Events are not swept up automatically. The exception is a talent schedule: an event whose only member was that schedule is deleted with it, so nothing is left orphaned.

A schedule with a paid plan has its subscription cancelled first, at once and not at the end of the billing period. If that cancellation fails the reply is 502 and nothing is deleted, so the call is safe to repeat.

cURL
curl -X DELETE "https://eventschedule.co.za/api/schedules/my-venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "message": "Schedule deleted successfully"
        }
    }

List Sub-Schedules

GET /api/schedules/{subdomain}/groups

List every sub-schedule on a schedule, returning id, name, slug and color for each. Requires owner or admin access and a Pro or Enterprise plan. The response is not paginated.

Sub-schedules group and colour-code events so visitors can filter your calendar. They do not control who can see an event: use the visibility flags on Create Event for that.

cURL
curl -X GET "https://eventschedule.co.za/api/schedules/my-venue/groups" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "def456",
                "name": "Main Stage",
                "slug": "main-stage",
                "color": "#FF5733"
            }
        ]
    }

Create Sub-Schedule

POST /api/schedules/{subdomain}/groups

Create a sub-schedule on a schedule. Requires owner or admin access and a Pro or Enterprise plan. The slug is generated from the name and is what you pass as the schedule parameter when creating an event.

ParameterRequiredDescription
nameYesSub-schedule name (max 255 characters)
colorNoDisplay colour as a hex value, for example #FF5733 (max 50 characters)

If the schedule has a translation language set that differs from its own language, the name is machine-translated into it and the slug is built from the translated name, so read the slug back from the response rather than deriving it yourself.

cURL
curl -X POST "https://eventschedule.co.za/api/schedules/my-venue/groups" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"name": "Main Stage", "color": "#FF5733"}'
Response (201)
{
        "data": {
            "id": "def456",
            "name": "Main Stage",
            "slug": "main-stage",
            "color": "#FF5733"
        }
    }

Update Sub-Schedule

PUT /api/schedules/{subdomain}/groups/{group_id}

Update a sub-schedule's name or colour; send only the one you want to change. Requires owner or admin access and a Pro or Enterprise plan. Changing the name regenerates the slug, which changes the value events must pass in schedule, so re-read it from the response.

cURL
curl -X PUT "https://eventschedule.co.za/api/schedules/my-venue/groups/def456" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"name": "VIP Stage", "color": "#3B82F6"}'

Delete Sub-Schedule

DELETE /api/schedules/{subdomain}/groups/{group_id}

Delete a sub-schedule. Events assigned to it are kept and simply lose the assignment. Requires owner or admin access and a Pro or Enterprise plan. Pass the encoded sub-schedule id from List Sub-Schedules.

cURL
curl -X DELETE "https://eventschedule.co.za/api/schedules/my-venue/groups/def456" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "message": "Sub-schedule deleted successfully"
        }
    }

List Events

GET /api/events

Returns a paginated list of events on the schedules where you are the owner or an admin, newest start date first. On the hosted service an event is only listed if at least one of its schedules is on a Pro or Enterprise plan. Appointment bookings are never returned here; they are not calendar events.

Drafts, internal and unlisted events are all included, so check is_draft, is_internal and is_private before republishing a row on a public site. Each row is the event object.

ParameterDescription
subdomainFilter events by schedule subdomain
starts_afterEvents starting on or after this UTC date (Y-m-d)
starts_beforeEvents starting on or before this UTC date (Y-m-d)
venue_idFilter by venue (encoded venue schedule ID)
category_idFilter by category ID (integer, see List Categories)
nameFilter by event name (partial match)
schedule_typeFilter by type: single or recurring
tickets_enabledFilter by whether tickets are enabled (boolean)
rsvp_enabledFilter by whether RSVP/registration is enabled (boolean)
group_idFilter by sub-schedule (encoded sub-schedule ID)
All times are UTC

The API reads and writes starts_at in UTC, in Y-m-d H:i:s format with no offset suffix. The schedule's own timezone only controls how that instant is displayed on the guest page, so convert on your side before filtering or creating. Dates and times lists every format.

cURL
curl -X GET "https://eventschedule.co.za/api/events?subdomain=my-venue&starts_after=2025-01-01" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "evt123",
                "name": "Jazz Night",
                "starts_at": "2025-03-15 20:00:00",
                "duration": 3,
                "tickets_enabled": true,
                "rsvp_enabled": false,
                ...
            }
        ],
        "meta": { "current_page": 1, "total": 25 }
    }

Show Event

GET /api/events/{id}

Returns a single event by its encoded ID, including its ticket types, add-ons, members, agenda parts, venue, recurring configuration and visibility flags. Requires owner or admin access on one of the event's schedules, and a Pro or Enterprise plan. An appointment booking, which List Events leaves out, can be read here by its ID.

The event object

List, Show, Create and Update Event and Upload Flyer return this shape, and so do the event.* webhooks. A field with nothing stored is null, except the few marked as present only in some cases.

FieldDescription
id, urlEncoded event ID and the address of the event's public page
name, short_description, descriptionName, short summary and Markdown description
starts_at, durationStart in UTC (Y-m-d H:i:s) and length in hours
category_id, category_name, category_colorThe category's integer ID, with its name and colour as the schedule has them
is_draft, is_private, is_internalVisibility flags, see Create Event
is_password_protectedWhether the event page asks for a password. The password itself is never returned.
event_url, registration_urlThe online or external event link, and the external registration link
venue_id, venue_name, venue_address1, venue_subdomainThe event's venue schedule
flyer_image_urlURL of the flyer image
schedule_typesingle or recurring
recurring_frequency, recurring_interval, days_of_week, recurring_end_type, recurring_end_valuePresent only on a recurring event. days_of_week reads "1111111" for every frequency other than weekly and every_n_weeks.
rsvp_enabled, rsvp_limit, tickets_enabledRegistration and ticketing switches
seating_plan_idEncoded ID of the event's seating plan, null on a general-admission event
ticketsPresent only while tickets are enabled. Each row has id, type, price, quantity, description, sales_start_at, sales_end_at, volume_discount and is_pass. price is a decimal string such as "25.000", here and on add-ons. A ticket that sells a seating band adds seating_band and is_allocated, and a pass adds its pass_* settings.
addonsPresent only while tickets are enabled. Each row has id, type, price, quantity, description, image_url and url.
membersThe event's performers, as an object rather than an array: each key is a talent schedule's encoded ID and each value holds name, email and youtube_url. With no performers it reads [].
event_partsAgenda parts, each with id, name, description, start_time and end_time
ticket_currency_code, payment_method, terms_urlCurrency, payment method and the event's own terms link for tickets. terms_url is read only.
schedulesEvery schedule the event is on, each with id, subdomain, name and type, plus a group object (id, name, slug) where the event is filed under a sub-schedule there
created_at, updated_atISO 8601 timestamps
cURL
curl -X GET "https://eventschedule.co.za/api/events/evt123" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "id": "evt123",
            "name": "Jazz Night",
            "starts_at": "2025-03-15 20:00:00",
            "duration": 3,
            "is_draft": false,
            "venue_id": "abc123",
            "schedule_type": "single",
            "tickets_enabled": true,
            "tickets": [
                {
                    "id": "tkt1",
                    "type": "General",
                    "price": "25.000",
                    "quantity": 100,
                    "description": null,
                    "sales_start_at": null,
                    "sales_end_at": null,
                    "volume_discount": null,
                    "is_pass": false
                }
            ],
            "members": {
                "tal789": {
                    "name": "The Quartet",
                    "email": "[email protected]",
                    "youtube_url": null
                }
            },
            "event_parts": [
                {
                    "id": "prt1",
                    "name": "Opening Act",
                    "description": null,
                    "start_time": "20:00",
                    "end_time": "20:45"
                }
            ],
            "ticket_currency_code": "USD",
            "schedules": [
                {
                    "id": "abc123",
                    "subdomain": "my-venue",
                    "name": "My Venue",
                    "type": "venue"
                }
            ],
            ...
        }
    }

Create Event

POST /api/events/{subdomain}

Create an event on the schedule identified by {subdomain}. Requires owner or admin access on that schedule and a Pro or Enterprise plan. This endpoint carries its own throttle of 30 requests per minute in addition to the write bucket. On success it returns 201 with the event object. The schedule you post to becomes the event's owner, the one that sells its tickets and sees its sales, and no later request can change that.

Only the parameters listed here are read. Anything else at the top level of the body is dropped before the event is saved, so settings the API has no field for (sponsors, custom fields, promo codes, ticket options, seating) are made in the admin panel.

Core fields

ParameterRequiredDescription
nameYesEvent name (max 255 characters)
starts_atYesStart date and time in UTC, formatted Y-m-d H:i:s
durationNoLength in hours, 0 to 8760. Decimals are allowed, so 1.5 is 90 minutes. There is no separate end-time field.
descriptionNoFull description, Markdown supported (max 10,000 characters)
short_descriptionNoShort description used in listings and previews (max 500 characters)
event_urlNoA single URL for an online event or an external event page (max 500 characters)
registration_urlNoExternal registration URL, used instead of on-platform tickets (max 2048 characters)
category_idNoCategory ID, which must be in this schedule's effective category list (see List Categories)
categoryNoCategory name, matched case- and punctuation-insensitively against the same list. Ignored when category_id is present; an unmatched name returns 422 Category not found.
scheduleNoSub-schedule slug to file the event under. An unknown slug returns 422 Sub-schedule not found.

Visibility

Send no visibility flag at all and the event inherits the schedule's default for new events. Unlisted and Internal need an Enterprise plan Enterprise - Requires the Enterprise plan ; on any lower plan they are stripped and the event is saved as a Draft so it never publishes by accident.

The draft default is applied even to a partial request that omits is_draft, so on a drafts-by-default schedule you must send is_draft: false to publish straight away.

ParameterRequiredDescription
is_draftNoDraft: visible to your team in the admin panel, hidden from the public page (boolean)
is_privateNoUnlisted: kept off the calendar but reachable by direct link (boolean). Enterprise only.
is_internalNoInternal: never public, and mutually exclusive with Unlisted (boolean). Enterprise only.
event_passwordNoPassword prompt on the event page. Only applies to an Unlisted event, and is discarded otherwise.

Recurrence

The recurrence fields only take effect in a request that also carries schedule_type: "recurring". Without it a new event is a single one, whatever else is sent.

ParameterRequiredDescription
schedule_typeNosingle (default) or recurring
recurring_frequencyWith recurringdaily, weekly, every_n_weeks, monthly_date, monthly_weekday, or yearly
days_of_weekWith weeklySeven characters of 0 or 1, Sunday to Saturday. "0101010" is Monday, Wednesday and Friday. Required for weekly and every_n_weeks.
recurring_intervalNoWeek gap for every_n_weeks (integer, minimum 2)
recurring_end_typeNonever, on_date, or after_events
recurring_end_valueNoEnd date (Y-m-d) for on_date, or the number of occurrences for after_events

Tickets, RSVP and add-ons

ParameterRequiredDescription
rsvp_enabledNoEnable free registration, which collects a name and email without a payment step (boolean)
rsvp_limitNoCap on registrations per date (integer, minimum 1)
tickets_enabledNoEnable ticketing (boolean)
ticket_currency_codeNoThree-letter ISO currency code, for example USD. Once the event has taken money, Update Event refuses to change it with a 422, because past sales and any later refund are denominated in it.
payment_methodNocash, stripe, paypal, invoiceninja, payment_url or payfast, with manual accepted as an alias for cash. See Payment method below.
payment_instructionsNoInstructions shown for manual payment (max 5000 characters)
ticketsNoArray of ticket types. Each takes type (required, max 255 characters), quantity (integer, 0 means unlimited), price (0 or more), description (max 1000 characters), sales_start_at and sales_end_at (UTC, Y-m-d H:i:s).
addonsNoArray of paid extras sold alongside a ticket, such as parking or merchandise. Each takes type (required, max 255 characters), quantity, price, description (max 1000 characters) and url (max 2000 characters). Only saved when tickets_enabled is true.

Every row you send in tickets, addons or event_parts is a new row on a new event. An id copied from a read of another event is ignored. On Update Event the same id is what addresses an existing row.

Payment method

The API stores any method from the list without checking that it is connected on the account or can settle the event's currency, so check both yourself: payfast only settles events priced in ZAR, and paypal only the currencies listed under Connecting PayPal, which is PayPal's own list minus the Hungarian forint, Japanese yen and New Taiwan dollar.

On create, omitting the field uses the installation's DEFAULT_PAYMENT_METHOD if one is set and is usable for the event's currency, falling back to cash; send null to mean cash explicitly. On update, omitting it leaves the stored value alone.

Agenda, venue and performers

ParameterRequiredDescription
event_partsNoAgenda segments within the event. Each takes name (required, max 255 characters), description (max 1000 characters), start_time and end_time (plain text, up to 10 characters).
venue_idNoEncoded ID of an existing venue schedule. An ID that matches no schedule returns a 404.
venue_nameNoVenue name (max 255 characters). Send it together with venue_address1.
venue_address1NoVenue street address (max 255 characters). The pair is looked up, as an exact match on both, against venue schedules you own or follow; no match returns 422 Venue not found rather than creating one.
membersNoPerformers, given as objects with name and/or email. Each is matched to an existing talent schedule you own or follow; no match returns 422 Talent member not found.
Send the venue name and address as a pair

The lookup only runs when both are present. With just one of them the request skips it and falls through to the event form's own rule, which attaches the best-matching venue anywhere on the install or creates a new, unclaimed venue schedule from what you sent.

What the schedule's type decides

The schedule you post to is always on the event, in the place its type gives it:

  • Venue. It is the event's venue. venue_id and the name and address pair are overridden.
  • Talent. It is the event's one performer. members is overridden, so other performers cannot be added through a talent schedule.
  • Curator. The event is listed on it, and takes its venue and performers from the request.

Daily cap

The hosted service caps how many events one schedule, and one account across its schedules, may create in a day, as an anti-abuse measure. The shipped defaults are 500 a day per schedule on Pro, 1,000 on Enterprise and 100 during a trial, and three times that per account. A bulk import that trips the cap gets a 422 whose body carries "code": "event_create_limit" beside error, so it can stop at the first refusal and resume the next day. Selfhosted installs have no cap.

cURL
curl -X POST "https://eventschedule.co.za/api/events/my-venue" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -H "Accept: application/json" \
         -d '{
             "name": "Jazz Night",
             "starts_at": "2026-10-31 20:00:00",
             "duration": 3,
             "description": "A wonderful evening of jazz music.",
             "tickets_enabled": true,
             "tickets": [
                 {"type": "General Admission", "price": 25, "quantity": 100},
                 {"type": "VIP", "price": 50, "quantity": 20}
             ],
             "event_parts": [
                 {"name": "Opening Act", "start_time": "20:00", "end_time": "20:45"},
                 {"name": "Main Performance", "start_time": "21:00", "end_time": "23:00"}
             ]
         }'
Response (201)
{
        "data": {
            "id": "evt123",
            "name": "Jazz Night",
            ...
        },
        "meta": {
            "message": "Event created successfully"
        }
    }

Update Event

PUT /api/events/{id}

Update an event by its encoded ID. Takes the same parameters as Create Event, and supports partial updates: send only the fields you want to change. Requires owner or admin access on one of the event's schedules and a Pro or Enterprise plan. Returns 200 with the event object.

The update runs through one of the event's schedules that you own or administer. If your account created the event but is neither owner nor admin of any of its schedules, the reply is 422 No schedule found for this event that you have access to.

What an update leaves alone

A field the request does not carry keeps its stored value. That covers the start time, the visibility flags, the recurrence, the payment method, the lists of ticket types, add-ons and agenda parts, the venue, the performers and the other schedules the event is listed on. The schedule that owns the event never changes.

What the API has no field for stays as the admin panel left it: promo codes, a ticket type's Max Per Order, custom fields and pass settings, the dates added to or skipped from a series, sponsors and the event's custom fields. An update that only renames an event changes its name.

A venue, performer or listing the request does not name also keeps its answer. One that had not yet accepted the event, or had turned it down, is still in that state afterwards: an update does not accept an event on a schedule's behalf. venue_id, venue_name and venue_address1 sent as null name no venue, so the event stays where it is.

  • To change the recurrence, send schedule_type with the full set of recurrence fields, since one left out goes back to its default. Without schedule_type the stored frequency, interval and end rule are kept and those fields in the request are ignored; only days_of_week is still applied. schedule_type: "single" turns a recurring event into a single one.
  • schedule moves the event to another sub-schedule. There is no way to take an event out of a sub-schedule through the API.
  • A visibility flag takes effect as on create: Unlisted and Internal need Enterprise, and is_internal: true also makes the event a Draft.

What an update replaces or removes

RequestWhat it does
Carries tickets, addons or event_partsReplaces that list, row by row. A row with the id a read returned updates that row and keeps whatever the row does not send, so a ticket type keeps its ID and what was sold against it. A row without an id is added. A stored row the list leaves out is retired (a ticket type or an add-on) or deleted (an agenda part). A ticket type's type may be null here, which is what a read returns for an event with one unnamed ticket type. An id that is not one of this event's rows is refused with a 422 naming the row, and nothing is saved.
Carries tickets_enabled: falseRetires every ticket type and add-on on the event, without asking, even when people have bought them.
Carries schedule_type: "single"Turns a recurring event into a single one, and with that clears the dates added to and skipped from the series. Refused with a 422 while the event sells a pass counted per date (per_occurrence), which only a recurring event can have: give the pass another usage type first.
Carries venue_id, or venue_name with venue_address1Moves the event to that venue, off the one it was at. There is no way to leave an event with no venue through the API.
Carries membersReplaces the performers. One you could pick in the event form (a schedule you own, administer or view, or follow while it accepts requests) and leave out of the list is taken off the event. When the update runs through a talent schedule the list is set aside, as on create, and the performers stay as they are.

Some schedules always stay on the event: the one the update runs through, the one that created it, and any that sit outside your account. The schedules an event is listed on cannot be named in a request, so the API neither adds nor removes one.

cURL
curl -X PUT "https://eventschedule.co.za/api/events/evt123" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"name": "Updated Jazz Night", "duration": 4}'

Delete Event

DELETE /api/events/{id}

Permanently delete an event. Requires owner or admin access on one of its schedules and a Pro or Enterprise plan. There is no undo, so hide the event with is_draft instead if you may want it back.

An event that has sales is not deleted. The reply is 422 and nothing changes, whether those sales are paid, refunded or cancelled, because the sale records would go with the event. Cancel it in the admin panel instead, which keeps the records and lets you tell the buyers.

Deleting also removes the synced copy from any connected Google Calendar, Outlook calendar and CalDAV calendar, cancels any running boost campaign, and deletes its gallery photos and sponsor logo files. Unless the event was a draft, an event.deleted webhook is sent with the event's final state.

An appointment booking is the exception. It is cancelled, not deleted: the slot is freed, the booking and its sale are kept, the guest of a booking that was still live is emailed, and no webhook is sent. That reply is a bare {"message": "Appointment cancelled"} with no data wrapper.

cURL
curl -X DELETE "https://eventschedule.co.za/api/events/evt123" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "message": "Event deleted successfully"
        }
    }

Upload Flyer

POST /api/events/flyer/{event_id}

Set the flyer image for an event. Send it as multipart/form-data in a flyer_image field, not as JSON. Requires owner or admin access on one of the event's schedules and a Pro or Enterprise plan.

ConstraintValue
Formatsjpg, jpeg, png, gif, webp
Maximum size10 MB
Existing flyerReplaced, and the old file is deleted from storage

The response is the full event record, so you can read the new flyer_image_url straight back from data. There is no endpoint for removing a flyer.

cURL
curl -X POST "https://eventschedule.co.za/api/events/flyer/evt123" \
         -H "X-API-Key: your_api_key_here" \
         -F "flyer_image=@/path/to/flyer.jpg"
Response (200)
{
        "data": { ... },
        "meta": {
            "message": "Flyer uploaded successfully"
        }
    }

List Categories

GET /api/categories

Returns the built-in event categories with their integer IDs and English names. Pass an id as category_id when creating or updating an event. The list is not paginated.

Categories for one schedule

GET /api/categories/{subdomain}

A schedule can rename, remove or add categories of its own, and category_id is validated against that effective list rather than the global one. Call this variant to get the exact set a given schedule will accept, and use it whenever the schedule has customised its categories. It returns the same id and name pairs, and 404 for a subdomain that does not exist.

cURL
curl -X GET "https://eventschedule.co.za/api/categories" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {"id": 1, "name": "Art & Culture"},
            {"id": 2, "name": "Business Networking"},
            {"id": 3, "name": "Community"},
            {"id": 4, "name": "Concerts"},
            ...
        ]
    }

List Sales

GET /api/sales

Returns a paginated list of sales, newest order first, each as the sale object. Deleted sales are excluded, and on the hosted service so are sales on schedules that are not Pro or Enterprise. RSVP registrations appear here too, as zero-value paid sales.

The list covers events your account created, events one of your schedules created, and events another schedule created that your venue or talent schedule has accepted. A curator schedule that only lists somebody else's event does not open that event's sales, here or on the other sale endpoints.

ParameterDescription
event_idFilter by event (encoded event ID)
subdomainFilter by schedule subdomain
statusFilter by status: unpaid, paid, cancelled, refunded, or expired
emailFilter by buyer email (exact match)
event_dateFilter by event date (Y-m-d)
cURL
curl -X GET "https://eventschedule.co.za/api/sales?status=paid&subdomain=my-venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "sale123",
                "event_name": "Jazz Night",
                "name": "John Doe",
                "email": "[email protected]",
                "status": "paid",
                "payment_amount": 50,
                "tickets": [
                    { "type": "General", "quantity": 2, "price": 25 }
                ],
                ...
            }
        ],
        "meta": { "current_page": 1, "total": 12 }
    }

Show Sale

GET /api/sales/{id}

Returns a single sale by its encoded ID. Requires owner or admin access on the event's schedule and a Pro or Enterprise plan. A sale that exists but is not yours to read returns 403; a deleted or unknown one returns 404.

The sale object

Every sale endpoint except Delete Sale returns this shape, and so do the sale.* webhooks. There is no currency field: read the event's ticket_currency_code.

FieldDescription
id, event_id, event_nameEncoded sale ID, and the event the sale is on
subdomainThe schedule the sale was made through
name, email, phoneThe buyer, or the named guest on a guest's row
event_dateThe date of the event the sale is for (Y-m-d)
statusunpaid, paid, cancelled, refunded or expired. A sale whose payment arrived for a different amount reads amount_mismatch while it is held for review.
payment_methodThe event's payment method when the sale was made, rsvp for a free registration, or import for an imported attendee
payment_amountWhat the buyer agreed to pay, as a number
volume_discount_amount, discount_amount, gift_card_amountWhat a volume discount, a promo code and a gift card took off. null when there was none.
transaction_referenceThe payment provider's reference, or the note recorded when the sale was marked paid by hand
secretThe token that opens the buyer's ticket page and QR code. Present only when the key belongs to the account that created the event or placed the sale.
ticketsA row per ticket type and add-on, each with ticket_id, type, quantity, price, is_addon and is_pass. A pass adds pass_usage_type, pass_visits_used, pass_max_uses and pass_expires_at. On an event with allocated seating a row also carries seats, the labels of the seats it holds.
total_quantityHow many tickets this row holds
group_id, is_primarySet on an order bought for several named guests, see below. An ordinary sale has group_id: null and is_primary: false.
order_id, is_order_primarySet on a purchase that covered several events, see below
created_at, updated_atISO 8601 timestamps

Guests, orders and amounts

An order bought for several named guests is stored as one row per guest, all sharing a group_id. The row with is_primary set to true holds the totals for the whole order; the other rows report zero so you do not double-count when you add them up. Every row in a group belongs to the same event.

A purchase that covered several events shares an order_id instead, one row per event, with is_order_primary on the anchoring row. The two nest: a leg of an order can itself be split across named guests, so a row may carry both.

payment_amount is what the buyer agreed to pay, not what has been collected. The two differ for a sale bought on an installment plan: the sale reads paid with the full total from the first payment onwards, because the ticket is issued then, while the rest arrives over the following months. Reconcile against Stripe rather than against this field if you are counting money in the bank.

cURL
curl -X GET "https://eventschedule.co.za/api/sales/sale123" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "id": "sale123",
            "event_id": "evt123",
            "event_name": "Jazz Night",
            "name": "John Doe",
            "email": "[email protected]",
            "event_date": "2025-03-15",
            "status": "paid",
            "payment_method": "stripe",
            "payment_amount": 50,
            "order_id": null,
            "is_order_primary": false,
            "tickets": [
                {
                    "ticket_id": "tkt1",
                    "quantity": 2,
                    "price": 25,
                    "type": "General",
                    "is_addon": false,
                    "is_pass": false
                }
            ],
            "total_quantity": 2,
            "group_id": null,
            "is_primary": false,
            ...
        }
    }

Create Sale

POST /api/sales

Record a sale against an event, for example when someone paid you at the door or through a channel Event Schedule does not handle. The event must have ticketing enabled and still be selling, and each ticket is checked individually, exactly as guest checkout does: a priced row needs the schedule to be on Pro or Enterprise, while a zero-price row sells on any plan. Until the schedule is on a paid plan, though, the sale does not appear in List Sales, and Show Sale and Update Sale Status return 403 for it, so mark it paid from the Sales page instead.

ParameterRequiredDescription
event_idYesEncoded event ID
nameYesBuyer name (max 255 characters)
emailYesBuyer email (max 255 characters)
ticketsYesObject mapping ticket identifiers to quantities, each 1 or more. A key may be an encoded ticket ID or a ticket type name.
addonsNoObject mapping encoded add-on IDs to quantities
event_dateNoWhich date of the event the sale is for (Y-m-d). Defaults to the event's start date in the schedule's timezone, and is required for a recurring event.

What happens on success

  • The reply is 201 with the sale object, secret included, since your key placed the sale.
  • The sale is created as unpaid. You cannot set the status from the request; use Update Sale Status once you have the money.
  • A sale whose total comes to zero is marked paid immediately.
  • Any volume discount configured on the ticket type is applied to the total.
  • On an event with allocated seating, the best available seats are assigned, since this path has no seat picker.
  • A sale.created webhook fires, plus sale.paid for a zero-total sale.

Inventory is checked under a lock, so you cannot oversell through this endpoint. Common 422 replies are a past event or occurrence, a ticket whose sales window has not opened or has closed, and a quantity larger than the remaining stock, which reports how many are left.

cURL
curl -X POST "https://eventschedule.co.za/api/sales" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{
             "event_id": "evt123",
             "name": "John Doe",
             "email": "[email protected]",
             "tickets": {"General Admission": 2}
         }'

Update Sale Status

PUT /api/sales/{id}

Move a sale to a new status by sending an action. Requires owner or admin access on the event's schedule and a Pro or Enterprise plan. Which actions are available depends on where the sale is now; an action the current status does not allow returns a 422 naming both. refund asks one thing more, because the money leaves the event creator's account: the schedule you act through must have created the event or accepted its place on it, or the reply is 403. A change that goes through returns 200 with the sale object in its new state.

ParameterRequiredDescription
actionYesmark_paid, refund or cancel
amountNoWith refund: the part to send back, 0.01 or more. See Refunds.
idempotency_keyNoWith refund: a key of your own that makes a retry safe
ActionFrom StatusTo StatusWebhook
mark_paidunpaidpaidsale.paid
refundpaidrefundedsale.refunded
refund with amountpaidpaidnone
cancelunpaid, paidcancelledsale.cancelled

Cancelling or fully refunding releases the seats back into stock and notifies anyone on the waitlist for that date; a partial refund does neither. A named guest's row inside a group_id returns 403: act on the group's primary row (is_primary), which carries the change to every guest. On a multi-event order the row with is_order_primary carries it to every leg, while acting on any other leg changes only that leg and its own guests.

Refunds

For a Stripe or PayPal sale, refund sends the money back through the provider and then updates the status. Send an optional amount to return part of it; omit it and the whole remaining balance goes back. A partial refund leaves the sale paid, fires no webhook, and returns 200 with the message Partial refund sent.

Every other method - Invoice Ninja, Payfast, a payment link, cash, or a sale marked paid by hand - only records the refund and backs the amount out of your revenue figures, and it ignores amount: the whole sale is recorded as refunded. Issue the money in your payment provider, then call this to keep the two in step.

It does not work the other way round. A refund issued from the Stripe or PayPal dashboard is not reported back to Event Schedule, so the sale stays paid and its tickets keep scanning. Refund through this endpoint or the Sales page instead.

A refund the gateway refuses returns 422 and leaves the sale paid. A refund whose outcome could not be confirmed returns 409: nothing is retried automatically, because retrying a refund that may already have gone through is how one refund becomes two. Check it against your provider before acting.

Send an idempotency_key of your own, up to 64 letters, digits, _, ., : or -, to make retrying safe. A repeat carrying the same key returns the first attempt's outcome instead of issuing a second refund, and a repeat sent while the first is still running returns 409. Without a key, a retried request is a second refund.

A payment plan is refunded in full only: sending amount for one returns 422. Each collected payment goes back separately, and an attempt that stops partway can be repeated to return the rest.

cURL
curl -X PUT "https://eventschedule.co.za/api/sales/sale123" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"action": "mark_paid"}'
Partial refund
curl -X PUT "https://eventschedule.co.za/api/sales/sale123" \
         -H "X-API-Key: your_api_key_here" \
         -H "Content-Type: application/json" \
         -d '{"action": "refund", "amount": 10, "idempotency_key": "sale123-refund-1"}'

Delete Sale

DELETE /api/sales/{id}

Remove a sale from your records. It is cancelled first, so its seats return to stock, and then flagged as deleted: it stops appearing in List Sales and in the admin panel, and Show Sale returns 404 for it. Requires owner or admin access on the event's schedule and a Pro or Enterprise plan.

Deleting the row with is_order_primary deletes the whole multi-event order, and deleting a group's primary row deletes its guests with it. A named guest's row returns 403.

Deleting moves no money and sends no webhook, not even sale.cancelled. To give a buyer their money back, refund the sale first.

cURL
curl -X DELETE "https://eventschedule.co.za/api/sales/sale123" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": {
            "message": "Sale deleted successfully"
        }
    }

List Feedback

GET /api/feedback

Returns a paginated list of post-event feedback, meaning the star ratings and comments attendees leave after an event, for schedules you own or administer. Newest first. Read only: there is no endpoint for creating or deleting feedback.

Only feedback attached to a paid, undeleted sale is returned, which is the same rule the guest page applies, so a cancelled or refunded order's rating never shows up here. On the hosted service the schedule must be on a Pro or Enterprise plan, since collecting feedback is itself a Pro feature.

ParameterDescription
event_idFilter by event (encoded event ID)
subdomainFilter by schedule subdomain
event_dateFilter by the date of the event attended (Y-m-d)
min_ratingOnly return ratings of at least this value (1-5)
fromOnly feedback submitted on or after this date (Y-m-d)
toOnly feedback submitted on or before this date (Y-m-d)
Rows carry attendee contact details

Each record includes attendee_name and attendee_email. Strip both before you render feedback on a public page.

cURL
curl -X GET "https://eventschedule.co.za/api/feedback?min_rating=4&subdomain=my-venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "fb123",
                "event_id": "ev456",
                "event_name": "Jazz Night",
                "event_date": "2026-07-10",
                "rating": 5,
                "comment": "Best night out all year",
                "attendee_name": "Alex Attendee",
                "attendee_email": "[email protected]",
                "created_at": "2026-07-11T09:12:00+00:00"
            }
        ],
        "meta": { "current_page": 1, "total": 8 }
    }

List Fan Content

GET /api/fan-content

Returns fan comments, photos and videos submitted on events for schedules you own or administer, all three kinds merged into one feed, newest first. Approved items only by default, which is what you want when displaying them on an external site. Submitter email addresses are never included. Read only: approve and reject submissions in the admin panel.

Each kind of submission has its own id sequence, so an id is only unique within a type. Key on the two together when storing rows from this feed.

Every row carries the fields in the example. What follows them depends on the type: a comment has comment, a photo has photo_url, and a video has youtube_url and embed_url. event_part_id is the agenda part the submission was made on, or null.

ParameterDescription
typeLimit to one kind: comment, photo, or video
event_idFilter by event (encoded event ID)
subdomainFilter by schedule subdomain
event_dateFilter by event date (Y-m-d)
is_approvedDefaults to true. Pass 0 to read the pending moderation queue instead
cURL
curl -X GET "https://eventschedule.co.za/api/fan-content?type=photo&subdomain=my-venue" \
         -H "X-API-Key: your_api_key_here"
Response (200)
{
        "data": [
            {
                "id": "ph123",
                "type": "photo",
                "event_id": "ev456",
                "event_name": "Jazz Night",
                "event_part_id": null,
                "event_date": "2026-07-10",
                "submitted_by": "Dana Guest",
                "is_guest_submission": true,
                "is_approved": true,
                "photo_url": "https://.../crowd.jpg",
                "created_at": "2026-07-11T09:12:00+00:00"
            }
        ],
        "meta": { "current_page": 1, "total": 24 }
    }

Error Handling

The API uses standard HTTP status codes, and every endpoint returns the reason as a JSON error string. The few failures raised outside an endpoint carry message in its place, and need an Accept header to be JSON at all: see Ask for JSON.

CodeWhen you see it
200Success
201Created, returned by Register, Create Schedule, Create Sub-Schedule, Create Event and Create Sale
400Verification codes requested on a selfhosted install, where they do not apply
401API key missing, invalid, or past its one-year expiry. Also a wrong email or password on Login.
403You are not an owner or admin of the record, the schedule is not on a Pro or Enterprise plan, the sale row is a named guest's rather than its group's primary, the account uses two-factor authentication, or selfhosted registration is closed
404The record does not exist or has been deleted. A schedule your key cannot reach also answers 404, where an event or a sale answers 403.
409Login when the account already has an unexpired API key, or a refund whose outcome could not be confirmed or is still in progress
422Validation error, with field-level detail in errors. Also business refusals such as an unmatched venue, a sold-out ticket, a past event, deleting an event that has sales, or the daily cap on new events.
423The API key is blocked for 15 minutes after 10 consecutive failed attempts
429Rate limit exceeded, see Rate Limits
500Server error. Retry with backoff; the failure is logged on our side.
502Delete Schedule could not cancel the schedule's paid plan, so nothing was deleted

A 422 covers two different things. A schema problem carries an errors object and is worth surfacing field by field; a business refusal carries only error and reads as a sentence. Check for errors before assuming its shape.

Validation Error (422)
{
        "error": "Validation failed",
        "errors": {
            "name": ["The name field is required."],
            "starts_at": ["The starts at must match the format Y-m-d H:i:s."]
        }
    }

See Also

Last updated 7 October 2026 Improve this page on GitHub