Search Key
fs_pk_...Use this key in the hosted search scripts. It authorizes search requests without granting account access.
- Safe to use in browser code
- Works with origin restrictions
- Cannot manage website settings
Manage your FlowSearch API keys and understand key types.
FlowSearch uses two types of API keys:
fs_pk_...Use this key in the hosted search scripts. It authorizes search requests without granting account access.
fs_sk_...Reserve this key for trusted backend operations. It has broad access and must never reach client-side code.
Never expose your Admin Key (fs_sk_...) in frontend code, public repositories, or client-side JavaScript. It grants full access to your account.
The Search Key is used in the Search Bar Script (all pages). Place this script in the site-wide head/custom-code area.
<script
src="https://www.flowsearch.io/widget.js"
data-key="fs_pk_xxxxxxxxxxxxxxxxxxxx"
data-results-page="/search-results"
data-live="true">
</script>Some sites already use the /search slug, so use /search-results or another custom slug and keep data-results-page in sync with the published page.
Protect your Search Key by restricting which domains can use it:
# Example allowed origins
https://yoursite.com
https://www.yoursite.com
https://preview.example.comRequests from other domains will be rejected, even with a valid API key.
Public Search Key requests use the website's effective plan. The search API also capsper_page by plan. Live-search requests count toward the monthly search quota.
| Plan | Search requests/minute | Max per page | Search requests/month |
|---|---|---|---|
| Free | 30 req/min | 10 | 1,000 |
| Basic | 60 req/min | 20 | 10,000 |
| Pro | 120 req/min | 50 | 50,000 |
| Business | 180 req/min | 50 | 150,000 |
| Enterprise | 600 req/min | 100 | Custom |
If you suspect a key has been compromised:
Regenerating a key immediately invalidates the old one. Make sure to update your code before regenerating to avoid search downtime.
# Store in environment variables
# .env (never commit this file!)
FLOWSEARCH_ADMIN_KEY=fs_sk_xxxxxxxxxxxxxxxxxxxx
# Access in your code
const adminKey = process.env.FLOWSEARCH_ADMIN_KEY;| Action | Search Key | Admin Key |
|---|---|---|
| Search content | ✓ | ✓ |
| AI search | ✓ | ✓ |
| View analytics | ✗ | ✓ |
| Trigger crawls | ✗ | ✓ |
| Manage settings | ✗ | ✓ |
| Upload documents | ✗ | ✓ |
API key permissions do not bypass plan entitlements. Follow-up AI conversations and External Knowledge require a paid plan, and chunked uploaded document knowledge requires Business or Enterprise.