Skip to main content
GET
/
users
/
{identifier}
/
organizations
List a user's organization affiliations
curl --request GET \
  --url https://teambattles.gg/api/v1/users/{identifier}/organizations \
  --header 'Authorization: Bearer <token>'
{
  "organizations": [
    {
      "id": "<string>",
      "name": "<string>",
      "role": "<string>",
      "joinedAt": "<string>",
      "slug": "<string>",
      "tag": "<string>",
      "avatarUrl": "<string>"
    }
  ],
  "count": 4503599627370495,
  "timestamp": "<string>"
}

Authorizations

Authorization
string
header
required

Send your API key as: Authorization: Bearer tb_

Path Parameters

identifier
string
required

Username or Convex user ID.

Response

User organization affiliations.

Envelope containing organizations, count, and a response timestamp.

organizations
object[]
required
count
integer
required
Required range: 0 <= x <= 9007199254740991
timestamp
string
required

ISO 8601 timestamp.