email_inbox.get
Ver a configuração de uma caixa de e-mail. Servidores IMAP e SMTP (host, porta, segurança, usuário), nome do remetente, assinatura (texto e logo), se a pasta Enviados é sincronizada, o estado da conexão (última leitura bem-sucedida, desde quando falha, código e texto do erro, falhas seguidas) e a importação de histórico (historyImport: desde quando, total, lidos, concluída em). A senha nunca é devolvida.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/email_inbox.get(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
channels:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
email_inbox_get - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdemail_inbox.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/email_inbox.get \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000"}'CLI:
node cli/atomiks.mjs email_inbox.get --json '{"id":"00000000-0000-0000-0000-000000000000"}'MCP: ferramenta email_inbox_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": {
"channelInstanceId": {
"type": "string"
},
"emailAddress": {
"type": "string"
},
"imapHost": {
"type": "string"
},
"imapPort": {
"type": "number"
},
"imapSecure": {
"type": "boolean"
},
"imapUsername": {
"type": "string"
},
"smtpHost": {
"type": "string"
},
"smtpPort": {
"type": "number"
},
"smtpSecure": {
"type": "boolean"
},
"smtpUsername": {
"type": "string"
},
"lastSuccessAt": {
"type": [
"string",
"null"
]
},
"failingSince": {
"type": [
"string",
"null"
]
},
"lastErrorCode": {
"type": [
"string",
"null"
]
},
"lastError": {
"type": [
"string",
"null"
]
},
"consecutiveFailures": {
"type": "number"
},
"fromName": {
"type": [
"string",
"null"
]
},
"syncSentFolder": {
"type": "boolean"
},
"signatureText": {
"type": [
"string",
"null"
]
},
"signatureLogoUrl": {
"type": [
"string",
"null"
]
},
"historyImport": {
"anyOf": [
{
"type": "object",
"properties": {
"since": {
"type": "string"
},
"total": {
"type": [
"number",
"null"
]
},
"processed": {
"type": "number"
},
"completedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"since",
"total",
"processed",
"completedAt"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
}
},
"required": [
"channelInstanceId",
"emailAddress",
"imapHost",
"imapPort",
"imapSecure",
"imapUsername",
"smtpHost",
"smtpPort",
"smtpSecure",
"smtpUsername",
"lastSuccessAt",
"failingSince",
"lastErrorCode",
"lastError",
"consecutiveFailures",
"fromName",
"syncSentFolder",
"signatureText",
"signatureLogoUrl",
"historyImport",
"createdAt"
],
"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).