Разработчикам
JSON API Akıllı Futbol. Мобильное приложение и интеграции следуют тем же правилам и правам доступа, что и веб-приложение.
Начало работы
Эндпоинты находятся под https://akilli.futbol/api/v1; запросы и ответы в формате JSON.
Весь справочник есть и в виде документа OpenAPI 3.1, который можно загрузить в Postman, Insomnia или генератор клиентов.
Описания и примечания к эндпоинтам берутся прямо из документа OpenAPI, поэтому они на английском.
118 эндпоинтов в 17 разделах.
Аутентификация
Создай аккаунт или войди: отправь имя пользователя и пароль в виде JSON на
POST /api/auth/sign-up/usernameилиPOST /api/auth/sign-in/username.Запрос curl -i -X POST https://akilli.futbol/api/auth/sign-in/username \ -H "content-type: application/json" \ -d '{"username": "deniz", "password": "kale-direği-1905"}'Сохрани подписанный токен из заголовка ответа
set-auth-tokenв надёжном месте на устройстве. Как bearer-токен работает только он:tokenв теле ответа — это необработанный токен сеанса, и он отклоняется.Ответ HTTP/1.1 200 OK set-auth-token: P4cTUK….9e7wV6…= content-type: application/json { "redirect": false, "token": "P4cTUK…", "user": { "id": "0193…", "username": "deniz", "name": "Deniz", … } }Отправляй
Authorization: Bearer <token>с каждым запросом.Запрос curl https://akilli.futbol/api/v1/me \ -H "Authorization: Bearer P4cTUK….9e7wV6…="
В браузере работает и cookie веб-сеанса. Неверный пароль и несуществующее имя пользователя дают одинаковую ошибку (401); заблокированные аккаунты получают 403 BANNED_USER. Число попыток входа ограничено для каждого IP и каждого имени пользователя (429).
Чтобы выйти, отправь POST /api/auth/sign-out; чтобы выйти на всех других устройствах — POST /api/auth/revoke-other-sessions. Тело запроса не нужно ни там, ни там. Сеанс завершается, только если вызов вернул 200, поэтому проверяй статус. Смена пароля через POST /api/auth/change-password завершает все сеансы, включая текущий, и возвращает новый токен в set-auth-token: сохрани его вместо старого.
Формат ответа
Успешные ответы содержат результат в data. Ошибки содержат в error код, понятное сообщение и, где это полезно, коды ошибок по полям (fields).
{
"data": { … }
}{
"error": {
"code": "INVALID",
"message": "Some fields are invalid",
"fields": { "name": "tooShort" }
}
}Коды ошибок
UNAUTHENTICATEDНет сеанса или токен недействителен: войди снова.FORBIDDENУ тебя нет прав на это действие.NOT_FOUNDТакого нет или тебе это не видно.CONFLICTЗапрос противоречит текущему состоянию; причина в fields.INVALIDТело запроса или некоторые поля недействительны; в fields есть код для каждого поля.RATE_LIMITEDСлишком много запросов: подожди немного и попробуй ещё раз.INTERNALНа сервере что-то пошло не так: попробуй позже.
Неизвестный путь под /api/v1 тоже отвечает 404 NOT_FOUND в этом формате; на метод, которого у пути нет, приходит 405 с пустым телом.
Эндпоинты под /api/auth относятся к Better Auth: их ответы приходят без обёртки data, а ошибки содержат code и message.
Аккаунты и сеансы
тег Auth, 9 эндпоинтовWhether new accounts can be made
Сеанс не нужен
The apps hide sign-up while this is false; the sign-up endpoints then answer 403 SIGN_UP_CLOSED.
Показать поляСкрыть поля
data в ответе
openbooleanобязательноfalse during the private beta: only sign-in
Create an account and sign in
Сеанс не нужен
The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>. 403 SIGN_UP_CLOSED during the private beta (GET /api/v1/sign-up says whether sign-up is open). Rate-limited per IP: 20 per 10 minutes (429). 400 INVALID_SIGN_UP with an error code per field inerrors:displayName: displayName;username: username (3–20 characters of a–z, 0–9 and _);password: password (12–128 characters), passwordIsUsername or passwordCommon;adult,privacyNotice,terms: required;form: generic (positions or locale not valid). 400 USERNAME_IS_ALREADY_TAKEN witherrors.username= usernameTaken (reserved names count as taken). 400 VALIDATION_ERROR when a field is missing or has the wrong type. 403 for a sign-up a browser sends from another site.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
displayNamestringобязательно2–40 characters
usernamestringобязательно3–20: a-z, 0-9, _ (stored lower-case)
passwordstringобязательно12–128 characters; not a common password, not built from the username or name
positionsstring[]необязательноЗначения:
"goalkeeper","defender","midfielder","forward"adultbooleanобязательноЗначения:
trueprivacyNoticebooleanобязательноЗначения:
truetermsbooleanобязательноЗначения:
truelocalestringобязательноЗначения:
"tr","en","ru","ar"
Тело ответа
userobjectобязательноidstringобязательноusernamestringобязательно
Sign in
Сеанс не нужен
The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>. 401 INVALID_USERNAME_OR_PASSWORD for any wrong name or password; 403 BANNED_USER; 429 TOO_MANY_ATTEMPTS after repeated wrong passwords for the username, from any address, or 429 without a code past the per-IP limit (3 per 10 seconds).Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
usernamestringобязательноpasswordstringобязательноrememberMebooleanнеобязательно
Тело ответа
redirectbooleanобязательноAlways false
tokenstringобязательноThe raw session token. It is refused as a bearer token: use the set-auth-token header. The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>.userobjectобязательноidstringобязательноusernamestringобязательноLower-case; the profile address, /p/{username}
displayUsernamestringобязательноnamestringобязательноThe display name
emailstringобязательноNot an address: a random placeholder Better Auth needs (accounts have no email). Ignore it
emailVerifiedbooleanобязательноimagestring | nullобязательноrolestring | nullобязательно"admin" or "user"
bannedboolean | nullобязательноbanReasonstring | nullобязательноbanExpiresstring | nullобязательноcreatedAtstringобязательноupdatedAtstringобязательно
Sign in with Apple (and create the account on first use)
Сеанс не нужен
The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>. An Apple ID that already has an account signs in (403 BANNED_USER for a banned one). During the private beta a new Apple ID answers 403 SIGN_UP_CLOSED. Otherwise a new Apple ID answers 409 APPLE_SIGN_UP_REQUIRED withsuggestion: { username, displayName }(from the email Apple shares, or the name; the email is never stored and never signs anyone in) until the call comes back withusername,displayName, andadult,privacyNoticeandtermstrue: then the account is made like sign-up's, with no password. Field errors as sign-up's: 400 INVALID_SIGN_UP witherrors, 400 USERNAME_IS_ALREADY_TAKEN. 401 INVALID_APPLE_TOKEN when the token does not verify (signature, issuer, audience, expiry or nonce); 503 APPLE_UNAVAILABLE when Apple's keys cannot be fetched. Rate-limited per IP: 30 per 10 minutes.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
identityTokenstringобязательноThe identity token from Sign in with Apple on the device
noncestringобязательноThe raw nonce the app made for this request; the token carries its SHA-256 hex
authorizationCodestringнеобязательноLets the server revoke Apple's tokens when the account is deleted
givenNamestringнеобязательноApple shares the name on the first authorization only: pass it on
familyNamestringнеобязательноusernamestringнеобязательноFor a new account: 3–20 a-z, 0-9, _ (start from suggestion.username)
displayNamestringнеобязательноFor a new account: 2–40 characters (start from suggestion.displayName)
positionsstring[]необязательноЗначения:
"goalkeeper","defender","midfielder","forward"adultbooleanнеобязательноFor a new account: true
privacyNoticebooleanнеобязательноFor a new account: true
termsbooleanнеобязательноFor a new account: true
localestringобязательноЗначения:
"tr","en","ru","ar"
Тело ответа
userobjectобязательноidstringобязательноusernamestringобязательно
createdbooleanобязательноtrue when this call made the account
Check whether a username is free
Сеанс не нужен
What the sign-up form asks as you type. Reserved names (staff words, the brand, app routes such as destek or developers) and names in use answer
available: false, as sign-up would refuse them. 422 USERNAME_TOO_SHORT, USERNAME_TOO_LONG or INVALID_USERNAME (3–20 characters of a–z, 0–9 and _). Rate-limited per IP: 30 per minute (429).Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
usernamestringобязательноAs typed: it is checked after the same normalising as sign-up (Turkish letters folded, lower-cased)
Тело ответа
availablebooleanобязательно
Sign out (ends this session)
Нужен сеанс
The session ends only when this answers 200
{ success: true }; after any other answer the token may still work. Forget the stored token either way.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
Полей нет.
Тело ответа
successbooleanобязательно
The current session and user
Нужен сеанс
Answers 200 with
null, not 401, when there is no valid session.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело ответа
sessionobjectобязательноidstringобязательноuserIdstringобязательноtokenstringобязательноThe raw session token. It is refused as a bearer token: use the set-auth-token header. The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>.expiresAtstringобязательноISO 8601. A session lasts 7 days and is extended, at most once a day, while it is used
createdAtstringобязательноupdatedAtstringобязательноipAddressstring | nullобязательноuserAgentstring | nullобязательноimpersonatedBystring | nullобязательно
userobjectобязательноidstringобязательноusernamestringобязательноLower-case; the profile address, /p/{username}
displayUsernamestringобязательноnamestringобязательноThe display name
emailstringобязательноNot an address: a random placeholder Better Auth needs (accounts have no email). Ignore it
emailVerifiedbooleanобязательноimagestring | nullобязательноrolestring | nullобязательно"admin" or "user"
bannedboolean | nullобязательноbanReasonstring | nullобязательноbanExpiresstring | nullобязательноcreatedAtstringобязательноupdatedAtstringобязательно
Change the password
Нужен сеанс
Signs every session out, this one included, and starts a new one: replace the stored token with the new
set-auth-tokenresponse header (a browser gets a new cookie). Every other device has to sign in again. ArevokeOtherSessionsfield is ignored. 400 INVALID_PASSWORD (the current password is wrong), PASSWORD_TOO_SHORT, PASSWORD_TOO_LONG, PASSWORD_IS_USERNAME or PASSWORD_TOO_COMMON (a common word or a password built from the username or name); 401 without a valid session.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
currentPasswordstringобязательноnewPasswordstringобязательно12–128 characters; not the username, nothing common or built from the username or name
Тело ответа
tokenstringобязательноThe raw session token. It is refused as a bearer token: use the set-auth-token header. The signed session token is in the
set-auth-tokenresponse header: keep it and send it asAuthorization: Bearer <token>.userobjectобязательноidstringобязательноusernamestringобязательноLower-case; the profile address, /p/{username}
displayUsernamestringобязательноnamestringобязательноThe display name
emailstringобязательноNot an address: a random placeholder Better Auth needs (accounts have no email). Ignore it
emailVerifiedbooleanобязательноimagestring | nullобязательноrolestring | nullобязательно"admin" or "user"
bannedboolean | nullобязательноbanReasonstring | nullобязательноbanExpiresstring | nullобязательноcreatedAtstringобязательноupdatedAtstringобязательно
Sign out every other device
Нужен сеанс
This device stays signed in. The other sessions end only when this answers 200
{ status: true }; after any other answer they may still work, so try again.Эндпоинт Better Auth: ответ приходит без обёртки data.
Показать поляСкрыть поля
Тело запроса
Полей нет.
Тело ответа
statusbooleanобязательно
Твой аккаунт
тег Me, 10 эндпоинтов- GET
/api/ v1/ me Your profile settings
Нужен сеанс
Показать поляСкрыть поля
data в ответе
idstringобязательноThe player id
userIdstringобязательноusernamestringобязательноFixed: the profile address, /p/{username}
handlestringобязательноdisplayNamestringобязательноpositionsstring[]обязательноЗначения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноYour profile photo (PUT /api/v1/me/photo), or null
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
visibilitystringобязательноWho sees your stats, teams and match history. public: everyone; teammates: people who share a team with you or a match you took part in; private: nobody else
Значения:
"public","teammates","private"rolestring | nullобязательно"admin" or "user"
activeSessionsintegerобязательноSigned-in devices, this one included
appleLinkedbooleanобязательноSign in with Apple opens this account (POST/DELETE /api/v1/me/apple)
hasPasswordbooleanобязательноThe account has a password; an account made with Sign in with Apple has none
- PATCH
/api/ v1/ me Change your display name, positions or visibility
Нужен сеанс
422 INVALID with
fields.displayName= required | tooShort | tooLong | invalid, orfields.username= immutable when a different username is sent (the username never changes). Change the password at /api/auth/change-password; sign out other devices at /api/auth/revoke-other-sessions.Показать поляСкрыть поля
Тело запроса
displayNamestringнеобязательноне меньше 1 символов
positionsstring[]необязательноЗначения:
"goalkeeper","defender","midfielder","forward"visibilitystringнеобязательноЗначения:
"public","teammates","private"
data в ответе
idstringобязательноThe player id
userIdstringобязательноusernamestringобязательноFixed: the profile address, /p/{username}
handlestringобязательноdisplayNamestringобязательноpositionsstring[]обязательноЗначения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноYour profile photo (PUT /api/v1/me/photo), or null
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
visibilitystringобязательноWho sees your stats, teams and match history. public: everyone; teammates: people who share a team with you or a match you took part in; private: nobody else
Значения:
"public","teammates","private"rolestring | nullобязательно"admin" or "user"
activeSessionsintegerобязательноSigned-in devices, this one included
appleLinkedbooleanобязательноSign in with Apple opens this account (POST/DELETE /api/v1/me/apple)
hasPasswordbooleanобязательноThe account has a password; an account made with Sign in with Apple has none
- DELETE
/api/ v1/ me Delete your account
Нужен сеанс
Signs out everywhere and deletes the login (password, Sign in with Apple, whose tokens are revoked), push devices, the photo and team memberships; the username is free again. Matches you played keep their scores and stats under the name "Silinmiş oyuncu" (Deleted player), with no profile. A team you captain passes to a co-captain or the longest-standing member; a team left empty is archived. Answers to coming matches become "no" and pending booking requests are withdrawn. Forget the stored token afterwards. 422
fields.confirm= mismatch.Показать поляСкрыть поля
Тело запроса
confirmstringобязательноYour username, as a confirmation (any case)
data в ответе
deletedbooleanобязательноЗначения:
true
- POST
/api/ v1/ me/ apple Link Sign in with Apple to your account
Нужен сеанс
From then on Sign in with Apple (POST /api/auth/sign-in/apple) opens this account. The email Apple may share is not stored. 401 UNAUTHENTICATED with
fields.identityToken= invalid for a token that does not verify; 409 CONFLICT withfields.form= appleTaken (the Apple ID belongs to another account) or appleLinked (another Apple ID is linked).Показать поляСкрыть поля
Тело запроса
identityTokenstringобязательноThe identity token from Sign in with Apple on the device
noncestringобязательноThe raw nonce the app made for this request; the token carries its SHA-256 hex
authorizationCodestringнеобязательноLets the server revoke Apple's tokens when the account is deleted
data в ответе
linkedbooleanобязательноЗначения:
true
- DELETE
/api/ v1/ me/ apple Unlink Sign in with Apple
Нужен сеанс
Apple's tokens are revoked. 409 CONFLICT with
fields.form= lastSignInMethod when the account has no password (Apple is its only way in).Показать поляСкрыть поля
data в ответе
linkedbooleanобязательноЗначения:
false
Register this phone for pushes
Нужен сеанс
Send the APNs device token after sign-in and whenever iOS hands out a new one. The same token registered again refreshes it; signed in to another account on the phone, it moves to that account. Pushes so far: a match invitation (when you or one of your teams is invited), payload
{ "aps": { "alert": { "title", "body" }, "sound": "default", "category": "MATCH_INVITE", "thread-id": "match-<matchId>" }, "type": "matchInvite", "matchId", "teamName"? }, written inlocale. The app's MATCH_INVITE category carries the buttons RSVP_YES, RSVP_MAYBE and RSVP_NO; answer with POST /api/v1/matches/{id}/rsvp. A person keeps their 10 most recently seen devices. 422fields.token= invalid (not hex),fields.bundleId= unknown (not the Akıllı Futbol app). 429 after 30 registrations an hour.Показать поляСкрыть поля
Тело запроса
tokenstringобязательноThe APNs device token as hex (64 characters today)
platformstringобязательноЗначения:
"ios"environmentstringобязательноsandbox for development builds (Xcode), production for TestFlight and the App Store
Значения:
"sandbox","production"bundleIdstringобязательноThe app's bundle identifier
1–200 символов
localestringобязательноThe language pushes are written in
Значения:
"tr","en","ru","ar"
data в ответе
idstringобязательноThe device id
tokenstringобязательноThe token as stored: lower-case hex
Stop pushes to one of your devices
Нужен сеанс
Call it at sign-out, before the session ends. Another person's token is left alone.
Показать поляСкрыть поля
Параметры пути
tokenstringобязательно
data в ответе
removedbooleanобязательноFalse when the token was not registered to you
Your profile photo
Нужен сеанс
Показать поляСкрыть поля
data в ответе
photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Upload or replace your profile photo
Нужен сеанс
Send the photo as the body (
Content-Type: image/jpeg,image/pngorimage/webp), or asmultipart/form-datawith the file in thephotofield. Up to 10 MB, at least 256 px on its shorter side. The server turns it upright by its EXIF orientation, cuts the largest centred square (crop it yourself first to choose), and stores WebP copies without any metadata: location, camera and time are dropped. The photo is seen by whoever may see your stats (your visibility), and never used to recognise anyone in match videos. 422 INVALID withfields.file= required | type | tooBig | dimensions.Показать поляСкрыть поля
data в ответе
photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
- DELETE
/api/ v1/ me/ photo Remove your profile photo
Нужен сеанс
Your initials show again. Fine without a photo.
Показать поляСкрыть поля
data в ответе
photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Команды
тег Teams, 9 эндпоинтовTeams the caller plays for (archived teams left out)
Нужен сеанс
Показать поляСкрыть поля
data в ответе
Тип:
object[]Поля каждого элемента:
idstring (uuid)обязательноslugstringобязательноURL slug, e.g. kartallar-7k2m
namestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb, lower-case
kitAwayHexstring | nullобязательно#rrggbb, lower-case
crestobject | nullобязательноCustom crest, or null to use the team name and kit colours
shapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
rolestringобязательноThe caller's role in the team
Значения:
"captain","co_captain","member"memberCountintegerобязательно
- POST
/api/ v1/ teams Start a team. The caller becomes captain and a 6-letter invite code is issued. Name and city are stored NFKC-normalised with single spaces. An optional crest has a shape, two distinct #rrggbb colours, one Unicode letter, a pattern (default plain) and a detail (default none). Field errors: name required/tooShort/tooLong/invalid (hidden or text-direction characters)/staffWord (reads as staff: “Akıllı Futbol”, “Admin”, “Destek”…), city tooLong/invalid, kitHomeHex required/invalid, kitAwayHex invalid/sameAsHome, crest.shape/primary/secondary/letter/pattern/detail invalid (equal colours: crest.secondary=differentColour).
Нужен сеанс
Показать поляСкрыть поля
Тело запроса
namestringобязательно2–40 символов
citystring | nullнеобязательноне больше 60 символов
kitHomeHexstringобязательноkitAwayHexstring | nullнеобязательноcrestobject | nullнеобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
data в ответе
idstring (uuid)обязательноslugstringобязательноnamestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb, lower-case
kitAwayHexstring | nullобязательно#rrggbb, lower-case
crestobject | nullобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
archivedAtstring (date-time) | nullобязательноcreatedAtstring (date-time)обязательноmemberCountintegerобязательноviewerobjectобязательноrolestring | nullобязательноNull for an admin who is not a member
Значения:
"captain","co_captain","member"canEditbooleanобязательноcanRotateCodebooleanобязательноcanArchivebooleanобязательноmustHandOverbooleanобязательноThe caller is the last captain: leaving needs a new captain first
onlyMemberbooleanобязательноLeaving would archive the team
codestring | nullобязательноThe live 6-letter invite code; null once archived
inviteUrlstring (uri) | nullобязательноThe link to share (a short /j/<code> link that opens the join page)
membersobject[]обязательноCaptains first, then co-captains, then players
playerIdstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"positionsstring[]обязательноFollows the member's visibility, as on their profile: empty when it is private, unless it is your own or you are an admin
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноFollows the member's visibility, like the positions
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
rolestringобязательноЗначения:
"captain","co_captain","member"numberinteger | nullобязательноjoinedAtstring (date-time)обязательноisViewerbooleanобязательноcanobjectобязательноrolesstring[]обязательноRoles the caller may give this member
Значения:
"captain","co_captain","member"removebooleanобязательно
matchesobjectобязательноUp to 5 each
upcomingobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
recentobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
A team: roster, the caller's permissions, the invite code and matches. 404 unless the caller is a member or an admin.
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
slugstringобязательно
data в ответе
idstring (uuid)обязательноslugstringобязательноnamestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb, lower-case
kitAwayHexstring | nullобязательно#rrggbb, lower-case
crestobject | nullобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
archivedAtstring (date-time) | nullобязательноcreatedAtstring (date-time)обязательноmemberCountintegerобязательноviewerobjectобязательноrolestring | nullобязательноNull for an admin who is not a member
Значения:
"captain","co_captain","member"canEditbooleanобязательноcanRotateCodebooleanобязательноcanArchivebooleanобязательноmustHandOverbooleanобязательноThe caller is the last captain: leaving needs a new captain first
onlyMemberbooleanобязательноLeaving would archive the team
codestring | nullобязательноThe live 6-letter invite code; null once archived
inviteUrlstring (uri) | nullобязательноThe link to share (a short /j/<code> link that opens the join page)
membersobject[]обязательноCaptains first, then co-captains, then players
playerIdstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"positionsstring[]обязательноFollows the member's visibility, as on their profile: empty when it is private, unless it is your own or you are an admin
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноFollows the member's visibility, like the positions
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
rolestringобязательноЗначения:
"captain","co_captain","member"numberinteger | nullобязательноjoinedAtstring (date-time)обязательноisViewerbooleanобязательноcanobjectобязательноrolesstring[]обязательноRoles the caller may give this member
Значения:
"captain","co_captain","member"removebooleanобязательно
matchesobjectобязательноUp to 5 each
upcomingobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
recentobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
- PATCH
/api/ v1/ teams/ {slug} Edit name, city, kits and crest (captains and co-captains). Only the top-level fields sent change; send the whole crest to replace it. Null clears city, kitAwayHex or crest. A crest has a shape, two distinct #rrggbb colours, one Unicode letter, a pattern (default plain) and a detail (default none). Crest errors use crest.shape/primary/secondary/letter/pattern/detail; equal colours give crest.secondary=differentColour. The slug never changes.
Нужен сеанс
403 fields.form=managersOnly for members who are not captains or co-captains; 409 fields.form=archived once the team is archived.
Показать поляСкрыть поля
Параметры пути
slugstringобязательно
Тело запроса
namestringнеобязательно2–40 символов
citystring | nullнеобязательноне больше 60 символов
kitHomeHexstringнеобязательноkitAwayHexstring | nullнеобязательноcrestobject | nullнеобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
data в ответе
idstring (uuid)обязательноslugstringобязательноnamestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb, lower-case
kitAwayHexstring | nullобязательно#rrggbb, lower-case
crestobject | nullобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
archivedAtstring (date-time) | nullобязательноcreatedAtstring (date-time)обязательноmemberCountintegerобязательноviewerobjectобязательноrolestring | nullобязательноNull for an admin who is not a member
Значения:
"captain","co_captain","member"canEditbooleanобязательноcanRotateCodebooleanобязательноcanArchivebooleanобязательноmustHandOverbooleanобязательноThe caller is the last captain: leaving needs a new captain first
onlyMemberbooleanобязательноLeaving would archive the team
codestring | nullобязательноThe live 6-letter invite code; null once archived
inviteUrlstring (uri) | nullобязательноThe link to share (a short /j/<code> link that opens the join page)
membersobject[]обязательноCaptains first, then co-captains, then players
playerIdstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"positionsstring[]обязательноFollows the member's visibility, as on their profile: empty when it is private, unless it is your own or you are an admin
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноFollows the member's visibility, like the positions
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
rolestringобязательноЗначения:
"captain","co_captain","member"numberinteger | nullобязательноjoinedAtstring (date-time)обязательноisViewerbooleanобязательноcanobjectобязательноrolesstring[]обязательноRoles the caller may give this member
Значения:
"captain","co_captain","member"removebooleanобязательно
matchesobjectобязательноUp to 5 each
upcomingobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
recentobject[]обязательноidstring (uuid)обязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"titlestring | nullобязательноvenueobject | nullобязательноnamestringобязательноverifiedbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноoursbooleanобязательноThis team plays on this side
Replace the invite code (captains and co-captains); the old code stops working at once
Нужен сеанс
403 fields.form=managersOnly for members who are not captains or co-captains; 409 fields.form=archived once the team is archived.
Показать поляСкрыть поля
Параметры пути
slugstringобязательно
data в ответе
codestringобязательноinviteUrlstring (uri)обязательно
Change a member's role. Captains and co-captains manage players and co-captains; only captains make or change captains (403 fields.form=captainOnly). The last captain cannot step down (409 fields.form=lastCaptain). A player who is not (or no longer) on the team: 404 fields.form=memberGone.
Нужен сеанс
403 fields.form=managersOnly for members who are not captains or co-captains; 409 fields.form=archived once the team is archived.
Показать поляСкрыть поля
Параметры пути
slugstringобязательноplayerIdstringобязательно
Тело запроса
rolestringобязательноЗначения:
"captain","co_captain","member"
data в ответе
playerIdstring (uuid)обязательноrolestringобязательноЗначения:
"captain","co_captain","member"
Remove a member (same rules as roles; 404 fields.form=memberGone when they are not on the team). Removing yourself is leaving.
Нужен сеанс
403 fields.form=managersOnly for members who are not captains or co-captains; 409 fields.form=archived once the team is archived.
Показать поляСкрыть поля
Параметры пути
slugstringобязательноplayerIdstringобязательно
data в ответе
archivedbooleanобязательно
Leave the team. The last captain must make someone else captain first (409 fields.form=handOver); the last member leaving archives the team.
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
slugstringобязательно
data в ответе
archivedbooleanобязательноThe team is archived after this
Archive the team (captains only): it leaves everyone's list and its code stops working; matches and stats stay
Нужен сеанс
403 fields.form=captainOnly for co-captains and players.
Показать поляСкрыть поля
Параметры пути
slugstringобязательно
data в ответе
archivedAtstring (date-time)обязательно
Коды приглашения
тег Invites, 2 эндпоинтаWhat a six-letter code opens: a team or a match
Сеанс не нужен
Codes are case-insensitive; dashes and spaces are ignored. Signed out, the preview has counts but no names. The code a match had when it was cancelled, and the code a team had when it was closed, keep opening the preview (
state: cancelled,archived: true) so the link explains itself; codes replaced before that arerevoked. 404 NOT_FOUND withfields.code:invalid(not six code letters),unknownorrevoked(replaced by a newer code). 429 RATE_LIMITED after 20 wrong codes in 15 minutes (per account; signed out, per address, or in one count shared by every caller whose address cannot be trusted); malformed codes are not counted.Показать поляСкрыть поля
Параметры пути
codestringобязательно
data в ответе
kindstringобязательноЗначения:
"team","match"codestringобязательноThe canonical code: six capital letters
teamobjectнеобязательноidstringобязательноslugstringобязательноnamestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb
kitAwayHexstring | nullобязательноmemberCountintegerобязательноcaptainobject | nullобязательноNull when signed out
idstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
archivedbooleanобязательноClosed teams take no new members
viewerobjectобязательноsignedInbooleanобязательноmemberbooleanобязательноrolestring | nullобязательноЗначения:
"captain","co_captain","member"canJoinbooleanобязательно
matchobjectнеобязательноidstringобязательноkindstringобязательноЗначения:
"fixture","pickup"statusstringобязательноЗначения:
"planned","played","cancelled"statestringобязательноAnswers are taken while open: not cancelled, not played and no score in yet. Kick-off does not close a match, so people can still join one they played.
Значения:
"open","cancelled","finished"titlestring | nullобязательноstartsAtstringобязательноISO 8601
durationMinintegerобязательноvenueobject | nullобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательно
pitchobject | nullобязательноnamestringобязательноindoorbooleanобязательно
sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательноteamobject | nullобязательноslugstringобязательноnamestringобязательно
comingobjectобязательноYes answers per side (none: no side yet) and the number of maybes
AintegerобязательноBintegerобязательноnoneintegerобязательноtotalintegerобязательноmaybeintegerобязательно
playersobject[]обязательноWho said yes or maybe; empty when signed out
idstringобязательноdisplayNamestringобязательноsidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"yes","maybe"youbooleanобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
organizerobject | nullобязательноNull when signed out
displayNamestringобязательно
Use a code: join the team, or answer the match invitation
Нужен сеанс
A team code makes you a member (again is a no-op:
alreadyMember); closed teams answer 409 withfields.team = archived. A match code records your answer and puts you on your team's side; cancelled matches and matches with a score answer 409 withfields.match = cancelled | finished. 404 NOT_FOUND withfields.code:invalid(not six code letters),unknownorrevoked(replaced by a newer code). 429 RATE_LIMITED after 20 wrong codes in 15 minutes (per account; signed out, per address, or in one count shared by every caller whose address cannot be trusted); malformed codes are not counted.Показать поляСкрыть поля
Параметры пути
codestringобязательно
Тело запроса
rsvpstringнеобязательноMatch codes only; defaults to yes. Ignored for team codes.
Значения:
"yes","maybe","no"
data в ответе
kindstringобязательноЗначения:
"team","match"teamobjectнеобязательноidstringобязательноslugstringобязательноnamestringобязательно
rolestringнеобязательноЗначения:
"captain","co_captain","member"alreadyMemberbooleanнеобязательноmatchobjectнеобязательноidstringобязательно
participantobjectнеобязательноrsvpstringобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноThe side of the person's team, when they are in one
Значения:
"A","B"respondedAtstring | nullобязательно
Матчи
тег Matches, 11 эндпоинтовMy matches: upcoming (soonest first) and past (latest first)
Нужен сеанс
At most 60 upcoming matches and the 40 latest past ones, with no further pages yet.
Показать поляСкрыть поля
data в ответе
upcomingobject[]обязательноidstringобязательноtitlestring | nullобязательноkindstringобязательноЗначения:
"pickup","fixture"statusstringобязательноЗначения:
"planned","played","cancelled"startsAtstringобязательноISO 8601 (UTC)
durationMinnumberобязательноscoreStatestringобязательноЗначения:
"none","entered","confirmed"venueobject | nullобязательноnamestringобязательноdistrictstring | nullобязательноcitystring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноlatitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноnamestringобязательно
sidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
comingnumberобязательноHow many said "yes"
meobjectобязательноrsvpstring | nullобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноЗначения:
"A","B"isOrganizerbooleanобязательно
canRespondbooleanобязательно
pastobject[]обязательноidstringобязательноtitlestring | nullобязательноkindstringобязательноЗначения:
"pickup","fixture"statusstringобязательноЗначения:
"planned","played","cancelled"startsAtstringобязательноISO 8601 (UTC)
durationMinnumberобязательноscoreStatestringобязательноЗначения:
"none","entered","confirmed"venueobject | nullобязательноnamestringобязательноdistrictstring | nullобязательноcitystring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноlatitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноnamestringобязательно
sidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
comingnumberобязательноHow many said "yes"
meobjectобязательноrsvpstring | nullобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноЗначения:
"A","B"isOrganizerbooleanобязательно
canRespondbooleanобязательно
- POST
/api/ v1/ matches Create a match
Нужен сеанс
You come ("yes") on side A, or on B when you belong to side B's team only. Teams playing a side and invited teams get every member invited, on their team's side. Set
alreadyPlayed: trueto record a past match; it stays planned with no score or attendance until PUT /api/v1/matches/{id}/score saves them and changes its status to played. The squad can still be completed and invited players can answer before that. 422fieldscodes:required,invalid(also hidden or text-direction characters in the title, a side's label or the notes),staffWord(the title or a side's label reads as staff: “Akıllı Futbol”, “Admin”, “Destek”…),tooLong,notMember(a team you are not in),sameTeam,noOfficialCamera;dateorstartsAt=notEndedwhen an already-played match has not finished;reservationId=invalid(not your confirmed booking, or combined with alreadyPlayed),unavailable(it has a match, or its time passed) ormismatch(the venue, pitch, start or length you sent differ). 429fields.form = tooManyMatches: 20 new matches a day per person.Показать поляСкрыть поля
Тело запроса
titlestring | nullнеобязательноUp to 60 characters
kindstringнеобязательноpickup (default): sides picked among friends; fixture: two teams
Значения:
"pickup","fixture"datestringнеобязательноKick-off date on an Istanbul clock, YYYY-MM-DD (with
time)timestringнеобязательноKick-off on an Istanbul clock, HH:MM (with
date)startsAtstringнеобязательноInstead of date + time: an ISO 8601 instant with an offset
durationMinnumberнеобязательноDefault 60
Значения:
60,90,120venueIdstring | nullнеобязательноpitchIdstring | nullнеобязательноA pitch of the venue (sets the venue when venueId is left out)
recordingstringнеобязательноofficial only on a pitch with an official camera
Значения:
"upload","official"sidesobjectнеобязательноDefault labels "Turuncular" and "Maviler"
Aobjectобязательноlabelstringобязательно1–30 characters, e.g. "Turuncular"
teamIdstring | nullнеобязательноOne of your teams playing this side; its members are invited on this side
bibHexstring | nullнеобязательноThe bib colour as #rrggbb, or null for no bibs
Bobjectобязательноlabelstringобязательно1–30 characters, e.g. "Turuncular"
teamIdstring | nullнеобязательноOne of your teams playing this side; its members are invited on this side
bibHexstring | nullнеобязательноThe bib colour as #rrggbb, or null for no bibs
invitedTeamIdsstring[]необязательноYour teams whose members all get an invitation
notesstring | nullнеобязательноUp to 500 characters
alreadyPlayedbooleanнеобязательноDefault false. True requires kick-off plus duration to have passed. The match stays planned until score and attendance are saved separately. Cannot be combined with reservationId.
reservationIdstringнеобязательноOne of your confirmed bookings (GET /api/v1/reservations) that has no match yet: the match takes its venue, pitch, start and length and is linked to it (ADR-005)
data в ответе
idstringобязательноcodestringобязательноinviteUrlstring (uri)обязательноThe link to share for the code, as for teams: a short /j/<code> link that opens the join page.
A match with its sides, people, place and code
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstringобязательноtitlestring | nullобязательноkindstringобязательноЗначения:
"pickup","fixture"statusstringобязательноЗначения:
"planned","played","cancelled"startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноrecordingstringобязательноЗначения:
"upload","official"scoreStatestringобязательноЗначения:
"none","entered","confirmed"notesstring | nullобязательноcancelledAtstring | nullобязательноorganizerobjectобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательно
venueobject | nullобязательноidstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноslugstring | nullобязательноThe venue's public booking page is /venues/<slug> while its pitch admin login is on; null otherwise
latitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноidstringобязательноnamestringобязательноindoorbooleanобязательноofficialCamerabooleanобязательно
cameraobject | nullобязательноSet when the match waits for the pitch's official camera
idstringобязательноlabelstringобязательноofficialbooleanобязательно
sidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
participantsobject[]обязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"respondedAtstring | nullобязательноattendedbooleanобязательноisOrganizerbooleanобязательноpositionsstring[]обязательноWhere the person likes to play, as on their profile; empty when they gave none or their visibility hides it from you, and for guests
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
teamsobject[]обязательноteamIdstringобязательноnamestringобязательноsidestring | nullобязательноЗначения:
"A","B"membersnumberобязательно
codestring | nullобязательноThe live 6-letter join code; null once the match is cancelled
inviteUrlstring (uri) | nullобязательноThe link to share for the code, as for teams: a short /j/<code> link that opens the join page. Null with the code
hasVideobooleanобязательноkickedOffbooleanобязательноendedbooleanобязательноKick-off plus the duration has passed
viewerobjectобязательноplayerIdstringобязательноYour player id, to find yourself in participants
canManagebooleanобязательноisOrganizerbooleanобязательноisAdminbooleanобязательноrsvpstring | nullобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноЗначения:
"A","B"canRespondbooleanобязательно
- PATCH
/api/ v1/ matches/ {id} Change a match (managers)
Нужен сеанс
Answers are kept. A team newly set on a side gets its members invited there, and a team moved to the other side takes its people along. Once the score is in, the details can still be corrected but a side's team cannot change (409
fields.form = scored). A match with a booking at its venue moves the booking with it: 409fields.form = bookingSlotTakenwhen the new time or pitch is not free on the venue's grid,bookingVenuewhen the match would leave the booking's venue (cancel the booking first). Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
titlestring | nullнеобязательноUp to 60 characters
kindstringнеобязательноpickup (default): sides picked among friends; fixture: two teams
Значения:
"pickup","fixture"datestringнеобязательноKick-off date on an Istanbul clock, YYYY-MM-DD (with
time)timestringнеобязательноKick-off on an Istanbul clock, HH:MM (with
date)startsAtstringнеобязательноInstead of date + time: an ISO 8601 instant with an offset
durationMinnumberнеобязательноDefault 60
Значения:
60,90,120venueIdstring | nullнеобязательноpitchIdstring | nullнеобязательноA pitch of the venue (sets the venue when venueId is left out)
recordingstringнеобязательноofficial only on a pitch with an official camera
Значения:
"upload","official"notesstring | nullнеобязательноUp to 500 characters
sidesobjectнеобязательноOnly the fields you send change; a newly set team gets its members invited
Aobjectнеобязательноlabelstringнеобязательно1–30 characters, e.g. "Turuncular"
teamIdstring | nullнеобязательноOne of your teams playing this side; its members are invited on this side
bibHexstring | nullнеобязательноThe bib colour as #rrggbb, or null for no bibs
Bobjectнеобязательноlabelstringнеобязательно1–30 characters, e.g. "Turuncular"
teamIdstring | nullнеобязательноOne of your teams playing this side; its members are invited on this side
bibHexstring | nullнеобязательноThe bib colour as #rrggbb, or null for no bibs
data в ответе
idstringобязательноtitlestring | nullобязательноkindstringобязательноЗначения:
"pickup","fixture"statusstringобязательноЗначения:
"planned","played","cancelled"startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноrecordingstringобязательноЗначения:
"upload","official"scoreStatestringобязательноЗначения:
"none","entered","confirmed"notesstring | nullобязательноcancelledAtstring | nullобязательноorganizerobjectобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательно
venueobject | nullобязательноidstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноslugstring | nullобязательноThe venue's public booking page is /venues/<slug> while its pitch admin login is on; null otherwise
latitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноidstringобязательноnamestringобязательноindoorbooleanобязательноofficialCamerabooleanобязательно
cameraobject | nullобязательноSet when the match waits for the pitch's official camera
idstringобязательноlabelstringобязательноofficialbooleanобязательно
sidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
bibHexstring | nullобязательноteamIdstring | nullобязательноteamNamestring | nullобязательно
participantsobject[]обязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"respondedAtstring | nullобязательноattendedbooleanобязательноisOrganizerbooleanобязательноpositionsstring[]обязательноWhere the person likes to play, as on their profile; empty when they gave none or their visibility hides it from you, and for guests
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
teamsobject[]обязательноteamIdstringобязательноnamestringобязательноsidestring | nullобязательноЗначения:
"A","B"membersnumberобязательно
codestring | nullобязательноThe live 6-letter join code; null once the match is cancelled
inviteUrlstring (uri) | nullобязательноThe link to share for the code, as for teams: a short /j/<code> link that opens the join page. Null with the code
hasVideobooleanобязательноkickedOffbooleanобязательноendedbooleanобязательноKick-off plus the duration has passed
viewerobjectобязательноplayerIdstringобязательноYour player id, to find yourself in participants
canManagebooleanобязательноisOrganizerbooleanобязательноisAdminbooleanобязательноrsvpstring | nullобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноЗначения:
"A","B"canRespondbooleanобязательно
Cancel a match (managers)
Нужен сеанс
The code stops working, and the bookings linked to the match that have not started are cancelled with it (their answer reads
@matchCancelled). 409fields.form = scoredonce the score is in. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstringобязательноstatusstringобязательноЗначения:
"cancelled"
Renew the match's join code (managers)
Нужен сеанс
The old code stops working at once; share the new one again. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409
fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
codestringобязательно6 letters A–Z without I and O
inviteUrlstring (uri)обязательноThe link to share for the code, as for teams: a short /j/<code> link that opens the join page.
Answer an invitation
Нужен сеанс
For invited people and members of invited teams (who join on their team's side). 409
fields.form=cancelledorscored. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
answerstringобязательноЗначения:
"yes","maybe","no"
data в ответе
rsvpstringобязательноЗначения:
"invited","yes","maybe","no"sidestring | nullобязательноЗначения:
"A","B"
Invite one of your teams (managers)
Нужен сеанс
Every member not yet in the match is invited. A team playing a side is invited on that side (422
fields.side = teamPlaysSidefor the other one); otherwise members without a side, or still on the team's earlier side, takeside. 422fields.teamId = notMemberfor a team you are not in. Once the score is in, who played and on which side is changed with the score: 409fields.form = scored. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
teamIdstringобязательноsidestring | nullнеобязательноЗначения:
"A","B"
data в ответе
invitednumberобязательноmembersnumberобязательно
Invite a person by username, or add a guest by name (managers)
Нужен сеанс
A guest is a player without an account, counted as coming; the name follows the same rules as a display name (422
fields.guestName=required,tooShort,tooLongorinvalid). 422fields.username = notFound; 409fields.username = already. Once the score is in, who played and on which side is changed with the score: 409fields.form = scored. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
usernamestringнеобязательноsidestring | nullнеобязательноЗначения:
"A","B"guestNamestringнеобязательно2–40 characters
data в ответе
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"respondedAtstring | nullобязательноattendedbooleanобязательноisOrganizerbooleanобязательноpositionsstring[]обязательноWhere the person likes to play, as on their profile; empty when they gave none or their visibility hides it from you, and for guests
Значения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Move a player to a side, or answer for a guest (managers)
Нужен сеанс
403 when
rsvpis sent for a registered player (people answer for themselves); 422fields.rsvp = invalidfor any other value. Once the score is in, who played and on which side is changed with the score: 409fields.form = scored. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательноplayerIdstringобязательно
Тело запроса
sidestring | nullнеобязательноЗначения:
"A","B"rsvpstringнеобязательноGuests only
Значения:
"yes","maybe","no"
data в ответе
playerIdstringобязательноsidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"
Take a player off the match (managers)
Нужен сеанс
409
fields.form=organizer(the organiser stays). Once the score is in, who played and on which side is changed with the score: 409fields.form = scored. Errors: 401 signed out; 404 the match does not exist or you are not part of it; 403 you may see it but not change it (organiser, side captains and admins manage); 409fields.form = cancelledonce cancelled; 422 withfields.Показать поляСкрыть поля
Параметры пути
idstringобязательноplayerIdstringобязательно
data в ответе
playerIdstringобязательноremovedbooleanобязательноЗначения:
true
Спорткомплексы
тег Venues, 6 эндпоинтовSearch venues
Нужен сеанс
Verified venues first, then by name; at most 12. An empty
qlists venues the same way.Показать поляСкрыть поля
Параметры запроса
qstringнеобязательноWords that must all appear in the name, district or city; Turkish letters optional ("kadikoy" finds "Kadıköy")
data в ответе
Тип:
object[]Поля каждого элемента:
idstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноChecked by an admin (a partner venue); show the verified mark
pitchesobject[]обязательноidstringобязательноnamestringобязательноe.g. "1. Saha"
indoorbooleanобязательноofficialCamerabooleanобязательноThe pitch has the venue's own recorder: a match here can wait for its recording
- POST
/api/ v1/ venues Add a venue
Нужен сеанс
New venues are unverified until an admin checks them. When a venue with the same name, city and district is already listed (ignoring case and Turkish letters), that venue comes back instead of a copy. 422 with
fields(required,tooShort,tooLong,invalidfor hidden characters,staffWordwhen the name reads as staff: “Akıllı Futbol”, “Resmi”…). 429 RATE_LIMITED after 20 new venues in 24 hours (admins are not limited).Показать поляСкрыть поля
Тело запроса
namestringобязательно2–80 characters
citystringобязательно2–40 characters
districtstring | nullнеобязательноUp to 40 characters
addressstring | nullнеобязательноUp to 160 characters
pitchNamestring | nullнеобязательноA first pitch, e.g. "1. Saha"
indoorbooleanнеобязательноWhether that first pitch is indoors
data в ответе
idstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноChecked by an admin (a partner venue); show the verified mark
pitchesobject[]обязательноidstringобязательноnamestringобязательноe.g. "1. Saha"
indoorbooleanобязательноofficialCamerabooleanобязательноThe pitch has the venue's own recorder: a match here can wait for its recording
Venues of your latest matches, then venues you added (at most five)
Нужен сеанс
Показать поляСкрыть поля
data в ответе
Тип:
object[]Поля каждого элемента:
idstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноChecked by an admin (a partner venue); show the verified mark
pitchesobject[]обязательноidstringобязательноnamestringобязательноe.g. "1. Saha"
indoorbooleanобязательноofficialCamerabooleanобязательноThe pitch has the venue's own recorder: a match here can wait for its recording
A venue with its pitches
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноChecked by an admin (a partner venue); show the verified mark
pitchesobject[]обязательноidstringобязательноnamestringобязательноe.g. "1. Saha"
indoorbooleanобязательноofficialCamerabooleanобязательноThe pitch has the venue's own recorder: a match here can wait for its recording
Add a pitch to a venue
Нужен сеанс
Admins, or the person who added the venue while it is unverified (403 otherwise). 409
fields.name = takenfor a duplicate name.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
namestringобязательно1–40 characters, unique within the venue
indoorbooleanнеобязательно
data в ответе
idstringобязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноChecked by an admin (a partner venue); show the verified mark
pitchesobject[]обязательноidstringобязательноnamestringобязательноe.g. "1. Saha"
indoorbooleanобязательноofficialCamerabooleanобязательноThe pitch has the venue's own recorder: a match here can wait for its recording
A venue's logo
Сеанс не нужен
Public, no sign-in. Take the path from the venue's
logofield rather than building it: the version names one picture for good, so the answer is cached for a year (Cache-Control: public, max-age=31536000, immutable). A replaced or removed logo's version answers 404 NOT_FOUND. A PNG, JPEG or WebP of at most 1024 pixels a side, its type read from the file's bytes when it was uploaded; sent withX-Content-Type-Options: nosniff,Content-Security-Policy: default-src 'none'andCross-Origin-Resource-Policy: same-site.Показать поляСкрыть поля
Параметры пути
idstringобязательноversionstringобязательно
Бронирования
тег Bookings, 5 эндпоинтовA venue's public page
Сеанс не нужен
Works signed out. 404 unless the venue has a login that is switched on (only those venues have a page).
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstringобязательноslugstringобязательноThe page's address: /venues/<slug>
namestringобязательноverifiedbooleanобязательноChecked by an admin; show the verified mark
districtstring | nullобязательноcitystring | nullобязательноaddressstring | nullобязательноdescriptionstring | nullобязательноPlain text, line breaks kept
logostring | nullобязательноA path to the logo (immutable, cache it), or null
directionsobjectобязательноDriving directions: to the coordinates when known, else a search for the name and address
googlestring (uri)обязательноapplestring (uri)обязательно
whatsappobject | nullобязательноOnly when the venue shows it
digitsstringобязательноInternational, without +
linkstring (uri)обязательноhttps://wa.me/<digits>
reservationsEnabledbooleanобязательноThe venue takes requests in the app; otherwise point people to WhatsApp
autoConfirmbooleanобязательноRequests from people who already had a booking confirmed here are confirmed at once, while they hold fewer than 2 coming bookings and requests here
slotMinutesnumberобязательноStart times every 30 or 60 minutes from opening
Значения:
30,60openingHoursobjectобязательноIstanbul clock; null: closed
monobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
tueobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
wedobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
thuobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
friobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
satobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
sunobject | nullобязательноopenstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
todaystringобязательноThe venue day open now (YYYY-MM-DD): the first day to offer. A venue day is named by the date it opens: Friday 10:00–02:00 holds Saturday 01:00
pitchesobject[]обязательноidstringобязательноnamestringобязательноindoorbooleanобязательно
Free times on a venue day, per pitch
Сеанс не нужен
States only, never who or why: confirmed bookings and blocked time make a time
taken; requests the venue has not answered make itrequested(still askable). With a bearer token the lead time is the person's own. 422fields.date = outOfRange.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Параметры запроса
datestringнеобязательноThe venue day, YYYY-MM-DD (default: the venue day open now); from yesterday up to 31 days ahead
durationMinstringнеобязательно60 (default), 90 or 120
data в ответе
datestringобязательноdurationMinnumberобязательноslotMinutesnumberобязательноhoursobject | nullобязательноThat venue day's hours; null when closed
openstringобязательно"10:00"
closestringобязательно"01:00"; at or before
openmeans after midnight
leadMinutesnumberобязательноHow long before its start a time can still be asked for: 150 minutes, or 30 for someone the venue confirms at once
pitchesobject[]обязательноidstringобязательноnamestringобязательноslotsobject[]обязательноtimestringобязательноIstanbul wall clock, "21:00"
datestringобязательноThe calendar date the time falls on (the next date after midnight)
startsAtstringобязательноISO 8601 (UTC)
nextDaybooleanобязательноAfter the venue day's midnight: show it as "Friday night 01:00 (Saturday 9 November)"
statestringобязательноrequested: someone asked and the venue has not answered; it can still be asked for
Значения:
"free","requested","taken","soon","tooFar"
Ask a venue for a booking
Нужен сеанс
The booking waits for the venue (
pending) and lapses 2 hours before its start if not answered; it isconfirmedat once where the venue auto-confirms and you already had a booking confirmed there. 404 for a venue without a page (no login, or switched off). 409fields.form:bookingsOff(the venue takes no requests now; use its WhatsApp),alreadyAsked,tooManyOpen(2 requests already waiting at this venue);fields.time = taken. 422fields:pitchId.invalid,teamId.notMember,phone.invalid,matchId(invalid,booked,otherTime,otherPlace),time(closed,offGrid,soon,tooFar). 429 RATE_LIMITED after 6 requests in an hour (refused requests do not count).Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
pitchIdstringобязательноdatestringобязательноThe venue day, YYYY-MM-DD
timestringобязательноOne of that day's start times (a slot's
time), HH:MMdurationMinnumberобязательноЗначения:
60,90,120teamIdstring | nullнеобязательноOne of your teams: side A of the match made on confirmation
notestring | nullнеобязательноUp to 300 characters, for the venue
phonestring | nullнеобязательноShared with this venue only and erased 30 days after the start (or when the booking is declined, cancelled or lapses). "0532 123 45 67", "+90…"
wantsMatchbooleanнеобязательноDefault true: when the venue confirms, your match is made (this venue, pitch and time, your team on side A) and linked
matchIdstring | nullнеобязательноInstead: one of your own matches at exactly this time with no booking yet, to link
data в ответе
idstringобязательноvenueobjectобязательноidstringобязательноnamestringобязательноverifiedbooleanобязательноslugstring | nullобязательноNull once the venue's page is gone
pitchobjectобязательноidstringобязательноnamestringобязательно
startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноvenueDatestringобязательноThe venue day it belongs to
nextDaybooleanобязательноstatusstringобязательноlapsed: the venue did not answer by 2 hours before the start
Значения:
"pending","confirmed","declined","cancelled","lapsed"answerstring | nullобязательноThe venue's words, or the app's own answer: "@taken" (another booking got the time), "@blocked" (the venue closed it), "@loginOff" (the venue stopped taking bookings), "@matchCancelled" (the match it was made for was called off)
cancelledBystring | nullобязательноЗначения:
"person","venue"teamobject | nullобязательноidstringобязательноnamestringобязательно
matchobject | nullобязательноThe match made from (or linked to) the booking, while it is not cancelled
idstringобязательно
wantsMatchbooleanобязательноcanCancelbooleanобязательноcanMakeMatchbooleanобязательноConfirmed, not started and without a match: POST /api/v1/matches with its time, place and
reservationId
Your bookings
Нужен сеанс
upcoming: coming bookings whatever their answer (until they start; a confirmed one until it ends), soonest first.past: those of the last 30 days, latest first.Показать поляСкрыть поля
data в ответе
upcomingobject[]обязательноidstringобязательноvenueobjectобязательноidstringобязательноnamestringобязательноverifiedbooleanобязательноslugstring | nullобязательноNull once the venue's page is gone
pitchobjectобязательноidstringобязательноnamestringобязательно
startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноvenueDatestringобязательноThe venue day it belongs to
nextDaybooleanобязательноstatusstringобязательноlapsed: the venue did not answer by 2 hours before the start
Значения:
"pending","confirmed","declined","cancelled","lapsed"answerstring | nullобязательноThe venue's words, or the app's own answer: "@taken" (another booking got the time), "@blocked" (the venue closed it), "@loginOff" (the venue stopped taking bookings), "@matchCancelled" (the match it was made for was called off)
cancelledBystring | nullобязательноЗначения:
"person","venue"teamobject | nullобязательноidstringобязательноnamestringобязательно
matchobject | nullобязательноThe match made from (or linked to) the booking, while it is not cancelled
idstringобязательно
wantsMatchbooleanобязательноcanCancelbooleanобязательноcanMakeMatchbooleanобязательноConfirmed, not started and without a match: POST /api/v1/matches with its time, place and
reservationId
pastobject[]обязательноidstringобязательноvenueobjectобязательноidstringобязательноnamestringобязательноverifiedbooleanобязательноslugstring | nullобязательноNull once the venue's page is gone
pitchobjectобязательноidstringобязательноnamestringобязательно
startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноvenueDatestringобязательноThe venue day it belongs to
nextDaybooleanобязательноstatusstringобязательноlapsed: the venue did not answer by 2 hours before the start
Значения:
"pending","confirmed","declined","cancelled","lapsed"answerstring | nullобязательноThe venue's words, or the app's own answer: "@taken" (another booking got the time), "@blocked" (the venue closed it), "@loginOff" (the venue stopped taking bookings), "@matchCancelled" (the match it was made for was called off)
cancelledBystring | nullобязательноЗначения:
"person","venue"teamobject | nullобязательноidstringобязательноnamestringобязательно
matchobject | nullобязательноThe match made from (or linked to) the booking, while it is not cancelled
idstringобязательно
wantsMatchbooleanобязательноcanCancelbooleanобязательноcanMakeMatchbooleanобязательноConfirmed, not started and without a match: POST /api/v1/matches with its time, place and
reservationId
Cancel one of your bookings
Нужен сеанс
Waiting or confirmed, before it starts; the time is free again. 404 for someone else's booking; 409
fields.form:notActive,started.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstringобязательноvenueobjectобязательноidstringобязательноnamestringобязательноverifiedbooleanобязательноslugstring | nullобязательноNull once the venue's page is gone
pitchobjectобязательноidstringобязательноnamestringобязательно
startsAtstringобязательноendsAtstringобязательноdurationMinnumberобязательноvenueDatestringобязательноThe venue day it belongs to
nextDaybooleanобязательноstatusstringобязательноlapsed: the venue did not answer by 2 hours before the start
Значения:
"pending","confirmed","declined","cancelled","lapsed"answerstring | nullобязательноThe venue's words, or the app's own answer: "@taken" (another booking got the time), "@blocked" (the venue closed it), "@loginOff" (the venue stopped taking bookings), "@matchCancelled" (the match it was made for was called off)
cancelledBystring | nullобязательноЗначения:
"person","venue"teamobject | nullобязательноidstringобязательноnamestringобязательно
matchobject | nullобязательноThe match made from (or linked to) the booking, while it is not cancelled
idstringобязательно
wantsMatchbooleanобязательноcanCancelbooleanобязательноcanMakeMatchbooleanобязательноConfirmed, not started and without a match: POST /api/v1/matches with its time, place and
reservationId
Счёт
тег Score, 5 эндпоинтовThe score card: goals, who played and the reported scorers
Нужен сеанс
For everyone who can see the match. Errors: 401 signed out; 404 the match does not exist or you are not part of it.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноstatusstringобязательноЗначения:
"planned","played","cancelled"scoreStatestringобязательноЗначения:
"none","entered","confirmed"recordingstringобязательноofficial: the pitch's camera records the match; nobody needs to upload
Значения:
"upload","official"startsAtstringобязательноISO 8601 (UTC)
kickedOffbooleanобязательноsidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
ownGoalsobjectобязательноPer side, how many of that side's goals the other side put into its own net. They count for nobody's goals (profiles and stats count reported scorers only). Null when not given, and until the score is entered
Anumber | nullобязательноBnumber | nullобязательно
peopleobject[]обязательноEveryone in the match, by name
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"attendedbooleanобязательноPlayed in the match
goalsReportednumber | nullобязательноSelf-reported goals; null when not reported
isOrganizerbooleanобязательноmarkablebooleanобязательноYou may mark them as played now: guests, people who said yes or maybe or played already, members of a team in the match, and people who share a team or a match with you (a public profile alone does not count). Always false when you cannot enter the score
photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
scorersobjectобязательноWhether each side's scorers were reported: a player of the side has a count, or its own goals were given
AbooleanобязательноBbooleanобязательно
hasVideobooleanобязательноlastChangeobject | nullобязательноatstringобязательноbystring | nullобязательноWho saved it; null for the Akıllı Futbol team
editedbooleanобязательноA correction rather than the first entry
versionstring | nullобязательноIdentifies the last save (null before the first); send it back as
basedOnwith PUTviewerobjectобязательноplayerIdstringобязательноisAdminbooleanобязательноcanManagebooleanобязательноOrganiser, side captains and admins
canEditbooleanобязательноMay enter or correct the score now
blockedBystring | nullобязательноWhy a manager cannot enter the score now
Значения:
"cancelled","beforeKickoff"attendedbooleanобязательноcanUploadbooleanобязательноMay upload the match video
Enter or correct the score and who played (managers)
Нужен сеанс
The organiser, the side captains and admins; from kick-off (admins at any time), never for a cancelled match. One transaction writes the goals and own goals, marks the match played, sets everyone's attendance and side (people not listed did not play) and adds new guests and players. The first save is audited as
score.set, corrections asscore.editwith before and after (goals, own goals and who played). Man-of-the-match votes from or for someone who no longer played are dropped. Reported goals are optional per side. When any player of a side has a count or the side'sownGoalsis given, the side's counts plus its own goals must add up to its goals (the players without a count are stored as 0). Example: 3–2 where one of A's goals was an own goal by B:ownGoals: { A: 1 }and A's players' counts add up to 2. Playing a match opens a teammates-only profile to the others who played, so only people withmarkabletrue (or a username GET …/score/lookup accepts) can be marked as played; anyone else answers yes themselves before the score is in, or comes as a guest. Each username counts against the same limit as the lookups (60 per 10 minutes). 403 for people who may see the match but not manage it. 409fields.form=cancelled,beforeKickofforchanged(someone saved since yourbasedOn). 422fields:scorers.A/scorers.B=mismatch(the side's counts plus own goals do not add up to its goals, own goals beyond its goals included);attendance.N=invalid(not exactly one of playerId, username, guestName);attendance.N.playerId=invalid(not an id),notInMatch,duplicateornotConnected;attendance.N.username=notFound,duplicateornotConnected;attendance.N.guestName=required,tooShort,tooLongorinvalid;goals.A,goals.B,ownGoals.A,ownGoals.B,attendance.N.goals=invalid(0–99);ownGoals=invalid(not an object);basedOn=invalid. 429 too many usernames. Errors: 401 signed out; 404 the match does not exist or you are not part of it.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
goalsobjectобязательноAintegerобязательноот 0 до 99
Bintegerобязательноот 0 до 99
ownGoalsobject | nullнеобязательноPer side, how many of that side's goals the other side put into its own net. They count for nobody's goals (profiles and stats count reported scorers only). Leave a side out (or null) when not given; 0 is given and checks the side's scorers like a count does
Ainteger | nullнеобязательноот 0 до 99
Binteger | nullнеобязательноот 0 до 99
attendanceobject[]обязательноEveryone who played, each with exactly one of playerId, username or guestName. Anyone in the match who is not listed did not play
playerIdstringнеобязательноSomeone already in the match (see
people)usernamestringнеобязательноA registered player by username; joins the match if not in it yet
guestNamestringнеобязательноSomeone without an account: a new guest player, 2–40 characters
sidestringобязательноЗначения:
"A","B"goalsinteger | nullнеобязательноSelf-reported goals; leave out (or null) when not reported
от 0 до 99
basedOnstring | nullнеобязательноThe card's
versionyou started from (null for a new score). When sent, the save is refused with 409changedif someone saved the score since; leave it out to save regardless
data в ответе
matchIdstringобязательноstatusstringобязательноЗначения:
"planned","played","cancelled"scoreStatestringобязательноЗначения:
"none","entered","confirmed"recordingstringобязательноofficial: the pitch's camera records the match; nobody needs to upload
Значения:
"upload","official"startsAtstringобязательноISO 8601 (UTC)
kickedOffbooleanобязательноsidesobjectобязательноAobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
BobjectобязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsnumber | nullобязательноNull until the score is entered
ownGoalsobjectобязательноPer side, how many of that side's goals the other side put into its own net. They count for nobody's goals (profiles and stats count reported scorers only). Null when not given, and until the score is entered
Anumber | nullобязательноBnumber | nullобязательно
peopleobject[]обязательноEveryone in the match, by name
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"rsvpstringобязательноЗначения:
"invited","yes","maybe","no"attendedbooleanобязательноPlayed in the match
goalsReportednumber | nullобязательноSelf-reported goals; null when not reported
isOrganizerbooleanобязательноmarkablebooleanобязательноYou may mark them as played now: guests, people who said yes or maybe or played already, members of a team in the match, and people who share a team or a match with you (a public profile alone does not count). Always false when you cannot enter the score
photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
scorersobjectобязательноWhether each side's scorers were reported: a player of the side has a count, or its own goals were given
AbooleanобязательноBbooleanобязательно
hasVideobooleanобязательноlastChangeobject | nullобязательноatstringобязательноbystring | nullобязательноWho saved it; null for the Akıllı Futbol team
editedbooleanобязательноA correction rather than the first entry
versionstring | nullобязательноIdentifies the last save (null before the first); send it back as
basedOnwith PUTviewerobjectобязательноplayerIdstringобязательноisAdminbooleanобязательноcanManagebooleanобязательноOrganiser, side captains and admins
canEditbooleanобязательноMay enter or correct the score now
blockedBystring | nullобязательноWhy a manager cannot enter the score now
Значения:
"cancelled","beforeKickoff"attendedbooleanобязательноcanUploadbooleanобязательноMay upload the match video
Look up a registered player by username, before adding them to the score card (managers)
Нужен сеанс
What the score page asks before it lists someone as played: who the username belongs to, and whether they are in the match already and on which side. Managers only, while the score can be entered (from kick-off; admins at any time; never for a cancelled match). Each lookup counts against the limit of 60 per 10 minutes shared with the usernames sent with PUT. 403 for people who may see the match but not manage it. 409
fields.form=cancelledorbeforeKickoff. 422fields.username=required,tooLong,notFound(no registered player has it) ornotConnected(they have not said they are coming and you share no team or match: they answer yes themselves first, or come as a guest). 429 too many lookups. Errors: 401 signed out; 404 the match does not exist or you are not part of it.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Параметры запроса
usernamestringобязательноAs typed: a leading @, surrounding spaces and letter case do not matter
data в ответе
playerIdstringобязательноdisplayNamestringобязательноhandlestringобязательноinMatchbooleanобязательноAlready in the match (invited, answered or played): send their playerId or username with PUT
sidestring | nullобязательноTheir side in the match, when they have one
Значения:
"A","B"
Man of the match: the tally, the leader and your vote
Нужен сеанс
Votes are anonymous: you see the counts and your own vote. Errors: 401 signed out; 404 the match does not exist or you are not part of it.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноavailablebooleanобязательноThe score is in and the match was not cancelled
openbooleanобязательноVotes can be cast or changed now
closesAtstringобязательноKick-off plus 7 days (ISO 8601)
totalVotesnumberобязательноcandidatesobject[]обязательноEveryone who played: most votes first, then by name
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноkindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"votesnumberобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
leadersobject[]обязательноThe most voted; several on a tie, none before the first vote
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноkindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"votesnumberобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
viewerobjectобязательноplayerIdstringобязательноattendedbooleanобязательноcanVotebooleanобязательноvotestring | nullобязательноThe playerId you voted for
Vote for the man of the match (people who played)
Нужен сеанс
One vote each; voting again changes it. Open once the score is in, until 7 days after kick-off. 403
fields.form = notAttendedwhen you did not play. 409fields.form=noScore,closedorcancelled. 422fields.playerId=selfornotAttended. Errors: 401 signed out; 404 the match does not exist or you are not part of it.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
playerIdstringобязательноSomeone else who played
data в ответе
matchIdstringобязательноavailablebooleanобязательноThe score is in and the match was not cancelled
openbooleanобязательноVotes can be cast or changed now
closesAtstringобязательноKick-off plus 7 days (ISO 8601)
totalVotesnumberобязательноcandidatesobject[]обязательноEveryone who played: most votes first, then by name
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноkindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"votesnumberобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
leadersobject[]обязательноThe most voted; several on a tie, none before the first vote
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноkindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"votesnumberобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
viewerobjectобязательноplayerIdstringобязательноattendedbooleanобязательноcanVotebooleanобязательноvotestring | nullобязательноThe playerId you voted for
Видео
тег Video, 13 эндпоинтовStart or resume the match video upload
Нужен сеанс
The video goes straight to the bucket in parts; no bytes pass through this API. 1. POST here with the file's name, size, type and fingerprint (name:size:lastModified). 2. POST …/parts with the part numbers still missing (at most 100 per call) and PUT each 64 MiB slice of the file to its URL; keep the ETag response header. Each link is signed for its part's exact length (the last part holds the rest), so send exactly that slice. Retry failed parts; sign again when the links expire. 3. POST …/complete with every { partNumber, etag }. The analysis starts (status INGESTING). To resume after the app restarts, POST here again with the same fingerprint: the same upload comes back with
uploadedParts. Errors: 404 NOT_FOUND for people outside the match (as if it did not exist); 409 CONFLICT with fields.form scoreFirst (enter the score first), matchCancelled or venueDelivering (the venue is sending the recording); 403 FORBIDDEN with fields.form uploadNotAllowed (only people who played), officialRecording (the venue or an admin delivers the official recording) or replaceNotAllowed (the match has a video; only the organiser, side captains and admins replace it); 422 INVALID with fields.size tooLarge (over 8 GiB), fields.contentType notVideo, or fields.fileName notVideo (an extension other than a video container's, such as .m3u8).Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
fileNamestringобязательноThe picked file's name, e.g. mac.mp4. An extension other than a video container's (such as .m3u8) is refused
1–255 символов
sizeintegerобязательноBytes; at most 8 GiB
contentTypestringобязательноThe file's MIME type; must be video/*
fingerprintstringобязательноname:size:lastModified of the file. Starting again with the same fingerprint resumes the unfinished upload
1–512 символов
data в ответе
uploadIdstringобязательноkeystringобязательноThe object key in the bucket
partSizenumberобязательноBytes per part (64 MiB); the last part holds the rest
partCountnumberобязательноuploadedPartsobject[]обязательноParts the bucket already has (after a resume): upload only the others
partNumbernumberобязательноetagstringобязательноsizenumberобязательно
resumedbooleanобязательноTrue when this continues an unfinished upload of the same file
Cancel an unfinished upload
Нужен сеанс
Only the person who started it. Drops its parts from the bucket, or its file when a completion had finished it. 409 uploadCompleted once it is complete. 403 fields.form notYourUpload for anyone but the person who started the upload (and admins).
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
data в ответе
uploadIdstringобязательноstatusstringобязательноЗначения:
"aborted","failed"
Presigned URLs for upload parts
Нужен сеанс
Links are valid for an hour and accept exactly their part's bytes. 409 uploadClosed when the upload was cancelled or completed. The upload rules are checked again, so a cancelled match (409 matchCancelled) or someone else's video landing first (403 replaceNotAllowed) stops the upload: cancel it with DELETE. 403 fields.form notYourUpload for anyone but the person who started the upload (and admins).
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
Тело запроса
partNumbersinteger[]обязательно1-based part numbers, at most 100 per call
data в ответе
partsobject[]обязательноpartNumbernumberобязательноurlstringобязательноPUT the part's bytes here, then read the ETag response header
expiresAtstringобязательноISO time; sign again after it
Finish the upload and start the analysis
Нужен сеанс
Checks the parts and the stored size, then creates the video, the analysis and its first job in one step. Calling it again returns the same result. 409 with fields.form partsMissing, partMismatch or sizeMismatch: upload the missing parts (resume) and complete again. 403 replaceNotAllowed when someone else's video became the match's first: this upload is then closed and its file deleted. 403 fields.form notYourUpload for anyone but the person who started the upload (and admins).
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
Тело запроса
partsobject[]обязательноpartNumberintegerобязательноот 1 до 10000
etagstringобязательноThe ETag header of the part's PUT response
1–200 символов
data в ответе
uploadIdstringобязательноvideoAssetIdstring | nullобязательноanalysisIdstring | nullобязательноstatusstring | nullобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"replacedbooleanобязательноTrue when this video replaced the match's previous one and its analysis; the previous video's files are deleted, and links issued for it stop working
The match's video and analysis status
Нужен сеанс
For anyone involved in the match (404 for everyone else). Stages: INGESTING → NEEDS_PREP (managers mark the pitch) → TRACKING → NEEDS_LABELS (who is who) → COMPUTING → PUBLISHED, or FAILED. Poll every few seconds while the status is INGESTING, TRACKING or COMPUTING.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Параметры запроса
uploadedBytesbooleanнеобязательноtrue to fill pendingUpload.uploadedBytes (how much of your unfinished upload the bucket holds). It asks the bucket, so leave it out when polling the analysis
data в ответе
matchIdstringобязательноmatchStatusstringобязательноЗначения:
"planned","played","cancelled"scoreStatestringобязательноUploads open once the score is entered
Значения:
"none","entered","confirmed"recordingstringобязательноofficial: the pitch's camera records the match and the venue (or an admin) delivers the video
Значения:
"upload","official"analysisobject | nullобязательноidstringобязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"progressnumberобязательно0..1 within the current stage
errorstring | nullобязательноfailedStagestring | nullобязательноThe stage that failed, when status is FAILED
Значения:
"ingest","track","stats"updatedAtstringобязательно
videoobject | nullобязательноidstringобязательноreadybooleanобязательноThe playable copy exists: GET /video gives a link
fileNamestringобязательноsizeBytesnumberобязательноuploadedBystringобязательноThe person who uploaded it, or the venue that delivered it (byVenue)
byVenuebooleanобязательноThe venue delivered it from its pitch admin panel (ADR-005)
uploadedAtstring | nullобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
pendingUploadobject | nullобязательноThe caller's own unfinished upload; start again with the same fingerprint to resume it
uploadIdstringобязательноfileNamestringобязательноsizeBytesnumberобязательноfingerprintstringобязательноstartedAtstringобязательноuploadedBytesnumber | nullобязательноBytes the bucket holds; null unless asked with ?uploadedBytes=true (or when the bucket no longer knows the upload)
venueDeliveryobject | nullобязательноThe venue's part in this match's recording, when it has a pitch admin panel
venueNamestringобязательноstatestringобязательноdelivering: the venue is uploading the recording now; possible: its official camera records this pitch and it can send the recording
Значения:
"delivering","possible"
canobjectобязательноuploadbooleanобязательноMay start the first upload now
replacebooleanобязательноMay upload a new video over the existing one
managebooleanобязательноOrganiser, side captains and admins: prep, labels, retry
watchbooleanобязательноrejectbooleanобязательноManagers may send back a recording the venue delivered ("Bu bizim maçımız değil") until labelling starts: POST …/video/reject
Retry the failed stage
Нужен сеанс
Organiser, side captains and admins (403 retryNotAllowed for other people in the match, 404 outside it). The job's payload is rebuilt from the analysis, never copied from the failed job. 409 notFailed unless the status is FAILED; 409 alreadyQueued.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
analysisIdstringобязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"kindstringобязательноЗначения:
"ingest","track","stats"
A link to watch the match video
Нужен сеанс
For people who attended and managers (403 watchNotAllowed for other people in the match, 404 outside it); 404 notReady until the playable copy exists. Every link issued is written to the audit log.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
urlstringобязательноA presigned GET link to the 720p copy, valid for 2 hours; supports range requests
expiresAtstringобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
Send back a recording the venue delivered
Нужен сеанс
"Bu bizim maçımız değil" (ADR-005): for the organiser, side captains and admins (403 rejectNotAllowed for other people in the match, 404 outside it), until labelling starts. The video, its analysis and files are deleted, and the match waits for the venue's recording again. Audited as video.reject. 409 with fields.form noVideo, notVenueDelivery (people uploaded it) or labellingStarted.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноanalysisIdstringобязательноuploadIdstringобязательно
Who is who on the video, and the goals
Нужен сеанс
For people who attended and the organiser, side captains and admins (403 watchNotAllowed for others in the match, 404 for everyone else). Never cached: labels and goal decisions change it. A new processing run may reuse numeric track ids. Match this response's generation to the replay or camera metadata, and request files with ?generation=<generation>. A 409 replayChanged means reload both names and metadata before drawing new positions. Draw it with the layer files (GET /layer/index.json, then /layer/chunk_<n>.json, see the Kim kim? tag): each box
[trackId, x0, y0, x1, y1]is in the index's width × height pixels, so scale it to the displayed video (with its letterboxing). A foot marker goes at the box's bottom centre in the side's colour (orange for A, blue for B), withtracks[trackId].nameabove it once labelled; goalkeepers (keeper, or the index'skeepers) get a marker of their own. The ball is a frame'sb([x, y, 1 when estimated]);o(or the index's possessionspells) is who has it. The index'spassesgo from passer to receiver between theirstartandendframes (completedfalse: the ball was lost; null: not known, one of the two teams is unknown). The frame on screen is round(mediaTime × fps). Show each confirmed goal's banner for a few seconds from its frame.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноanalysisIdstring | nullобязательноgenerationstring | nullобязательноCommitted tracking run; must match replay/camera metadata. Pass it as the generation query to layer files, and reload names plus metadata on 409 replayChanged
statusstring | nullобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"readybooleanобязательноCommitted tracking exists (including the previous saved result during a rerun); false before the first result
fpsnumber | nullобязательноThe video's frame rate: the frame on screen is round(mediaTime × fps)
durationSnumber | nullобязательноkickoffSnumberобязательноKick-off in seconds into the video; minutes count from it
endSnumber | nullобязательноExclusive match end in source-video seconds, from the same committed generation as the names. Bound playback to kickoffS..endS; null before the match window is marked
sidesobjectобязательноThe sides' labels
AstringобязательноBstringобязательно
finalScoreobjectобязательноThe score entered after the match; null per side before it is entered
Anumber | nullобязательноBnumber | nullобязательно
canobjectобязательноmanagebooleanобязательноOrganiser, side captains and admins: they also get the candidates
tracksmap<string, object>обязательноTrack id of the layer (the tracklet's ordinal) -> who it is. Tracks with nothing known are left out: draw them without a side
playersmap<string, object>обязательноPlayer id -> full and short name and side in the match, for the players the tracks name
hiddennumber[]обязательноTrack ids labelled not a player (referees, spectators): leave them out
goalsobject[]обязательноConfirmed goals in video order: show a banner at each and mark them on the timeline
idstringобязательноatSnumberобязательноSeconds into the match video
framenumber | nullобязательноThe proxy's frame: frame = round(mediaTime × fps)
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"ownGoalbooleanобязательноscorerobject | nullобязательноWho scored; for an own goal the opponent who put it in; null when nobody was listed on that side
playerIdstringобязательноnamestringобязательно
assistobject | nullобязательноplayerIdstringобязательноnamestringобязательно
scoreobjectобязательноThe score right after this goal
AnumberобязательноBnumberобязательно
candidatesobject[]обязательноFor managers: goals the analysis found that wait for "Bu gol mü?" (POST /goals/{goalId}); empty for everyone else
idstringобязательноatSnumberобязательноframenumber | nullобязательноminutenumberобязательно
Saved top-down replay and camera recordings
Нужен сеанс
For people who attended and match managers; 403 watchNotAllowed for other people in the match, 404 outside it. Playback reads saved results and never starts processing. index is null and ready false until the worker has committed a replay. Camera ids are recording ids within this analysis. Names are read separately from GET /overlay, which applies player visibility. Coordinates are pitch metres in the calibration's fixed orientation, never mirrored at half-time.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstring (uuid)обязательноanalysisIdstring (uuid) | nullобязательноgenerationstring | nullобязательноdemoAliasesbooleanобязательноreadybooleanобязательноindexobject | nullобязательноversionnumberобязательноЗначения:
1fpsnumberобязательноstrideintegerобязательноstart_frameintegerобязательноне меньше 0
end_frameintegerобязательноне меньше 0
chunk_framesintegerобязательноchunksinteger[]обязательноpitchobjectобязательноlength_mnumberобязательноwidth_mnumberобязательноmeasuredbooleanобязательно
camerasobject[]обязательноgenerationstring | nullобязательноidstring (uuid)обязательноordinalintegerобязательноlabelstringобязательноoffsetSnumberобязательноMaster time = camera video time + offsetS; camera layer frames use this camera's fps
fpsnumber | nullобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательноreadybooleanобязательноThe playable video exists
layerReadybooleanобязательноThe camera's saved position layer exists
calibrationQualitystring | nullобязательноЗначения:
"GOOD","WEAK"calibrationRmsPxnumber | nullобязательно
A saved top-down replay file
Нужен сеанс
For people who attended and match managers; 403 watchNotAllowed for other people in the match, 404 outside it. Playback reads saved results and never starts processing. name is index.json or chunk_<n>.json from index.chunks. Master frames use index.fps; p entries are [globalTrackOrdinal,xMetres,yMetres], b is [xMetres,yMetres,interpolated0or1] when seen. Missing observations stay missing. Use /overlay for current names and hidden track ids. Private ETag revalidation; 404 notReady for missing files. A missing or stale generation returns 409 replayChanged: refresh metadata and identity mapping together.
Показать поляСкрыть поля
Параметры пути
idstringобязательноnamestringобязательно
Параметры запроса
generationstringобязательноCommitted run from GET /replay; must match /overlay.generation before drawing names
Watch one synchronized camera recording
Нужен сеанс
For people who attended and match managers; 403 watchNotAllowed for other people in the match, 404 outside it. Playback reads saved results and never starts processing. Returns a two-hour presigned link and records its issue in the audit log. 404 when the camera is not part of this match's analysis.
Показать поляСкрыть поля
Параметры пути
idstringобязательноcameraIdstringобязательно
data в ответе
urlstring (uri)обязательноexpiresAtstringобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
One camera's saved position layer
Нужен сеанс
For people who attended and match managers; 403 watchNotAllowed for other people in the match, 404 outside it. Playback reads saved results and never starts processing. name is index.json or chunk_<n>.json. Uses the LayerIndex/LayerChunk format and camera-local frames, but track ids are the analysis's global ordinals, shared with /overlay and /replay. Private ETag revalidation.
Показать поляСкрыть поля
Параметры пути
idstringобязательноcameraIdstringобязательноnamestringобязательно
Параметры запроса
generationstringобязательноCommitted run from the camera metadata; stale/missing returns 409 replayChanged
Разметка поля
тег Prep, 2 эндпоинтаWhat marking the pitch needs
Нужен сеанс
For the organiser, side captains and admins (403 FORBIDDEN with fields.form prepNotAllowed for other people in the match, 404 outside it). Every call issues new links and writes them to the audit log. Landmark ids: corner_0_0 (top-left on the frame), corner_L_0, corner_L_W, corner_0_W, halfway_0, halfway_W, centre_spot, goal_0_post_a/b, goal_L_post_a/b, and with a penalty area box_0_* and box_L_*. x = 0 is the left goal, y = 0 the far touchline. With
prefill.sourcecamera andprefill.qualityGOOD or WEAK, show the camera's lines over the new frame and ask whether they still fit: if so, POST the prefilled clicks and lambda as they are (one tap). Links are issued only while the pitch can be marked (can.saveorcan.redo); otherwiseimageandvideoare null.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноmatchCancelledbooleanобязательноanalysisobject | nullобязательноidstringобязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"updatedAtstringобязательно
readybooleanобязательноThe median frame exists, so the pitch can be marked
imageobject | nullобязательноThe empty-pitch frame clicks are made on; click coordinates are its pixels
urlstringобязательноA presigned GET link to median.jpg, valid for 2 hours
widthnumberобязательноheightnumberобязательноexpiresAtstringобязательно
videoobject | nullобязательноFor finding kick-off, half-time and the end
urlstringобязательноA presigned GET link to the 720p copy (range requests work)
durationSnumber | nullобязательноfpsnumber | nullобязательноexpiresAtstringобязательно
pitchobjectобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноmeasuredbooleanобязательноpenaltyAreaobject | nullобязательноwidthMnumberобязательноdepthMnumberобязательно
sourcestringобязательноWhere the sizes come from: this match's saved prep, the venue's pitch, the camera's last calibration, or 40 x 25 m defaults
Значения:
"analysis","pitch","camera","default"pitchNamestring | nullобязательно
landmarksobject[]обязательноidstringобязательноЗначения:
"corner_0_0","corner_L_0","corner_L_W","corner_0_W","halfway_0","halfway_W","centre_spot","goal_0_post_a","goal_0_post_b","goal_L_post_a","goal_L_post_b","box_0_line_a","box_0_front_a","box_0_front_b","box_0_line_b","box_L_line_a","box_L_front_a","box_L_front_b","box_L_line_b"pitchany[]обязательноMetres: x along the length from the left goal, y across from the far touchline
cameraobject | nullобязательноThe camera a save writes to; null until a pitch without one gets its first
idstringобязательноlabelstringобязательноofficialbooleanобязательно
prefillobject | nullобязательноClicks to start from; none from a camera calibrated on a video of another shape
sourcestringобязательно"analysis": this match was marked already; "camera": the camera's last calibration, so ask whether the lines still fit
Значения:
"analysis","camera"calibrationIdstringобязательноclicksobject[]обязательноidstringобязательноЗначения:
"corner_0_0","corner_L_0","corner_L_W","corner_0_W","halfway_0","halfway_W","centre_spot","goal_0_post_a","goal_0_post_b","goal_L_post_a","goal_L_post_b","box_0_line_a","box_0_front_a","box_0_front_b","box_0_line_b","box_L_line_a","box_L_front_a","box_L_front_b","box_L_line_b"imageany[]обязательно
lambdanumberобязательноrmsPxnumber | nullобязательноHow far off these clicks are on this frame with the pitch sizes above and the saved lens term; null when they give no fit
qualitystring | nullобязательноThe same fit's gate: ask whether the lines still fit only for GOOD or WEAK; otherwise let the person mark the pitch, starting from these clicks
Значения:
"GOOD","WEAK","REJECT"savedAtstringобязательноcameraLabelstring | nullобязательно
windowobject | nullобязательноThe saved match window, if any
kickoffSnumberобязательноhalftimeSnumber | nullобязательноendSnumberобязательноaDefendsstringобязательноЗначения:
"near","far"switchedEndsbooleanобязательно
areasany[][][]обязательноThe venue's areas to ignore on this frame (pixels of
image), from its camera set-up: draw them read-only. Saving carries them into the match's calibration; the worker drops people outside the lines and ball runs that stay inside themneedsScorebooleanобязательноThe match has no score yet: marking the pitch waits for it (a venue may deliver the recording first).
can.saveandcan.redoare false until thencanobjectобязательноsavebooleanобязательноThe analysis waits for prep (NEEDS_PREP) and the score is in
redobooleanобязательноTracking started already: saving again needs redo: true and starts tracking over
Save the pitch marking and start tracking
Нужен сеанс
The server fits the camera again (the same code as the web preview) and, in one transaction, stores the calibration on the match's camera (a pitch without one gets "Kamera 1"), makes it the camera's active calibration, stores the window, moves the analysis to TRACKING and queues tracking. 422 INVALID with fields.clicks: tooFew (fewer than 6 different landmarks), collinear, oneHalf (all in one half), noFit, rejected (more than 4 px off on average), unknownLandmark (box_* needs a penalty area), duplicate or outsideImage; fields like pitch.widthM (outOfRange, widerThanLong, goalTooWide, penaltyWidth, penaltyDepth) and window.endS (required, outOfVideo, beforeKickoff, outsideMatch). 409 CONFLICT with fields.form scoreFirst (enter the score first: labelling and stats need the roster and the goals), noVideo, notReady (still ingesting), matchCancelled, alreadyPrepared (tracking started; send redo: true to start over, which cancels the running stage) or alreadyQueued. For an official-camera match whose camera the venue set up, the venue's calibration is the one-tap prefill, and its areas to ignore move into this match's frame through both fits.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
clicksobject[]обязательноAt least 6 different landmarks, in both halves of the pitch
idstringобязательноThe landmark, e.g. corner_0_0 (x = 0 is the left goal on the frame, y = 0 the far touchline)
Значения:
"corner_0_0","corner_L_0","corner_L_W","corner_0_W","halfway_0","halfway_W","centre_spot","goal_0_post_a","goal_0_post_b","goal_L_post_a","goal_L_post_b","box_0_line_a","box_0_front_a","box_0_front_b","box_0_line_b","box_L_line_a","box_L_front_a","box_L_front_b","box_L_line_b"imageany[]обязательноWhere it is on the median frame, in its pixels: [x, y] from the top-left corner
lambdanumber | nullнеобязательноThe lens term; leave it out to search the best one (the browser preview does the same)
от -0.6 до 0.6
pitchobjectобязательноlengthMnumberобязательноGoal line to goal line, 15-110 m
widthMnumberобязательноTouchline to touchline, 10-75 m, not more than the length
goalWidthMnumberобязательноBetween the posts, 1-7.32 m
measuredbooleanнеобязательноThe sizes were tape-measured
По умолчанию:
falsepenaltyAreaobject | nullнеобязательноOnly when the pitch has penalty areas marked; enables the box_* landmarks
По умолчанию:
nullwidthMnumberобязательноAcross the pitch; wider than the goal
depthMnumberобязательноFrom the goal line
windowobjectобязательноkickoffSnumberобязательноKick-off, in seconds of the video
halftimeSnumber | nullнеобязательноStart of the break; null when there was none
По умолчанию:
nullendSnumberобязательноThe final whistle, in seconds of the video
aDefendsstringобязательноThe goal side A defends in the first half: "near" is x = 0 (the left goal on the frame), "far" is x = length
Значения:
"near","far"switchedEndsbooleanнеобязательноThe sides switched ends at half-time (needs halftimeS)
По умолчанию:
false
redobooleanнеобязательноMark the pitch again after tracking started: cancels the running stage and tracks again
data в ответе
analysisIdstringобязательноstatusstringобязательноTRACKING
Значения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"calibrationIdstringобязательноcameraIdstring | nullобязательноjobIdstringобязательноrmsPxnumberобязательноReprojection error in 1080p-equivalent pixels
qualitystringобязательноGOOD up to 2 px; WEAK up to 4 px (heatmaps only)
Значения:
"GOOD","WEAK"lambdanumberобязательноredobooleanобязательно
Кто есть кто
тег Kim kim?, 6 эндпоинтовWho is who: the roster and the tracked people
Нужен сеанс
For people who attended and the organiser, side captains and admins (403 watchNotAllowed for others in the match, 404 for everyone else). Every tracklet is one person the tracker followed for a while. Draw them over the video with the layer files (GET /layer/index.json, then /layer/chunk_<n>.json): a box's track id is the tracklet's ordinal. A fast way to label: the roll call first (rollCall), then accept the safe suggestions, then review the rest one at a time, lowest margin first (the order the app's Kontrol step uses: margin, then p, then the longer tracklet, then the earlier one).
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
matchIdstringобязательноanalysisIdstring | nullобязательноstatusstring | nullобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"readybooleanобязательноThe tracker's results are in; false before tracking finished (tracklets is empty)
sidesobjectобязательноThe sides' labels
AstringобязательноBstringобязательно
videoobjectобязательноfpsnumber | nullобязательноframeCountnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательноdurationSnumber | nullобязательноreadybooleanобязательноGET /video gives a link to the proxy
canobjectобязательноmanagebooleanобязательноlabelbooleanобязательноMay change labels now
versionnumberобязательноThe number of decisions so far
changedSincePublishbooleanобязательноLabels, or the score card (who played, on which side, the goals), changed after the stats were worked out: finish again to update them. A score save clears labels that name someone who no longer played
rosterFromRsvpbooleanобязательноAttendance was not entered; the roster is the people who said yes
safeMarginnumberобязательноThe margin accept-suggestions uses by default
rosterobject[]обязательноThe players who attended: side A, side B, then without a side
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
kindstringобязательноЗначения:
"registered","guest"sidestring | nullобязательноЗначения:
"A","B"keeperbooleanобязательноPlays in goal (positions include goalkeeper)
trackletsobject[]обязательноidstringобязательноordinalnumberобязательноThe tracker's id: the track id in the video layer's boxes
startFramenumberобязательноFrames of the proxy video: frame = round(mediaTime × video.fps)
endFramenumberобязательноInclusive
sideGuessstring | nullобязательноThe side its shirt colour matched
Значения:
"A","B"sideConfnumber | nullобязательноkeeperGuessbooleanобязательноinsideRationumberобязательноShare of the time inside the pitch
labelstringобязательноЗначения:
"unlabeled","player","not_player","mixed"playerIdstring | nullобязательноsourcestring | nullобязательно"user" or "suggestion" once labelled
suggestionobject | nullобязательноFor people who may label, on unlabelled tracklets
playerIdstringобязательноpnumberобязательноThe player's probability, 0..1 (shown as "Ali? %82")
marginnumberобязательноp minus the runner-up's probability (another player or nobody on the roster)
stripbooleanобязательноA crop strip exists: GET /tracklets/{trackletId}/strip
matchWindowobject | nullобязательноKick-off to the final whistle in frames (the span of the per-player timelines); null before tracking
startFramenumberобязательноendFramenumberобязательноhalftimeFramenumber | nullобязательно
rollCallobject[]обязательноRoll call (Yoklama), for people who may label: a frame soon after kick-off where the number of people on the pitch is closest to the number of players and they stand well apart (and one after half-time when the ends were switched). Label each box's tracklet with POST /labels; continuity then carries the labels on to the suggestions. Empty without a video layer
periodnumberобязательно1 after kick-off; 2 after half-time, only when the sides switched ends
Значения:
1,2framenumberобязательноShow this frame paused: seek to (frame + 0.5) / video.fps
widthnumberобязательноheightnumberобязательноpeopleobject[]обязательноEvery box on the frame
numbernumberобязательноThe box's number on the frame, 1… from left to right
trackletIdstringобязательноordinalnumberобязательноboxany[]обязательно[x0, y0, x1, y1] in the layer's pixel space (width x height)
A tracklet's crop strip
Нужен сеанс
For people who attended and the organiser, side captains and admins (403 watchNotAllowed for others in the match, 404 for everyone else). A 240 x 64 WebP: five 48 x 64 crops of the person over the tracklet's life, oldest first, for telling people apart. Strips are pictures of people: the answer may be kept by the viewer's own client (private, one hour) but never by a shared cache, and other sites may not embed it (Cross-Origin-Resource-Policy: same-origin); send If-None-Match with the ETag to get 304 while unchanged. 404 noStrip when the tracker left none (tracklet.strip is false), 404 trackletNotFound for a tracklet of another match.
Показать поляСкрыть поля
Параметры пути
idstringобязательноtrackletIdstringобязательно
Параметры запроса
loadstringнеобязательноAny id (8-64 letters, digits, - or _) shared by every strip one screen shows: access is audited once per load (without it, once every two hours)
Label a tracklet
Нужен сеанс
For the organiser, side captains and admins (403 labelNotAllowed for others in the match, 404 for everyone else). Labels change while the analysis is NEEDS_LABELS or PUBLISHED (then finish again to update the stats), or FAILED in the stats stage (failedStage stats: fix labels, then finish again); 409 labelsLocked while the stats are worked out or after another stage failed, 409 notReady before tracking finished. label player needs playerId, a player who attended (422 notInRoster otherwise); not_player is a referee, coach or spectator; mixed is two people merged into one track; unlabeled clears the label. With unlabeled and a playerId (rejecting a suggestion) the tracklet is unlabelled afterwards, its label cleared if it had one, and that player is no longer suggested for it until its label changes. Every change appends a decision to the tracklet's history; the same label again changes nothing. The answer carries the suggestions that changed and the version it started from.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
trackletIdstring (uuid)обязательноlabelstringобязательноЗначения:
"player","not_player","mixed","unlabeled"playerIdstring (uuid) | nullнеобязательноThe player for label player; with label unlabeled, a player this tracklet is not (rejects that suggestion)
sourcestringнеобязательно"suggestion" when the person accepted the suggestion shown for this tracklet
Значения:
"user","suggestion"onlyIfUnlabeledbooleanнеобязательноRefuse a conflicting existing label instead of replacing it; an identical label is still a no-op
data в ответе
trackletobjectобязательноidstringобязательноlabelstringобязательноЗначения:
"unlabeled","player","not_player","mixed"playerIdstring | nullобязательноsourcestring | nullобязательно
previousVersionnumberобязательноThe version this change started from; when it differs from yours, someone else labelled too: GET /tracklets again
versionnumberобязательноsuggestionsobject[]обязательноThe suggestions that changed, and always the labelled tracklet's own (null when it has none)
trackletIdstringобязательноsuggestionobject | nullобязательноNull where the suggestion went away
playerIdstringобязательноpnumberобязательноThe player's probability, 0..1 (shown as "Ali? %82")
marginnumberобязательноp minus the runner-up's probability (another player or nobody on the roster)
Accept every safe suggestion
Нужен сеанс
For the organiser, side captains and admins (403 labelNotAllowed for others in the match, 404 for everyone else). Labels change while the analysis is NEEDS_LABELS or PUBLISHED (then finish again to update the stats), or FAILED in the stats stage (failedStage stats: fix labels, then finish again); 409 labelsLocked while the stats are worked out or after another stage failed, 409 notReady before tracking finished. Labels each tracklet whose suggestion has at least minMargin (default 0.5) as that player, one decision each, all in one step. The body may be left out.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
minMarginnumberнеобязательноAccept suggestions with at least this margin; default 0.5
от 0.3 до 1
data в ответе
acceptednumberобязательноtrackletsobject[]обязательноidstringобязательноlabelstringобязательноЗначения:
"unlabeled","player","not_player","mixed"playerIdstring | nullобязательноsourcestring | nullобязательно
previousVersionnumberобязательноversionnumberобязательноsuggestionsobject[]обязательноtrackletIdstringобязательноsuggestionobject | nullобязательноNull where the suggestion went away
playerIdstringобязательноpnumberобязательноThe player's probability, 0..1 (shown as "Ali? %82")
marginnumberобязательноp minus the runner-up's probability (another player or nobody on the roster)
Finish labelling and work out the stats
Нужен сеанс
For the organiser, side captains and admins (403 labelNotAllowed for others in the match, 404 for everyone else). Labels change while the analysis is NEEDS_LABELS or PUBLISHED (then finish again to update the stats), or FAILED in the stats stage (failedStage stats: fix labels, then finish again); 409 labelsLocked while the stats are worked out or after another stage failed, 409 notReady before tracking finished. Moves the analysis to COMPUTING and queues the stats job in one step; poll GET /analysis until PUBLISHED. 409 nothingLabelled when no tracklet is a player yet; 409 playersMissing when attended players have no tracklet (the roster entries without one): send allowMissing true to go ahead. The body may be left out.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
allowMissingbooleanнеобязательноGo ahead although some attended players have no tracklet
data в ответе
analysisIdstringобязательноstatusstringобязательноЗначения:
"COMPUTING"jobIdstringобязательноlabelledPlayersnumberобязательноmissingPlayersnumberобязательноAttended players without a tracklet (allowed with allowMissing)
A video layer file
Нужен сеанс
For people who attended and the organiser, side captains and admins (403 watchNotAllowed for others in the match, 404 for everyone else). name is index.json or chunk_<n>.json; the format is LayerIndex and LayerChunk in packages/contracts/src/pipeline.ts: index.json gives fps, stride, width and height (the boxes' pixel space) and the chunk numbers; chunk n holds frames [n × chunk_frames, (n + 1) × chunk_frames) as { frames: { "<frame>": { p: [[trackId, x0, y0, x1, y1], …], b?: [x, y, interpolated], o?: trackId } } }. The JSON is returned as is (no { data } envelope). The files are rewritten when the pitch is marked again, so keep them with their ETag and send If-None-Match: 304 while unchanged. 404 notReady before tracking finished or for a chunk that does not exist.
Показать поляСкрыть поля
Параметры пути
idstringобязательноnamestringобязательно
Параметры запроса
generationstringнеобязательноOptional committed worker run from GET /replay. When supplied, reads the immutable layer for that run and returns 409 replayChanged if stale; use with an overlay bearing the same generation.
Отчёт о матче
тег Report, 5 эндпоинтовThe match report
Нужен сеанс
Until the video analysis is published,
readyis false and the body says where the video stands (anyone involved in the match). Once published: highlights, confirmed goals, the man-of-the-match tally with the analysis's suggestion, heatmaps, passes and per-player numbers. For people who played (attended) and the match's managers. Others involved in the match get 403 FORBIDDEN with fields.form reportNotAllowed once the report is published; people outside the match get 404. Each player's numbers follow their visibility setting (visible) and their tier. Play the highlights with GET …/highlights.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
readybooleanобязательноЗначения:
false,truematchIdstringобязательноmatchStatusstringнеобязательноЗначения:
"planned","played","cancelled"scoreStatestringнеобязательноЗначения:
"none","entered","confirmed"recordingstringнеобязательноЗначения:
"upload","official"analysisobject | nullнеобязательноNull until a video came in
idstringобязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"progressnumberобязательно0..1 within the current stage
canobjectобязательноmanagebooleanобязательноuploadbooleanобязательноMay upload the match video
analysisIdstringнеобязательноpublishedAtstring | nullнеобязательноkickoffSnumberнеобязательноKick-off in seconds into the video
pitchobjectнеобязательноMetres
lengthnumberобязательноwidthnumberобязательно
sidesobjectнеобязательноAobjectобязательноlabelstringобязательноgoalsnumber | nullобязательноThe entered score; null until then
Bobjectобязательноlabelstringобязательноgoalsnumber | nullобязательно
videoobjectнеобязательноreadybooleanобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
highlightsobject[]необязательноidstringобязательноkindstringобязательноЗначения:
"goal","chance","save"startSnumberобязательноPlay the match video from here …
endSnumberобязательно… to here (seconds)
minutenumberобязательноsidestring | nullобязательноЗначения:
"A","B"goalobject | nullобязательноGoal highlights: scorer and assist once a manager confirmed the goal; rejected candidates are left out
idstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed"ownGoalbooleanобязательноscorerobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
goalsobject[]необязательноConfirmed goals in match order
idstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноassistobject[]обязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
reviewobjectнеобязательноcandidatesnumberобязательноGoal candidates waiting for a manager's decision
tallyobjectобязательноConfirmed goals per side
AnumberобязательноBnumberобязательно
mismatchbooleanобязательноThe score is in and the confirmed goals do not add up to it
motmobjectнеобязательноtotalVotesnumberобязательноvotesobject[]обязательноplayerIdstringобязательноdisplayNamestringобязательноsidestring | nullобязательноЗначения:
"A","B"votesnumberобязательно
leadersobject[]обязательноThe most voted; several on a tie
playerIdstringобязательноdisplayNamestringобязательноsidestring | nullобязательноЗначения:
"A","B"votesnumberобязательно
suggestedobject | nullобязательноThe analysis's pick: the highest rating you may see
playerIdstringобязательноdisplayNamestringобязательноsidestring | nullобязательноЗначения:
"A","B"ratingnumberобязательноphotoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
myVotestring | nullобязательноThe player you voted for, while that vote counts (votes are cast with POST /api/v1/matches/{id}/motm)
playersobject[]необязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноsidestring | nullобязательноЗначения:
"A","B"isMebooleanобязательноvisiblebooleanобязательноFalse when the player's visibility setting hides their numbers from you; then every number is null
photoobject | nullобязательноTheir profile photo, under the same rule as the numbers
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
tierstring | nullобязательноA: full numbers; B (partial): minutes and the heatmap; C (not enough data): nothing
Значения:
"A","B","C"minutesnumber | nullобязательноdistanceMnumber | nullобязательноEstimated, tier A at a believable pace (40–140 m/min) only
metersPerMinnumber | nullобязательноratingnumber | nullобязательно0–10, tier A
touchesnumber | nullобязательноpassesnumber | nullобязательноpassesCompletednumber | nullобязательноcompletionnumber | nullобязательноCompleted passes as a share of passes, 0..1
shotsnumber | nullобязательноgoalsnumberобязательноConfirmed goals; own goals count for nobody
assistsnumberобязательноavgobject | nullобязательноAverage position on a unit pitch, attacking left to right (tier A)
unumberобязательноvnumberобязательно
heatmapobject | nullобязательноSeconds per cell, row-major: grid[row * cols + col]. Columns run along the length from the subject's own goal to the goal it attacks (the subject attacks left to right); rows run across, from the far touchline. The ball grid uses side A's direction. Blur with sigma ≈ 1.5 m when drawing.
colsnumberобязательноrowsnumberобязательноgridnumber[]обязательно
heatmapsobjectнеобязательноsidesobjectобязательноEach side's grid is the sum of its players' grids, over the players whose numbers you may see (
visible); null when there are noneAobject | nullобязательноSeconds per cell, row-major: grid[row * cols + col]. Columns run along the length from the subject's own goal to the goal it attacks (the subject attacks left to right); rows run across, from the far touchline. The ball grid uses side A's direction. Blur with sigma ≈ 1.5 m when drawing.
colsnumberобязательноrowsnumberобязательноgridnumber[]обязательно
Bobject | nullобязательноSeconds per cell, row-major: grid[row * cols + col]. Columns run along the length from the subject's own goal to the goal it attacks (the subject attacks left to right); rows run across, from the far touchline. The ball grid uses side A's direction. Blur with sigma ≈ 1.5 m when drawing.
colsnumberобязательноrowsnumberобязательноgridnumber[]обязательно
ballobject | nullобязательноSeconds per cell, row-major: grid[row * cols + col]. Columns run along the length from the subject's own goal to the goal it attacks (the subject attacks left to right); rows run across, from the far touchline. The ball grid uses side A's direction. Blur with sigma ≈ 1.5 m when drawing.
colsnumberобязательноrowsnumberобязательноgridnumber[]обязательно
totalsobjectнеобязательноAobjectобязательноOver the side's players whose full numbers you see
playersnumberобязательноpassesnumberобязательноpassesCompletednumberобязательноcompletionnumber | nullобязательноtouchesnumberобязательноshotsnumberобязательно
BobjectобязательноOver the side's players whose full numbers you see
playersnumberобязательноpassesnumberобязательноpassesCompletednumberобязательноcompletionnumber | nullобязательноtouchesnumberобязательноshotsnumberобязательно
Highlights and a link to play them
Нужен сеанс
Play each highlight from
startStoendSof the linked video, one after another. Empty until the analysis is published. For people who played and managers (403 watchNotAllowed for others in the match, 404 outside it). Every link issued is written to the audit log; links last 2 hours.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
highlightsobject[]обязательноidstringобязательноkindstringобязательноЗначения:
"goal","chance","save"startSnumberобязательноPlay the match video from here …
endSnumberобязательно… to here (seconds)
minutenumberобязательноsidestring | nullобязательноЗначения:
"A","B"goalobject | nullобязательноGoal highlights: scorer and assist once a manager confirmed the goal; rejected candidates are left out
idstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed"ownGoalbooleanобязательноscorerobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
videoobject | nullобязательноurlstringобязательноA presigned GET link to the 720p match video, valid for 2 hours; supports range requests
expiresAtstringобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
Goal candidates and goals
Нужен сеанс
The analysis leaves one candidate per goal of the score, with a best guess for the scorer and the assist. Managers confirm or reject them (POST …/goals/{goalId}) and add missed goals (POST here). Play a goal's
clipfrom the match video (GET /api/v1/matches/{id}/video). For people who played (attended) and the match's managers. Others involved in the match get 403 FORBIDDEN with fields.form goalsNotAllowed once the report is published; people outside the match get 404.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
readybooleanобязательноЗначения:
false,truematchIdstringобязательноmatchStatusstringнеобязательноЗначения:
"planned","played","cancelled"scoreStatestringнеобязательноЗначения:
"none","entered","confirmed"recordingstringнеобязательноЗначения:
"upload","official"analysisobject | nullнеобязательноNull until a video came in
idstringобязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"progressnumberобязательно0..1 within the current stage
canobjectобязательноmanagebooleanобязательноuploadbooleanобязательноMay upload the match video
analysisIdstringнеобязательноsidesobjectнеобязательноAobjectобязательноlabelstringобязательноgoalsnumber | nullобязательноThe entered score; null until then
Bobjectобязательноlabelstringобязательноgoalsnumber | nullобязательно
kickoffSnumberнеобязательноvideoobjectнеобязательноreadybooleanобязательноdurationSnumber | nullобязательноwidthnumber | nullобязательноheightnumber | nullобязательно
candidatesobject[]необязательноidstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноassistobject[]обязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
confirmedobject[]необязательноidstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноassistobject[]обязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
rejectedobject[]необязательноidstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноassistobject[]обязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
rosterobjectнеобязательноWho can be credited on each side: people who played there and players the analysis identified there
Aobject[]обязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
sidestringобязательноЗначения:
"A","B"
Bobject[]обязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
sidestringобязательноЗначения:
"A","B"
tallyobjectнеобязательноAnumberобязательноBnumberобязательно
mismatchbooleanнеобязательно
Add a goal the video missed
Нужен сеанс
Organiser, side captains and admins (403 decideNotAllowed). The goal is confirmed at once (source user) and gets a highlight. 409 notPublished until the analysis is published. 422 INVALID with fields: at (required, invalid, afterEnd: past the end of the video), side (required), scorerId (required, notOnSide, notOpponent for own goals), assistId (notOnSide, sameAsScorer, ownGoal).
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
atnumber | stringобязательноWhen the ball went in, in the match video: seconds as a number, or what people type: "mm:ss" ("23:15"), "h:mm:ss", or whole minutes ("23")
sidestringобязательноThe side credited with the goal
Значения:
"A","B"scorerIdstring | nullнеобязательноMust have played for the credited side (for an own goal: for the other side; see
roster). Null only when nobody is listed on that side, e.g. an opponent team that is not on Akıllı Futbol: the goal then counts for the side and for nobodyassistIdstring | nullнеобязательноPlayed for that side; leave out or null for no assist
ownGoalbooleanнеобязательно
data в ответе
idstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноplayerIdstringобязательноpnumberобязательно
assistobject[]обязательноplayerIdstringобязательноpnumberобязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
Answer “Bu gol mü?”
Нужен сеанс
Organiser, side captains and admins (403 decideNotAllowed). confirm credits the goal (left-out fields keep the analysis's guess), reject drops it; a decided goal can be decided again to correct it. Players' goals and assists are recounted at once. 404 with fields.form goalGone when a new analysis replaced the candidate. 422 INVALID with fields: side (required), scorerId (required, notOnSide, notOpponent), assistId (notOnSide, sameAsScorer, ownGoal).
Показать поляСкрыть поля
Параметры пути
idstringобязательноgoalIdstringобязательно
Тело запроса
decisionstringобязательноЗначения:
"confirm","reject"sidestringнеобязательноThe side credited with the goal; left out: the candidate's side
Значения:
"A","B"scorerIdstring | nullнеобязательноLeft out: the analysis's best guess. Must have played for the credited side (for an own goal: for the other side; see
roster). Null only when nobody is listed on that side, e.g. an opponent team that is not on Akıllı Futbol: the goal then counts for the side and for nobodyassistIdstring | nullнеобязательноLeft out: the analysis's best guess; null: no assist. Must have played for the credited side; none for own goals
ownGoalbooleanнеобязательно
data в ответе
idstringобязательноstatusstringобязательноЗначения:
"candidate","confirmed","rejected"sourcestringобязательноauto: found in the video; user: added by hand
Значения:
"auto","user"sidestring | nullобязательноThe side credited with the goal (an own goal counts for the side that did not put it in)
Значения:
"A","B"atSnumberобязательноSeconds into the match video
minutenumberобязательноMatch minute from kick-off: 0:00–0:59 is the 1st
clipobjectобязательноThe stretch of video to play: 8 s before the goal to 4 s after
startSnumberобязательноendSnumberобязательно
ownGoalbooleanобязательноscorerobject | nullобязательноFor candidates the analysis's best guess; for decided goals who scored (null when nobody was listed on that side)
playerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
assistobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
confidencenumber | nullобязательноThe analysis's confidence in a candidate, 0..1
optionsobjectобязательноEveryone the analysis considered, best first
scorerobject[]обязательноplayerIdstringобязательноpnumberобязательно
assistobject[]обязательноplayerIdstringобязательноpnumberобязательно
decidedByobject | nullобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательноNull for guests
decidedAtstring | nullобязательно
Профили
тег Profiles, 4 эндпоинтаA player's profile
Сеанс не нужен
Everyone sees the name and the handle. Positions, teams, career numbers, the heatmap and the match history follow the player's visibility: public to everyone; teammates to people who share a team with them, or a match they took part in (answered yes or maybe, or played); private to nobody else. When they are hidden the response is
{ visible: false, … }with the name and the handle only. 404 NOT_FOUND for an unknown handle; 429 RATE_LIMITED after 30 unknown handles in 15 minutes (per account; signed out, per address, or in one count shared by every caller whose address cannot be trusted), for known handles too until the window ends.Показать поляСкрыть поля
Параметры пути
handlestringобязательно
data в ответе
visiblebooleanобязательноЗначения:
true,falseisMebooleanобязательноЗначения:
falseplayerobjectобязательноidstringобязательноhandlestringобязательноdisplayNamestringобязательноpositionsstring[]обязательноЗначения:
"goalkeeper","defender","midfielder","forward"visibilitystringобязательноЗначения:
"public","teammates","private"photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
teamsobject[]необязательноslugstringобязательноnamestringобязательноkitHexstring | nullобязательноrolestringобязательноЗначения:
"captain","co_captain","member"canOpenbooleanобязательноWhether you may open the team (GET /api/v1/teams/{slug}): members and admins only
careerobjectнеобязательноmatchesintegerобязательноMatches they played (attendance, or found in a published video analysis); cancelled ones do not count
winsintegerобязательноdrawsintegerобязательноlossesintegerобязательноgoalsintegerобязательноPer match: the confirmed goals once the match has any (own goals left out); until then the goals they reported with the score
assistsintegerобязательноAssists on confirmed goals
motmintegerобязательноMatches where nobody got more man-of-the-match votes
heatmapobject | nullнеобязательноThe sum of their match heatmaps
colsintegerобязательноrowsintegerобязательноgridnumber[]обязательноSeconds per cell, row by row; cols run along the pitch's length and the player attacks left to right
matchesintegerобязательно
attributesobject | nullнеобязательноNull before their first analysed match with full numbers (tier A)
matchesintegerобязательноThe analysed matches (tier A) behind the scores: the latest 10 at most
scoresobjectобязательноpaceinteger | nullобязательноFrom their top speed per match (the median)
от 1 до 99
shootinginteger | nullобязательноGoals per match (counted twice) and shots per ten minutes
от 1 до 99
passinginteger | nullобязательноPass accuracy (counted twice) and passes per ten minutes
от 1 до 99
involvementinteger | nullобязательноTouches per ten minutes
от 1 до 99
staminainteger | nullобязательноMetres per minute, at a believable pace
от 1 до 99
basisobjectобязательноgoalsPerMatchnumberобязательноshotsPer10number | nullобязательноpassAccuracynumber | nullобязательно0–1
passesPer10number | nullобязательноtouchesPer10number | nullобязательноmetersPerMininteger | nullобязательноEstimated
averagesobject | nullнеобязательноNull before their first analysed match with full numbers (tier A)
matchesintegerобязательноEvery analysed match with full numbers (tier A)
ratingnumber | nullобязательноAverage match rating, 0–10
bestRatingnumber | nullобязательноminutesintegerобязательноdistanceKmnumber | nullобязательноEstimated, over matches at a believable pace
passesnumber | nullобязательноpassAccuracynumber | nullобязательно0–1
touchesnumber | nullобязательноshotsnumber | nullобязательно
historyobject[]необязательноThe latest 30 matches, newest first
matchIdstringобязательноstartsAtstringобязательноISO 8601
titlestring | nullобязательноsidestring | nullобязательноThe side they played on
Значения:
"A","B"sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательно
resultstring | nullобязательноЗначения:
"win","draw","loss"goalsintegerобязательноTheir goals: the confirmed ones once the match has any, until then the ones reported with the score
assistsintegerобязательноTheir assists on confirmed goals
motmbooleanобязательноMan of the match (most votes; shared tops count)
statobject | nullобязательноtierstringобязательноA: full stats; B: partial (minutes and heatmap); C: not enough data
Значения:
"A","B","C"minutesinteger | nullобязательноdistanceMinteger | nullобязательноEstimated; tier A at a believable pace only
ratingnumber | nullобязательноThe analysis's match rating, 0–10 to one decimal; tier A only
touchesinteger | nullобязательноTier A only
passesinteger | nullобязательноTier A only
passesCompletedinteger | nullобязательноTier A only
shotsinteger | nullобязательноTier A only
heatmapobject | nullобязательноA coarse 16×10 grid for small drawings
colsintegerобязательноrowsintegerобязательноgridnumber[]обязательноSeconds per cell, row by row; cols run along the pitch's length and the player attacks left to right
canOpenbooleanобязательноWhether you may open this match (GET its report); seeing a profile does not open its matches
A profile photo
Сеанс не нужен
A square WebP copy. Use the paths a player's
photogives you; a new upload gets a new id. 404 NOT_FOUND for an unknown id and for a photo you may not see (the player's visibility), alike. 422 INVALID for another size.Показать поляСкрыть поля
Параметры пути
idstringобязательно
Параметры запроса
sizestringнеобязательно
A player's card
Сеанс не нужен
The numbers on the player card: the same visibility as the profile (403 FORBIDDEN when the profile is hidden from you). 404 NOT_FOUND and 429 RATE_LIMITED as for GET /api/v1/players/{handle}.
Показать поляСкрыть поля
Параметры пути
handlestringобязательно
data в ответе
handlestringобязательноdisplayNamestringобязательноpositionsstring[]обязательноЗначения:
"goalkeeper","defender","midfielder","forward"photoobject | nullобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
overallinteger | nullобязательно1–99: ten times the average match rating (0–10, from the video analysis) of the latest 10 rated matches; null before the first
ratedMatchesintegerобязательноHow many matches the overall averages
matchesintegerобязательноgoalsintegerобязательноassistsintegerобязательноmotmintegerобязательноMan of the match awards
winRatenumber | nullобязательноWins as a share of matches with a result, 0–1
distanceKmnumber | nullобязательноEstimated kilometres per analysed match (tier A, at a believable pace)
passAccuracynumber | nullобязательноCompleted passes as a share of passes in analysed matches, 0–1
attributesobject | nullобязательноThe profile's attributes (pace, shooting, passing, involvement, stamina), 1–99, worked out from the video; null before the first analysed match with full numbers. With them the card shows these five and the matches instead of the six career numbers
paceinteger | nullобязательноот 1 до 99
shootinginteger | nullобязательноот 1 до 99
passinginteger | nullобязательноот 1 до 99
involvementinteger | nullобязательноот 1 до 99
staminainteger | nullобязательноот 1 до 99
heatmapobject | nullобязательноThe career heatmap: seconds per cell, cols along the length, attacking left to right
colsintegerобязательноrowsintegerобязательноgridnumber[]обязательно
teamobject | nullобязательноThe team on the card's badge: their first team by name
namestringобязательноkitHexstring | nullобязательно
A player's card as a PNG
Сеанс не нужен
1080 × 1920 PNG, the size WhatsApp status and Instagram stories fill, with the card clear of the top and bottom 250 px. Same visibility as the profile (403 FORBIDDEN when hidden from you).
download=1answers withContent-Disposition: attachment. The answer carries an ETag; send it back in If-None-Match for a 304 while the card is unchanged. 429 RATE_LIMITED past 60 images in 10 minutes per person (signed out, per address).Показать поляСкрыть поля
Параметры пути
handlestringобязательно
Параметры запроса
localestringнеобязательноdownloadstringнеобязательно
Главная
тег Feed, 1 эндпоинт- GET
/api/ v1/ feed The home screen: invitations, the next match, to-dos, recent results and teams
Нужен сеанс
Everything the home screen shows, computed for the caller with the same rules as the match pages. Answer an invitation with POST /api/v1/matches/{id}/rsvp; each to-do names its match, and what to open follows from
kind. The lists are capped, with no further pages: at most 20 invitations, to-dos from your 30 latest matches with work left, the last 5 results (GET /api/v1/matches lists more). Errors: 401 signed out.Показать поляСкрыть поля
data в ответе
greetingobjectобязательноperiodstringобязательноThe part of the day in Istanbul: 05–12 morning, 12–18 afternoon, 18–24 evening, 00–05 night
Значения:
"morning","afternoon","evening","night"namestringобязательноYour display name
isNewbooleanобязательноNo teams and no matches yet: show a welcome with create a team, create a match and join with a code
invitationsobject[]обязательноOpen matches waiting for your answer (POST /api/v1/matches/{id}/rsvp), soonest first; at most 20
idstring (uuid)обязательноThe match id, for GET /api/v1/matches/{id}
titlestring | nullобязательноNull when untitled: name it by its sides, "A – B"
startsAtstring (date-time)обязательноISO 8601 (UTC)
sidesobjectобязательноSide A wears orange in the apps, side B blue
Aobjectобязательноlabelstringобязательно
Bobjectобязательноlabelstringобязательно
venueobject | nullобязательноnamestringобязательноverifiedbooleanобязательноChecked by an admin: show the verified badge
addressstring | nullобязательноlatitudenumber | nullобязательноWGS84 latitude, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84 longitude, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноnamestringобязательно
endsAtstring (date-time)обязательноISO 8601 (UTC)
organizerobjectобязательноdisplayNamestringобязательно
teamobject | nullобязательноYour team, when it was invited as a whole
namestringобязательно
sidestring | nullобязательноThe side you would play on, when known
Значения:
"A","B"comingintegerобязательноHow many said "yes"
nextMatchobject | nullобязательноThe soonest match you said "yes" or "maybe" to that is not over
idstring (uuid)обязательноThe match id, for GET /api/v1/matches/{id}
titlestring | nullобязательноNull when untitled: name it by its sides, "A – B"
startsAtstring (date-time)обязательноISO 8601 (UTC)
sidesobjectобязательноSide A wears orange in the apps, side B blue
Aobjectобязательноlabelstringобязательно
Bobjectобязательноlabelstringобязательно
venueobject | nullобязательноnamestringобязательноverifiedbooleanобязательноChecked by an admin: show the verified badge
addressstring | nullобязательноlatitudenumber | nullобязательноWGS84 latitude, when the venue set its location (for directions); null otherwise
longitudenumber | nullобязательноWGS84 longitude, when the venue set its location (for directions); null otherwise
pitchobject | nullобязательноnamestringобязательно
endsAtstring (date-time)обязательноISO 8601 (UTC)
kickedOffbooleanобязательноThe match is being played now
comingintegerобязательноHow many said "yes"
maybeintegerобязательноHow many said "maybe"
meobjectобязательноrsvpstringобязательноЗначения:
"yes","maybe"sidestring | nullобязательноЗначения:
"A","B"
todosobject[]обязательноOne per pending action: the latest match first, in pipeline order within a match; from your 30 latest matches with work left
kindstringобязательноscore: enter the score (organiser, side captains, admins; after kick-off). upload: upload the video (people who may upload, once the score is in, until a video arrives, unless the pitch's official camera records it). prep: mark the pitch (managers; analysis NEEDS_PREP). labels: say who is who (managers; NEEDS_LABELS). goals: confirm goal candidates (managers; once the analysis is PUBLISHED). vote: vote for the man of the match (people who played, when someone else played too; until seven days after kick-off, see voteUntil)
Значения:
"score","upload","prep","labels","goals","vote"matchobjectобязательноidstring (uuid)обязательноThe match id, for GET /api/v1/matches/{id}
titlestring | nullобязательноNull when untitled: name it by its sides, "A – B"
startsAtstring (date-time)обязательноISO 8601 (UTC)
sidesobjectобязательноSide A wears orange in the apps, side B blue
Aobjectобязательноlabelstringобязательно
Bobjectобязательноlabelstringобязательно
candidatesinteger | nullобязательноgoals: how many candidates wait for a decision; null for other kinds
voteUntilstring (date-time) | nullобязательноvote: when voting closes (kick-off plus seven days); null for other kinds
recentobject[]обязательноThe last 5 matches you played that have a score, newest first
idstring (uuid)обязательноtitlestring | nullобязательноstartsAtstring (date-time)обязательноISO 8601 (UTC)
sidesobjectобязательноAobjectобязательноlabelstringобязательноgoalsintegerобязательно
Bobjectобязательноlabelstringобязательноgoalsintegerобязательно
sidestring | nullобязательноThe side you played on, when known
Значения:
"A","B"resultstring | nullобязательноFor your side; null when your side is unknown
Значения:
"win","draw","loss"ratingnumber | nullобязательно0–10 with one decimal, from the published video analysis; null without one
teamsobject[]обязательноYour active teams, alphabetical
idstring (uuid)обязательноslugstringобязательноFor GET /api/v1/teams/{slug}
namestringобязательноcitystring | nullобязательноkitHomeHexstringобязательно#rrggbb, lower-case
kitAwayHexstring | nullобязательно#rrggbb, lower-case
crestobject | nullобязательноshapestringобязательноЗначения:
"shield","round","rounded","diamond","hexagon","pennant","arched","oval","crest","octagon","ticket","star"primarystringобязательноsecondarystringобязательноletterstringобязательноpatternstringнеобязательноЗначения:
"plain","split","stripes","sash","chevron","hoops"По умолчанию:"plain"detailstringнеобязательноЗначения:
"none","star","ball","crown","laurel","wings"По умолчанию:"none"
rolestringобязательноYour role in the team
Значения:
"captain","co_captain","member"memberCountintegerобязательно
Reports
1 эндпоинт- POST
/api/ v1/ reports Report a profile or a team
Нужен сеанс
For a name, a photo, harassment, spam or someone pretending to be another person. Admins see it at /admin/reports and act with the usual tools. One open report per person and target: sending it again answers the open one's id. 404 NOT_FOUND for an unknown handle or slug; 422
fields.targetId= self (yourself); 429 after 10 reports an hour.Показать поляСкрыть поля
Тело запроса
targetTypestringобязательноЗначения:
"player","team"targetIdstringобязательноThe player's username (handle) or the team's slug
1–80 символов
reasonstringобязательноЗначения:
"name","photo","harassment","spam","impersonation","other"notestringнеобязательноне больше 500 символов
data в ответе
idstringобязательноThe report's id
Администрирование
тег Admin, 25 эндпоинтовReports: open ones first, oldest first, then the answered ones
Нужен сеанс
Показать поляСкрыть поля
Параметры запроса
statusstringнеобязательноOnly open, dismissed or actioned reports
limitintegerнеобязательноAt most 200; 100 by default
data в ответе
Тип:
object[]Поля каждого элемента:
idstringобязательноstatusstringобязательноЗначения:
"open","dismissed","actioned"reasonstringобязательноЗначения:
"name","photo","harassment","spam","impersonation","other"notestring | nullобязательноcreatedAtstringобязательноreporterobjectобязательноplayerIdstringобязательноdisplayNamestringобязательноhandlestring | nullобязательно
targetobjectобязательноtypestringобязательноЗначения:
"player","team"playerIdstringнеобязательноdisplayNamestringнеобязательноhandlestring | nullнеобязательноnull once the account was deleted
photoobject | nullнеобязательноSquare WebP copies of the player's profile photo: paths on this host (GET /api/v1/photos/{id}). Present only when you may see the player (their visibility, as for their stats); null shows their initials instead
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
userIdstring | nullнеобязательноbannedbooleanнеобязательноdeletedbooleanнеобязательноteamIdstringнеобязательноnamestringнеобязательноslugstringнеобязательноarchivedbooleanнеобязательно
openAboutTargetintegerобязательноOther open reports about the same profile or team
resolvedAtstring | nullобязательноresolutionNotestring | nullобязательно
Answer a report
Нужен сеанс
Audited. 409 CONFLICT with fields.form = resolved when it was already answered.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
actionstringобязательноdismiss: nothing to do; actioned: an admin acted on it (a photo removed, a ban)
Значения:
"dismiss","actioned"notestringнеобязательноне больше 500 символов
data в ответе
idstringобязательноstatusstringобязательноЗначения:
"dismissed","actioned"
Headline numbers: people, teams, this week's matches, analyses by status
Нужен сеанс
Показать поляСкрыть поля
data в ответе
peopleintegerобязательноadminsintegerобязательноbannedintegerобязательноteamsintegerобязательноNot archived
matchesThisWeekintegerобязательноMonday to Sunday in Turkish time, cancelled matches left out
weekobjectобязательноstartstring (date-time)обязательноendstring (date-time)обязательно
venuesintegerобязательноunverifiedVenuesintegerобязательноanalysesmap<string, integer>обязательноawaitingRecordingsintegerобязательноMatches waiting for the pitch's official recording (see GET /api/v1/admin/official-recordings)
recentAuditobject[]обязательноidstring (uuid)обязательноactionstringобязательноe.g. admin.ban, admin.venue.verify
targetTypestringобязательноtargetIdstring | nullобязательноtargetobject | nullобязательноThe person, team, match or venue the entry is about, if it still exists
kindstringобязательноЗначения:
"person","team","match","venue"namestringобязательноusernamestring | nullнеобязательноuserIdstring (uuid) | nullнеобязательноslugstringнеобязательноsidesstring[]необязательно
dataanyобязательноDetails of the change; never secrets
createdAtstring (date-time)обязательноactorIdstring (uuid) | nullобязательноNull for the system
actorobject | nullобязательноidstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноuserIdstring (uuid) | nullобязательно
Find people by username or name
Нужен сеанс
Показать поляСкрыть поля
Параметры запроса
qstringнеобязательноPart of a username (a leading @ is ignored; Turkish letters match their plain forms) or a name; empty lists the newest accounts. An exact username comes first.
filterstringнеобязательноadmins or banned
limitintegerнеобязательно1–100, default 30
data в ответе
Тип:
object[]Поля каждого элемента:
idstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноThe player's display name
rolestringобязательноЗначения:
"admin","user"bannedbooleanобязательноbanReasonstring | nullобязательноcreatedAtstring (date-time)обязательноplayerIdstring (uuid) | nullобязательноphotoobject | nullобязательноTheir profile photo; admins see every photo
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
One person with their activity and recent audit entries
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноThe player's display name
rolestringобязательноЗначения:
"admin","user"bannedbooleanобязательноbanReasonstring | nullобязательноcreatedAtstring (date-time)обязательноplayerIdstring (uuid) | nullобязательноphotoobject | nullобязательноTheir profile photo; admins see every photo
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
sessionsintegerобязательноOpen sessions
teamsintegerобязательноmatchesintegerобязательноauditobject[]обязательноThe 20 newest entries by or about the person
idstring (uuid)обязательноactionstringобязательноe.g. admin.ban, admin.venue.verify
targetTypestringобязательноtargetIdstring | nullобязательноtargetobject | nullобязательноThe person, team, match or venue the entry is about, if it still exists
kindstringобязательноЗначения:
"person","team","match","venue"namestringобязательноusernamestring | nullнеобязательноuserIdstring (uuid) | nullнеобязательноslugstringнеобязательноsidesstring[]необязательно
dataanyобязательноDetails of the change; never secrets
createdAtstring (date-time)обязательноactorIdstring (uuid) | nullобязательноNull for the system
actorobject | nullобязательноidstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноuserIdstring (uuid) | nullобязательно
Make someone an admin or take it away
Нужен сеанс
409 CONFLICT with fields.form = "self" on your own account.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
rolestringобязательно"admin" gives full access; "user" takes it away
Значения:
"admin","user"
data в ответе
idstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноThe player's display name
rolestringобязательноЗначения:
"admin","user"bannedbooleanобязательноbanReasonstring | nullобязательноcreatedAtstring (date-time)обязательноplayerIdstring (uuid) | nullобязательноphotoobject | nullобязательноTheir profile photo; admins see every photo
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Ban someone and end all their sessions
Нужен сеанс
Sign-in then answers 403 BANNED_USER. 409 CONFLICT with fields.form = "self" on your own account.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
reasonstringобязательноShown to admins; 3–300 characters
3–300 символов
data в ответе
idstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноThe player's display name
rolestringобязательноЗначения:
"admin","user"bannedbooleanобязательноbanReasonstring | nullобязательноcreatedAtstring (date-time)обязательноplayerIdstring (uuid) | nullобязательноphotoobject | nullобязательноTheir profile photo; admins see every photo
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Lift a ban
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноThe player's display name
rolestringобязательноЗначения:
"admin","user"bannedbooleanобязательноbanReasonstring | nullобязательноcreatedAtstring (date-time)обязательноplayerIdstring (uuid) | nullобязательноphotoobject | nullобязательноTheir profile photo; admins see every photo
smallstringобязательно128 px
mediumstringобязательно512 px
largestringобязательно1024 px
Set a temporary password and end all their sessions
Нужен сеанс
Pass the password on to the person; they can change it after signing in. 409 CONFLICT with fields.form = "self" on your own account.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
passwordstringобязательноShown once, e.g. kavo-tesu-ribe-mena; only its hash is stored
Venues, verified first
Нужен сеанс
Verified venues first, then by name; at most 200, with no further pages: narrow the list with
q.Показать поляСкрыть поля
Параметры запроса
qstringнеобязательноPart of a name, city or district
data в ответе
Тип:
object[]Поля каждого элемента:
idstring (uuid)обязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноcreatedAtstring (date-time)обязательноmatchesintegerобязательноpitchesintegerобязательноcamerasintegerобязательноofficialCamerasintegerобязательно
Add a venue
Нужен сеанс
Показать поляСкрыть поля
Тело запроса
namestringобязательно2–80 символов
citystring | nullнеобязательноне больше 60 символов
districtstring | nullнеобязательноне больше 60 символов
addressstring | nullнеобязательноне больше 200 символов
verifiedbooleanнеобязательноПо умолчанию:
false
data в ответе
idstring (uuid)обязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноcreatedAtstring (date-time)обязательноmatchesintegerобязательноcreatedByobject | nullобязательноidstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательно
pitchesobject[]обязательноidstring (uuid)обязательноnamestringобязательноindoorbooleanобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноgoalHeightMnumberобязательноmeasuredbooleanобязательноFalse while the sizes are defaults
createdAtstring (date-time)обязательноmatchesintegerобязательноcamerasobject[]обязательноidstring (uuid)обязательноlabelstringобязательноofficialbooleanобязательноThe venue's own recorder; at most one per pitch
activeCalibrationIdstring (uuid) | nullобязательноcreatedAtstring (date-time)обязательно
One venue with its pitches and cameras
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
idstring (uuid)обязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноcreatedAtstring (date-time)обязательноmatchesintegerобязательноcreatedByobject | nullобязательноidstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательно
pitchesobject[]обязательноidstring (uuid)обязательноnamestringобязательноindoorbooleanобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноgoalHeightMnumberобязательноmeasuredbooleanобязательноFalse while the sizes are defaults
createdAtstring (date-time)обязательноmatchesintegerобязательноcamerasobject[]обязательноidstring (uuid)обязательноlabelstringобязательноofficialbooleanобязательноThe venue's own recorder; at most one per pitch
activeCalibrationIdstring (uuid) | nullобязательноcreatedAtstring (date-time)обязательно
Edit a venue, verify it or take the verification away
Нужен сеанс
Send only the fields to change; an empty string or null clears city, district or address.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
namestringнеобязательно2–80 символов
citystring | nullнеобязательноне больше 60 символов
districtstring | nullнеобязательноне больше 60 символов
addressstring | nullнеобязательноне больше 200 символов
verifiedbooleanнеобязательно
data в ответе
idstring (uuid)обязательноnamestringобязательноcitystring | nullобязательноdistrictstring | nullобязательноaddressstring | nullобязательноverifiedbooleanобязательноcreatedAtstring (date-time)обязательноmatchesintegerобязательноcreatedByobject | nullобязательноidstring (uuid)обязательноdisplayNamestringобязательноhandlestring | nullобязательно
pitchesobject[]обязательноidstring (uuid)обязательноnamestringобязательноindoorbooleanобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноgoalHeightMnumberобязательноmeasuredbooleanобязательноFalse while the sizes are defaults
createdAtstring (date-time)обязательноmatchesintegerобязательноcamerasobject[]обязательноidstring (uuid)обязательноlabelstringобязательноofficialbooleanобязательноThe venue's own recorder; at most one per pitch
activeCalibrationIdstring (uuid) | nullобязательноcreatedAtstring (date-time)обязательно
Add a pitch to a venue
Нужен сеанс
Sizes are in metres. 409 CONFLICT with fields.name = "taken" when the venue has a pitch with that name; 422 with fields.widthM = "widerThanLong".
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
namestringобязательно1–40 символов
indoorbooleanнеобязательноПо умолчанию:
falselengthMnumberнеобязательноот 15 до 110По умолчанию:
40widthMnumberнеобязательноот 10 до 75По умолчанию:
25goalWidthMnumberнеобязательноот 1 до 7.32По умолчанию:
3goalHeightMnumberнеобязательноот 1 до 2.44По умолчанию:
2measuredbooleanнеобязательноПо умолчанию:
false
data в ответе
idstring (uuid)обязательноnamestringобязательноindoorbooleanобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноgoalHeightMnumberобязательноmeasuredbooleanобязательноFalse while the sizes are defaults
createdAtstring (date-time)обязательноvenueIdstring (uuid)обязательно
The venue's pitch admin login, set-up checklist, booking health and recent changes
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
loginobject | nullобязательноusernamestringобязательноThe pitch ID ("Saha ID"), e.g. saha_k7m3qp
enabledbooleanобязательноFalse while switched off: sign-in is refused
readybooleanобязательноThe venue set its own password and accepted the venue terms at its first sign-in
createdAtstring (date-time)обязательноlastSignInAtstring (date-time) | nullобязательноThe newest open session's start
publicPathstring | nullобязательноThe venue's public page (/venues/<slug>) while its login is on
checklistobject[]обязательноPitches added, an official camera on every pitch, location and opening hours set, the login on and its first sign-in done
itemstringобязательноЗначения:
"pitches","officialCameras","location","hours","login"donebooleanобязательно
healthobjectобязательноreservationsEnabledbooleanобязательноopenRequestsintegerобязательноBooking requests waiting for an answer that have not lapsed (a request lapses two hours before its start)
oldestPendingAtstring (date-time) | nullобязательноWhen the longest-waiting of them was asked
lastSignInAtstring (date-time) | nullобязательно
auditobject[]обязательноThe newest entries about the venue or by its login
idstring (uuid)обязательноactionstringобязательноe.g. admin.ban, admin.venue.verify
targetTypestringобязательноtargetIdstring | nullобязательноtargetobject | nullобязательноThe person, team, match or venue the entry is about, if it still exists
kindstringобязательноЗначения:
"person","team","match","venue"namestringобязательноusernamestring | nullнеобязательноuserIdstring (uuid) | nullнеобязательноslugstringнеобязательноsidesstring[]необязательно
dataanyобязательноDetails of the change; never secrets
createdAtstring (date-time)обязательноactorIdstring (uuid) | nullобязательноNull for the system
actorobject | nullобязательноidstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноuserIdstring (uuid) | nullобязательно
Make the venue's pitch admin login
Нужен сеанс
Generates the pitch ID and a password, returned once (
Cache-Control: no-store); pass them on to the venue with the panel's address. The venue gets its public address now if it has none. 409 CONFLICT with fields.form = "loginExists": a venue has one login.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
usernamestringобязательноThe pitch ID
passwordstringобязательноShown once, e.g. kavo-tesu-ribe-mena; only its hash is stored. It works for the first sign-in, where the venue sets its own
panelUrlstringобязательноThe panel's address, where the venue signs in
publicUrlstring | nullобязательноThe venue's public page
Switch the venue's login off or on
Нужен сеанс
Off is a ban: sign-in is refused and every session ends; the venue's bookings are switched off and its open requests declined with the answer "@loginOff". On again leaves bookings off until the venue switches them on. 404 when the venue has no login.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
enabledbooleanобязательно
data в ответе
usernamestringобязательноThe pitch ID ("Saha ID"), e.g. saha_k7m3qp
enabledbooleanобязательноFalse while switched off: sign-in is refused
readybooleanобязательноThe venue set its own password and accepted the venue terms at its first sign-in
createdAtstring (date-time)обязательноlastSignInAtstring (date-time) | nullобязательноThe newest open session's start
Give the venue's login a new password
Нужен сеанс
Returned once (
Cache-Control: no-store). Every session of the login ends, and the venue sets its own password again at its next sign-in. 404 when the venue has no login.Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
usernamestringобязательноThe pitch ID
passwordstringобязательноShown once, e.g. kavo-tesu-ribe-mena; only its hash is stored. It works for the first sign-in, where the venue sets its own
panelUrlstringобязательноThe panel's address, where the venue signs in
publicUrlstring | nullобязательноThe venue's public page
Edit a pitch
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
namestringнеобязательно1–40 символов
indoorbooleanнеобязательноlengthMnumberнеобязательноот 15 до 110
widthMnumberнеобязательноот 10 до 75
goalWidthMnumberнеобязательноот 1 до 7.32
goalHeightMnumberнеобязательноот 1 до 2.44
measuredbooleanнеобязательно
data в ответе
idstring (uuid)обязательноnamestringобязательноindoorbooleanобязательноlengthMnumberобязательноwidthMnumberобязательноgoalWidthMnumberобязательноgoalHeightMnumberобязательноmeasuredbooleanобязательноFalse while the sizes are defaults
createdAtstring (date-time)обязательноvenueIdstring (uuid)обязательно
Add a camera to a pitch
Нужен сеанс
Marking a camera official unmarks the pitch's previous official camera. 409 CONFLICT with fields.label = "taken".
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
labelstringобязательно1–40 символов
officialbooleanнеобязательноПо умолчанию:
false
data в ответе
idstring (uuid)обязательноlabelstringобязательноofficialbooleanобязательноThe venue's own recorder; at most one per pitch
activeCalibrationIdstring (uuid) | nullобязательноcreatedAtstring (date-time)обязательноpitchIdstring (uuid)обязательно
Rename a camera or mark it official
Нужен сеанс
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
labelstringнеобязательно1–40 символов
officialbooleanнеобязательно
data в ответе
idstring (uuid)обязательноlabelstringобязательноofficialbooleanобязательноThe venue's own recorder; at most one per pitch
activeCalibrationIdstring (uuid) | nullобязательноcreatedAtstring (date-time)обязательноpitchIdstring (uuid)обязательно
Analyses with their match, error and jobs, most recently changed first
Нужен сеанс
Показать поляСкрыть поля
Параметры запроса
statusstringнеобязательноINGESTING, NEEDS_PREP, TRACKING, NEEDS_LABELS, COMPUTING, PUBLISHED, FAILED
limitintegerнеобязательно1–100, default 50
data в ответе
analysesobject[]обязательноidstring (uuid)обязательноstatusstringобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"progressnumberобязательно0–1 within the current stage
errorstring | nullобязательноcreatedAtstring (date-time)обязательноupdatedAtstring (date-time)обязательноpublishedAtstring (date-time) | nullобязательноmatchobjectобязательноidstring (uuid)обязательноtitlestring | nullобязательноstartsAtstring (date-time)обязательноstatusstringобязательноЗначения:
"planned","played","cancelled"sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательно
jobsobject[]обязательноNewest first
idstring (uuid)обязательноkindstringобязательноЗначения:
"ingest","track","stats"statusstringобязательноЗначения:
"queued","running","succeeded","failed"attemptsintegerобязательноmaxAttemptsintegerобязательноprogressnumberобязательноerrorstring | nullобязательноcreatedAtstring (date-time)обязательноfinishedAtstring (date-time) | nullобязательно
retryKindstring | nullобязательноWhat POST …/retry would queue; null when there is nothing to retry
Значения:
"ingest","track","stats"
countsmap<string, integer>обязательно
Matches waiting for the pitch's official recording
Нужен сеанс
Kick-off has passed, the match is not cancelled and no video has arrived. Admins deliver these recordings with the upload endpoints under Video, once the score is in.
Показать поляСкрыть поля
data в ответе
matchesobject[]обязательноOldest kick-off first, at most 50
idstring (uuid)обязательноtitlestring | nullобязательноstartsAtstring (date-time)обязательноdurationMinintegerобязательноscoreStatestringобязательноThe video can be uploaded once the score is in
Значения:
"none","entered","confirmed"sidesobject[]обязательноsidestringобязательноЗначения:
"A","B"labelstringобязательноgoalsinteger | nullобязательно
venueobject | nullобязательноidstring (uuid)обязательноnamestringобязательноverifiedbooleanобязательно
pitchobject | nullобязательноidstring (uuid)обязательноnamestringобязательно
cameraobject | nullобязательноThe pitch's official camera that records the match
idstring (uuid)обязательноlabelstringобязательно
totalintegerобязательно
Queue the failed stage again
Нужен сеанс
Queues a new job of the newest job's kind with the same payload and moves the analysis back to that stage. 409 CONFLICT with fields.form = "nothingToRetry" when the newest job has not failed, and with fields.form = "badPayload" when the failed job's payload no longer matches the worker's job contract or names another analysis or video (POST /api/v1/matches/{id}/analysis/retry builds a fresh one).
Показать поляСкрыть поля
Параметры пути
idstringобязательно
data в ответе
jobIdstring (uuid)обязательноkindstringобязательноЗначения:
"ingest","track","stats"
The newest audit log entries
Нужен сеанс
Показать поляСкрыть поля
Параметры запроса
actionstringнеобязательноOnly this action, e.g. admin.ban
beforestring (uuid)необязательноThe nextBefore of the previous page
limitintegerнеобязательно1–200, default 50
data в ответе
entriesobject[]обязательноidstring (uuid)обязательноactionstringобязательноe.g. admin.ban, admin.venue.verify
targetTypestringобязательноtargetIdstring | nullобязательноtargetobject | nullобязательноThe person, team, match or venue the entry is about, if it still exists
kindstringобязательноЗначения:
"person","team","match","venue"namestringобязательноusernamestring | nullнеобязательноuserIdstring (uuid) | nullнеобязательноslugstringнеобязательноsidesstring[]необязательно
dataanyобязательноDetails of the change; never secrets
createdAtstring (date-time)обязательноactorIdstring (uuid) | nullобязательноNull for the system
actorobject | nullобязательноidstring (uuid)обязательноusernamestring | nullобязательноnamestringобязательноuserIdstring (uuid) | nullобязательно
nextBeforestring (uuid) | nullобязательноactionsstring[]обязательноEvery action in the log, for filtering
Панель спорткомплекса
тег Pitch admin, 4 эндпоинтаStart or resume delivering a match's recording
Нужен сеанс
The venue's recording goes straight to the bucket in parts, as people's uploads do (POST /api/v1/matches/{id}/uploads). 1. POST here with the file's name, size, type and fingerprint (name:size:lastModified). The match becomes an official-camera match on its pitch's official camera, audited as venue.video.start. 2. POST …/parts with the part numbers still missing and PUT each 64 MiB slice to its URL; keep the ETag response header. 3. POST …/complete with every { partNumber, etag }: the analysis starts (INGESTING), audited as video.upload by the venue's login. Starting again with the same fingerprint resumes the venue's unfinished upload. Once a venue's upload has started, people's new uploads to the match are refused (409 venueDelivering). 404 NOT_FOUND for a match that is not at the venue. 409 CONFLICT with fields.form matchCancelled, videoExists (the match has its video), uploadInProgress (someone else is uploading it), beforeKickoff (the recording is sent after kick-off) or noOfficialCamera (the match's pitch has no official camera). The score does not have to be in. 422 INVALID with fields.size tooLarge (over 8 GiB), fields.contentType notVideo or fields.fileName notVideo. Web only: signed in with the pitch admin panel's own session cookie (the akillifutbol-venue cookies set by /api/venue-auth/sign-in/username). Bearer tokens and people's sessions are not accepted (401). A login that has not finished its first sign-in's steps gets 403 with fields.form setup.
Показать поляСкрыть поля
Параметры пути
idstringобязательно
Тело запроса
fileNamestringобязательноThe picked file's name, e.g. mac.mp4. An extension other than a video container's (such as .m3u8) is refused
1–255 символов
sizeintegerобязательноBytes; at most 8 GiB
contentTypestringобязательноThe file's MIME type; must be video/*
fingerprintstringобязательноname:size:lastModified of the file. Starting again with the same fingerprint resumes the unfinished upload
1–512 символов
data в ответе
uploadIdstringобязательноkeystringобязательноThe object key in the bucket
partSizenumberобязательноBytes per part (64 MiB); the last part holds the rest
partCountnumberобязательноuploadedPartsobject[]обязательноParts the bucket already has (after a resume): upload only the others
partNumbernumberобязательноetagstringобязательноsizenumberобязательно
resumedbooleanобязательноTrue when this continues the venue's unfinished upload of the same file
Cancel the venue's unfinished delivery
Нужен сеанс
Drops its parts from the bucket. 409 uploadCompleted once it is complete (withdraw it from the panel instead, until labelling starts). Only the venue's own upload: anyone else's is not found (404). Web only: signed in with the pitch admin panel's own session cookie (the akillifutbol-venue cookies set by /api/venue-auth/sign-in/username). Bearer tokens and people's sessions are not accepted (401). A login that has not finished its first sign-in's steps gets 403 with fields.form setup.
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
data в ответе
uploadIdstringобязательноstatusstringобязательноЗначения:
"aborted","failed"
Presigned URLs for parts of the venue's delivery
Нужен сеанс
Links are valid for an hour and accept exactly their part's bytes. 409 uploadClosed when the upload was cancelled or completed. The rules are checked again: 404 NOT_FOUND for a match that is not at the venue. 409 CONFLICT with fields.form matchCancelled, videoExists (the match has its video), uploadInProgress (someone else is uploading it), beforeKickoff (the recording is sent after kick-off) or noOfficialCamera (the match's pitch has no official camera). The score does not have to be in. Only the venue's own upload: anyone else's is not found (404). Web only: signed in with the pitch admin panel's own session cookie (the akillifutbol-venue cookies set by /api/venue-auth/sign-in/username). Bearer tokens and people's sessions are not accepted (401). A login that has not finished its first sign-in's steps gets 403 with fields.form setup.
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
Тело запроса
partNumbersinteger[]обязательно1-based part numbers, at most 100 per call
data в ответе
partsobject[]обязательноpartNumbernumberобязательноurlstringобязательноPUT the part's bytes here, then read the ETag response header
expiresAtstringобязательноISO time; sign again after it
Finish the venue's delivery and start the analysis
Нужен сеанс
Checks the parts and the stored size, then creates the video, the analysis and its first job in one step; calling it again returns the same result. 409 partsMissing, partMismatch or sizeMismatch: upload the missing parts and complete again. 409 videoExists when another video became the match's first: this upload is then closed and its file deleted. Only the venue's own upload: anyone else's is not found (404). Web only: signed in with the pitch admin panel's own session cookie (the akillifutbol-venue cookies set by /api/venue-auth/sign-in/username). Bearer tokens and people's sessions are not accepted (401). A login that has not finished its first sign-in's steps gets 403 with fields.form setup.
Показать поляСкрыть поля
Параметры пути
idstringобязательноuploadIdstringобязательно
Тело запроса
partsobject[]обязательноpartNumberintegerобязательноот 1 до 10000
etagstringобязательноThe ETag header of the part's PUT response
1–200 символов
data в ответе
uploadIdstringобязательноvideoAssetIdstring | nullобязательноanalysisIdstring | nullобязательноstatusstring | nullобязательноЗначения:
"INGESTING","NEEDS_PREP","TRACKING","NEEDS_LABELS","COMPUTING","PUBLISHED","FAILED"replacedbooleanобязательноAlways false: a venue never replaces a match's video