Developers

Build on Rally

Two ways to integrate: a read-only REST API for scripts and apps, and an MCP server so AI agents can act as a signed-in user.

REST API

Read-only endpoints authenticated with a personal Bearer token. Results respect what the key owner can see (connections, group membership).

  • GET /api/public/v1/locations
  • GET /api/public/v1/events
  • GET /api/public/v1/groups
MCP server

Connect Claude, ChatGPT, Cursor, or any MCP client. Users sign in with Rally over OAuth 2.1; tools run as that user with full RLS.

https://alltogethr.lovable.app/mcp

Tools: get_my_profile, list_sports, search_locations, browse_groups, list_upcoming_events, get_event_details.

Authentication

Generate a key on the API Keys page. Keys start with rally_ and are shown once.

curl -H "Authorization: Bearer rally_..." \
  https://alltogethr.lovable.app/api/public/v1/locations?sport=tennis

Endpoint reference

GET/api/public/v1/locations
sportSport slug or name (e.g. tennis)
cityCity name (partial match)
facility_typepublic | private | park | health_club | retailer
limit1–200, default 50
offsetPagination offset
GET/api/public/v1/events
sportSport slug or name
fromISO date (default: now)
toISO date
limit1–200, default 50
offsetPagination offset
GET/api/public/v1/groups
sportSport slug or name
cityCity name (partial match)
limit1–200, default 50
offsetPagination offset

MCP client setup

Add Rally as a remote MCP server. Your client will open a Rally sign-in and consent screen.

{
  "mcpServers": {
    "rally": {
      "url": "https://alltogethr.lovable.app/mcp"
    }
  }
}