Endpoint
Authentication
This endpoint requires an OAuth access token. Send it as a bearer token: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
Query Parameters
For a template containing
{{company_name}}, the examples below return content with Acme in
that position. Omit variables to retrieve the template without substitutions.
Request Example
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 anX-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 whenvariables is malformed JSON, is not a JSON object, or contains a value that is
not a string. For example, use {"company_name":"Acme"}, not {"company_name":123}.
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
This endpoint only returns the active (published) version. Draft versions are never exposed on
externally authenticated endpoints.
The active template and version are organization-global. Requests with the same variables return
the same content for every token issued for that organization. The token’s user is used only to
authenticate and scope-check the request.
Template Variables
Placeholders use double braces with no spaces, such as{{company_name}}. Names are case-sensitive,
start with a letter or underscore, and contain only letters, numbers, or underscores
([A-Za-z_][A-Za-z0-9_]*). A placeholder without a supplied value stays unchanged.
Values are plain text, escaped for the returned content. HTML values do not create markup.
In content_html, substitutions apply to text nodes, leaving HTML tags and attributes unchanged.
In content, Markdown link destinations, raw HTML tags, and URLs are left unchanged.
Rendering changes the response only, leaving the stored template and its version unchanged.
Use Cases
This endpoint is useful for:- Headless consent flows - Fetch clickwrap content server-side and render it in your own UI before capturing acceptance
- Version awareness - Read the current
version_numberto decide whether a returning user needs to re-accept - Content display - Render
content_htmlin embedded forms or modal dialogs