POST
/
platform
/
api
/
v1
/
accounts
/
{account_id}
/
account_users
curl --request POST \
  --url https://app.chatwoot.com/platform/api/v1/accounts/{account_id}/account_users \
  --header 'Content-Type: application/json' \
  --header 'api_access_token: <api-key>' \
  --data '{
  "user_id": 123,
  "role": "<string>"
}'
{
  "account_id": 123,
  "user_id": 123,
  "role": "<string>"
}

Authorizations

api_access_token
string
header
required

This token can be obtained by the system admin after creating a platformApp. This token should be used to provision agent bots, accounts, users and their roles.

Path Parameters

account_id
integer
required

The numeric ID of the account

Body

application/json

Response

200
application/json
Success

The response is of type object.