curl --request GET \
--url https://api.nuwebgroup.com/v1/activated-events \
--header 'Authorization: Bearer <token>'[
{
"id": 1,
"name": "Event A",
"city": "City of London",
"venue": "London",
"start": "2021-11-22T11:59:00.000000Z",
"end": "2021-11-25T11:59:00.000000Z",
"timezone": "Europe/London",
"media": {
"header-image": "https://path-to-image.com",
"list-thumbnail": "https://path-to-image.com",
"meta-image": "https://path-to-image.com",
"thumbnailImage": {
"type": "thumbnailImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "card_thumbnail_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
},
"pageHeaderImage": {
"type": "pageHeaderImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "page_header_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
},
"metaImage": {
"type": "metaImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "meta_image_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
}
},
"scanningMode": "qr-only",
"timeslots": [
{
"id": 221,
"name": "Morning (AM)",
"start": "2022-06-13T10:24:00.000000Z",
"end": "2022-06-13T11:24:00.000000Z",
"ticketTypeIds": [
281
]
}
],
"permissions": {
"canEditEvent": true
},
"gates": [
{
"id": 1,
"name": "Gate A"
},
{
"id": 1,
"name": "Gate B"
}
]
}
]Retrieves events that are either in progress today (at any time) or have been manually activated and haven’t ended yet (or have ended within 24 hours). Results are ordered by start date ascending. Authenticated user must be able to ‘view any’ events.
curl --request GET \
--url https://api.nuwebgroup.com/v1/activated-events \
--header 'Authorization: Bearer <token>'[
{
"id": 1,
"name": "Event A",
"city": "City of London",
"venue": "London",
"start": "2021-11-22T11:59:00.000000Z",
"end": "2021-11-25T11:59:00.000000Z",
"timezone": "Europe/London",
"media": {
"header-image": "https://path-to-image.com",
"list-thumbnail": "https://path-to-image.com",
"meta-image": "https://path-to-image.com",
"thumbnailImage": {
"type": "thumbnailImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "card_thumbnail_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
},
"pageHeaderImage": {
"type": "pageHeaderImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "page_header_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
},
"metaImage": {
"type": "metaImage",
"id": 1,
"attributes": {
"modelType": "events",
"modelId": 201,
"collectionName": "meta_image_en",
"mimeType": "image/png",
"size": 376634,
"orderColumn": 1,
"updatedAt": "2022-07-29T13:45:05.000000Z",
"createdAt": "2022-07-29T13:45:05.000000Z",
"url": "https://nextgen-test.s3.eu-west-1.amazonaws.com/public/media/local/1/rGcuQ9zYRYQ.png"
}
}
},
"scanningMode": "qr-only",
"timeslots": [
{
"id": 221,
"name": "Morning (AM)",
"start": "2022-06-13T10:24:00.000000Z",
"end": "2022-06-13T11:24:00.000000Z",
"ticketTypeIds": [
281
]
}
],
"permissions": {
"canEditEvent": true
},
"gates": [
{
"id": 1,
"name": "Gate A"
},
{
"id": 1,
"name": "Gate B"
}
]
}
]The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.
Successful request to fetch active events.