Skip to content

Agreement Validator

Validates an agreement document before publish, sync, or review.

Method and path

  • Method: POST
  • Path: /agreements/validate
  • Auth: not required

Request body

{
  "document": {}
}

document is the agreement payload to validate.

Response

  • 200 OK
  • 400 Bad Request

Success shape:

{
  "ok": true,
  "errors": []
}

Error item fields:

  • code
  • path
  • message

Example

curl -X POST https://api.openasa.com/agreements/validate \
  -H 'Content-Type: application/json' \
  -d '{"document":{"name":"auth-email","version":"v1.0.2"}}'