curl \
-X GET 'https://api.meilisearch.com/api/v2/teams?organizationId=1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"offset": 0,
"limit": 20,
"total": 1,
"results": [
{
"id": 34,
"name": "Search team",
"organizationId": 12,
"ownerId": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"isAdmin": true
}
]
}Teams
List teams
Lists the teams the authenticated user can access, optionally only the ones of an organization.
GET
/
api
/
v2
/
teams
curl \
-X GET 'https://api.meilisearch.com/api/v2/teams?organizationId=1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"offset": 0,
"limit": 20,
"total": 1,
"results": [
{
"id": 34,
"name": "Search team",
"organizationId": 12,
"ownerId": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"isAdmin": true
}
]
}Authorizations
personal_access_tokenoauth2
Send Authorization: Bearer <token>, where <token> is a personal access token (PAT) or an OAuth2 access token. A PAT authenticates as the user who owns it. See Authentication.
Query Parameters
Response
Teams list
Envelope of every list response, the items being in results.