GYP API Documentation
The Recreational Games API provides endpoints for managing matchups between users or groups.
This requires the Server to Server API Integration, you can check how to implement it here.
Basic Concepts
Subtype
Group vs Group:
GROUP_VS_GROUPIn this type of matchup users compete in groups, or teams. The total pot is split evenly among the participants of the winning group.Free for All:
FREE_FOR_ALLIn this type of matchup users compete against all other users. The winner takes the totality of the pot. Internally users are still participants of groups, with one individual in each.
Matchup Status
Open:
OPENMatchup is open and accepting new participantsConfirmed:
CONFIRMEDMatchup has enough participantsLocked:
LOCKEDMatchup is locked and no longer accepting new participantsPending Outcomes:
PENDING_OUTCOMESMatchup is waiting for game results to be submittedClosed:
CLOSEDMatchup has been completed with a winner determinedClosed Tie:
CLOSED_TIEMatchup has been completed and resulted in a tieDispute:
DISPUTEMatchup outcome is being disputed by participantsCanceled by Owner:
CANCELED_BY_OWNERMatchup was canceled by the user who created itCanceled Not Accepted:
CANCELED_NOT_ACCEPTEDMatchup was canceled because not enough participants joinedCanceled Through API:
CANCELED_THROUGH_APIMatchup was canceled programmatically via API callCanceled Timeout:
CANCELED_TIMEOUTMatchup was canceled due to timeout (exceeded time limit for acceptance or completion)
Get Matchup
Retrieve details about a specific recreational game matchup.
Endpoint:
Response:
Cancel Matchup
Cancel an existing recreational game matchup.
Endpoint:
Payload:
Response:
Complete Matchup
Complete a recreational game matchup by setting the outcome.
Endpoint:
Payload (with winner):
Payload (tie scenario):
Response:
Webhooks
This requires webhook subscription, you can check how to configure it here
The following webhook events are available for recreational games:
RecreationalGameCreated - Triggered when a new matchup is created
RecreationalGameJoined - Triggered when a user joins matchup
RecreationalGameCanceled - Triggered when a matchup is canceled
RecreationalGameCompleted - Triggered when a matchup is completed
RecreationalGameStarted - Triggered when a matchup is started by the owner
Response:
Last updated