Booking · Tournaments
List events that can take the sign-up for a tournament
Returns the events of the mandate that could take the sign-up for a tournament: those ahead with a single date that teams register for, or persons where individuals compete, that are neither canceled nor archived and belong to no tournament yet.
Permissions
Send an API key of the organization in the path, using the X-API-Key header.
Permission checks in detail
Required permissions
mandate.readtournament.readevent.read
Request
Path parameters
-
organizationIdidrequired -
mandateIdidrequired -
tournamentIdidrequired
Body
Content-Type: application/json
-
sortobject of stringThe keys to sort by, each with its direction. Sorting lists every key.
ascdesc -
limitinteger0–100 · default
50 -
offsetintegerat least 0 · default
0 -
returnCountbooleandefault
false -
searchTermstring
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
--request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/registration/events/list' \
--header 'X-API-Key: YOUR_API_KEY'const response = await fetch("https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/registration/events/list", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY"
},
redirect: 'error',
signal: AbortSignal.timeout(30_000),
});
if (!response.ok) throw new Error(`campai HTTP ${response.status}`);
const text = await response.text();
const result = text ? JSON.parse(text) : null;
console.log(JSON.stringify(result, null, 2));<?php
$context = stream_context_create(['http' => [
'method' => 'POST',
'header' => [
'X-API-Key: YOUR_API_KEY',
],
'timeout' => 30,
'follow_location' => 0,
'ignore_errors' => true,
]]);
$text = @file_get_contents('https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/registration/events/list', false, $context);
preg_match('/^HTTP\/\S+ (\d{3})/', $http_response_header[0] ?? '', $match);
$status = (int) ($match[1] ?? 0);
if ($text === false || $status < 200 || $status >= 300) {
throw new RuntimeException("campai HTTP $status (0 means no response)");
}
$result = $text === '' ? null : json_decode($text, true, 512, JSON_THROW_ON_ERROR);
echo json_encode($result, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR), PHP_EOL;
No request that worked has been recorded yet, so the body is not shown.
Sorting
sort takes the keys to sort by, each with asc or desc.
44 sort keys
| Key |
|---|
_id |
period.from |
period.to |
period.status |
period.warning |
info.title |
info.image.resource |
info.image.fileName |
info.image.contentType |
info.image.fileSizeBytes |
info.color |
info.place.type |
info.place.resource.site |
info.place.resource.siteName |
info.place.resource.siteAddress.country |
info.place.resource.siteAddress.state |
info.place.resource.siteAddress.zip |
info.place.resource.siteAddress.city |
info.place.resource.siteAddress.addressLine |
info.place.resource.siteAddress.details1 |
info.place.resource.siteAddress.details2 |
info.place.resource.resource |
info.place.resource.resourceName |
info.place.resource.quantity |
info.place.address.country |
info.place.address.state |
info.place.address.zip |
info.place.address.city |
info.place.address.addressLine |
info.place.address.details1 |
info.place.address.details2 |
info.place.location.latitude |
info.place.location.longitude |
info.place.online.url |
info.place.online.instructions |
schedule.timezone |
offer.mode |
offer.attendeeMode |
offer.displaySettings.seatsAvailableThreshold |
offer.displaySettings.unlisted |
offer.rates |
statistics.confirmed |
statistics.checkedIn |
statistics.waitlisted |
Response
200 Successful response
Content-Type: application/json
-
countintegerat least 0
-
eventsobject[]6 properties
-
_idid -
periodobject4 properties
-
fromstring · date-time -
tostring · date-time -
statusstringavailableblockedResourceblockedCalendar -
warningstringnoAvailableExtendedPeriod
-
-
infoobject4 properties
-
titlestring1–60 characters
-
imageobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
colorstring -
placeobjectnullable5 properties
-
typestringresourceaddressonline -
resourceobject6 properties
-
siteid -
siteNamestringat least 1 characters
-
siteAddressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
resourceid -
resourceNamestring -
quantityinteger
-
-
addressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
locationobjectnullable2 properties
-
latitudenumber-90–90
-
longitudenumber-180–180
-
-
onlineobject2 properties
-
urlstring · uriat most 300 characters
-
instructionsstringat most 400 characters
-
-
-
-
scheduleobject1 property
-
timezonestringat least 1 characters
-
-
offerobject4 properties
-
modestringdisabledprivateprotectedpublic -
attendeeModestringmultiplesingleteamrate -
displaySettingsobject2 properties
-
seatsAvailableThresholdintegerat least 0
-
unlistedboolean
-
-
ratesobject[]4 properties
-
idstringexactly 8 characters
-
namestring1–50 characters
-
availableAmountintegernullable -
chargeobject3 properties
-
typestringpricepunchCard -
priceobjectnullable12 properties
-
isNetboolean -
priceinteger0–9999999999
-
priceNetinteger0–9999999999
-
priceGrossinteger0–9999999999
-
taxCodestringnullable1–5 characters
-
taxRatenumbernullableat most 99
-
accountinteger1–999999999
-
costCenter1numbernullable1–99999999
-
costCenter2numbernullable1–99999999
-
dimensionsobject[]2 properties
-
dimensionIdid -
optionKeystring1–64 characters
-
-
minSlotPriceintegerat most 9999999999
-
maxSlotPriceintegerat most 9999999999
-
-
punchCardobjectnullable4 properties
-
punchCardid -
punchCardNamestring -
punchCardPriceobject12 properties
-
isNetboolean -
priceinteger0–9999999999
-
priceNetinteger0–9999999999
-
priceGrossinteger0–9999999999
-
taxCodestringnullable1–5 characters
-
taxRatenumbernullableat most 99
-
accountinteger1–999999999
-
costCenter1numbernullable1–99999999
-
costCenter2numbernullable1–99999999
-
dimensionsobject[]2 properties
-
dimensionIdid -
optionKeystring1–64 characters
-
-
minSlotPriceintegerat most 9999999999
-
maxSlotPriceintegerat most 9999999999
-
-
pointsinteger
-
-
-
-
-
statisticsobject3 properties
-
confirmedintegerat least 0
-
checkedInintegerat least 0
-
waitlistedintegerat least 0
-
-
{
"count": 0,
"events": [
{
"_id": "000000000000000000000001",
"period": {
"from": "2026-06-15T22:30:00Z",
"to": "2026-06-15T22:30:00Z",
"status": "available"
},
"info": {
"title": "string",
"image": {
"resource": "string"
},
"color": "",
"place": {
"type": "resource"
}
},
"schedule": {
"timezone": "string"
},
"offer": {
"mode": "disabled",
"attendeeMode": "multiple",
"displaySettings": {
"seatsAvailableThreshold": 0,
"unlisted": true
},
"rates": [
{
"id": "string",
"name": "string",
"availableAmount": 1,
"charge": {
"type": "price",
"price": {
"isNet": true,
"price": 0,
"taxCode": "string",
"taxRate": 1,
"account": 1,
"costCenter1": 1,
"costCenter2": 1,
"dimensions": [
{
"dimensionId": "000000000000000000000001",
"optionKey": "string"
}
]
},
"punchCard": {
"punchCard": "000000000000000000000001",
"punchCardName": "string",
"punchCardPrice": {
"isNet": true,
"price": 0,
"taxCode": "string",
"taxRate": 1,
"account": 1,
"costCenter1": 1,
"costCenter2": 1,
"dimensions": [
{
"dimensionId": null,
"optionKey": "string"
}
]
},
"points": 1
}
}
}
]
},
"statistics": {
"confirmed": 0,
"checkedIn": 0,
"waitlisted": 0
}
}
]
}
Errors
No errors of its own are known for this endpoint.
Errors nearly every request can meet are listed under Errors.