Skip to main content
The documents endpoint returns all documents in your organization. Use the returned document IDs when creating attestation requests. Each document in the response includes attestation summary counts and metadata about its published revision status.

Endpoint

GET https://api.clearpolicy.app/v1/documents

Authentication

Required. Pass your OAuth bearer token in the Authorization header.

Query parameters

name
string
Filter documents whose name contains this value (case-insensitive partial match).
per_page
number
default:"25"
Number of results per page. Must be between 1 and 100.
page
number
default:"1"
Page number to retrieve.

Example request

curl "https://api.clearpolicy.app/v1/documents?per_page=25&page=1" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response fields

id
string
required
The ULID of the document.
organization_id
string
required
The ULID of the organization the document belongs to.
name
string
required
The display name of the document.
default_attestation_type
string
The default attestation type for this document. One of "acknowledgment" or "signature". When creating an attestation request you can override this per-request.
renewal_interval_days
number
How often (in days) the document requires re-attestation, or null if renewal is not configured.
auto_renew
boolean
required
Whether attestation requests are automatically re-sent when a renewal is due.
has_published_revision
boolean
required
Whether the document has a published revision. Only documents with a published revision can be sent via the API.
last_updated_at
string
ISO 8601 timestamp of the most recent document revision, or null if no revision exists.
attestation_counts
object
required
A summary of attestation statuses across all contacts assigned to this document.
created_at
string
required
ISO 8601 timestamp of when the document was created.
updated_at
string
required
ISO 8601 timestamp of the last update.

Example response

{
  "data": [
    {
      "id": "01kg82xqfx6fvr046d15hnfmjv",
      "organization_id": "01jz91kq3m0gar5btepwxvncde",
      "name": "Employee Handbook",
      "default_attestation_type": "signature",
      "renewal_interval_days": 365,
      "auto_renew": true,
      "has_published_revision": true,
      "last_updated_at": "2024-03-01T09:00:00.000000Z",
      "attestation_counts": {
        "attested_latest": 10,
        "pending_attested": 2,
        "attested_outdated": 1,
        "unrequested": 4,
        "renewal_due": 3,
        "total": 20
      },
      "created_at": "2024-01-01T00:00:00.000000Z",
      "updated_at": "2024-03-01T09:00:00.000000Z"
    }
  ],
  "links": {
    "first": "https://api.clearpolicy.app/v1/documents?page=1",
    "last": "https://api.clearpolicy.app/v1/documents?page=3",
    "prev": null,
    "next": "https://api.clearpolicy.app/v1/documents?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 3,
    "per_page": 25,
    "to": 25,
    "total": 62
  }
}
Only documents with has_published_revision: true can be used when creating attestation requests. Attempting to send an unpublished document will return a 400 error.
Last modified on April 12, 2026