GET /api/v2/sessions/getTracks
Returns the list of tracks (session categories) for a given event.
Authentication
Authorization: Bearer <your_api_key>
Endpoint
GET /api/v2/sessions/getTracks
Query Parameters
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
integer |
Yes |
The ID of the event to retrieve tracks for |
Response Format
Success Response (HTTP 200)
The data field contains an array of track objects.
Track Object Fields
|
Field |
Type |
Description |
|---|---|---|
|
|
integer |
Track ID |
|
|
string |
Track title |
|
|
string |
Track colour in hex format (e.g. |
|
|
integer |
Unix timestamp of the last modification |
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
|
|
|
400 |
|
|
|
400 |
Event not found |
|
|
403 |
Missing or invalid API key |
|
Example Request
Bash
curl -X GET "https://your-event-domain.com/api/v2/sessions/getTracks?event_id=7" \
-H "Authorization: Bearer your_api_key_here"