Match API › Match reports
Endpoints
- GET /reports
Retrieve the match reports of a match.
- POST /reports
Create a new match report in a match.
- GET /reports/{id}
Retrieve a single match report of a match.
- PATCH /reports/{id}
Update a match report in a match.
- LegacyGET /tournaments/{tournament_id}/matches/{match_id}/reports
Retrieve the match reports of a match.
- LegacyPOST /tournaments/{tournament_id}/matches/{match_id}/reports
Create a new match report in a match.
- LegacyGET /tournaments/{tournament_id}/matches/{match_id}/reports/{id}
Retrieve a single match report of a match.
- LegacyPATCH /tournaments/{tournament_id}/matches/{match_id}/reports/{id}
Update a match report in a match.
GET /reports
Returns the match reports of the given match, using various filters. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/reports
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization) - Rangestring
A range of requested items using the
reports
unit. The size of the range can not exceed 50. (see Pagination)Example: reports=0-49
Query Parameters
- tournament_idsarray
Only return reports for the given list of tournaments.
Example: 378426939508809728,534138941862841533
- match_idsarray
Only return reports for the given list of matches.
Example: 2468971166855626795,436314459115419242
- participant_idsarray
Only return reports for the given list of participant ids.
Example: 618965416546776434,618975467354349191
- user_idsarray
Only return reports for the given list of player user ids.
Example: 475141143408399456,735147043408391234
- team_idsarray
Only return reports for the given list of team ids.
Example: 561714159547269773,255149043401714321
- custom_user_identifiersarray
Only return reports for the given list of custom user identifiers.
Example: acme:account:1234,acme:account:1235
- typesarray
One or several report types to filter.
Example: report,dispute
- is_closedboolean
Whether to include scheduled matches.
Possible values: 0, 1
Request Body
This endpoint does not require a request body.
Response
[206] Match reports retrieved.
Example
[ { "tournament_id": "534138941862841533", "match_id": "2468971166855626795", "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] } ]
Structure (collection)
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- match_idstring
The id of match.
Example: "2468971166855626795"
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
POST /reports
Create a new match report in a match, there can only be one report per participant.Match reports are only available for "duel" type matches. Trying to POST a new report in a "ffa" type match will result in a 403 Error.
Resource URL
https://api.toornament.com/organizer/v2/reports
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Query Parameters
This endpoint does not have any query parameters.
Request Body
Match report data.
Example
{ "match_id": "2468971166855626795", "participant_id": "375143143408309123", "type": "report", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "note": "A note on\ntwo lines\n", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- match_idstring
The id of match.
Example: "2468971166855626795"
- participant_idstring
The id of participant initiating the match report.
Example: "375143143408309123"
- typestring
The type of the match report.
Possible values: dispute, report
- reportobject
The report data.
- notestring|null
Optional
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- user_idstring|null
Optional
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
Optional
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- proofsarray[object]
Optional
A list of match proof files
Response
[201] Success
Example
{ "tournament_id": "534138941862841533", "match_id": "2468971166855626795", "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- match_idstring
The id of match.
Example: "2468971166855626795"
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
GET /reports/{id}
Returns the match report with the given id. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/reports/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- idstring
The id of the match report to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Match report retrieved.
Example
{ "tournament_id": "534138941862841533", "match_id": "2468971166855626795", "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- match_idstring
The id of match.
Example: "2468971166855626795"
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
PATCH /reports/{id}
Updates the match report with the given id. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/reports/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- idstring
The id of the match report to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Match report data.
Example
{ "note": "A note on\ntwo lines\n", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ], "closed": false }
Structure (object)
- notestring|null
Optional
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- user_idstring|null
Optional
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
Optional
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
Optional
The report data.
- proofsarray[object]
Optional
A list of match proof files
- closedboolean
Optional
Whether the match report is closed.
Example: false
Response
[200] Match report update.
Example
{ "tournament_id": "534138941862841533", "match_id": "2468971166855626795", "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- match_idstring
The id of match.
Example: "2468971166855626795"
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
LegacyGET /tournaments/{tournament_id}/matches/{match_id}/reports
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the match reports of the given match, using various filters. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/reports
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization) - Rangestring
A range of requested items using the
reports
unit. The size of the range can not exceed 50. (see Pagination)Example: reports=0-49
Path parameters
- tournament_idstring
The id of the tournament to retrieve.
- match_idstring
The id of the match.
Query Parameters
- participant_idsarray
Only return reports for the given list of participant ids.
Example: 618965416546776434,618975467354349191
- typesarray
One or several report types to filter.
Example: report,dispute
- is_closedboolean
Whether to include scheduled matches.
Possible values: 0, 1
Request Body
This endpoint does not require a request body.
Response
[206] Match reports retrieved.
Example
[ { "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] } ]
Structure (collection)
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
LegacyPOST /tournaments/{tournament_id}/matches/{match_id}/reports
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Create a new match report in a match, there can only be one report per participant.Match reports are only available for "duel" type matches. Trying to POST a new report in a "ffa" type match will result in a 403 Error.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/reports
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament to retrieve.
- match_idstring
The id of the match.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Match report data.
Example
{ "participant_id": "375143143408309123", "type": "report", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "note": "A note on\ntwo lines\n", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- participant_idstring
The id of participant initiating the match report.
Example: "375143143408309123"
- typestring
The type of the match report.
Possible values: dispute, report
- reportobject
The report data.
- notestring|null
Optional
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- user_idstring|null
Optional
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
Optional
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- proofsarray[object]
Optional
A list of match proof files
Response
[201] Success
Example
{ "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
LegacyGET /tournaments/{tournament_id}/matches/{match_id}/reports/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the match report with the given id. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/reports/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament to retrieve.
- match_idstring
The id of the match.
- idstring
The id of the match report to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Match report retrieved.
Example
{ "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files
LegacyPATCH /tournaments/{tournament_id}/matches/{match_id}/reports/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Updates the match report with the given id. Match reports are only available for "duel" type matches.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/reports/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament to retrieve.
- match_idstring
The id of the match.
- idstring
The id of the match report to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Match report data.
Example
{ "note": "A note on\ntwo lines\n", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ], "closed": false }
Structure (object)
- notestring|null
Optional
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- user_idstring|null
Optional
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
Optional
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
Optional
The report data.
- proofsarray[object]
Optional
A list of match proof files
- closedboolean
Optional
Whether the match report is closed.
Example: false
Response
[200] Match report update.
Example
{ "id": "168954615761461654", "type": "report", "closed": false, "closed_at": "2015-12-31T00:00:00+00:00", "closed_author_id": "513743143408302391", "note": "A note on\ntwo lines\n", "participant_id": "375143143408309123", "user_id": "513743143408302391", "custom_user_identifier": "acme:account:1234", "report": { "opponents": [ { "score": 15, "number": 1, "result": "win", "forfeit": false } ] }, "proofs": [ { "id": "506637910019156865" } ] }
Structure (object)
- idstring
The id of the match report.
Example: "168954615761461654"
- typestring
The type of the match report.
Possible values: dispute, report
- closedboolean
Whether the match report is closed.
Example: false
- closed_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- closed_author_idstring|null
The id of the organizer user that closed the report.
Example: "513743143408302391"
- notestring|null
Private note of a report, only visible to the organizers.
Max. length: 1,000 characters
Example: "A note on\ntwo lines\n"
- participant_idstring
The id of participant.
Example: "375143143408309123"
- user_idstring|null
The id of user creator of the match report.
Example: "513743143408302391"
- custom_user_identifierstring|null
An external custom user identifier representing the creator of the match report. Use the format that suits your needs.
Max. length: 100 characters
Example: "acme:account:1234"
- reportobject
The report data.
- proofsarray[object]
A list of match proof files