Tags
CRUD de tags da organização (API pública).
Base URL: https://v1.api.interflow.chat
Autenticação
http
x-api-key: ak_sua_api_key1
TIP
O perfil dono da API Key precisa ser membro da organização (os handlers validam membership).
Listar
http
GET /api/{organizationId}/tags1
bash
curl "https://v1.api.interflow.chat/api/{organizationId}/tags" \
-H "x-api-key: ak_sua_api_key"1
2
2
json
{
"success": true,
"data": [
{ "id": "tag-uuid", "name": "VIP", "color": "#FF0000" }
]
}1
2
3
4
5
6
2
3
4
5
6
Criar
http
POST /api/{organizationId}/tags1
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | Sim |
color | string | Sim |
bash
curl -X POST "https://v1.api.interflow.chat/api/{organizationId}/tags" \
-H "Content-Type: application/json" \
-H "x-api-key: ak_sua_api_key" \
-d '{ "name": "VIP", "color": "#FF0000" }'1
2
3
4
2
3
4
Atualizar
http
PUT /api/{organizationId}/tags/{tagId}1
Body: name e/ou color conforme o handler.
Excluir
http
DELETE /api/{organizationId}/tags/{tagId}1