DocsAPI ReferenceContract/bff/contract/create
postContractAdmin BFF

/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

7 total
Body · 7
titlestringRequired

Contract title.

Length: 1
contentstringRequired

Contract body in Markdown format.

localestringRequired

Locale code for the contract language.

contactIdsnumber[]

Internal IDs of contacts to add as contract parties. The organisation contact is always added automatically as issuer.

templateIdnumber

Template ID if the contract was created from a template.

validFromstring

Validity start (ISO timestamp).

validTostring

Validity end (ISO timestamp).

Request

POST /bff/contract/create

post
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.

Get API Key