Create a credential on a live n8n instance
n8n_create_credentialCreate a credential in n8n by providing its name, type, and data fields matching the credential schema. Set up authentication for workflows.
Instructions
Create a new credential. Check n8n_get_credential_schema first to know the required data fields for the credential type.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"type": "<type>",
"data": "<data>"
},
"name": "n8n_create_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Credential fields per its schema, e.g. { apiKey: '...' } | |
| name | Yes | ||
| type | Yes | Credential type name, e.g. 'slackApi' |