# CocoScout API > Shows, tickets, courses, and followers for Pro organizations, at https://api.cocoscout.com/v1. Send `Authorization: Bearer cs_live_…` with every request. Money is whole cents; times are ISO 8601 in the organization's time zone. Lists are { data, has_more, next }; pass next as `after`. Errors are { error: { type, message } }. Send an Idempotency-Key with writes. Buyers always pay on CocoScout's checkout page: to sell, POST /checkouts and send the buyer to checkout_url. MCP server: https://mcp.cocoscout.com. OpenAPI: https://cocoscout.com/developers/openapi.json ## Organization The organization the key belongs to, and the key itself. - GET /organization: Get the organization. Who the key belongs to. A good first call. ## Locations Venues and their rooms. Shows name a location and, often, a room. - GET /locations: List locations. Every location, with its rooms. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /locations/{id}: Get a location. One location. ## Productions A production is the show itself, like Late Night Sketch. Its dates are shows. - GET /productions: List productions. Productions that aren't archived. archived=true lists archived ones, archived=all lists both. - query archived (string): true or all. - query embed_view (string): Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /productions/{id}: Get a production. One production. - query embed_view (string): Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office. - POST /productions: Create a production. A new production. Set up its ticketing in CocoScout. - body name (string, required): Its name. - body description (string): What it is. - PATCH /productions/{id}: Change a production. Its name or description. - body name (string): Its name. - body description (string): What it is. ## Shows A show is one date of a production: Late Night Sketch on Friday, December 5 at 8 PM. It carries what's on sale for that date, its ticket types with their all-in prices, and how many seats are left. Seats left are counted live, including seats held in open checkouts. Show a buyer all_in_cents: it's what they pay, fees and tax included. You can add dates here; moving or canceling a date happens in CocoScout, where its cast, staff, ticket buyers, and students are notified. - GET /shows: List shows. Your performances, soonest first: shows and anything with tickets. With no filters, every show from today on. - query from, to (date): Shows on or after from, and on or before to. from=all includes past shows. - query production_id (integer): One production's dates. - query status (string): For example on_sale, for a "Buy tickets" list. - query event_type (string): all includes rehearsals and meetings. - query include_canceled (boolean): Include canceled dates. - query updated_since (time): Only shows changed since then, for keeping a copy in sync. - query embed_view (string): Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /shows/{id}: Get a show. One date. - query embed_view (string): Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office. - GET /shows/{id}/sales: A show's sales. Sold, comps, sold elsewhere, checked in, and money, by ticket type. - POST /shows: Add a show. A new date for a production. If the production's ticketing includes it, it goes on sale with the production's ticket types and schedule. - body production_id (integer, required): Whose date it is. - body starts_at (time, required): When it starts. - body duration_minutes (integer): How long it runs. Left out, as long as the production's latest date. - body location_id (integer): Where. Left out, the same place and room as the production's latest date. - body room_id (integer): Which room at that location. - body name (string): A name for this date, if it has its own. - body event_type (string): show unless it's something else. - PUT /shows/{id}/ticketing: Change a show's sales. Pause, resume, or close sales (door only), or switch the date to its own prices. - body status (string): on_sale, paused, or closed. - body own_prices (boolean): true gives the date its own ticket types; false goes back to the production's. - PUT /shows/{id}/sold_elsewhere: Record sales elsewhere. Tickets another site sold for this date, by ticket type. The whole truth for that site: a type left out sold nothing there. Feeds that site's row in Show Financials. - body source (string): One of your ticket sources by name, like Hot Tix (or source_id). - body ticket_types (array, required): Each with ticket_type_id, tickets, and amount_cents. ## Ticket types Ticket types live on a production's ticketing, so every date that follows it gets them, or on one date with its own prices. Never one ticket at a time. - POST /ticket_types: Add a ticket type. To a production (production_id) or to a date with its own prices (show_id). - body production_id or show_id (integer, required): Where it goes. - body name (string, required): Its name. - body price_cents (integer, required): Its price. - body quantity (integer): Seats. - body description (string): What it includes. - body hidden (boolean): Shown only with unlock_code. - body unlock_code (string): The code that shows it. - body min_per_order, max_per_order (integer): Limits per order. - body sells_at (string): everywhere, online, or door. - PATCH /ticket_types/{id}: Change a ticket type. Any of the fields above. A new price applies to sales from now on. - DELETE /ticket_types/{id}: Remove a ticket type. Gone, or archived when tickets were sold on it (they keep their type). ## Checkouts How a ticket the buyer pays for is sold: hold the seats for ten minutes and send the buyer to checkout_url, CocoScout's own checkout page, where they pay. Card numbers never pass through the API. Open the link in a new tab, or over your own page with CocoScout.checkout(checkout_token) from embed.js. - POST /checkouts: Start a checkout. Holds the seats and prices everything: discount, tax, and fees. - body show_id (integer, required): Which date. - body tickets (array, required): Each with ticket_type_id and quantity. - body discount_code (string): A code to apply. - body buyer (object): name and email, to fill in the checkout page. - GET /checkouts/{id}: Get a checkout. Whether it's still holding, paid, or expired. Or listen for order.paid. ## Orders One purchase for one show, and every cent of it. Comps, door sales, and sales paid elsewhere are orders too. - GET /orders: List orders. Orders, oldest first. Holds that were never paid aren't listed. - query show_id (integer): One show's. - query status (string): paid, refunded… - query channel (string): online, comp, elsewhere… - query email (string): The buyer's email. - query q (string): Part of the buyer's name. - query from, to (time): When they were made. - query updated_since (time): Changed since then. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /orders/{id}: Get an order. By id, or by its code (K7Q2). - POST /orders: Record a sale paid elsewhere. Tickets another register or box office already took the money for. Real tickets with QR codes that take seats and get emailed; no money moves through CocoScout, so there's no CocoScout fee and no card fees. - body paid (string, required): Must be "elsewhere". - body show_id (integer, required): Which date. - body tickets (array, required): Each with ticket_type_id and quantity. - body buyer (object): name and email. - body email_tickets (boolean): Email the tickets to the buyer (default true). - body note (string): For your records. - GET /orders/{id}/refund_quote: Quote a refund. What a refund would give back, and whether it's within your refund policy. - query ticket_codes (array): Only these tickets. - query keep_fees (boolean): Give back price and tax only. - POST /orders/{id}/refunds: Refund an order. Back to the buyer's card, under the same rules as CocoScout's refund button. A test key gets the quote and nothing more. - body ticket_codes (array): Only these tickets. - body keep_fees (boolean): Give back price and tax only. - body reason (string): For your records. - body outside_policy (boolean): Refund even outside the policy. - POST /orders/{id}/move: Move tickets. To another date of the same production that's on sale. The buyer keeps their payment and gets new tickets. - body show_id (integer, required): The date they move to. - body ticket_codes (array): Only these tickets. - body email_buyer (boolean): Email the new tickets (default true). ## Tickets One admission each, by the code in its QR. Listed for one show, it's the guest list. - GET /tickets: List tickets. Tickets held (valid or checked in) unless status says otherwise. - query show_id (integer): One show's guest list. - query checked_in (boolean): Only those in, or not in. - query status (string): Another status. - query updated_since (time): Changed since then. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /tickets/{code}: Get a ticket. One ticket by its code. - POST /tickets/{code}/check_in: Check a ticket in. The same answers the door phone gets: admitted, already, wrong_show, or not_valid. - DELETE /tickets/{code}/check_in: Take a check-in back. For a ticket checked in by mistake. ## Comps Free tickets with the usual email and QR codes, counted against the date's comps. - POST /comps: Issue comps. One order per guest. All of them are issued, or none. - body show_id (integer, required): Which date. - body guests (array, required): Each with name, email, ticket_type_id, and quantity. - body email_tickets (boolean): Email them (default true). - body note (string): For your records. ## Passes Punch cards, seasons, and multi-show passes. - GET /passes: List passes. Every pass. - query status (string): on_sale… - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /passes/{id}: Get a pass. One pass. ## Products Things sold with tickets: a program, a bottle for the table. - GET /products: List products. Every product. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. ## Discount codes Codes buyers enter at checkout, for one show, a production, or everything. - GET /discount_codes: List codes. Every code. - query active (boolean): Only on, or off. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /discount_codes/{id}: Get a code. One code. - POST /discount_codes: Make a code. A new code. - body code (string, required): What buyers type. - body kind (string, required): fixed or percent. - body amount_cents or percent (number, required): How much off. - body show_id or production_id (integer): What it's for; leave out for everything. - body ticket_type_ids (array): Only these types. - body max_uses, min_tickets (integer): Limits. - body starts_at, ends_at (time): When it works. - PATCH /discount_codes/{id}: Change a code. Any of the fields above, plus active. - DELETE /discount_codes/{id}: Remove a code. Deleted when nobody used it; turned off when someone did, so their orders keep it. ## Courses A run of classes sold as one registration. Students keep a CocoScout account, so they register on CocoScout's page. - GET /courses: List courses. Courses that aren't drafts or archived. - query status (string): open… - query include_drafts (boolean): Drafts too. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /courses/{id}: Get a course. One course. - GET /courses/{id}/registrations: List students. Registrations: confirmed, cancelled, and refunded. - query status (string): One status. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - POST /courses/{id}/checkouts: Get a registration link. Where a student registers and pays, and whether registration is open. ## Mailing lists Your main list and its groups. - GET /mailing_lists: List mailing lists. Every list. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /mailing_lists/{id}: Get a list. One list. ## Followers People who asked to hear from you. Someone who unsubscribed is never added back, and a bounced address never gets email. - GET /followers: List followers. Every follower. - query mailing_list_id (integer): One list's. - query status (string): subscribed… - query email (string): One address. - query updated_since (time): Changed since then. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - GET /followers/{id}: Get a follower. One follower. - POST /followers: Add a follower. To the main list, or the lists named. Each list says added, already, unsubscribed, suppressed, or invalid. - body email (string, required): Their address. - body name (string): Their name. - body mailing_list_ids (array): Which lists. - POST /followers/{id}/unsubscribe: Unsubscribe a follower. Honor an unsubscribe from another tool. ## Webhook endpoints Where your servers hear about things as they happen. Also set up in Organization settings → Integrations → Webhooks. - GET /webhook_endpoints: List webhook endpoints. Every endpoint. - query limit (integer): Up to 200 a page, 50 by default. - query after (string): The last page's `next`, for the page after it. - POST /webhook_endpoints: Add a webhook endpoint. A new address. - body url (string, required): Where to send events. - body events (array): Which events; leave out for all. - body description (string): What it's for. - DELETE /webhook_endpoints/{id}: Remove a webhook endpoint. Stops sending there. - POST /webhook_endpoints/{id}/test: Send a test event. A ping, delivered now. ## Webhooks Events: order.paid, order.refunded, order.moved, ticket.checked_in, show.changed, show.canceled, registration.confirmed, registration.refunded, follower.added, follower.unsubscribed. Each POST carries CocoScout-Signature: t=,v1=." with your secret>.