{"openapi":"3.1.0","info":{"title":"pretix (BYOK) API","version":"0.1.0","description":"pretix (BYOK) lets an AI assistant read your own pretix data through the pretix API with a key you supply (pretix team API token). Read-only: 10 tools (list_organizers, list_events, get_event, list_subevents, list_items, list_quotas, get_quota_availability, list_orders, list_checkin_lists, get_checkin_list_status). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-pretix.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-pretix/docs"},"termsOfService":"https://connectorbay.com/byok-pretix/terms"},"servers":[{"url":"https://byok-pretix.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-pretix/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_organizers":{"post":{"operationId":"list_organizers","summary":"List the pretix organizer accounts the token can access, with slug, name and public shop URL. Use for \"Which pretix orga","description":"List the pretix organizer accounts the token can access, with slug, name and public shop URL. Use for \"Which pretix organizers can my token see\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"title":"list_organizersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_events":{"post":{"operationId":"list_events","summary":"List an organizer's events with dates, location, whether the shop is live and its public URL; filter by live state or by","description":"List an organizer's events with dates, location, whether the shop is live and its public URL; filter by live state or by future or past. Use for \"Which upcoming live events does bigevents have in pretix\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"live":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to return only events whose shop is live, false for only those that are not.","title":"Live"},"is_future":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for events that are running or in the future, false for the others.","title":"Is Future"},"date_from_after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only events starting at or after this ISO 8601 time, for example 2026-11-01T00:00:00Z.","title":"Date From After"},"ordering":{"anyOf":[{"enum":["slug","-slug","date_from","-date_from"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort by slug (default) or date_from; prefix with - for descending, for example -date_from.","title":"Ordering"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer"],"title":"list_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_event":{"post":{"operationId":"get_event","summary":"Get one event: name, slug, currency, dates, location, presale window, live and test mode flags and public URL. Use for \"","description":"Get one event: name, slug, currency, dates, location, presale window, live and test mode flags and public URL. Use for \"Show the details of the event sampleconf from bigevents\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"}},"required":["organizer","event"],"title":"get_eventArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_subevents":{"post":{"operationId":"list_subevents","summary":"List the dates of an event series (sub-events) with start, end, location and whether each date is active. Use for \"Which","description":"List the dates of an event series (sub-events) with start, end, location and whether each date is active. Use for \"Which dates does the event series sampleconf have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only active dates, false for only inactive ones.","title":"Active"},"is_future":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for dates that are running or in the future, false for past dates.","title":"Is Future"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer","event"],"title":"list_subeventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_items":{"post":{"operationId":"list_items","summary":"List an event's products (ticket types and add-ons) with price, category, admission flag and whether each is active. Use","description":"List an event's products (ticket types and add-ons) with price, category, admission flag and whether each is active. Use for \"What ticket types and prices does sampleconf offer\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only active products, false for only inactive ones.","title":"Active"},"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Substring of the product name or internal name.","title":"Search"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer","event"],"title":"list_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_quotas":{"post":{"operationId":"list_quotas","summary":"List an event's quotas (sales capacity pools) with size and linked product ids; set with_availability to also get how ma","description":"List an event's quotas (sales capacity pools) with size and linked product ids; set with_availability to also get how many remain. Use for \"How many tickets are left in each quota of sampleconf\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"with_availability":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to include available and available_number for each quota (slower).","title":"With Availability"},"subevent":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only quotas of the event-series date with this id.","title":"Subevent"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer","event"],"title":"list_quotasArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_quota_availability":{"post":{"operationId":"get_quota_availability","summary":"Get live availability counts of one quota: total size, available number, paid and pending orders, cart reservations, vou","description":"Get live availability counts of one quota: total size, available number, paid and pending orders, cart reservations, vouchers and waiting list. Use for \"How many tickets are still available in quota 1 of sampleconf\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"quota_id":{"description":"Numeric id of the quota (from list_quotas).","minimum":1,"title":"Quota Id","type":"integer"}},"required":["organizer","event","quota_id"],"title":"get_quota_availabilityArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_orders":{"post":{"operationId":"list_orders","summary":"List an event's orders with code, status (n pending, p paid, e expired, c canceled), creation time and total; buyer cont","description":"List an event's orders with code, status (n pending, p paid, e expired, c canceled), creation time and total; buyer contact details are not returned. Use for \"How many paid orders does sampleconf have and what is the total\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"status":{"anyOf":[{"enum":["n","p","e","c"],"type":"string"},{"type":"null"}],"default":null,"description":"Order status: n (pending), p (paid), e (expired) or c (canceled).","title":"Status"},"created_since":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only orders created at or after this ISO 8601 time, for example 2026-10-01T00:00:00Z.","title":"Created Since"},"testmode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for only test-mode orders, false for only live ones.","title":"Testmode"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer","event"],"title":"list_ordersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_checkin_lists":{"post":{"operationId":"list_checkin_lists","summary":"List an event's check-in lists with how many tickets were checked in and how many are on each list. Use for \"How many at","description":"List an event's check-in lists with how many tickets were checked in and how many are on each list. Use for \"How many attendees have checked in at sampleconf\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"subevent":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only lists of the event-series date with this id.","title":"Subevent"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1. Each page holds up to 50 results; the answer includes the total count.","title":"Page"}},"required":["organizer","event"],"title":"list_checkin_listsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_checkin_list_status":{"post":{"operationId":"get_checkin_list_status","summary":"Get check-in numbers of one list: total check-ins, tickets on the list, people currently inside, and a per-product break","description":"Get check-in numbers of one list: total check-ins, tickets on the list, people currently inside, and a per-product breakdown. Use for \"Give me the check-in status of list 1 for sampleconf\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organizer":{"description":"Organizer slug (the short name in the pretix URL), for example 'bigevents'.","maxLength":200,"title":"Organizer","type":"string"},"event":{"description":"Event slug within the organizer, for example 'sampleconf'.","maxLength":200,"title":"Event","type":"string"},"list_id":{"description":"Numeric id of the check-in list (from list_checkin_lists).","minimum":1,"title":"List Id","type":"integer"}},"required":["organizer","event","list_id"],"title":"get_checkin_list_statusArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}