/bff/contract/create
Creates a new contract in draft status. The organisation internal contact is automatically added as the issuer party. Additional contacts provided via contactIds are added as regular parties.
ContractpostBffContractCreate
Parameters
7 body
Body · 7
titlestringRequiredContract title.
Length: 1–∞
contentstringRequiredContract body in Markdown format.
localestringRequiredLocale code for the contract language.
contactIdsnumber[]Internal IDs of contacts to add as contract parties. The organisation contact is always added automatically as issuer.
templateIdnumberTemplate ID if the contract was created from a template.
validFromstringValidity start (ISO timestamp).
validTostringValidity end (ISO timestamp).
Request
POST /bff/contract/create
curl -X POST "https://api.bizkithub.com/bff/contract/create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"title": "Service Agreement 2026",
"content": "# Service Agreement\n\nThis contract...",
"locale": "cs",
"contactIds": [
1
],
"templateId": 5,
"validFrom": "2026-01-01T00:00:00.000Z",
"validTo": "2027-01-01T00:00:00.000Z"
}'Response
JSON payload
{
"success": false,
"id": "ctr_abc123"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.