admin

List teams as admin

Changed on

Lists teams matching the filters in the request body, with each team's member count, and its running sandbox count when sorted by running sandboxes. A read despite the POST: the body carries a project ID list too long for a query string.

post/unstable/admin/teams/query

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/unstable/admin/teams/query
  • Auth
    • API key in header X-Admin-Token
    • or HTTP bearer

Request body

projectIdsstring[]

Only list these teams. An empty list matches no team; omit it to list every team.

searchstring

A team ID, as a UUID or public project ID, matches that team exactly. Any other text matches a substring of the email, name or slug, ignoring case.

hideBannedboolean

Leave out banned teams

hideBlockedboolean

Leave out blocked teams

createdAfterstring date-time

Only list teams created at or after this time

createdBeforestring date-time

Only list teams created at or before this time

sortBy'name' | 'email' | 'createdAt' | 'runningSandboxes'

Column to order by, with newer teams first among equal values. Omit it to list the newest teams first.

sortOrder'asc' | 'desc'

Sort direction

limitinteger

Maximum number of teams to return

offsetinteger

Number of matching teams to skip

Response

The page of matching teams and the number of all matching teams

totalinteger required

Number of teams matching the filters, ignoring limit and offset

Changes