Início
Chat
- Messages
- Tickets
- Tags
Definitions
- Contacts
- Schedules
- Departments
Campaigns
Tags
Create Tag
POST
/
api
/
tags
Copy
curl --request POST \
--url https://api.atendai.com/api/tags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example",
"color": "#5300eb",
"kanban": 0,
"order": 0,
"companyId": "3708fcdf-954b-48f8-91ff-25babaccac67"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"kanban": 123,
"order": 123,
"companyId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"contacts": [
{
"id": "<string>",
"name": "<string>",
"number": "<string>",
"email": "<string>",
"profilePicUrl": "<string>",
"isGroup": true,
"isAdmin": true,
"isOpen": true,
"isBotEnabled": true,
"utmCampaign": "<string>",
"utmContent": "<string>",
"utmMedium": "<string>",
"utmSource": "<string>",
"utmTerms": "<string>",
"active": true,
"channel": "<string>",
"whatsappId": "<string>",
"companyId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
Tag created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://api.atendai.com/api/tags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example",
"color": "#5300eb",
"kanban": 0,
"order": 0,
"companyId": "3708fcdf-954b-48f8-91ff-25babaccac67"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"kanban": 123,
"order": 123,
"companyId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"contacts": [
{
"id": "<string>",
"name": "<string>",
"number": "<string>",
"email": "<string>",
"profilePicUrl": "<string>",
"isGroup": true,
"isAdmin": true,
"isOpen": true,
"isBotEnabled": true,
"utmCampaign": "<string>",
"utmContent": "<string>",
"utmMedium": "<string>",
"utmSource": "<string>",
"utmTerms": "<string>",
"active": true,
"channel": "<string>",
"whatsappId": "<string>",
"companyId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.