POST
/
api
/
v1
/
accounts
/
{account_id}
/
teams
/
{team_id}
/
team_members
curl --request POST \
  --url https://app.chatwoot.com/api/v1/accounts/{account_id}/teams/{team_id}/team_members \
  --header 'Content-Type: application/json' \
  --header 'api_access_token: <api-key>' \
  --data '{
  "user_ids": [
    123
  ]
}'
[
  {
    "id": 123,
    "uid": "<string>",
    "name": "<string>",
    "available_name": "<string>",
    "display_name": "<string>",
    "email": "<string>",
    "account_id": 123,
    "role": "agent",
    "confirmed": true,
    "availability_status": "available",
    "auto_offline": true,
    "custom_attributes": {}
  }
]

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

team_id
integer
required

The ID of the team to be updated

Body

application/json

Response

200
application/json
Success

Array of all active agents