API Docs

Global settings

Get teams

Returns all teams available in MPower.

GET/https://api-get-teams-kigtdz23uq-ew.a.run.app

Headers

x-api-key
<API_KEY>
string

Body Parameters

Returns all markets available in MPower.

cURL

curl -i \
  -H "x-api-key: <API_KEY>" \
  https://api-get-teams-kigtdz23uq-ew.a.run.app

Response

200 Success

{
  "count": 48,
  "teams": {
    "teamDocumentId": {
      "name": "Team name",
      "country_iso": "CHE"
    }
  }
}

401 Unauthorized

{
  "error": "Unauthorized"
}

405 Method not allowed

{
  "error": "Method not allowed"
}

500 API key is not configured

{
  "error": "API key is not configured"
}

Behavior / Side effects

Read-only endpoint

  • Reads all documents from the teams collection.
  • Does not write, update, or delete Firestore documents.

Request behavior

  • Does not require body, query, or path parameters.
  • Does not support filters, sorting, or pagination.
  • Returns all teams in a single response.

Response shape

  • Returns a top-level teams object.
  • Each key inside teams is the Firestore team document ID.
  • Each team includes only name and country_iso.

Field mapping

  • name is read from teams/{team_id}.name.
  • country_iso is read from teams/{team_id}.country_iso.
  • country_iso is normalized to uppercase.

Data quality expectations

  • name and country_iso are expected to exist for every team.
  • country_iso is normalized to uppercase.
  • The API may return null only if the underlying Firestore document is incomplete or malformed.