Evidence API

Read-only access to scan evidence and compliance data

Base URL

https://preconsent.io/api/v1

Read-Only

All endpoints are GET. No writes, no scan triggers, no mutations.

API Key Auth

Authenticate with a hashed API key. Keys are managed in Settings.

Pro & Agency

Available on Pro and Agency plans. Upgrade from Settings.

The Evidence API is designed for legal teams, internal audit, and enterprise integrations. It provides structured access to scan results -- violations, fingerprinting evidence, pre-consent timelines, geographic data flows, and jurisdiction-specific legal references. No scan triggering is exposed by design.

Authentication

All requests must include your API key in the X-Api-Key header.

Example Request

curl -H "X-Api-Key: pce_YOUR_API_KEY" \
  https://preconsent.io/api/v1/scans/{scan_id}/evidence

How to get your API key

  1. 1Go to Settings in your dashboard
  2. 2Scroll to the Evidence API section and click Create Key
  3. 3Copy the key immediately -- it will not be shown again

API keys are hashed before storage. If you lose your key, revoke it and create a new one.

Endpoints

All endpoints follow the pattern /scans/{id}/{resource}. Replace {id} with the scan UUID from your dashboard.

Error Codes

All errors return a JSON object with an error field.

StatusMessage
401Missing X-Api-Key header
401Invalid API key
401API key has been revoked
403Evidence API requires an active Pro or Agency plan
404Scan not found or access denied
405Method not allowed
422Scan is not yet completed
429Rate limit exceeded

Error Response Format

{
  "error": "Scan not found or access denied"
}

Rate Limits

The Evidence API is subject to fair-use rate limits.

PlanRequests / MinuteRequests / Day
Pro605,000
Agency12020,000

If you exceed these limits, you will receive a 429 response. Wait and retry with exponential backoff.

PreConsent Evidence API v1.0

Manage API Keys