@jessefreitas/n8n-nodes-mega
v0.4.15
Published
Trabalhe com a API do Mega
Maintainers
Readme
n8n-nodes-mega
Node de comunidade para n8n para trabalhar com a API do Mega.
Recursos
Meganode regular para APIs do Mega com escopo de contaMega Clientnode regular para APIs Client publicasMega Platformnode regular para APIs Platform do MegaAccount -> GetoperationAccount -> UpdateoperationAgent -> Get Many,Create,Update, andDeleteoperationsAgent Bot -> Get Many,Create,Get,Update, andDeleteoperationsAutomation Rule -> Get Many,Create,Get,Update, andDeleteoperationsAudit Log -> Get ManyoperationCampaign -> CreateoperationCanned Response -> Get Many,Create,Update, andDeleteoperationsCustom Filter -> Get Many,Create,Get,Update, andDeleteoperationsContact -> Get Many,Create,Create Note,Get,Update,Delete,Delete Note,Get Conversations,Search,Filter,Create Inbox,Get Contactable Inboxes, andMergeoperationsConversation -> Get Counts,Get Many,Create,Create and Send Message,Filter,Get,Update,Toggle Status,Toggle Priority,Toggle Typing Status,Set Custom Attributes,Get Labels,Set Labels,Get Reporting Events, andAssignoperationsCustom Attribute -> Get Many,Create,Get,Update, andDeleteoperationsInbox -> Get Many,Get,Create,Update,Get Agent Bot,Set Agent Bot,Get Agents,Add Agent,Remove Agent, andUpdate AgentsoperationsIntegration -> Get Many,Create,Update, andDeleteoperationsMessage -> Get Many,Create, andDeleteoperationsPortal -> Get Many,Create, andUpdateoperationsPortal Category -> CreateoperationPortal Article -> CreateoperationProfile -> GetoperationTeam -> Get Many,Get,Create,Update,Delete,Get Agents,Add Agent,Remove Agent, andUpdate AgentsoperationsWebhook -> Get Many,Create,Update, andDeleteoperationsMega APIcredential withBase URL,API Access Token, andMega Account IDMega Client APIcredential withBase URLandInbox IdentifierMega Platform APIcredential withBase URLandPlatform API Access Token- Teste de conexao da credencial usando
GET /api/v1/profile
Requisitos
- Node.js 22+ e necessario para executar os comandos atuais de
buildelintdo@n8n/node-cli - npm
Instalacao
npm install
npm run buildPara usar como community node local durante o desenvolvimento:
npm run devPara instalar o pacote publicado no n8n:
npm install @jessefreitas/n8n-nodes-megaPublicacao e update
O fluxo padrao para publicar uma nova versao e atualizar uma instalacao do n8n deve usar:
python scripts/publish_and_update.pyExemplo para publicar e atualizar um n8n local por diretorio:
python scripts/publish_and_update.py --token "<NPM_TOKEN>" --target "C:\\caminho\\do\\n8n"Exemplo para publicar e atualizar um n8n em Docker Compose:
python scripts/publish_and_update.py --token "<NPM_TOKEN>" --docker-service n8n --docker-compose-file "C:\\caminho\\docker-compose.yml"Se voce ja publicou a versao e quer apenas atualizar o ambiente:
python scripts/publish_and_update.py --skip-publish --version 0.4.12 --target "C:\\caminho\\do\\n8n"Credenciais
Crie uma credencial Mega API no n8n com:
Base URL: URL da sua instancia Mega, por exemplohttps://app.example.comAPI Access Token: token da aplicacao enviado no headerapi_access_tokenMega Account ID: identificador externo da conta Mega usado em endpoints com escopo de conta
O teste da credencial chama GET /api/v1/profile para validar o token.
API Platform
Use o node Mega Platform com a credencial Mega Platform API para endpoints de Platform App em:
/platform/api/v1/*Crie uma credencial Mega Platform API no n8n com:
Base URL: URL da sua instancia MegaPlatform API Access Token: token do app platform enviado no headerapi_access_token
O teste da credencial chama:
GET /platform/api/v1/accountsRecursos suportados em Mega Platform:
Account -> Create,Get,Update, andDeleteAccount User -> Get Many,Create, andDeleteAgent Bot -> Get Many,Create,Get,Update, andDeleteUser -> Create,Get,Update,Delete, andGet SSO Link
Selecao de Features na criacao e atualizacao de conta (v0.4.13)
As operacoes Account -> Create e Account -> Update do node Mega Platform passaram a suportar o campo Features.
O campo e do tipo multi-select e lista todos os recursos disponíveis na plataforma. As features selecionadas sao enviadas como true no payload, e as nao selecionadas como false, construindo o objeto completo:
{
"features": {
"whatsapp_evolution": true,
"captain": true,
"channel_email": false,
...
}
}Features disponíveis para selecao:
- Advanced Assignment
- Agent Bots
- Agent Management
- Assignment V2
- Audit Logs
- Auto Resolve Conversations
- Automations
- Campaign - WhatsApp Mega
- Campaigns - Mega
- Canned Responses
- Captain
- Captain MCP
- Captain Tasks
- Captain V2
- Channel Email
- Channel Facebook
- Channel Instagram
- Channel TikTok
- Channel Twitter
- Channel Website
- Chat Rooms - Mega
- Chatwoot V4
- Companies
- Conversation History - Mega
- CRM
- CRM Integration
- CRM V2
- CSAT Review Notes
- Custom Attributes
- Custom Reply Domain
- Custom Reply Email
- Custom Roles
- Disable Branding
- Email Continuity on API Channel
- Evolution API
- Help Center
- Inbound Emails
- Inbox Management
- Inbox Migration - Mega
- Inbox View
- Integrations
- IP Lookup
- Labels
- Linear Integration
- Macros
- Notion Integration
- QuePasa API
- Quoted Email Reply
- Report Rollup
- Report V4
- Reports
- Required Conversation Attributes
- SAML
- Schedule Messages - Mega
- Shopify Integration
- SLA
- Team Management
- Template Builder Meta
- Voice Channel
- Voice Recorder
- Wavoip - Mega
- WhatsApp Evolution - Mega
- WhatsApp Uazapi - Mega
- WhatsApp WAHA - Mega
- WooCommerce Integration - Mega
Na operacao Update, o campo Features so e incluído no payload se preenchido, evitando sobrescrever features existentes acidentalmente.
Importante:
MegaandMega Platformnao compartilham credenciaisMegae para APIs de aplicacao com escopo de conta em/api/v1/accounts/*Mega Platforme para APIs Platform em/platform/api/v1/*
API Client
Use o node Mega Client com a credencial Mega Client API para endpoints publicos client em:
/public/api/v1/*Crie uma credencial Mega Client API no n8n com:
Base URL: URL da sua instancia MegaInbox Identifier: identificador publico da caixa de entrada usado pelas APIs Client
Recursos suportados em Mega Client:
Contact -> Create,Get, andUpdateConversation -> Get Many,Create,Get,Resolve,Toggle Typing Status, andUpdate Last SeenMessage -> Get Many,Create, andUpdateCSAT Survey -> Get
Importante:
Mega,Mega Platform, andMega Clientnao compartilham credenciaisMega Clientusa identificadores publicos comoinbox_identifier,contact_identifier, andconversation_idCSAT Surveyusa uma rota publicaconversation_uuidfora do padrao/public/api/v1/inboxes/*
Campos JSON
Os campos do tipo json nos nodes Mega, Mega Client e Mega Platform esperam objetos JSON validos quando o payload do endpoint for estruturado. Exemplos de valor para o proprio campo:
{"name":"Maria"}ou:
{"crm_id":"123"}Quando o campo estiver vazio, o node envia {} ou omite o atributo opcional conforme o endpoint, evitando enviar strings como "{}" para a API.
Operacoes
Account -> Get
Obtem detalhes da conta em:
GET /api/v1/accounts/{accountId}Account -> Update
Suporta atualizar estes campos:
NameLocaleDomainSupport EmailAuto Resolve AfterAuto Resolve MessageAuto Resolve Ignore WaitingIndustryCompany SizeTimezone
O node envia requisicoes para:
PATCH /api/v1/accounts/{accountId}Mega Platform Operations
Platform Account
Operacoes suportadas:
CreateGetUpdateDelete
O node envia requisicoes para:
POST /platform/api/v1/accounts
GET /platform/api/v1/accounts/{accountId}
PATCH /platform/api/v1/accounts/{accountId}
DELETE /platform/api/v1/accounts/{accountId}Campos suportados:
NameLocaleDomainSupport EmailStatusLimitsCustom Attributes
Platform Account User
Operacoes suportadas:
Get ManyCreateDelete
O node envia requisicoes para:
GET /platform/api/v1/accounts/{accountId}/account_users
POST /platform/api/v1/accounts/{accountId}/account_users
DELETE /platform/api/v1/accounts/{accountId}/account_usersCampos suportados:
Account IDUser IDRole
Platform Agent Bot
Operacoes suportadas:
Get ManyCreateGetUpdateDelete
O node envia requisicoes para:
GET /platform/api/v1/agent_bots
POST /platform/api/v1/agent_bots
GET /platform/api/v1/agent_bots/{id}
PATCH /platform/api/v1/agent_bots/{id}
DELETE /platform/api/v1/agent_bots/{id}Campos suportados:
NameDescriptionOutgoing URLAccount IDAvatar URL
The documented binary avatar upload field is not implemented yet in this node.
Platform User
Operacoes suportadas:
CreateGetUpdateDeleteGet SSO Link
O node envia requisicoes para:
POST /platform/api/v1/users
GET /platform/api/v1/users/{id}
PATCH /platform/api/v1/users/{id}
DELETE /platform/api/v1/users/{id}
GET /platform/api/v1/users/{id}/loginCampos suportados:
NameDisplay NameEmailPasswordCustom Attributes
Mega Client Operations
Client Contact
Operacoes suportadas:
CreateGetUpdate
O node envia requisicoes para:
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts
GET /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}
PATCH /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}Campos suportados:
Contact IdentifierIdentifierIdentifier HashEmailNamePhone NumberCustom Attributes
The documented binary avatar upload field is not implemented yet in this node.
Client Conversation
Operacoes suportadas:
Get ManyCreateGetResolveToggle Typing StatusUpdate Last Seen
O node envia requisicoes para:
GET /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations
GET /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/toggle_status
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/toggle_typing
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/update_last_seenCampos suportados:
Contact IdentifierConversation IDCustom AttributesTyping Status
Client Message
Operacoes suportadas:
Get ManyCreateUpdate
O node envia requisicoes para:
GET /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/messages
POST /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/messages
PATCH /public/api/v1/inboxes/{inboxIdentifier}/contacts/{contactIdentifier}/conversations/{conversationId}/messages/{messageId}Campos suportados:
Contact IdentifierConversation IDMessage IDContentEcho IDSubmitted Values
Client CSAT Survey
Operacoes suportadas:
Get
O node envia requisicoes para:
GET /survey/responses/{conversationUuid}Campos suportados:
Conversation UUID
Audit Log -> Get Many
Lists audit log entries from:
GET /api/v1/accounts/{accountId}/audit_logsAvailable fields:
Page
Este endpoint s? est? dispon?vel em edi??es Enterprise do Mega com o recurso de logs de auditoria habilitado.
Agent Bot
Operacoes suportadas:
Get ManyCreateGetUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/agent_bots
POST /api/v1/accounts/{accountId}/agent_bots
GET /api/v1/accounts/{accountId}/agent_bots/{id}
PATCH /api/v1/accounts/{accountId}/agent_bots/{id}
DELETE /api/v1/accounts/{accountId}/agent_bots/{id}Campos suportados:
NameDescriptionOutgoing URLAvatar URLBot TypeBot Config
The documented binary avatar upload field is not implemented yet in this node. Use Avatar URL instead.
Agent
Operacoes suportadas:
Get ManyCreateUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/agents
POST /api/v1/accounts/{accountId}/agents
PATCH /api/v1/accounts/{accountId}/agents/{id}
DELETE /api/v1/accounts/{accountId}/agents/{id}Campos suportados:
NameEmailRoleAvailability StatusAuto Offline
Automation Rule
Operacoes suportadas:
Get ManyCreateGetUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/automation_rules
POST /api/v1/accounts/{accountId}/automation_rules
GET /api/v1/accounts/{accountId}/automation_rules/{id}
PATCH /api/v1/accounts/{accountId}/automation_rules/{id}
DELETE /api/v1/accounts/{accountId}/automation_rules/{id}Campos suportados:
NameDescriptionEvent NameActiveActionsConditions
Campaign
Operacoes suportadas:
Create
O node envia requisicoes para:
POST /api/v1/accounts/{accountId}/campaignsCampos suportados:
TitleMessageInbox IDScheduled AtTrigger Only During Business HoursTemplate ParamsAudience Labels
This first implementation covers only campaign creation and models audience as label references in the form { id, type: "Label" }.
Canned Response
Operacoes suportadas:
Get ManyCreateUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/canned_responses
POST /api/v1/accounts/{accountId}/canned_responses
PATCH /api/v1/accounts/{accountId}/canned_responses/{id}
DELETE /api/v1/accounts/{accountId}/canned_responses/{id}Campos suportados:
Short CodeContent
Chat Room
Operacoes suportadas:
Get ManyCreateGetUpdateDeleteMark As ReadGet MembersAdd MembersUpdate MembersRemove MembersGet MessagesCreate Message
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/chat_rooms
POST /api/v1/accounts/{accountId}/chat_rooms
GET /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}
PUT /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}
DELETE /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}
POST /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/mark_as_read
GET /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/members
POST /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/members
PATCH /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/members
DELETE /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/members
GET /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/messages
POST /api/v1/accounts/{accountId}/chat_rooms/{chatRoomId}/messagesCampos suportados:
Chat Room IDNameDescriptionUser IDsPagePer PageContentMessage TypeEcho IDContent Attributes
This first implementation uses JSON payloads only. Binary avatar uploads for rooms and file attachments for room messages are not implemented yet.
Custom Filter
Operacoes suportadas:
Get ManyCreateGetUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/custom_filters
POST /api/v1/accounts/{accountId}/custom_filters
GET /api/v1/accounts/{accountId}/custom_filters/{customFilterId}
PATCH /api/v1/accounts/{accountId}/custom_filters/{customFilterId}
DELETE /api/v1/accounts/{accountId}/custom_filters/{customFilterId}Campos suportados:
Filter TypeNameTypeQuery
Contact
Operacoes suportadas:
Get ManyCreateCreate NoteGetUpdateDeleteDelete NoteGet ConversationsSearchFilterCreate InboxGet Contactable InboxesGet LabelsAdd LabelsRemove LabelsSet LabelsMerge
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/contacts
POST /api/v1/accounts/{accountId}/contacts
GET /api/v1/accounts/{accountId}/contacts/{id}
PUT /api/v1/accounts/{accountId}/contacts/{id}
DELETE /api/v1/accounts/{accountId}/contacts/{id}
GET /api/v1/accounts/{accountId}/contacts/{id}/conversations
GET /api/v1/accounts/{accountId}/contacts/search
POST /api/v1/accounts/{accountId}/contacts/filter
POST /api/v1/accounts/{accountId}/contacts/{id}/contact_inboxes
POST /api/v1/accounts/{accountId}/contacts/{id}/notes
GET /api/v1/accounts/{accountId}/contacts/{id}/contactable_inboxes
GET /api/v1/accounts/{accountId}/contacts/{id}/labels
POST /api/v1/accounts/{accountId}/contacts/{id}/labels
DELETE /api/v1/accounts/{accountId}/contacts/{id}/notes/{noteId}
POST /api/v1/accounts/{accountId}/actions/contact_mergeCampos suportados:
Inbox IDNameEmailBlockedPhone NumberAvatar URLIdentifierAdditional AttributesCustom AttributesPageSortQueryFilter PayloadSource IDLabelsContentNote IDBase Contact IDMergee Contact ID
The documented binary avatar upload field is not implemented yet in this node. Use Avatar URL instead.
Portal
Operacoes suportadas:
Get ManyCreateUpdate
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/portals
POST /api/v1/accounts/{accountId}/portals
PATCH /api/v1/accounts/{accountId}/portals/{id}Campos suportados:
NameSlugPage TitleHeader TextColorCustom DomainHomepage LinkArchivedConfig
Portal Category
Operacoes suportadas:
Create
O node envia requisicoes para:
POST /api/v1/accounts/{accountId}/portals/{id}/categoriesCampos suportados:
NameDescriptionPositionSlugLocaleIconParent Category IDAssociated Category ID
Portal Article
Operacoes suportadas:
Create
O node envia requisicoes para:
POST /api/v1/accounts/{accountId}/portals/{id}/articlesCampos suportados:
TitleSlugPositionContentDescriptionCategory IDAuthor IDAssociated Article IDStatusLocaleMeta
Custom Attribute
Operacoes suportadas:
Get ManyCreateGetUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/custom_attribute_definitions
POST /api/v1/accounts/{accountId}/custom_attribute_definitions
GET /api/v1/accounts/{accountId}/custom_attribute_definitions/{id}
PATCH /api/v1/accounts/{accountId}/custom_attribute_definitions/{id}
DELETE /api/v1/accounts/{accountId}/custom_attribute_definitions/{id}Campos suportados:
Attribute Display NameAttribute Display TypeAttribute DescriptionAttribute KeyAttribute ModelAttribute ValuesRegex PatternRegex CueDefault Value
Inbox
Operacoes suportadas:
Get ManyGetCreateUpdateGet Agent BotSet Agent BotGet AgentsAdd AgentRemove AgentUpdate Agents
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/inboxes
GET /api/v1/accounts/{accountId}/inboxes/{id}
POST /api/v1/accounts/{accountId}/inboxes
PATCH /api/v1/accounts/{accountId}/inboxes/{id}
GET /api/v1/accounts/{accountId}/inboxes/{id}/agent_bot
POST /api/v1/accounts/{accountId}/inboxes/{id}/set_agent_bot
GET /api/v1/accounts/{accountId}/inbox_members/{inboxId}
POST /api/v1/accounts/{accountId}/inbox_members
DELETE /api/v1/accounts/{accountId}/inbox_members
PATCH /api/v1/accounts/{accountId}/inbox_membersCampos suportados:
NameChannel TypeChannel ConfigGreeting EnabledGreeting MessageEnable Email CollectCSAT Survey EnabledEnable Auto AssignmentWorking Hours EnabledOut of Office MessageTimezoneAllow Messages After ResolvedLock to Single ConversationPortal IDSender Name TypeBusiness NameAgent Bot IDUser IDs
The documented binary avatar upload field is not implemented yet in this node.
Integration
Operacoes suportadas:
Get ManyCreateUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/integrations/hooks
POST /api/v1/accounts/{accountId}/integrations/hooks
PATCH /api/v1/accounts/{accountId}/integrations/hooks/{hookId}
DELETE /api/v1/accounts/{accountId}/integrations/hooks/{hookId}Campos suportados:
App IDInbox IDStatusSettings
Message
Operacoes suportadas:
Get ManyCreateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/conversations/{conversationId}/messages
POST /api/v1/accounts/{accountId}/conversations/{conversationId}/messages
DELETE /api/v1/accounts/{accountId}/conversations/{conversationId}/messages/{messageId}Campos suportados:
Conversation IDAfter Message IDBefore Message IDContentAttachments SourceAttachment Binary PropertiesMessage TypePrivateContent TypeContent AttributesCampaign IDTemplate Params
Message -> Create supports optional multipart uploads using n8n binary properties.
- Use
Attachment Binary Propertieswith a JSON array such as["data", "audio", "pdf"] - Multiple attachments are supported in the same message
- Message text becomes optional when at least one attachment is provided
- Files are sent as
attachments[]inmultipart/form-data
Scheduled Message
Operacoes suportadas:
Get ManyGetCreateUpdateDeleteCount
The node supports two scopes:
AccountConversation
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/scheduled_messages
GET /api/v1/accounts/{accountId}/scheduled_messages/{scheduledMessageId}
POST /api/v1/accounts/{accountId}/scheduled_messages
PUT /api/v1/accounts/{accountId}/scheduled_messages/{scheduledMessageId}
DELETE /api/v1/accounts/{accountId}/scheduled_messages/{scheduledMessageId}
GET /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages
GET /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages/{scheduledMessageId}
POST /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages
PUT /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages/{scheduledMessageId}
DELETE /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages/{scheduledMessageId}
GET /api/v1/accounts/{accountId}/conversations/{conversationId}/scheduled_messages/countCampos suportados:
ScopeScheduled Message IDConversation IDInbox IDContact IDContentScheduled AtTitleTemplate ParamsRecurrence TypeRecurrence IntervalRecurrence DaysRecurrence End TypeRecurrence End DateRecurrence Max OccurrencesStatus
This first implementation uses JSON payloads only. Binary attachments for scheduled messages are not implemented yet.
Profile -> Get
Fetches the authenticated user profile from:
GET /api/v1/profileTeam
Operacoes suportadas:
Get ManyGetCreateUpdateDeleteGet AgentsAdd AgentRemove AgentUpdate Agents
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/teams
GET /api/v1/accounts/{accountId}/teams/{teamId}
POST /api/v1/accounts/{accountId}/teams
PATCH /api/v1/accounts/{accountId}/teams/{teamId}
DELETE /api/v1/accounts/{accountId}/teams/{teamId}
GET /api/v1/accounts/{accountId}/teams/{teamId}/team_members
POST /api/v1/accounts/{accountId}/teams/{teamId}/team_members
DELETE /api/v1/accounts/{accountId}/teams/{teamId}/team_members
PATCH /api/v1/accounts/{accountId}/teams/{teamId}/team_membersCampos suportados:
NameDescriptionAllow Auto AssignUser IDs
Webhook
Operacoes suportadas:
Get ManyCreateUpdateDelete
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/webhooks
POST /api/v1/accounts/{accountId}/webhooks
PATCH /api/v1/accounts/{accountId}/webhooks/{webhookId}
DELETE /api/v1/accounts/{accountId}/webhooks/{webhookId}Campos suportados:
NameURLSubscriptions
Conversation
Operacoes suportadas:
Get CountsGet ManyCreateCreate and Send MessageFilterGetUpdateToggle StatusToggle PriorityToggle Typing StatusSet Custom AttributesGet LabelsSet LabelsGet ParticipantsSet ParticipantsGet Reporting EventsAssign
O node envia requisicoes para:
GET /api/v1/accounts/{accountId}/conversations/meta
GET /api/v1/accounts/{accountId}/conversations
POST /api/v1/accounts/{accountId}/conversations
POST /api/v1/accounts/{accountId}/conversations/filter
GET /api/v1/accounts/{accountId}/conversations/{id}
PATCH /api/v1/accounts/{accountId}/conversations/{id}
POST /api/v1/accounts/{accountId}/conversations/{id}/messages
POST /api/v1/accounts/{accountId}/conversations/{id}/toggle_status
POST /api/v1/accounts/{accountId}/conversations/{id}/toggle_priority
POST /api/v1/accounts/{accountId}/conversations/{id}/toggle_typing_status
POST /api/v1/accounts/{accountId}/conversations/{id}/custom_attributes
GET /api/v1/accounts/{accountId}/conversations/{id}/labels
POST /api/v1/accounts/{accountId}/conversations/{id}/labels
GET /api/v1/accounts/{accountId}/conversations/{id}/participants
PATCH /api/v1/accounts/{accountId}/conversations/{id}/participants
GET /api/v1/accounts/{accountId}/conversations/{id}/conversation_events
POST /api/v1/accounts/{accountId}/conversations/{id}/assignmentsCampos suportados:
Conversation IDAssignee TypeStatusQueryInbox IDTeam IDLabelsPageFilter PayloadSource IDContact IDAssignee IDInitial MessageMessage ContentMessage VisibilityAttachments SourceAttachment Binary PropertiesAdditional AttributesCustom AttributesPriorityUser IDsSLA Policy IDSnoozed UntilTyping StatusPrivate Note
Create can send an optional normal first message in the conversation creation request.
Create and Send Message is the combined flow:
Normalsends the message inPOST /conversationsPrivatecreates the conversation first and then sends a private note inPOST /conversations/{id}/messages
When attachments are provided in Create and Send Message, the node creates the conversation first and then sends the message in a second request to POST /conversations/{id}/messages, for both Normal and Private.
- Use
Attachment Binary Propertieswith a JSON array such as["data", "audio", "pdf"] - Multiple attachments are supported in the same message
- Message text becomes optional when at least one attachment is provided
- Files are sent as
attachments[]inmultipart/form-data Create a new messagealso exposes optional advanced payload fields such asContent Type,Content Attributes,Campaign ID, andTemplate Params
Validacao local
npm run lint
npm run buildSe voce estiver usando uma versao mais antiga do Node.js, o @n8n/node-cli atual pode falhar durante a validacao local. Use Node.js 22+ antes de publicar ou submeter o pacote para revisao.
