Developers
Connect to Gala Dock through API, MCP and webhooks.
Build event workflows, synchronise your systems and expose Gala Dock capabilities securely through scoped developer interfaces.
API, MCP and webhooks are included on Pro plans and above — see Pricing.
- Your application calls Gala Dock through the REST API at /api/v1, the MCP server at /api/mcp, or receives signed webhooks.
- Every request is authenticated with a scoped API key and runs with the permissions of the person who created it.
- Gala Dock exposes events, tickets, bookings and marketplace capabilities.
Choose the interface
REST for systems. MCP for tools. Webhooks for events.
One console, three interfaces. Every example below matches the live contract — the same keys, scopes and payloads.
curl https://www.galadock.com/api/v1/events?limit=2 \
-H "Authorization: Bearer gd_live_xxxxxxxx_…" \
-H "Gala-Api-Version: 2026-10-29"{
"data": [
{ "id": "evt_…", "type": "booking.confirmed", "cursor": "1041",
"data": { "item_id": "…", "event_id": "…", "status": "confirmed",
"amount": …, "currency": "GBP" } },
{ "id": "evt_…", "type": "ticket.order.paid", "cursor": "1042", "data": { … } }
],
"next_cursor": "1042",
"api_version": "2026-10-29"
}GET /api/v1/events — cursor feed (feed:read)Reference
POST /api/mcp
Authorization: Bearer gd_live_xxxxxxxx_…
{ "jsonrpc": "2.0", "id": 7, "method": "tools/call",
"params": { "name": "events.list", "arguments": {} } }{
"jsonrpc": "2.0", "id": 7,
"result": {
"content": [{ "type": "text",
"text": "[{\"id\":\"…\",\"name\":\"Summer Sessions\", …}]" }],
"isError": false
}
}tools/list returns only what the key’s scopes allowReference
POST https://your-app.example/hooks/gala
Gala-Event-Id: 9b1c…
Gala-Event-Type: booking.confirmed
Gala-Signature: t=1784822400,v1=5f2a…
{ "id": "9b1c…", "type": "booking.confirmed",
"data": { "item_id": "…", "event_id": "…", "listing_id": "…",
"status": "confirmed", "amount": …, "currency": "GBP" } }// Verify HMAC-SHA256 over "<t>.<raw body>",
// reject if |now − t| > 300 s, then dedupe on Gala-Event-Id.
HTTP/1.1 200 OKRetries with backoff; replay from Settings → DevelopersReference
Secure by design
One domain model. Scoped capabilities.
The web app, Gala Agent, the API and MCP all call the same protected domain services. There is no raw database access — only capabilities your key is allowed to use.
events:readevents:writetickets:readbookings:writemarketplace:readfeed:read
API → Events · events:read · 200 · events returned for the key’s workspace
Every call is written to the audit log with a request ID, the key, the tool and the result.
Event stream
Subscribe to the moments your system actually cares about.
Webhooks are signed, retried with backoff and replayable. A cursor feed at GET /api/v1/events gives you the same events if you’d rather pull.
event.createdbooking.requestedbooking.confirmedevent.publishedticket.order.paidreview.published
Your endpointhttps://your-app.example/hooks/gala
- Waiting for the first event…
Production foundations
Production integration needs more than endpoints.
Keys carry only the scopes you grant (for example events:read) and act with the permissions of the person who created them.
Send an Idempotency-Key with tool calls; a replay within 24 hours returns the stored result instead of acting twice.
Responses carry Gala-Api-Version (currently 2026-10-29); pin a version with the same header.
Gala-Signature is an HMAC-SHA256 over the timestamp and raw body; both secrets sign during a rotation.
Failed deliveries retry with backoff from 1 minute to 24 hours, and any delivery can be replayed from Settings → Developers.
Every REST and MCP call is logged with a request ID, the key, the tool and the response status.
Each key has a per-minute limit (120 by default); a 429 response includes Retry-After.
Every operation is described in /api/v1/openapi.json, generated from the same tool definitions the API runs.
Scoped API keys. Keys carry only the scopes you grant (for example events:read) and act with the permissions of the person who created them.
