Getting Started

The TTG API lets you browse live entertainment events, check real-time inventory, and complete ticket purchases on behalf of your customers. This guide covers everything you need to make your first successful API call.

Prerequisites

Before you start, you’ll need two things:

  • API keysk_test_* for staging, sk_live_* for production (see Managing API Keys below)
  • Retailer ID — your retailer identifier, used in the X-TT-Retailer header (provided during onboarding)

Managing API Keys

Generate and manage API keys from the Settings page in the partner portal:

  1. Log in to the portal.
  2. Click your name in the bottom left to open Settings.
  3. Generate an API key and copy it to a secure location — the full key is only shown once.
  4. From Settings you can manage and revoke keys at any time.

Start in staging. Your onboarding contact will create your portal account on staging first. Once your integration is working, request a production account to generate live keys.

Each person who needs portal access requires their own account. Provide a first name, last name, and email address for each user to your onboarding contact.

Base URLs

EnvironmentURLWhen to use
Staginghttps://stg.ttix.ioDevelopment and testing
Productionhttps://api.ttix.ioLive inventory and transactions

Authentication & Headers

All requests require these headers:

HeaderRequiredDescription
X-TT-API-KeyYesYour API key (sk_test_* or sk_live_*)
X-TT-RetailerYesYour retailer identifier. Affects pricing and inventory visibility.
X-TT-PlatformYesOne of: ios, android, web, api
Accept-LanguageNoLanguage preference (e.g. en-US). Defaults to en-US.
X-Request-IDNoClient-generated trace ID (e.g. req_abc123xyz). Echoed in the response for debugging.

Keep your keys safe. Store API keys in environment variables or a secrets manager — never commit them to source control or expose them in client-side code.

Make Your First Request

Confirm your credentials work by listing your available markets — no additional parameters required:

$curl -s https://stg.ttix.io/api/v3/locations \
> -H "X-TT-API-Key: sk_test_YOUR_KEY" \
> -H "X-TT-Retailer: YOUR_RETAILER_ID" \
> -H "X-TT-Platform: api"

A successful response looks like:

1{
2 "data": [
3 {"id": "2", "name": "London", "country": "GB"},
4 {"id": "1", "name": "New York", "country": "US"}
5 ],
6 "pagination": {"limit": 50, "offset": 0, "total": 2}
7}

Troubleshooting

ErrorCauseFix
401 UnauthorizedInvalid or missing API keyVerify your X-TT-API-Key header value
400 Bad RequestMissing required headerEnsure X-TT-Retailer and X-TT-Platform are present. Valid platform values: ios, android, web, api

Next Steps

  • API Conventions — Response envelopes, money format, timezones, IDs, pagination, and forward-compatibility guidance.
  • Purchase Flow — End-to-end walkthrough from browsing events to completing a checkout.
  • Inventory Types — Understanding assigned seats, general admission, and pricing.
  • Error Handling — Error format, common codes, retry strategies, and idempotency.