The ClearPolicy REST API gives you programmatic access to your organization’s people, documents, and attestation requests. All endpoints communicate over HTTPS and return JSON.Documentation Index
Fetch the complete documentation index at: https://docs.clearpolicy.app/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
v1) is included in every request URL. The current and only version is v1.
Authentication
All endpoints require a valid OAuth 2.0 bearer token. Pass the token in theAuthorization header:
Your organization must have an active subscription or be within its trial period. If your trial has expired or your subscription is inactive, all API requests return a
402 Payment Required response.Response format
All responses are JSON. Successful responses return the requested resource or collection directly in the response body.IDs
All resource IDs are ULIDs — lexicographically sortable string identifiers. They are represented as lowercase strings, for example:Pagination
List endpoints return paginated results. The response includes adata array alongside links and meta objects:
page and per_page query parameters to navigate results. per_page accepts values between 1 and 100, and defaults to 25.
Errors
Errors return JSON with anerror field describing the problem:
| Status | Meaning |
|---|---|
200 OK | Request succeeded. |
201 Created | Resource created successfully. |
400 Bad Request | The request was invalid (e.g. document not published). |
401 Unauthorized | Missing or invalid access token. |
402 Payment Required | Your organization’s trial has expired or subscription is inactive. Visit your billing page to subscribe. |
403 Forbidden | Token lacks required permissions. |
404 Not Found | The requested resource does not exist in your organization. |
422 Unprocessable Entity | Validation failed — check request parameters. |
Rate limiting
Standard rate limiting applies to all API endpoints. If you exceed the limit, the API returns a429 Too Many Requests response. Use exponential backoff when retrying.
Endpoints
GET /v1/me
Return the authenticated user and their organization.
People
List, create, and retrieve contacts in your organization.
Documents
List documents available for attestation.
Attestation requests
Send a document to a contact for acknowledgment or signature.