I’m trying to connect a service with an API and HTTP node and i can’t point the API key to the credential i’m creating in my account.
In their API docs they say that i need to pass the credentials in this way:
curl -X ‘POST’ \ ‘https://api.sumit.co.il/accounting/customers/create/’ \ -H ‘accept: text/plain’ \ -H ‘Content-Type: application/json-patch+json’ \ -d ‘{ “Details”: { “ExternalIdentifier”: null, “NoVAT”: null, “SearchMode”: null, “Name”: “Danny Dean”, “Phone”: “050-1234567”, “EmailAddress”: “[email protected]”, “City”: null, “Address”: null, “ZipCode”: null, “CompanyNumber”: “514000123”, “ID”: null, “Folder”: null, “Properties”: null }, “Credentials”: { “CompanyID”: 12345678, “APIKey”: “R576Z62qzuans7dXGOkks8jEalaTisyFrUhraKth9Eksz1GBYQ” }, “ResponseLanguage”: null }’
Please share your workflow
When i try to run the HTTP node with the api key in the body it works, but i prefer not to have the key exposed in the body, so i tried adding it in the credential section in my account, but i cant point to it in the body using {{$credential[‘SUMIT TEST’].value}} .. it simply doesnt work..
This is their API docs: תיעוד REST API מלא של מערכת SUMIT לניהול העסק
What am i doing wrong here?
Because i think its not secured to pass the key like that in the body of the http request no?
Will really appreciate some help here
Information on your n8n setup
- n8n version: 1.112.5
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): xCloud (Docker managed)
- Operating system: xCloud managed environment