Read-only access to public competition data. No authentication required.
Notes
GET /api/v0/eventsReturns all public competitions across all organizations.
Fields: league_id, event_id, league_name, event_name, competition_type, status, starts_at, ends_at, venue_city, champion_name.
Example
https://league.asabya.com/api/v0/eventsGET /api/v0/events/[eventId]/standingsReturns the standings table for one competition.
Fields: rank, club_name, played, won, drawn, lost, goals_for, goals_against, points.
Example
https://league.asabya.com/api/v0/events/YOUR_EVENT_ID/standingsGET /api/v0/events/[eventId]/bracketReturns bracket slot data for knockout competitions.
Fields: match_id, round_ordinal, side, team_id, bracket_role, source_match_id, source_outcome, status, winner_team_id.
Example
https://league.asabya.com/api/v0/events/YOUR_EVENT_ID/bracketPOST /api/v0/followSubscribe to competition updates by email. Sends a confirmation email with a link to activate.
Body: [org_id, league_id?, email]. Returns: [status: 'confirm_email_sent' | 'already_following'].
Example
POST https://league.asabya.com/api/v0/followGET /api/v0/calendar/[eventId]Returns an ICS (iCalendar) file for all matches in a competition. Subscribe from any calendar app.
Response: text/calendar. One VEVENT per match with summary, description, dtstart, dtend, location.
Example
https://league.asabya.com/api/v0/calendar/YOUR_EVENT_IDGET /api/v0/rsvp/[matchId]Returns RSVP counts for a match by status.
Response: [match_id, summary: [yes, no, maybe, pending]].
Example
https://league.asabya.com/api/v0/rsvp/YOUR_MATCH_IDPOST /api/v0/rsvp/respondRecord an RSVP response using a token from an invite email.
Body: [token, status] where status is 'yes', 'no', or 'maybe'.
Example
POST https://league.asabya.com/api/v0/rsvp/respondPOST /api/v0/registerSubmit a player registration request for an org. No account required.
Body: [org_id, division_id?, name, name_ar?, email, phone?, date_of_birth?, guardian_name?, guardian_phone?, notes?]. Returns: [status: 'submitted', id].
Example
POST https://league.asabya.com/api/v0/register