HTTP request
curl \
-X POST 'https://api.meilisearch.com/api/v2/teams/12/members' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN' \
-H 'Content-Type: application/json' \
--data-binary '{
"email": "jane@example.com"
}'{
"id": "7d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"email": "jane@example.com",
"name": "Jane Doe",
"isOwner": false,
"status": "accepted",
"invitedAt": null
}{
"message": "A required parameter is missing.",
"code": "missing_parameter",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#missing_parameter",
"details": [
{
"field": "email",
"code": "missing",
"message": "A required parameter is missing."
}
]
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Team not found.",
"code": "team_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#team_not_found"
}{
"message": "The user is already a member of the team.",
"code": "team_user_is_member_already",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#team_user_is_member_already",
"details": [
{
"field": "email",
"code": "invalid",
"message": "The user is already a member of the team."
}
]
}Teams
Add team member
Adds a user to a team by email and notifies them. A user without a Meilisearch Cloud account stays a pending invitation until they sign up. Only the team owner or the organization owner can add members.
POST
/
api
/
v2
/
teams
/
{teamId}
/
members
HTTP request
curl \
-X POST 'https://api.meilisearch.com/api/v2/teams/12/members' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN' \
-H 'Content-Type: application/json' \
--data-binary '{
"email": "jane@example.com"
}'{
"id": "7d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"email": "jane@example.com",
"name": "Jane Doe",
"isOwner": false,
"status": "accepted",
"invitedAt": null
}{
"message": "A required parameter is missing.",
"code": "missing_parameter",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#missing_parameter",
"details": [
{
"field": "email",
"code": "missing",
"message": "A required parameter is missing."
}
]
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Team not found.",
"code": "team_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#team_not_found"
}{
"message": "The user is already a member of the team.",
"code": "team_user_is_member_already",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#team_user_is_member_already",
"details": [
{
"field": "email",
"code": "invalid",
"message": "The user is already a member of the team."
}
]
}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.
Response
Member invited