Documentation Index
Fetch the complete documentation index at: https://docs.petrasecurity.com/llms.txt
Use this file to discover all available pages before exploring further.
For common API errors, see API Troubleshooting.
Overview
The Petra Security API provides programmatic access to security data and functionality within your Petra portal. Use our API to integrate Petra’s security capabilities into your own applications and workflows.Base URL
All API requests should be made to:Authentication
The Petra API uses Bearer token authentication. You’ll need to include your API key in the Authorization header of all requests:Response Format
All API responses are returned in JSON format. Successful requests will return a200 OK status code along with the requested data.
Rate Limiting
API requests are subject to rate limiting to ensure fair usage. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.
Getting Started
- Obtain your API key from the Settings page in your Petra portal
- Include the API key in your request headers
- Make your first API call to the
/v1/usageendpoint