Using API Keys
This guide provides integration examples for using API keys to authenticate with Shield's REST API.
Standard Bearer Token Authentication
Include the API key in the Authorization header with each request:
Request Format
Query Parameter Authentication (CSV Export Only)
For the CSV export endpoint only, the token can be passed as a query parameter. This accommodation is provided for BI tools and data analysis platforms that cannot easily set custom HTTP headers:
GET /api/activities/csv?token=YOUR_API_KEY&search=...
This method is only supported for the /api/activities/csv endpoint. All other endpoints require the standard Authorization header.
Related Topics
- Validating API Keys - Test that your key is configured correctly
- Data Scanning API - Real-time data protection
- Activities API - Query and export activity logs