connections.google_drive_files
Listar arquivos do Google Drive de um atendente. Arquivos do Drive conectado do atendente, do mais recente ao mais antigo: search filtra pelo nome, folderId lista uma pasta, nextPageToken continua (use como pageToken). pageSize até 100. O próprio atendente ou um administrador. Sem Drive conectado, not_found.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/connections.google_drive_files(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
connections_google_drive_files - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdconnections.google_drive_files)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
attendantId | string (uuid) | não | |
search | string | não | |
folderId | string | não | |
pageToken | string | não | |
pageSize | integer | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"attendantId": {
"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)$"
},
"search": {
"type": "string",
"maxLength": 200
},
"folderId": {
"type": "string",
"maxLength": 200
},
"pageToken": {
"type": "string",
"maxLength": 2000
},
"pageSize": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
}
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/connections.google_drive_files \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"search":"proposta"}'CLI:
node cli/atomiks.mjs connections.google_drive_files --json '{"search":"proposta"}'MCP: ferramenta connections_google_drive_files 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"
},
"mimeType": {
"type": "string"
},
"webViewLink": {
"type": [
"string",
"null"
]
},
"iconLink": {
"type": [
"string",
"null"
]
},
"modifiedTime": {
"type": [
"string",
"null"
]
},
"size": {
"type": [
"number",
"null"
]
}
},
"required": [
"id",
"name",
"mimeType",
"webViewLink",
"iconLink",
"modifiedTime",
"size"
],
"additionalProperties": false
}
},
"nextPageToken": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextPageToken"
],
"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).