Create an Account User
cURL
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": 1, "role": "administrator" } '
{ "account_id": 123, "user_id": 123, "role": "<string>" }
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.
The numeric ID of the account
The ID of the user
1
whether user is an administrator or agent
"administrator"
Success
The ID of the account