teams.get
Ver um time. Um time com os membros em ordem da fila. Cada membro traz papel (admin ou member), prioridade (1 a 10, menor = mais prioridade), peso (1 a 1000), isFixed (atendente fixo), capOpen (limite de atendimentos abertos, null = sem limite), regras por temperatura (temperatureRules: hot, warm, cold, cada uma com cap), operational (ainda é atendente) e inPipeline (está em algum pipeline; null sem a migration de atendentes). queueCursorMemberId é quem recebeu por último no modo strict.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/teams.get(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
teams_get - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdteams.get)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/teams.get \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000"}'CLI:
node cli/atomiks.mjs teams.get --json '{"id":"00000000-0000-0000-0000-000000000000"}'MCP: ferramenta teams_get com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"emoji": {
"type": [
"string",
"null"
]
},
"color": {
"type": [
"string",
"null"
]
},
"brandColor": {
"type": [
"string",
"null"
]
},
"logoUrl": {
"type": [
"string",
"null"
]
},
"memberCount": {
"type": "number"
},
"totalMembers": {
"type": "number"
},
"memberTypeCounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attendantTypeId": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"color": {
"type": [
"string",
"null"
]
},
"emoji": {
"type": [
"string",
"null"
]
},
"count": {
"type": "number"
}
},
"required": [
"attendantTypeId",
"name",
"color",
"emoji",
"count"
],
"additionalProperties": false
}
},
"appointmentSchedules": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"distributionMode": {
"type": "string",
"enum": [
"weighted",
"strict"
]
},
"strictRespectCaps": {
"type": "boolean"
},
"queueCursorMemberId": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"teamId": {
"type": "string"
},
"attendantId": {
"type": "string"
},
"attendantName": {
"type": "string"
},
"name": {
"type": "string"
},
"initials": {
"type": "string"
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"role": {
"type": "string",
"enum": [
"admin",
"member"
]
},
"priority": {
"type": "number"
},
"weight": {
"type": "number"
},
"isFixed": {
"type": "boolean"
},
"capOpen": {
"type": [
"number",
"null"
]
},
"active": {
"type": "boolean"
},
"operational": {
"type": "boolean"
},
"inPipeline": {
"type": [
"boolean",
"null"
]
},
"position": {
"type": "number"
},
"temperatureRules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"temperature": {
"type": "string",
"enum": [
"hot",
"warm",
"cold"
]
},
"cap": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"temperature",
"cap"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"teamId",
"attendantId",
"attendantName",
"name",
"initials",
"imageUrl",
"role",
"priority",
"weight",
"isFixed",
"capOpen",
"active",
"operational",
"inPipeline",
"position",
"temperatureRules"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"name",
"slug",
"description",
"emoji",
"color",
"brandColor",
"logoUrl",
"memberCount",
"totalMembers",
"memberTypeCounts",
"appointmentSchedules",
"distributionMode",
"strictRespectCaps",
"queueCursorMemberId",
"createdAt",
"updatedAt",
"members"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).