Skip to main content

Click API Overview

The Click API enables you to create, deploy, and manage clickwrap agreements programmatically. Capture legally binding consent with a JavaScript SDK and manage the full lifecycle of templates, deployments, and evidence through a set of REST APIs.

Key Features

  • Template Management - Create and version rich-text consent templates with DOCX support
  • Deployments - Deploy templates to sites with locale and branding configuration
  • JavaScript SDK - Drop-in widget renders consent experiences in your application
  • Consent Acceptance - Idempotent endpoint records user consent with evidence
  • Identity Verification - Optional OTP-based verification before consent
  • Evidence Bundles - Tamper-evident proof of consent for compliance
  • Analytics - Track acceptance rates, versions, and user consent state

Architecture

Three APIs, One Product

Click is composed of three services, each purpose-built for its role:

Management API

The internal API for managing templates, deployments, sessions, and analytics. Used by your backend and the Propper dashboard.

AreaEndpoints
TemplatesCRUD, versioning, statistics
DeploymentsCreate, update, manage deployment targets
SessionsCreate and complete consent sessions
EvidenceRetrieve tamper-evident evidence bundles
AnalyticsAcceptance rates and consent metrics
Consent StatePer-user consent tracking

Accept API

A public-facing, high-throughput endpoint for recording consent acceptance. Designed for client-side calls from the JavaScript SDK with idempotent writes and Pub/Sub integration.

FeatureDescription
Idempotent writesDuplicate requests return the same result
Identity verificationOptional OTP-based verification
Pub/Sub integrationTriggers async evidence processing

Render API

A public-facing, read-only endpoint that returns Experience JSON for the JavaScript SDK to render. Supports edge caching and locale overrides.

FeatureDescription
Deployment renderingRender by deployment ID
Template renderingRender by template and version
Locale overrideDynamic locale selection
Edge cachingETag-based caching for performance

OpenAPI Specs

Click publishes one combined OpenAPI JSON file for product-level discovery and separate service specs for generated reference docs and service-specific integrations.

SpecCoversReferenceJSONYAML
Combined Click APIManagement, Accept, and Render APIsClick API ReferenceJSON-
Management APITemplates, deployments, sessions, analyticsManagement API ReferenceJSONYAML
Accept APIConsent acceptance and identity verificationAccept API ReferenceJSONYAML
Render APIExperience rendering for the JavaScript SDKRender API ReferenceJSONYAML

Core Concepts

Template

A template defines the consent language, layout, and fields. Templates support rich text via DOCX and can be versioned independently.

Template Version

Each template can have multiple versions. Only published versions can be deployed. Version history provides an audit trail of consent language changes.

Deployment

A deployment links a published template version to a site or application. Deployments specify locale, branding, and which template version to serve.

Session

A session tracks a single consent interaction. When a user views and accepts a consent experience, a session records the event with metadata.

Evidence Bundle

An evidence bundle is the tamper-evident proof that consent was given. It includes the template version, user metadata, timestamps, and a content hash.

Consent state tracks whether a specific user has given consent for a specific template. It supports querying and updating per-user consent status.

Integration Flow

API Base URLs

ServiceBase URL
Management APIhttps://api.propper.ai/v1/click
Accept APIhttps://api.propper.ai/v1/click/accept
Render APIhttps://api.propper.ai/v1/click/render

Authentication

The Management API uses OAuth 2.0 with Bearer tokens:

POST https://auth.propper.ai/oauth2/token
Content-Type: application/json

{
"grant_type": "client_credentials",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"scope": "click:admin click:read"
}

The Render and Accept APIs authenticate via API key or Bearer token depending on the integration method.

Authentication Guide

OAuth Scopes

ScopeDescription
click:readRead templates, deployments, and consent state
click:adminFull management access (create, update, delete)

Next Steps

Quickstart

Deploy your first clickwrap agreement in minutes.

Management API Reference

Templates, deployments, sessions, analytics, and evidence endpoints.

Accept API Reference

Consent acceptance, preflight, and identity verification endpoints.

Render API Reference

Experience JSON rendering endpoints used by the JavaScript SDK.