Skip to content
Browse all functions

Guide

How to use your API key

Every call to https://api.1001fx.com needs your API key. You find it in the app under API key after you created an account.

Keep your API key private. Anyone with the key can use your credits. Never put it into public code or share it in screenshots.

As credential in n8n and Make

Create a 1001fx credential in your automation platform and paste the API key there. All 1001fx functions in your workflows then use this credential.

As header parameter

Add the API key as header X-API-KEY to every request.

curl
curl -X POST 'https://api.1001fx.com/playground/hello' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Alice"}'

{ "result": "Hello Alice!" }
JavaScript (fetch)
const response = await fetch('https://api.1001fx.com/GROUP/FX', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-KEY': 'YOURSECRETAPIKEY',
  },
  body: JSON.stringify(body),
})

As query parameter

If your tool cannot set headers, add the key to the URL as query parameter x-api-key. Prefer the header where possible: URLs often end up in logs.

https://api.1001fx.com/GROUP/FX?x-api-key=YOURSECRETAPIKEY

Responses without result

  • 401 – the API key is missing or invalid.
  • 402 – not enough credits left for this call.
  • 429 – too many requests, slow down (for example a loop in your workflow).

Test your setup without being charged with playground/hello. Your balance is shown in the dashboard.

Ask 1001fx