Skip to main content

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​

  1. Log in to your Fulfillio app
  2. Navigate to API → API Keys
  3. Click Create new API key
  4. 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 (.gitignore your .env files)
  • 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"]