Authentication
Authenticate your API requests using a per-store API key passed in the X-Auth-Token header.
Last updated
Every request to the Filemonk API must include your store’s API key in the X-Auth-Token header.
Getting your API key
Section titled “Getting your API key”-
Open Filemonk settings
In your Shopify admin, open the Filemonk app and navigate to Settings.
-
Go to the Other tab
Select the Other tab and scroll to the API section.
-
Copy your key
Click Copy to copy the API key to your clipboard. The key is masked by default — you can copy it without revealing it.
Using the API key
Section titled “Using the API key”Include the key in the X-Auth-Token header of every request:
curl -X GET 'https://app.filemonk.io/api/v1/external/orders' \ -H 'X-Auth-Token: fm_api_key_your_key_here'-
X-Auth-Token(string, header, required)Your store’s API key. Starts with
fm_api_key_.
Error responses
Section titled “Error responses”If authentication fails, the API returns a 401 Unauthorized response:
Missing key
{ "error": "API key is required"}You did not include the X-Auth-Token header.
Invalid key
{ "error": "Invalid API key"}The key does not match any store. Verify you copied the full key.
Resetting your API key
Section titled “Resetting your API key”If your API key is compromised, you can reset it from the same Settings > Other > API section:
- Click Reset next to the API key field.
- Confirm the reset in the modal dialog.
- Copy the new key and update all your integrations.
Security best practices
Section titled “Security best practices”- Store your API key in environment variables or a secrets manager — never hard-code it.
- Do not expose the key in client-side code, browser requests, or public repositories.
- Use HTTPS for all API requests (the API only accepts HTTPS).
- Reset the key promptly if you suspect it has been exposed.
Thanks for letting us know.
Still stuck? Ask Quinn or chat with support