Skip to main content
Adding Clickwrap to your website or app? Embed a clickwrap in your website or app walks through it step by step with the browser SDK. Use this endpoint from your server.

Endpoint

Authentication

This endpoint requires an OAuth access token. Send it as a bearer token:
Required scope: clickwrap:read
Clickwrap is the one /v2 surface with no acting user. The subject of a clickwrap event is user_identifier, an opaque string you supply for your own end user, which is never resolved against Chamelio’s users. These endpoints are authorized by organization and scope alone, so client_credentials tokens work here without restriction.

Path Parameters

Request Body

Request Example

Check acceptance of any version

Set any_version to true when a user who accepted an earlier version doesn’t need to accept again.
cURL

Response

Success Response

Status Code: 200 OK

Response Fields

Error Responses

401 Unauthorized

Returned when the access token is missing, unknown, revoked, or expired, or when an X-API-Key was sent instead of a bearer token. See OAuth error responses.

403 Forbidden

Returned when the token does not carry the required scope.

404 Not Found

Returned when no active clickwrap exists for the given slug.

422 Unprocessable Entity

Returned when the request body fails validation, for example a missing user_identifier.

429 Too Many Requests

Returned when your organization exceeds its per-minute request limit.

500 Internal Server Error

Returned when the request fails due to a server error.

Notes

By default, accepted: true means the user has accepted the currently active version specifically. If the clickwrap was updated since the user last accepted, accepted will be false even though the user accepted a previous version. Set any_version to true to count an acceptance of any version instead.
The result is organization-global. Every token issued for the same organization gets the same answer - the token’s user is used only to authenticate and scope-check the request.
With any_version set to true, compare the returned version_number with the active version from Get Clickwrap to detect when a user accepted an older version. New acceptances always record the active version.

Use Cases

This endpoint is useful for:
  • Access gating - Block a user from proceeding until they have accepted the current terms
  • Re-consent checks - Determine on login or feature access whether the user’s acceptance is still current
  • Audit queries - Programmatically verify acceptance status before performing a regulated action