How to use 1001fx with n8n's HTTP Request node
Calling our api via HTTP Request node in n8n is very easy. Please follow these instructions.
Before Usage: One time setup of API credentials on n8n
Before you call our api for the first time do the following steps:
- Open Credentials in n8n
- Press Add Credential
- Add a Header Auth account
- Change name e.g. "1001fxHeaderAuth"
- Change Name in Connection to X-API-KEY (all uppercase)
- Fill in your secret api key from dashboard
- Press Save
Call the function
- Add a HTTP Request node
- Select the method of the function you would like to call. (normally POST)
- Enter the url 'https://api.1001fx.com/GROUP/FX' (see the URL in the function REST, e.g.demo/hello)
- Set Authentication to Generic Credential Type
- Set Generic Auth Type to Header Auth
- Set Predefined Credential Type to Header Auth
- Set Credential for Header Auth to the name you have chosen, e.g. 1001fxHeaderAuth
- Activate Body
- Fill in Body
- Execute the node