n8n_transfer_credential
Move credentials between n8n projects to maintain access control and organization when restructuring workflows.
Instructions
Transfer a credential to another project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Credential ID | |
| destinationProjectId | Yes | Target project ID |
Implementation Reference
- src/index.ts:207-215 (handler)Request handler for 'n8n_transfer_credential' tool.
case 'n8n_transfer_credential': { if (!args?.id || !args?.destinationProjectId) { throw new Error('id and destinationProjectId are required'); } const result = await n8nClient.transferCredential(args.id as string, args.destinationProjectId as string); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/n8n-client.ts:152-157 (helper)N8nClient helper method that executes the actual API call for transferring a credential.
async transferCredential(id: string, destinationProjectId: string): Promise<any> { const response = await this.client.put(`/credentials/${id}/transfer`, { destinationProjectId }); return response.data; } - src/index.ts:649-659 (registration)Tool registration for 'n8n_transfer_credential' including input schema.
name: 'n8n_transfer_credential', description: 'Transfer a credential to another project', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Credential ID' }, destinationProjectId: { type: 'string', description: 'Target project ID' }, }, required: ['id', 'destinationProjectId'], }, },