RESTful API
Standard REST with JSON payloads. Predictable resource URLs, HTTP verbs, and status codes for events, tickets, wristbands, vendors, and gates.
Real-time Webhooks
Subscribe to ticket scans, wristband top-ups, gate entries, and payment events. Receive instant POST notifications with HMAC verification.
SDK Libraries
Official client libraries for Node.js, Python, C#, Go, and Swift. Type-safe models, automatic retries, and built-in pagination helpers.
Authentication
All API requests require a Bearer token in the Authorization header. MagicTix uses key-prefixed tokens to distinguish environments.
API Key Types
Security Best Practices
Never expose live keys in client-side code. Use test keys during development. Rotate keys every 90 days. Enable IP allowlists in your dashboard for production keys.
Error Responses
Webhooks
Receive real-time event notifications via HTTP POST to your endpoint.
Available Events
Ticket bought at kiosk or online
Ticket QR validated at gate
Funds added to RFID wristband
Wristband used for vendor purchase
Guest scanned in through gate
Guest exited through gate
Capacity or security alert fired
Configuration
SDK Libraries
Official client libraries with type-safe models and built-in retry logic.
Node.js
npm i @magictix/sdkPython
pip install magictixC# / .NET
dotnet add MagicTix.SDKGo
go get magictix.com/sdkSwift
MagicTixSDK (SPM)Java / Kotlin
com.magictix:sdk:2.4API Sandbox
Test endpoints with pre-built examples or craft custom requests.
Request
Response
Rate Limits
Requests are limited per API key. Exceeding limits returns 429 Too Many Requests.
Changelog
wristband.topped_up webhook event. Fires when funds are added to any wristband at kiosks or through the mobile app. Includes new_balance and top_up_method fields.POST /v2/gates/scan/bulk endpoint for batch processing gate entries. Accepts up to 100 scans per request for high-throughput gates at major fairgrounds./v2/analytics/revenue responses now respect the event's configured timezone.mt_live_ and mt_test_ prefixes. Legacy mtx_ keys deprecated as of 2026-04-01. Migrate keys in your MagicTix Dashboard.GET/POST/PUT/DELETE /v2/vendors. Assign vendors to events, manage booth locations, and track vendor sales in real time.