Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

GET/{organizationId}/{mandateId}/booking/tournaments/{tournamentId}/previewTokenReads only

Get tournament preview token

Returns a token that shows the tournament on its public page for 7 days even if it is not published yet. Add it as the preview parameter to the link of the tournament page.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • tournament.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • tournamentIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/previewToken' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • tokenstring
  • expiresAtstring · date-time
Response200
{
  "token": "string",
  "expiresAt": "2026-06-15T22:30:00Z"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.