create-credential
Store credentials for n8n nodes by providing clientId, name, type, and data. Use get-credential-schema first to obtain required fields.
Instructions
Create a credential that can be used by nodes of the specified type. Use get-credential-schema first to see required fields.
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": {
"clientId": "<clientId>",
"name": "<name>",
"type": "<type>",
"data": "<data>"
},
"name": "create-credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Credential data (fields depend on type) | |
| name | Yes | Credential name | |
| type | Yes | Credential type (e.g., 'githubApi', 'slackOAuth2Api') | |
| clientId | Yes | Client ID from init-n8n |