n8n_transfer_credential
Transfer credentials between projects in n8n to manage access and organize automation resources.
Instructions
Transfer a credential to a different project.
Args:
credentialId (string): Credential ID to transfer
destinationProjectId (string): Target project ID
Returns: Confirmation of transfer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credentialId | Yes | Credential ID to transfer | |
| destinationProjectId | Yes | Target project ID |
Implementation Reference
- dist/tools/credentials.js:203-231 (handler)The implementation of the 'n8n_transfer_credential' tool, including its registration, description, schema definition, and the handler function that calls the /credentials/{credentialId}/transfer endpoint.
server.registerTool('n8n_transfer_credential', { title: 'Transfer Credential to Project', description: `Transfer a credential to a different project. Args: - credentialId (string): Credential ID to transfer - destinationProjectId (string): Target project ID Returns: Confirmation of transfer.`, inputSchema: z.object({ credentialId: z.string().min(1).describe('Credential ID to transfer'), destinationProjectId: z.string().min(1).describe('Target project ID') }).strict(), annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params) => { await put(`/credentials/${params.credentialId}/transfer`, { destinationProjectId: params.destinationProjectId }); return { content: [{ type: 'text', text: `✅ Credential transferred to project ${params.destinationProjectId}` }], structuredContent: { transferred: true, credentialId: params.credentialId, projectId: params.destinationProjectId } }; });