Overview

    Tixy ships two public surfaces:

    • https://tixy.live/api — versioned REST API for organizers and partners.
    • https://tixy.live/embed — iframe widgets and a tiny SDK that drop into any site.

    Both are organization-scoped — your API key determines which events, stores, and orders you can read or write. Every payload is JSON. Every breaking change gets a new /api/v{n} path and at least 30 days notice; v1 is supported indefinitely.

    API keys

    Create key pairs in Organization → Settings → Developers. Each mode (test or live) mints a matched pair:

    Publishable
    pk_live_…

    Safe to ship in browsers. Read-only on public resources (events, store products).

    Secret
    sk_live_…

    Server-side only. Full read/write scoped to your organization.
    curl https://tixy.live/api/v1/events \
      -H "Authorization: Bearer sk_live_..."

    Test-mode pairs use the pk_test_ / sk_test_ prefixes and only see test data. Revoking a pair revokes both keys.

    Rate limits

    • Publishable keys: 60 req/min, burst 120.
    • Secret keys: 600 req/min, burst 1,200.

    Limits are returned on every response as X-RateLimit-Limit and X-RateLimit-Remaining. When you exceed the burst you get 429 with a retry_after field (seconds).

    REST API (v1)

    Base URL: https://tixy.live/api/v1. The full OpenAPI spec lives at /openapi/tixy-v1.yaml.

    GET
    /eventsList your organization's events. Supports status, date range, and cursor pagination.
    GET
    /events/{id_or_slug}Fetch a single event with venue and embed URLs.
    GET
    /qr/{ticket_code}.pngRender a ticket's admission QR code as a PNG image. Secret-key only.
    GET
    /pingSmoke-test your API key.

    More endpoints (orders, attendees, store products, webhook management) ship in subsequent minor releases. They're additive — tracked in CHANGELOG.md.

    Embeds

    Three drop-in iframes, themeable via query parameters:

    See it on a real-feeling site

    Two end-to-end demo pages mimic a third-party partner site (Acme Co.) consuming Tixy via the SDK.

    EMBED
    /embed/event/{id_or_slug}Full event detail with primary CTA.
    EMBED
    /embed/card/{id_or_slug}Compact card — perfect for sidebars.
    EMBED
    /embed/events?organization={slug}Grid or list of an organization's upcoming events.

    Theme tokens (all optional):

    ?primary=%23ff6a00
    &primaryForeground=%23ffffff
    &background=transparent
    &foreground=%230f172a
    &radius=12px
    &fontFamily=Inter,sans-serif
    &mode=dark

    Or use the SDK and never write an iframe by hand:

    <div id="tixy-card"></div>
    <script src="https://tixy.live/embed/v1/tixy.js"></script>
    <script>
      Tixy.mount('#tixy-card', {
        type: 'card',
        event: 'summer-fest-2026',
        theme: { primary: '#ff6a00', radius: '12px' },
        user: { email: '{{user.email}}', name: '{{user.full_name}}' }
      });
    </script>

    Modal checkout

    Every embed CTA opens checkout in a Tixy-hosted modal that floats above your site — no redirect, no popup blocker. The SDK listens for the tixy:checkout:open message and renders the modal automatically.

    Triggering checkout directly:

    Tixy.checkout({ event: 'summer-fest-2026', user: { email, name } })

    Pre-filling user details

    Pass user on Tixy.mount or Tixy.checkout with email, name, and an optional external_id. After a successful purchase Tixy:

    • Creates a Tixy profile for that email (or attaches the order to an existing one).
    • Sends a welcome email so the attendee can claim the profile and view their tickets.
    • Stores your external_id so future webhooks can be reconciled.

    For trusted server-to-server flows, sign a short-lived JWT with your secret key and pass it as userToken instead — that skips the email-verification step.

    Webhooks

    Register HTTPS endpoints in Organization → Settings → Developers. Tixy POSTs a JSON event with an X-Tixy-Signature header (HMAC-SHA256 of the request body using your endpoint secret) and an X-Tixy-Event header with the event type.

    Event types

    • order.completed — a ticket or store order is successfully paid.
    • order.refunded — an order (or part of an order) is refunded.
    • attendee.checked_in — an attendee is scanned and admitted.
    • event.published — an event is published and publicly visible.

    Sample payloads

    Every delivery shares the same envelope — id, type, created_at, and a data object whose shape depends on the event type.

    order.completed

    {
      "id": "evt_2d4f8a9e1c3b...",
      "type": "order.completed",
      "created_at": "2026-08-01T20:35:00Z",
      "data": {
        "object": "order",
        "id": "dbfc2874-9de1-475d-817c-c14b046f7798",
        "organization_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "event_id": "4d184fa4-21d4-4702-8ad1-0d59e9289b83",
        "event": {
          "id": "4d184fa4-21d4-4702-8ad1-0d59e9289b83",
          "title": "Summer Fete 2026",
          "slug": "summer-fest-2026",
          "start_date": "2026-08-15",
          "start_time": "18:00",
          "timezone": "America/Jamaica",
          "venue": "Antigua Recreation Grounds",
          "currency": "XCD"
        },
        "status": "completed",
        "billing": {
          "first_name": "Janelle",
          "last_name": "Peters",
          "email": "janelle.peters@example.com"
        },
        "amounts": {
          "subtotal": 250.00,
          "fees": 12.50,
          "tax": 0.00,
          "total": 262.50,
          "currency": "XCD"
        },
        "items": [
          {
            "id": "item_1a2b3c4d",
            "ticket_id": "tkt_9f8e7d6c",
            "item_name": "General Admission",
            "item_type": "ticket",
            "quantity": 2,
            "unit_price": 125.00,
            "total_price": 250.00
          }
        ],
        "attendees": [
          {
            "id": "att_7g6h5i4j",
            "first_name": "Janelle",
            "last_name": "Peters",
            "email": "janelle.peters@example.com",
            "ticket_code": "TIXY-ATT-a1b2c3d4e5f6",
            "signed_qr_code": "TIXY.1.a1b2c3d4.1.1755216000.xYz9qRs3tUv5wXy7",
            "qr_image_url": "https://tixy.live/api/v1/qr/TIXY-ATT-a1b2c3d4e5f6.png",
            "qr_expires_at": "2026-08-15T04:00:00Z",
            "checked_in": false
          },
          {
            "id": "att_3k2l1m0n",
            "first_name": null,
            "last_name": null,
            "email": null,
            "ticket_code": "TIXY-ATT-7890abcdef12",
            "signed_qr_code": "TIXY.1.7890abcd.1.1755216000.aBc4dEf6gHi7jKl8",
            "qr_image_url": "https://tixy.live/api/v1/qr/TIXY-ATT-7890abcdef12.png",
            "qr_expires_at": "2026-08-15T04:00:00Z",
            "checked_in": false
          }
        ],
        "external_id": "your-system-order-123",
        "metadata": {}
      }
    }

    order.refunded

    {
      "id": "evt_7c1a4b2e9f0d...",
      "type": "order.refunded",
      "created_at": "2026-08-03T14:02:11Z",
      "data": {
        "object": "refund",
        "id": "ref_5e8d3c1b7a90",
        "order_id": "dbfc2874-9de1-475d-817c-c14b046f7798",
        "organization_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "event_id": "4d184fa4-21d4-4702-8ad1-0d59e9289b83",
        "reason": "customer_request",
        "partial": true,
        "amounts": {
          "refunded": 125.00,
          "order_total": 262.50,
          "remaining": 137.50,
          "currency": "XCD"
        },
        "items": [
          {
            "id": "item_1a2b3c4d",
            "item_name": "General Admission",
            "quantity": 1,
            "unit_price": 125.00,
            "total_price": 125.00
          }
        ],
        "voided_attendees": [
          {
            "id": "att_3k2l1m0n",
            "ticket_code": "TIXY-ATT-7890abcdef12",
            "qr_image_url": "https://tixy.live/api/v1/qr/TIXY-ATT-7890abcdef12.png"
          }
        ],
        "order_status": "partially_refunded",
        "external_id": "your-system-order-123",
        "metadata": {}
      }
    }

    attendee.checked_in

    {
      "id": "evt_9b0c2d4e6f81...",
      "type": "attendee.checked_in",
      "created_at": "2026-08-15T18:42:07Z",
      "data": {
        "object": "attendee",
        "id": "att_7g6h5i4j",
        "order_id": "dbfc2874-9de1-475d-817c-c14b046f7798",
        "organization_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "event_id": "4d184fa4-21d4-4702-8ad1-0d59e9289b83",
        "ticket_id": "tkt_9f8e7d6c",
        "ticket_name": "General Admission",
        "ticket_code": "TIXY-ATT-a1b2c3d4e5f6",
        "signed_qr_code": "TIXY.1.a1b2c3d4.1.1755216000.xYz9qRs3tUv5wXy7",
        "qr_image_url": "https://tixy.live/api/v1/qr/TIXY-ATT-a1b2c3d4e5f6.png",
        "qr_expires_at": "2026-08-15T04:00:00Z",
        "first_name": "Janelle",
        "last_name": "Peters",
        "email": "janelle.peters@example.com",
        "checked_in": true,
        "checked_in_at": "2026-08-15T18:42:05Z",
        "checked_in_by": "usr_2f4a6b8c",
        "entries_used": 1,
        "entries_per_ticket": 1,
        "external_id": "your-system-order-123"
      }
    }

    event.published

    {
      "id": "evt_1f3e5d7c9b02...",
      "type": "event.published",
      "created_at": "2026-07-01T09:15:00Z",
      "data": {
        "object": "event",
        "id": "4d184fa4-21d4-4702-8ad1-0d59e9289b83",
        "organization_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "title": "Summer Fete 2026",
        "slug": "summer-fest-2026",
        "status": "published",
        "published_at": "2026-07-01T09:15:00Z",
        "start_date": "2026-08-15",
        "start_time": "18:00",
        "end_date": "2026-08-16",
        "end_time": "02:00",
        "timezone": "America/Jamaica",
        "venue": "Antigua Recreation Grounds",
        "city": "St. John's",
        "country": "Antigua and Barbuda",
        "currency": "XCD",
        "url": "https://tixy.live/event/summer-fest-2026",
        "embed_url": "https://tixy.live/embed/event/summer-fest-2026",
        "cover_image": "https://cdn.tixy.live/events/summer-fest-2026/cover.jpg"
      }
    }

    Frequently asked questions

    Does a webhook fire per order or per attendee?

    It depends on the event type. order.completed and order.refunded fire once per order, regardless of how many tickets or attendees are involved — the affected attendees are included in the payload so you can reconcile everything in one shot. attendee.checked_in fires once per attendee, at the moment the QR code is scanned and admitted. event.published fires once per event, when it first becomes publicly visible.

    QR code format

    Webhook payloads include a plain ticket_code (for example, TIXY-ATT-a1b2c3d4e5f6) and a qr_image_url. The plain code is only a lookup identifier — do not render it as a QR code for admission.

    The qr_image_url points to GET /api/v1/qr/{ticket_code}.png, which returns a Tixy-rendered PNG QR image. The image encodes a signed, event-scoped, sequence-protected compact code that expires after the event ends. Because the signature is generated with a Tixy-only secret, external apps cannot mint or verify QR codes themselves; scanning is handled by Tixy check-in apps (a partner verification API is on the roadmap).

    <img
      src="https://tixy.live/api/v1/qr/TIXY-ATT-a1b2c3d4e5f6.png"
      alt="Admission QR"
      width="200"
      height="200"
    />

    The endpoint requires your secret API key in the Authorization header, so render the image from your server or a short-lived signed proxy — never expose the secret key in public HTML.

    Retry policy

    Failed deliveries are retried with exponential backoff for up to 24 hours. The retry schedule is roughly:

    • After attempt 1: 5 seconds
    • After attempt 2: 15 seconds
    • After attempt 3: 45 seconds
    • After attempt 4: 2 minutes
    • After attempt 5: 6 minutes
    • After attempt 6: 20 minutes
    • After attempt 7: 1 hour
    • After attempt 8: 3 hours

    After the final retry, the delivery is marked dead and no further attempts are made. Each delivery attempt is logged and visible in the dashboard.

    Verifying signatures

    const crypto = require('crypto');
    
    const signature = req.headers['x-tixy-signature'];
    const payload = JSON.stringify(req.body);
    const expected = crypto
      .createHmac('sha256', endpointSecret)
      .update(payload)
      .digest('hex');
    
    if (signature !== expected) {
      return res.status(400).send('Invalid signature');
    }