Skip to main content
Filecheck uses two key types. Get both from the dashboard.
KeyPrefixWhere it runs
Publishable keypk_live_… / pk_test_…In page JavaScript. Safe to ship in public code.
Secret keysk_live_… / sk_test_…Server-side only. Never put it in browser code.
Never expose a secret key (sk_…) in client-side code, a public repository, or a mobile app bundle. Use it only from your server.

Test and live modes

*_test_… keys run against test data and never bill. *_live_… keys run in production. Swap the key prefix to switch modes; no other code changes are required.

Agent ID (optional)

An agentId (agt_…) scopes the Element to a specific sub-tenant or store. This is useful when one Filecheck account powers multiple storefronts.
const fc = Filecheck('pk_live_…', { agentId: 'agt_…' });

Using the keys

  • Publishable key initializes the Element in the browser.
  • Secret key authenticates server-side requests to the API with a bearer token:
curl https://api.filecheck.io/jobs/{jobId} \
  -H "Authorization: Bearer sk_live_…"