cURL
Authoring
Validate agreement structure
Checks only the authored agreement JSON and returns participant variable keys, input IDs, state IDs, and warnings. This does not validate deployment values, participant wallet addresses, signer, or permit data.
POST
cURL
This endpoint checks authored agreement JSON only. It does not validate deployment values, participant wallet mappings, signer, or permit data. Generated API examples document request and response shape; complete deployable agreement JSON lives in /examples/simple and /examples/complex.
Authorizations
Canonical API-key credential. Send X-API-Key: cns_pk_..., or Authorization: Bearer cns_pk_... only as an API-key compatibility alias. OAuth and JWT bearer tokens are not supported.
Body
application/json
Authored agreement JSON to validate before deployment preflight.
Response
Agreement structure validation summary.
Example:
{
"templateId": "did:template:service-retainer-v0-1",
"participantVariableKeys": [
"serviceProviderRepresentative",
"clientRepresentative"
],
"inputIds": ["submitInitialPaymentProof"],
"stateIds": ["AWAITING_PAYMENT", "WORK_IN_PROGRESS"],
"warnings": []
}