Listar Setores
GET/external/v1/sectorsRetorna todos os setores (times) da sua conta. Setores sao referenciados por oportunidades (sector_id) e conversas.
Autenticacao
Requer permissao sectors:read.
Requisicao
bash
curl --request GET \
--url "https://app.getraze.com/external/v1/sectors" \
--header "X-API-Key: YOUR_API_KEY"javascript
const axios = require('axios');
const response = await axios.get('https://app.getraze.com/external/v1/sectors', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
console.log(response.data);python
import requests
response = requests.get(
'https://app.getraze.com/external/v1/sectors',
headers={'X-API-Key': 'YOUR_API_KEY'}
)
print(response.json())Resposta
json
{
"success": true,
"data": [
{
"id": "sec_01",
"name": "Inbound",
"description": null,
"color": "#6366f1",
"is_active": true,
"created_at": "2026-01-10T08:00:00Z",
"updated_at": "2026-01-10T08:00:00Z"
}
]
}Campos de Resposta
| Campo | Tipo | Descricao |
|---|---|---|
id | string | Identificador do setor |
name | string | Nome do setor/time |
description | string | Descricao opcional (nullable) |
color | string | Cor hex para UI |
is_active | boolean | Se o setor esta ativo |
created_at | string | Timestamp ISO 8601 de criacao |
updated_at | string | Timestamp ISO 8601 da ultima atualizacao |