Skip to content

//Developers

Build on the TKDS Arena API

Every screen of the platform runs on the same documented REST API — registrations, live results, fixtures, payments and publishing. Connect mobile apps, scoreboards, timing systems and MediaCore2.

Base URL & versioning

All endpoints live under /api/v1. Additive changes never break clients; breaking changes ship as a new version.

Base URL
http://157.180.21.106:40138/api/v1

Authentication

User sessions

Short-lived access tokens with rotating refresh tokens for the web and mobile apps. Two-step verification and step-up for sensitive actions.

Authorization: Bearer <access_token>

Machine clients (OAuth2)

The client_credentials flow for servers: exchange a client id and secret for a scoped, short-lived token.

POST /api/v1/auth/token

API keys

Password-protected keys for feeds and integrations such as MediaCore2 — sent in a header, rotated any time, restricted by scope and IP.

X-TKDS-Key: <secret>

Timing & scoring devices

Devices sign every request with an HMAC key. Submissions are idempotent and limited to the device’s event.

X-Device-Signature: <hmac>

Conventions

01

One envelope

Every response is { success, data, meta, request_id }; errors carry a stable code plus English and Arabic messages.

02

Lists that scale

Pagination, sorting, search and filters use the same query parameters on every collection.

?page=1&per_page=25&sort=-starts_at&filter[status]=live
03

Bilingual by design

Send X-Locale: ar for Arabic messages; names and titles come as _en and _ar pairs.

04

Safe concurrency

Records carry a version — send it back when you update to avoid overwriting someone else’s change.

05

Idempotent writes

Payments and device submissions accept an Idempotency-Key header, so retries never double-count.

06

Fair rate limits

Limits apply per client, account and IP; a 429 response tells you when to retry.

Webhooks

Subscribe endpoints to domain events. Every delivery is signed; verify the signature before trusting the payload.

Header
X-Arena-Signature: t=<unix>,v1=<hex hmac_sha256(secret, t + "." + body)>

Personal data never leaves in webhook payloads. Failed deliveries retry with back-off and can be replayed from the console.

37 event types

People

athlete.createdathlete.updatedguardian.consent.createdguardian.consent.revoked

Teams

team.createdteam.updatedroster.updated

Events

event.createdevent.updatedevent.publishedregistration.openedregistration.closedevent.startedevent.completedevent.cancelledschedule.updated

Registration

registration.submittedregistration.approvedregistration.rejectedregistration.cancelledcheckin.recordedentry.createdentry.seededentry.scratched

Live

heat.status_changedfixture.updated

Results

result.provisionalresult.officialresult.correctedstandings.updatedrecord.broken

Payments

payment.succeededpayment.failedpayment.refunded

Devices

device.onlinedevice.offlineintegration.error

Live streams

Server-sent events for scoreboards and apps: public event streams carry live scores, clocks, heats and results as they happen.

GET http://157.180.21.106:40138/api/v1/public/events/{ref}/stream
Accept: text/event-stream

Public read API

No key needed for published data — events, schedules, results, standings, medal tables and records. Minors are always privacy-protected.

GET http://157.180.21.106:40138/api/v1/public/events?when=live
GET http://157.180.21.106:40138/api/v1/public/events/{org}/{slug}/results

MediaCore2 & broadcast graphics

Arena pushes schedules, live scores and results to MediaCore2 through its documented APIs, and exposes key-protected feeds and graphics JSON for on-air overlays.

GET http://157.180.21.106:40138/api/v1/integrations/mediacore2/feed/events
X-TKDS-Key: <secret>

# ready-made OBS / vMix overlays
http://157.180.21.106:40138/en/overlay/{org}/{event}

Ready to build?

Ask your organization admin for an API client, or explore every endpoint in the interactive reference.

Open the API reference