@pixelinfinito/n8n-nodes-chatwoot
Version:
n8n community node for Chatwoot API integration
56 lines • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatwootApi = void 0;
class ChatwootApi {
constructor() {
this.name = 'chatwootApi';
this.displayName = 'Chatwoot API';
this.documentationUrl = 'https://developers.chatwoot.com/api-reference/introduction';
this.properties = [
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: 'https://app.chatwoot.com',
description: 'The base URL of your Chatwoot instance (e.g., https://app.chatwoot.com or https://your-instance.com)',
placeholder: 'https://app.chatwoot.com',
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: {
password: true,
},
default: '',
description: 'Your Chatwoot API access token (get from Profile Settings > API Access Token)',
},
{
displayName: 'Account ID',
name: 'accountId',
type: 'number',
default: 1,
description: 'The numeric ID of your Chatwoot account',
placeholder: '1',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'api_access_token': '={{ $credentials.accessToken }}',
'Content-Type': 'application/json',
},
},
};
this.test = {
request: {
baseURL: '={{ $credentials.baseUrl }}',
url: '/api/v1/profile',
method: 'GET',
},
};
}
}
exports.ChatwootApi = ChatwootApi;
//# sourceMappingURL=ChatwootApi.credentials.js.map