Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

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

Get tournament

Returns a whole tournament: its settings with categories, stages and groups, its teams, its matches with their results, and the event that takes its sign-up. Tables and rankings are computed from the matches. Helper links are only included for those who may enter results.

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
Also checked, depending on the request and the records it touches
  • tournament.edit
  • user.read
  • apiKey.read
  • contact:member.read
  • contact:address.read
  • contact:customer.read
  • contact:sponsor.read
  • contact:contributor.read
  • contact:employee.read
  • contact:supplier.read
  • contact.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' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • tournamentobject
    37 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • mandateid
    • shortIdstring

      exactly 6 characters

    • namestring

      1–60 characters

    • descriptionstring

      at most 140 characters

    • detailsstring

      at most 25000 characters

    • imageobjectnullable
      4 properties
      • resourcestring

        at least 1 characters

      • fileNamestring

        at most 128 characters

      • contentTypestring

        at most 75 characters

      • fileSizeBytesinteger

        at least 0

    • colorstring
    • tagsstring[]

      at most 10 items · each 1–40 characters

    • placeobjectnullable
      5 properties
      • typestring
        resource address online
      • resourceobject
        6 properties
        • siteid
        • siteNamestring

          at least 1 characters

        • siteAddressobject
          7 properties
          • countrystring
          • statestring
          • zipstring

            at most 10 characters

          • citystring

            at most 45 characters

          • addressLinestring

            at most 45 characters

          • details1string

            at most 45 characters

          • details2string

            at most 45 characters

        • resourceid
        • resourceNamestring
        • quantityinteger
      • addressobject
        7 properties
        • countrystring
        • statestring
        • zipstring

          at most 10 characters

        • citystring

          at most 45 characters

        • addressLinestring

          at most 45 characters

        • details1string

          at most 45 characters

        • details2string

          at most 45 characters

      • locationobjectnullable
        2 properties
        • latitudenumber

          -90–90

        • longitudenumber

          -180–180

      • onlineobject
        2 properties
        • urlstring · uri

          at most 300 characters

        • instructionsstring

          at most 400 characters

    • timezonestring

      at least 1 characters

    • daysobject[]

      1–14 items

      2 properties
      • datestring
      • startobject
        2 properties
        • hoursinteger

          0–23

        • minutesinteger

          0–59

    • periodobject
      2 properties
      • fromstring · date-time
      • tostring · date-time
    • participantTypestring
      team person
    • advancementstring
      automatic manual
    • eventidnullable
    • divisionsobject[]

      1–24 items

      10 properties
      • idstring

        exactly 10 characters

      • namestring

        1–40 characters

      • shortNamestring

        1–8 characters

      • colorstring
      • rateIdstringnullable

        exactly 8 characters

      • maxTeamsintegernullable

        at most 512

      • displaystring
        all scores none
      • fieldsstring[]

        at most 32 items · each exactly 10 characters

      • scoringobject
        5 properties
        • modestring
          goals sets wins
        • pointsobject
          3 properties
          • winnumber

            0–20

          • drawnumber

            0–20

          • lossnumber

            0–20

        • criteriastring[]

          at least 1 items

          points difference scored headToHead wins ballDifference
        • headToHeadGoalsboolean
        • setsobjectnullable
          1 property
          • maxinteger

            1–9

      • stagesobject[]

        at most 8 items

        10 properties
        • idstring

          exactly 10 characters

        • namestring

          1–30 characters

        • groupsobject[]

          at most 32 items

          9 properties
          • idstring

            exactly 10 characters

          • namestring

            1–30 characters

          • slotsobject[]

            at most 32 items

            2 properties
            • sourceobjectnullable
            • teamidnullable
          • encountersinteger

            0–4

          • roundLimitintegernullable

            at most 200

          • pairingstring
            dfb circle
          • matchMinutesintegernullable

            1–600

          • decisionsobject[]

            at most 32 items

            1 property
            • teamsid[]

              2–32 items

          • adjustmentsobject[]

            at most 128 items

            3 properties
            • teamid
            • pointsnumber

              -100–100

            • notestring

              at most 120 characters

        • bracketsobject[]

          at most 16 items

          2 properties
          • idstring

            exactly 10 characters

          • namestring

            at most 30 characters

        • daystringnullable
        • matchMinutesinteger

          1–600

        • breakMinutesinteger

          0–240

        • pauseMinutesinteger

          0–600

        • decisionsobject[]

          at most 32 items

          1 property
          • teamsid[]

            2–32 items

        • startedAtstring · date-timenullable
    • fieldsobject[]

      1–32 items

      4 properties
      • idstring

        exactly 10 characters

      • namestring

        1–40 characters

      • shortNamestring

        1–8 characters

      • resourceobjectnullable
        4 properties
        • siteid
        • siteNamestring
        • resourceid
        • resourceNamestring
    • scheduleModestring
      alternate rounds
    • programItemsobject[]

      at most 60 items

      6 properties
      • idstring

        exactly 10 characters

      • titlestring

        1–60 characters

      • startstring · date-time
      • minutesinteger

        1–1440

      • fieldsstring[]

        at most 32 items · each exactly 10 characters

      • publicboolean
    • refereesobject[]

      at most 100 items

      2 properties
      • idstring

        exactly 10 characters

      • namestring

        1–60 characters

    • visibilityobject
      3 properties
      • teamsboolean
      • scheduleboolean
      • playersboolean
    • screenobject
      2 properties
      • partsstring[]

        at least 1 items

        matches tables bracket
      • secondsinteger

        5–120

    • reportingobject
      3 properties
      • teamsboolean
      • refereesboolean
      • disputeMinutesinteger

        0–120

    • helperLinksobject[]

      at most 64 items

      10 properties
      • idstring

        exactly 10 characters

      • tokenstring

        exactly 32 characters

      • namestring

        1–40 characters

      • fieldsstring[]

        at most 32 items · each exactly 10 characters

      • divisionsstring[]

        at most 24 items · each exactly 10 characters

      • validitystring
        matchDays untilReset
      • canEditFinishedboolean
      • createdAtstring · date-time
      • lastUsedAtstring · date-timenullable
      • entriesinteger

        at least 0

    • statisticsobject
      4 properties
      • teamsinteger

        at least 0

      • matchesinteger

        at least 0

      • scheduledinteger

        at least 0

      • finishedinteger

        at least 0

    • publishedAtstring · date-timenullable
    • cancelationobjectnullable
      3 properties
      • canceledAtstring · date-time
      • canceledByobject
      • reasonstring

        at most 240 characters

    • archivedAtstring · date-timenullable
  • teamsobject[]
    22 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • mandateid
    • tournamentid
    • divisionstring

      exactly 10 characters

    • namestring

      1–60 characters

    • shortNamestring

      at most 6 characters

    • colorstring
    • imageobjectnullable
      4 properties
      • resourcestring

        at least 1 characters

      • fileNamestring

        at most 128 characters

      • contentTypestring

        at most 75 characters

      • fileSizeBytesinteger

        at least 0

    • contactobject
      4 properties
      • namestring

        at most 120 characters

      • emailstring
      • phonestring | string · phone
      • contactobjectnullable
        7 properties
        • namestring
        • typestring
        • nameNormalizedstring
        • nameSortstring
        • contactidnullable
        • imageobjectnullable
          4 properties
          • resourcestring

            at least 1 characters

          • fileNamestring

            at most 128 characters

          • contentTypestring

            at most 75 characters

          • fileSizeBytesinteger

            at least 0

        • userobjectnullable
          4 properties
          • namestring
          • typestring
          • userIdstring
          • imageobjectnullable
            4 properties
            • resourcestring

              at least 1 characters

            • fileNamestring

              at most 128 characters

            • contentTypestring

              at most 75 characters

            • fileSizeBytesinteger

              at least 0

    • attendeeidnullable
    • appTeamidnullable
    • playersobject[]

      at most 60 items

      3 properties
      • idstring

        exactly 10 characters

      • namestring

        1–80 characters

      • numberstring

        at most 4 characters

    • positioninteger

      at least 0

    • withdrawnAtstring · date-timenullable
  • matchesobject[]
    37 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • mandateid
    • tournamentid
    • keystring

      exactly 10 characters

    • divisionstring

      exactly 10 characters

    • stagestring

      exactly 10 characters

    • groupstringnullable

      exactly 10 characters

    • bracketstringnullable

      exactly 10 characters

    • roundinteger
    • positioninteger

      at least 0

    • kindstring
      group roundOf64 roundOf32 roundOf16 quarterfinal semifinal final placement custom
    • kindNumberinteger
    • namestring

      at most 60 characters

    • placeintegernullable
    • placeTointegernullable
    • homeobject
      2 properties
      • sourceobject
      • teamidnullable
    • awayobject
      2 properties
      • sourceobject
      • teamidnullable
    • numberintegernullable
    • fieldstringnullable

      exactly 10 characters

    • startstring · date-timenullable
    • minutesinteger

      1–600

    • lockedboolean
    • refereeobjectnullable
      2 properties
      • teamidnullable
      • refereestringnullable

        exactly 10 characters

    • liveobjectnullable
      4 properties
      • homeinteger

        0–999

      • awayinteger

        0–999

      • setsobject[]

        at most 9 items

        2 properties
        • homeinteger

          0–999

        • awayinteger

          0–999

      • startedAtstring · date-time
    • resultobjectnullable
      9 properties
      • homeinteger

        0–999

      • awayinteger

        0–999

      • setsobject[]

        at most 9 items

        2 properties
        • homeinteger

          0–999

        • awayinteger

          0–999

      • extraTimeboolean
      • penaltiesobjectnullable
        2 properties
        • homeinteger

          0–999

        • awayinteger

          0–999

      • deciderstringnullable
        home away
      • ratedboolean
      • enteredAtstring · date-time
      • enteredByobject
        2 properties
        • typestring
          admin helper team referee
        • namestring

          at most 120 characters

    • disputeobjectnullable
      2 properties
      • resultobject
        9 properties
        • homeinteger

          0–999

        • awayinteger

          0–999

        • setsobject[]

          at most 9 items

          2 properties
          • homeinteger

            0–999

          • awayinteger

            0–999

        • extraTimeboolean
        • penaltiesobjectnullable
          2 properties
          • homeinteger

            0–999

          • awayinteger

            0–999

        • deciderstringnullable
          home away
        • ratedboolean
        • enteredAtstring · date-time
        • enteredByobject
          2 properties
          • typestring
            admin helper team referee
          • namestring

            at most 120 characters

      • reportedAtstring · date-time
    • goalsobject[]

      at most 200 items

      5 properties
      • idstring

        exactly 10 characters

      • sidestring
        home away
      • minuteintegernullable

        0–999

      • playerstringnullable

        exactly 10 characters

      • ownGoalboolean
    • logobject[]

      at most 60 items

      5 properties
      • atstring · date-time
      • byobject
        2 properties
        • typestring
          admin helper team referee
        • namestring

          at most 120 characters

      • actionstring
        started score result cleared disputed resolved
      • homeintegernullable

        0–999

      • awayintegernullable

        0–999

    • announcedobject
      2 properties
      • startstring · date-timenullable
      • resultstring · date-timenullable
  • eventobjectnullable
    5 properties
    • _idid
    • periodobject
      4 properties
      • fromstring · date-time
      • tostring · date-time
      • statusstring
        available blockedResource blockedCalendar
      • warningstring
        noAvailableExtendedPeriod
    • statisticsobject
      8 properties
      • attendeesinteger

        at least 0

      • teamMembersinteger

        at least 0

      • waitlistedinteger

        at least 0

      • offeredinteger

        at least 0

      • pendinginteger

        at least 0

      • confirmedinteger

        at least 0

      • canceledinteger

        at least 0

      • checkedIninteger

        at least 0

    • infoobject
      1 property
      • titlestring

        1–60 characters

    • offerobject
      1 property
      • modestring
        disabled private protected public
  • loadedAtstring · date-time
Response200
{
  "tournament": {
    "_id": "000000000000000000000001",
    "organization": "000000000000000000000001",
    "mandate": "000000000000000000000001",
    "shortId": "string",
    "name": "string",
    "description": "string",
    "details": "string",
    "image": {
      "resource": "string"
    },
    "color": "",
    "tags": [
      "string"
    ],
    "place": {
      "type": "resource"
    },
    "timezone": "string",
    "days": [
      {
        "date": "string",
        "start": {
          "hours": 0,
          "minutes": 0
        }
      }
    ],
    "period": {
      "from": "2026-06-15T22:30:00Z",
      "to": "2026-06-15T22:30:00Z"
    },
    "participantType": "team",
    "advancement": "automatic",
    "event": "000000000000000000000001",
    "divisions": [
      {
        "id": "string",
        "name": "string",
        "shortName": "string",
        "color": "",
        "rateId": "string",
        "maxTeams": 1,
        "display": "all",
        "fields": [
          "string"
        ],
        "scoring": {
          "mode": "goals",
          "points": {
            "win": 0,
            "draw": 0,
            "loss": 0
          },
          "criteria": [
            "points"
          ],
          "headToHeadGoals": true,
          "sets": {
            "max": 1
          }
        },
        "stages": [
          {
            "id": "string",
            "name": "string",
            "groups": [
              {
                "id": "string",
                "name": "string",
                "slots": [
                  {
                    "source": {
                      "type": "team",
                      "team": null
                    },
                    "team": "000000000000000000000001"
                  }
                ],
                "encounters": 0,
                "roundLimit": 1,
                "pairing": "dfb",
                "matchMinutes": 1,
                "decisions": [
                  {
                    "teams": [
                      "000000000000000000000001"
                    ]
                  }
                ],
                "adjustments": [
                  {
                    "team": "000000000000000000000001",
                    "points": -100,
                    "note": "string"
                  }
                ]
              }
            ],
            "brackets": [
              {
                "id": "string",
                "name": "string"
              }
            ],
            "day": "string",
            "matchMinutes": 1,
            "breakMinutes": 0,
            "pauseMinutes": 0,
            "decisions": [
              {
                "teams": [
                  "000000000000000000000001"
                ]
              }
            ],
            "startedAt": "2026-06-15T22:30:00Z"
          }
        ]
      }
    ],
    "fields": [
      {
        "id": "string",
        "name": "string",
        "shortName": "string",
        "resource": {
          "site": "000000000000000000000001",
          "siteName": "string",
          "resource": "000000000000000000000001",
          "resourceName": "string"
        }
      }
    ],
    "scheduleMode": "alternate",
    "programItems": [
      {
        "id": "string",
        "title": "string",
        "start": "2026-06-15T22:30:00Z",
        "minutes": 1,
        "fields": [
          "string"
        ],
        "public": true
      }
    ],
    "referees": [
      {
        "id": "string",
        "name": "string"
      }
    ],
    "visibility": {
      "teams": true,
      "schedule": true,
      "players": true
    },
    "screen": {
      "parts": [
        "matches"
      ],
      "seconds": 5
    },
    "reporting": {
      "teams": true,
      "referees": true,
      "disputeMinutes": 0
    },
    "helperLinks": [
      {
        "id": "string",
        "token": "string",
        "name": "string",
        "fields": [
          "string"
        ],
        "divisions": [
          "string"
        ],
        "validity": "matchDays",
        "canEditFinished": true,
        "createdAt": "2026-06-15T22:30:00Z",
        "lastUsedAt": "2026-06-15T22:30:00Z",
        "entries": 0
      }
    ],
    "statistics": {
      "teams": 0,
      "matches": 0,
      "scheduled": 0,
      "finished": 0
    },
    "publishedAt": "2026-06-15T22:30:00Z",
    "cancelation": {
      "canceledAt": "2026-06-15T22:30:00Z",
      "canceledBy": {
        "name": "string",
        "type": "user",
        "userId": "string",
        "image": {
          "resource": "string"
        }
      },
      "reason": "string"
    },
    "archivedAt": "2026-06-15T22:30:00Z"
  },
  "teams": [
    {
      "_id": "000000000000000000000001",
      "organization": "000000000000000000000001",
      "mandate": "000000000000000000000001",
      "tournament": "000000000000000000000001",
      "division": "string",
      "name": "string",
      "shortName": "string",
      "color": "",
      "image": {
        "resource": "string"
      },
      "contact": {
        "name": "string",
        "email": "",
        "phone": "",
        "contact": {
          "name": "string",
          "type": "contact",
          "nameNormalized": "string",
          "nameSort": "string",
          "contact": "000000000000000000000001",
          "image": {
            "resource": "string"
          },
          "user": {
            "name": "string",
            "type": "user",
            "userId": "string",
            "image": {
              "resource": "string"
            }
          }
        }
      },
      "attendee": "000000000000000000000001",
      "appTeam": "000000000000000000000001",
      "players": [
        {
          "id": "string",
          "name": "string",
          "number": "string"
        }
      ],
      "position": 0,
      "withdrawnAt": "2026-06-15T22:30:00Z"
    }
  ],
  "matches": [
    {
      "_id": "000000000000000000000001",
      "organization": "000000000000000000000001",
      "mandate": "000000000000000000000001",
      "tournament": "000000000000000000000001",
      "key": "string",
      "division": "string",
      "stage": "string",
      "group": "string",
      "bracket": "string",
      "round": 1,
      "position": 0,
      "kind": "group",
      "kindNumber": 1,
      "name": "string",
      "place": 1,
      "placeTo": 1,
      "home": {
        "source": {
          "type": "team",
          "team": "000000000000000000000001"
        },
        "team": "000000000000000000000001"
      },
      "away": {
        "source": {
          "type": "team",
          "team": "000000000000000000000001"
        },
        "team": "000000000000000000000001"
      },
      "number": 1,
      "field": "string",
      "start": "2026-06-15T22:30:00Z",
      "minutes": 1,
      "locked": true,
      "referee": {
        "team": "000000000000000000000001",
        "referee": "string"
      },
      "live": {
        "home": 0,
        "away": 0,
        "sets": [
          {
            "home": 0,
            "away": 0
          }
        ],
        "startedAt": "2026-06-15T22:30:00Z"
      },
      "result": {
        "home": 0,
        "away": 0,
        "sets": [
          {
            "home": 0,
            "away": 0
          }
        ],
        "extraTime": true,
        "penalties": {
          "home": 0,
          "away": 0
        },
        "decider": "home",
        "rated": true,
        "enteredAt": "2026-06-15T22:30:00Z",
        "enteredBy": {
          "type": "admin",
          "name": "string"
        }
      },
      "dispute": {
        "result": {
          "home": 0,
          "away": 0,
          "sets": [
            {
              "home": 0,
              "away": 0
            }
          ],
          "extraTime": true,
          "penalties": {
            "home": 0,
            "away": 0
          },
          "decider": "home",
          "rated": true,
          "enteredAt": "2026-06-15T22:30:00Z",
          "enteredBy": {
            "type": "admin",
            "name": "string"
          }
        },
        "reportedAt": "2026-06-15T22:30:00Z"
      },
      "goals": [
        {
          "id": "string",
          "side": "home",
          "minute": 0,
          "player": "string",
          "ownGoal": true
        }
      ],
      "log": [
        {
          "at": "2026-06-15T22:30:00Z",
          "by": {
            "type": "admin",
            "name": "string"
          },
          "action": "started",
          "home": 0,
          "away": 0
        }
      ],
      "announced": {
        "start": "2026-06-15T22:30:00Z",
        "result": "2026-06-15T22:30:00Z"
      }
    }
  ],
  "event": {
    "_id": "000000000000000000000001",
    "period": {
      "from": "2026-06-15T22:30:00Z",
      "to": "2026-06-15T22:30:00Z",
      "status": "available"
    },
    "statistics": {
      "attendees": 0,
      "waitlisted": 0,
      "offered": 0,
      "pending": 0,
      "confirmed": 0,
      "canceled": 0,
      "checkedIn": 0
    },
    "info": {
      "title": "string"
    },
    "offer": {
      "mode": "disabled"
    }
  },
  "loadedAt": "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.