Skip to main content
POST
/
v1
/
admin
/
legal
/
contracts
/
templates
Create a contract template
curl --request POST \
  --url https://{operatorDomain}/v1/admin/legal/contracts/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "ctpl_01HZX...",
  "name": "<string>",
  "slug": "<string>",
  "body": "<string>",
  "isDefault": false,
  "language": "<string>"
}
'
{
  "data": {
    "id": "ctpl_01HZX...",
    "name": "<string>",
    "slug": "<string>",
    "body": "<string>",
    "isDefault": false,
    "language": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Body

application/json
id
string
required
Example:

"ctpl_01HZX..."

name
string
required
slug
string | null
body
string

Template body markup with variable placeholders.

isDefault
boolean
default:false
language
string | null

Response

201 - application/json

Created template

data
object