Accept the current version of one legal document
POST
/v1/agreements/accept
const url = 'https://api.vocapable.com/v1/agreements/accept';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"agreement_kind":"msa","version":"example","content_sha256":"example","signer_name":"example","signer_title":"example","signer_email":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/agreements/accept \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "agreement_kind": "msa", "version": "example", "content_sha256": "example", "signer_name": "example", "signer_title": "example", "signer_email": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
AgreementAcceptRequest
One click-through acceptance. The caller echoes the version and hash it was served;
signer_ip and accepted_at are stamped by the API, never client input - the same
posture as ConsentAttestation.
object
agreement_kind
required
Agreement Kind
string
version
required
Version
string
content_sha256
required
Content Sha256
string
signer_name
required
Signer Name
string
signer_title
required
Signer Title
string
signer_email
required
Signer Email
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
AgreementAcceptance
A recorded acceptance, as the append-only ledger holds it.
object
id
required
Id
string
agreement_kind
required
Agreement Kind
string
version
required
Version
string
content_sha256
required
Content Sha256
string
signer_name
required
Signer Name
string
signer_title
required
Signer Title
string
signer_email
required
Signer Email
string
accepted_at
required
Accepted At
string format: date-time
Example
{ "agreement_kind": "msa"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}