Skip to content

API overview

The truAPI is the external REST API for TruConsent. Use it for server-side integrations, compliance reporting, asset management, consent queries, and developer setup tasks.

Base URL: https://truapi-dev.truconsent.io

All requests and responses use JSON. Dates are ISO 8601 strings in UTC.

Every request must include your organisation identifier in the X-Org-Id header:

X-Org-Id: your-org-slug

The truAPI uses API key authentication:

X-API-Key: your-api-key

Generate API keys from Settings → API Keys in the platform dashboard. See Authentication for full details.

  • All endpoints are versioned under /api/v1/external/.
  • Query parameters are optional unless marked required.
  • POST/PUT bodies must be Content-Type: application/json.
GroupPrefixDescription
Assets/api/v1/external/assetsCreate, list, and update assets (apps/websites)
Public data/api/v1/external/publicRead-only: list assets, collection points, consent links
Consent queries/api/v1/external/consentsQuery consent records, timelines, withdrawal events
Reports/api/v1/external/reportsCompliance and consent summary reports
Audit/api/v1/external/auditImmutable audit trail
Identity/api/v1/external/identityUser identity management
Security/api/v1/external/securityAPI key management
Events/api/v1/external/eventsWebhook event logs
Versions/api/v1/external/versionsCollection point version history