UnSearch Docs

Authentication

How to authenticate your API requests with UnSearch.

Authentication

All API requests require authentication via an API key.

API Keys

Include your API key in the X-API-Key header:

curl -H 'X-API-Key: sk_live_your_key' https://api.unsearch.dev/api/v1/search/

SDK Authentication

# Python
client = UnSearch(api_key="sk_live_your_key")
// JavaScript
const client = new UnSearch({ apiKey: 'sk_live_your_key' });

Managing Keys

Create and manage API keys in the dashboard.

  • Create multiple keys for different environments (dev, staging, production)
  • Revoke compromised keys instantly
  • Monitor per-key usage and last-used timestamps

Key Scopes

API keys support scopes to limit permissions:

ScopeDescription
readSearch and read operations
writeCreate and modify resources

Security Best Practices

  • Never expose API keys in client-side code
  • Use environment variables to store keys
  • Rotate keys regularly
  • Use separate keys for development and production

On this page