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 PrefixEnvironmentUse Case
zsk_live_ProductionLive scanning
zsk_test_DevelopmentTesting 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.

On this page