Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

Teams

How these fit together: the Teams and members guide.

List members

get/v1/members

Lists the organization’s members (seats), newest first.

Every seat of the organization but a removed one: its id — a queue member’s membershipId (PUT /v1/queues/{queueId}/members) and a BRIDGE call’s bridge.to.agentMembershipId — display name, email address **masked** (a•••@example.com, never in full), status, organization-wide roles, the active teams they are on (teamIds, and teams with their role on each) and, when they use the call-center desk, their presence. Filter by teamId and status. Read-only: seats are managed in the console. Configuration, not traffic: a test key reads the same members as a live key — except presence, which is live traffic (who is on a call right now) and always null for a test key.

Access: an organization key with the members:read scope.

Query parameters

  • limitinteger

    How many items to return.

  • cursorstring

    The nextCursor of the previous page. Omit for the first page.

  • teamIdstring (uuid)

    Only the members of this team (an active team membership).

  • statusstring

    Only members in this state.

    One ofinvitedactivesuspended

Response 200PublicMemberPage

  • dataPublicMember[]Required

    11 fields of data
    • createdAtstring (date-time)Required

    • displayNamestringRequired

    • emailstring | nullRequired

      Masked: the first letter of the address and its domain — never in full.

    • idstring (uuid)Required

      The seat’s id: a queue member’s membershipId (PUT /v1/queues/{queueId}/members) and a BRIDGE call’s bridge.to.agentMembershipId.

    • joinedAtstring (date-time) | nullRequired

    • objectstringRequired

      One ofmember

    • presencePublicMemberPresence | nullRequired

      The member’s desk presence (the call-center desk’s state); null when they have never been on the desk — and always null for a test key, as live traffic.

      2 fields of presence
      • sincestring (date-time)Required

      • statusstringRequired

        One ofavailablereservedbusyafter_call_workbreakoffline

    • rolesstring[]Required

      Organization-wide roles, lower-cased.

    • statusstringRequired

      One ofinvitedactivesuspended

    • teamIdsstring[]Required

      The active teams the member is on (GET /v1/teams).

    • teamsPublicMemberTeam[]Required

      2 fields of teams
      • rolesstring[]Required

        The member’s roles on that team, lower-cased.

      • teamIdstring (uuid)Required

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/members' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "data": [
    {
      "createdAt": "2026-11-05T10:00:00.000Z",
      "displayName": "Asha Menon",
      "email": "a•••@example.com",
      "id": "ID",
      "joinedAt": "2026-11-05T10:00:00.000Z",
      "object": "member",
      "presence": {
        "since": "2026-11-05T10:00:00.000Z",
        "status": "available"
      },
      "roles": [
        "admin"
      ],
      "status": "invited",
      "teamIds": [
        "TEAM_IDS"
      ],
      "teams": [
        {
          "roles": [
            "agent"
          ],
          "teamId": "TEAM_ID"
        }
      ]
    }
  ],
  "nextCursor": "NEXT_CURSOR"
}

List teams

get/v1/teams

Lists the organization’s teams, newest first.

Every team of the organization — its id (what POST /v1/queues takes as teamId), name, whether it is active and how many active members it has. Read-only: teams are managed in the console. Configuration, not traffic: a test key reads the same teams as a live key.

Access: an organization key with the teams:read scope.

Query parameters

  • limitinteger

    How many items to return.

  • cursorstring

    The nextCursor of the previous page. Omit for the first page.

Response 200PublicTeamPage

  • dataPublicTeam[]Required

    8 fields of data
    • activebooleanRequired

      False once the team is deactivated: it takes no new queues, and its queues are not listed.

    • createdAtstring (date-time)Required

    • descriptionstring | nullRequired

    • idstring (uuid)Required

      The team’s id: teamId on POST /v1/queues, and a member’s teamIds.

    • memberCountintegerRequired

      The team’s active members.

    • namestringRequired

    • objectstringRequired

      One ofteam

    • updatedAtstring (date-time)Required

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/teams' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "data": [
    {
      "active": true,
      "createdAt": "2026-11-05T10:00:00.000Z",
      "description": "DESCRIPTION",
      "id": "ID",
      "memberCount": 4,
      "name": "Support",
      "object": "team",
      "updatedAt": "2026-11-05T10:00:00.000Z"
    }
  ],
  "nextCursor": "NEXT_CURSOR"
}