import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow'; export class HubspotApi implements ICredentialType { name = 'hubspotApi'; displayName = 'HubSpot API'; documentationUrl = 'hubspot'; properties: INodeProperties[] = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, ]; authenticate: IAuthenticateGeneric = { type: 'generic', properties: { qs: { hapikey: '={{$credentials.apiKey}}', }, }, }; test: ICredentialTestRequest = { request: { baseURL: 'https://api.hubapi.com', url: '/account-info/v3/details', }, }; }