Skip to main content
POST
/
contracts
/
v1
Create contract
curl --request POST \
  --url https://api.spacebring.com/contracts/v1 \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contract": {
    "actionable": true,
    "customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "endDate": "<string>",
    "expirationDate": "<string>",
    "items": "<array>",
    "signers": "<array>",
    "startDate": "<string>",
    "templateRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}
'
{
  "contract": {
    "contract": {
      "createDate": "2023-11-07T05:31:56Z",
      "customer": {},
      "customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "issueDate": "2023-11-07T05:31:56Z",
      "items": "<array>",
      "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "unsignedDocument": {
        "key": "<string>",
        "url": "<string>"
      },
      "signedDocument": {
        "key": "<string>",
        "url": "<string>"
      },
      "endDate": "2023-11-07T05:31:56Z",
      "expirationDate": "2023-11-07T05:31:56Z",
      "signers": "<array>",
      "startDate": "2023-11-07T05:31:56Z",
      "status": "draft",
      "templateRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string<uuid>

The id of the network. Required when using bearer token authentication

Body

application/json
contract
object
required

Response

Created

contract
object