Authentication
The Fulfillio API uses API key authentication. Every request must include your secret API key.
Keep Your Key Private
This is a server-to-server (S2S) API. Your API key must never be exposed on the client side (browser, mobile app, etc.). Always call the API from your backend server.
Generating an API Key
- Log in to your Fulfillio app
- Navigate to API → API Keys
- Click Create new API key
- Copy the generated key and store it securely (e.g., in an environment variable)
Using the API Key
Include your API key in the JSON body of every request under the apiKey field.
{
"apiKey": "YOUR_API_KEY",
"orderInfo": {
...
}
}
Security Best Practices
- Store your API key in an environment variable — never hardcode it
- Rotate your key immediately if you suspect it has been compromised
- Do not commit your key to version control (
.gitignoreyour.envfiles) - Use HTTPS exclusively — all API endpoints are served over TLS
Example: Setting the Key as an Environment Variable
# .env file (never commit this)
FULFILLIO_API_KEY=your_secret_key_here
// Node.js usage
const apiKey = process.env.FULFILLIO_API_KEY;
# Python usage
import os
api_key = os.environ["FULFILLIO_API_KEY"]