Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/credentials/PipedriveApi.credentials.ts
2025-09-08 04:48:28 +08:00

29 lines
556 B
TypeScript
Executable File

import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class PipedriveApi implements ICredentialType {
name = 'pipedriveApi';
displayName = 'Pipedrive API';
documentationUrl = 'pipedrive';
properties: INodeProperties[] = [
{
displayName: 'API Token',
name: 'apiToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
qs: {
api_token: '={{$credentials.apiToken}}',
},
},
};
}