Resources / Productions

Productions

A production is the show itself, like Late Night Sketch. Its dates are shows.

The object

name string
The production's name.
description string or null
Plain text, with description_html beside it.
poster_url string or null
The poster, large.
first_show_at, last_show_at string or null
Its first and last dates that aren't canceled.
archived boolean
Archived in CocoScout.
embed_html string or null
A single show card for the whole run, ready to paste into a web page: the next date on sale and a Buy tickets button. embed_view picks another widget. Add data-button-color, data-background-color, data-heading-color, or data-text-color to it for colors of its own. Null when it isn't set up to sell tickets.
The production object
{  "id": 77,  "name": "Late Night Sketch",  "description": "Twelve sketches, one rule: nothing older than a week.",  "poster_url": "https://cocoscout.com/rails/active_storage/…",  "archived": false,  "first_show_at": "2026-12-05T20:00:00-06:00",  "last_show_at": "2026-12-26T20:00:00-06:00",  "embed_html": "<div data-cocoscout-tickets=\"the-basement\" data-event=\"late-night-sketch\"></div>…",  "updated_at": "2026-11-20T10:00:00-06:00"}

List productions

GET /v1/productions

Productions that aren't archived. archived=true lists archived ones, archived=all lists both.

Query parameters

archived string
true or all.
embed_view string
Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office.
limit integer
Up to 200 a page, 50 by default.
after string
The last page's `next`, for the page after it.
curl
curl https://api.cocoscout.com/v1/productions \  -H "Authorization: Bearer cs_live_…"

Get a production

GET /v1/productions/{id}

One production.

Query parameters

embed_view string
Which ticket widget embed_html holds: link, button, single (the default), dates, tickets, full, or box-office.
curl
curl https://api.cocoscout.com/v1/productions/4812 \  -H "Authorization: Bearer cs_live_…"

Create a production

POST /v1/productions Read-and-write key

A new production. Set up its ticketing in CocoScout.

Body

name string required
Its name.
description string
What it is.
curl
curl -X POST https://api.cocoscout.com/v1/productions \  -H "Authorization: Bearer cs_live_…" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: $(uuidgen)" \  -d '{    "name": "…"  }'

Change a production

PATCH /v1/productions/{id} Read-and-write key

Its name or description.

Body

name string
Its name.
description string
What it is.
curl
curl -X PATCH https://api.cocoscout.com/v1/productions/4812 \  -H "Authorization: Bearer cs_live_…" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: $(uuidgen)" \  -d '{}'