Add Credentials using API but the type doesn’t fit any of predefined.
I want to create Credentials for my API Keys but this API key is used by shell command so instead of storing in conf.ini is there a way I can store it in n8n. Also, can I add/Modify/Remove using API
I am using the latest n8n fresh install.
n8n version:1.72.1
Database (default: SQLite):SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main): own
Running n8n via (Docker, npm, n8n cloud, desktop app): n8n
No, the schemas are predefined. You need to know the schema for the credential type you want to create to be able to compose your “create” request body correctly.
The credential type names could be obtained from n8n repo.
For example, you want to create (save) ClickUp API key. The credential type name for such a credential is called clickUpApi. Using the endpoint /api/v1/credentials/schema/clickUpApi you can learn that the credential has to have the structure as per schema
That is, the request to create ClickUp API credential requires just one string field called accessToken. To actually create the credential the POST request to /api/v1/credentials should have the body like below