Authentication
Learn how to authenticate with the ZeroShot API.
ZeroShot uses API keys to authenticate requests. You can create and manage your API keys in the Dashboard.
API Key Types
| Key Prefix | Environment | Use Case |
|---|---|---|
zsk_live_ | Production | Live scanning |
zsk_test_ | Development | Testing integrations |
Using Your API Key
Include your API key in the X-API-Key header:
curl https://api.0eroshot.com/scans \
-H "X-API-Key: zsk_live_your_api_key"Or with the SDK:
from zeroshot import ZeroShot
client = ZeroShot(api_key="zsk_live_...")Keep your API key secret. Do not commit it to version control or expose it in client-side code.