UNPKG

n8n-nodes-ragdoll-ai

Version:

n8n node to integrate with Ragdoll AI Knowledge Management API

48 lines 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RagdollApi = void 0; class RagdollApi { constructor() { this.name = 'ragdollApi'; this.displayName = 'Ragdoll API'; this.documentationUrl = 'https://api-staging.ragdollai.io/docs'; this.properties = [ { displayName: 'API Token', name: 'apiToken', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'The API token for Ragdoll API', }, { displayName: 'API URL', name: 'url', type: 'string', default: 'https://api-staging.ragdollai.io', required: true, description: 'The URL of the Ragdoll API', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{ $credentials.apiToken }}', }, }, }; this.test = { request: { baseURL: '={{ $credentials.url }}', url: '/v1/knowledge-bases/', method: 'GET', }, }; } } exports.RagdollApi = RagdollApi; //# sourceMappingURL=RagdollApi.credentials.js.map