Create a team
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/teams \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "Support Team",
"description": "This is a team of support agents",
"allow_auto_assign": true
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Support Team',
description: 'This is a team of support agents',
allow_auto_assign: true
})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/teams"
payload = {
"name": "Support Team",
"description": "This is a team of support agents",
"allow_auto_assign": True
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"description": "<string>",
"allow_auto_assign": true,
"account_id": 123,
"is_member": true,
"suite": "commercial",
"can_delete": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Teams
Create a team
Create a team in the account
POST
/
api
/
v1
/
accounts
/
{account_id}
/
teams
Create a team
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/teams \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "Support Team",
"description": "This is a team of support agents",
"allow_auto_assign": true
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Support Team',
description: 'This is a team of support agents',
allow_auto_assign: true
})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/teams"
payload = {
"name": "Support Team",
"description": "This is a team of support agents",
"allow_auto_assign": True
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"description": "<string>",
"allow_auto_assign": true,
"account_id": 123,
"is_member": true,
"suite": "commercial",
"can_delete": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Authorizations
Body
application/json
Response
Success