Skip to content

Authentication

Authenticate your API requests with an expiring API key passed in the X-Auth-Token header.

Last updated

Every request to the Filemonk API must include one of your store’s API keys in the X-Auth-Token header. API v1 and API v2 take the same keys.

  1. Open Filemonk settings

    In your Shopify admin, open the Filemonk app and navigate to Settings.

  2. Go to the Other tab

    Select the Other tab and scroll to the API section.

  3. Create a key

    Click Create API key, give it a name (for example the integration that will use it) and choose when it expires: 30 days, 90 days (the default), 1 year, or no expiry.

  4. Copy it now

    The full key is shown once, in the banner after you create it. Filemonk stores only a hash of it, so it cannot show it again. Afterwards the list shows the key’s first characters, its status, its expiry date (or Never) and when it was last used.

A store can hold up to 10 working keys at once, so give each integration its own 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_key_your_key_here'
  • X-Auth-Token (string, header, required)

    One of your store’s API keys. Keys start with fm_key_. API v2 also accepts the key as X-API-Key or Authorization: Bearer <key>.

  • Expiry. A key stops working at its expiry date. The store owner gets an email 14 days and 3 days before. A key created with No expiry works until you revoke it and gets no reminders.
  • Rotate. Click Rotate beside a key to get a new key with the same name. You choose its expiry; the old key’s choice is preselected. The old key keeps working for 7 more days (or until it expires, if sooner), so you can deploy the new one without downtime.
  • Revoke. Click Revoke to stop a key immediately, for example if it has leaked. Your other keys keep working.

Stores that used the API before expiring keys existed had one older key (it starts with fm_api_key_). It is retired and no longer works: a request that sends it gets Invalid API key. Create a new key in Settings → Other → API keys and send that instead.

If authentication fails, the API returns a 401 Unauthorized response. API v1 answers with an error string; API v2 with an errors array and a code.

Missing key

{ "error": "API key is required" }

You did not include the X-Auth-Token header. (v2 code: missing_api_key)

Invalid key

{ "error": "Invalid API key" }

The key does not match any store. Verify you copied the full key. (v2 code: invalid_api_key)

Expired key

{ "error": "This API key expired on 2027-02-01. Create a new key in Filemonk → Settings → Other → API keys." }

Create or rotate a key and update your integration. (v2 code: expired_api_key)

Revoked key

{ "error": "This API key was revoked. Create a new key in Filemonk → Settings → Other → API keys." }

(v2 code: revoked_api_key)

  • 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).
  • Use one key per integration, and revoke a key promptly if you suspect it has been exposed.
Was this page helpful?

Still stuck? Ask Quinn or chat with support