Integration endpoints
How MatchZy loads match JSON and where it sends events, reports, and demos.
This page covers the MatchZy settings you use when integrating a CS2 server with MatchZy Auto Tournament (or any external controller).
Loading a match JSON
MatchZy loads a match by fetching JSON from a URL:
- Command:
matchzy_loadmatch_url <url> [header_key header_value]
The URL should point to a match JSON document (typically hosted by MatchZy Auto Tournament).
Example
matchzy_loadmatch_url "https://mat.example.com/api/matches/my-match-slug.json"If your match JSON endpoint requires a header (for example a bearer token):
matchzy_loadmatch_url "https://mat.example.com/api/matches/my-match-slug.json" "Authorization" "Bearer REDACTED"Event webhooks (remote log)
MatchZy sends match events (webhooks) to your platform.
MatchZy Auto Tournament accepts events on:
-
POST /api/events -
POST /api/events/:matchSlugOrServerId -
Set endpoint:
matchzy_remote_log_url "<url>" -
Optional header:
matchzy_remote_log_header_key "<key>"matchzy_remote_log_header_value "<value>"
In MAT-style setups, these values are typically configured by the platform via RCON when a match is allocated:
matchzy_remote_log_url "https://mat.example.com/api/events/<matchSlug>"matchzy_remote_log_header_key "X-MatchZy-Token"matchzy_remote_log_header_value "<serverToken>"
Demo uploads
If you record demos, MatchZy can upload them after each map:
- Endpoint:
matchzy_demo_upload_url "<url>" - Optional header:
matchzy_demo_upload_header_key "<key>"matchzy_demo_upload_header_value "<value>"
MatchZy Auto Tournament accepts demo uploads on:
POST /api/demos/:matchSlug/upload
Related settings:
matchzy_demo_recording_enabledmatchzy_demo_pathmatchzy_demo_name_format
Match reports
MatchZy can upload a match report payload to your platform:
matchzy_report_endpoint "<url>"matchzy_report_token "<token>"matchzy_report_server_id "<server_id>"
MatchZy Auto Tournament accepts match reports on:
POST /api/events/report
You can also generate a report snapshot on demand:
matchzy_match_report
Server identity and status (for dashboards/allocators)
These values help a controller understand what the server is doing:
matchzy_server_idmatchzy_tournament_statusmatchzy_tournament_matchmatchzy_tournament_next_matchmatchzy_tournament_updated
How is this guide?
Last updated on