create_credential
Create new n8n credentials by specifying name, type, and secret data. Use with credential types like OpenAI, GitHub, or Postgres to authenticate workflows.
Instructions
Create a new credential instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Credential secret payload values object. Fields vary by type (e.g., { apiKey: 'sk-...' } or { user: 'root', password: 'secret' }) | |
| name | Yes | Credential instance name (e.g., Production OpenAI API Key) | |
| type | Yes | Credential type identifier. Use list_credential_types to view all supported names (e.g. openAiApi, githubApi, slackOAuth2Api, postgresDb) |