Skip to main content

Create Signed Agreement

POST /v1/signed-agreement

Records content that has been signed by the current user. Accepts any JSON content (typically agreement text, free text, rich text, or other data structures) and creates a signed agreement record. The request body is stored directly as the signed data, along with user information, timestamps, browser, and IP address metadata.

Request Body

{
"blocks": [
{
"key": "a1b2c",
"text": "By continuing to use our services, you agree to comply with the terms and conditions stated in this agreement.",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [],
"entityRanges": [],
"data": {}
}
],
"entityMap": {}
}

Response Example

{
"_id": "signed-agreement-id-1",
"signed": {
"user_id": "61643fc9f7d8c9afb52c54b4",
"tenant": "61643fc9f7d8c9afb52c5567",
"username": "user@example.com",
"full_name": "Example User",
"data": {
"content": "By using this service, you agree to our terms and conditions.",
"version": "1.0",
"accepted": true
}
},
"created": "2025-04-02T16:01:45.209Z"
}