Skip to main content
POST
/
Agent
/
Legal
/
CreateContract
Create Contract
curl --request POST \
  --url https://{host}/Agent/Legal/CreateContract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "templateId": "<string>",
  "visibility": "<string>",
  "Parts": [
    {
      "role": "<string>",
      "legalId": "<string>"
    }
  ],
  "Parameters": [
    {
      "name": "<string>",
      "value": {}
    }
  ]
}
'
{
  "Contract": {}
}

Overview

Allows the client to create a new smart contract, based on an existing (and approved) contract template. The request must be signed using one of the keys created by the client.

Authentication

Requires a valid JWT bearer token.

Notes

This endpoint uses the request schema notation described in Pattern matching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
templateId
string
required
visibility
string
required
Parts
object[]
Parameters
object[]

Response

200 - application/json

Success

Contract
object
required