calendars.list
Listar calendários de atendimento. Calendários de horário da conta: nome, fuso, principal (só um), horários por dia da semana (mon..sun, intervalos ["09:00","12:00"]) e exceções por data (closed, open o dia todo ou range com start/end).
- Endpoint:
POST https://app.atomiks.com.br/api/v1/calendars.list(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
account:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
calendars_list - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcalendars.list)
Entrada
Sem campos: envie {}.
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/calendars.list \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'CLI:
node cli/atomiks.mjs calendars.list --json '{}'MCP: ferramenta calendars_list com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"timezone": {
"type": "string"
},
"isDefault": {
"type": "boolean"
},
"weekly": {
"type": "object",
"properties": {
"mon": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"tue": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"wed": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"thu": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"fri": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"sat": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
},
"sun": {
"maxItems": 8,
"type": "array",
"items": {
"type": "array",
"prefixItems": [
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
{
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
],
"items": false,
"minItems": 2,
"maxItems": 2
}
}
},
"additionalProperties": false
},
"exceptions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"mode": {
"type": "string",
"enum": [
"closed",
"open",
"range"
]
},
"start": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"end": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
}
},
"required": [
"date",
"mode"
],
"additionalProperties": false
}
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"name",
"timezone",
"isDefault",
"weekly",
"exceptions",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"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).