Secure Audit Log API Reference
The Secure Audit Log API is designed for recording a trail of application-based user activity in a scalable, tamper-proof log.
Base URL
audit.<csp>.<region>.pangea.cloud
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/log' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Log an entry
Create a log entry in the Secure Audit Log.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v2/log' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Log multiple entries
Create multiple log entries in the Secure Audit Log.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v2/log_async' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Log multiple entries asynchronously
Asynchronously create multiple log entries in the Secure Audit Log.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/search' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Search the log
Search the Secure Audit Log.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/results' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Search results
Page through results from a previous search.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/download_results' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Download search results
Get all search results as a compressed (gzip) CSV file.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/log_stream' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json'
Response
Log streaming endpoint
This API allows third-party vendors like Auth0 to stream log events to this endpoint. The payload structure may vary across different vendors. Please refer to examples in the SDKs to test this functionality and consult the Log Streaming documentation for details.
curl -sSLX POST 'https://audit.aws.us.pangea.cloud/v1/root' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Tamperproof Verification
Return current root hash and consistency proof.
Status Codes
Status | Status Code | Description |
---|---|---|
TreeNotFound | 200 | A tree has not been built for proofs. This is likely due to a lack of audit messages ingested. |
BadOffset | 400 | The offset provided is invalid or out of range. |
ForwardingError | 400 | Forwarder has experienced an error while forwarding messages |
InvalidSchema | 400 | The configured schema is not valid for this endpoint. |
NoForwarderConfigured | 400 | Testing a forwarder requires a forwarder to be configured |
ForbiddenFieldValue | 403 | A field value was supplied that is not allowed by the token's field restrictions. |
Was this article helpful?