Skip to main content
POST
/
contracts
/
{id}
/
versions
Upload new contract version
curl --request POST \
  --url https://api.tomorro.com/v2/contracts/{id}/versions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "key": "signedFiles/550e8400-e29b-41d4-a716-446655440000/files/b3b7bd7b-85f9-49e7-843d-71f656df5ca5",
  "name": "amendment-v2.docx",
  "contentType": "application/pdf"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "contractId": "550e8400-e29b-41d4-a716-446655440010",
  "version": 3,
  "status": "draft",
  "contentType": "application/pdf",
  "createdAt": "2024-01-15T10:30:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://alpha.developer.tomorro.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for authentication. Get your key at https://app.tomorro.com/settings/integrations?integration=api-key

Path Parameters

id
string
required

The unique identifier (UUID) of the contract

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json
key
string
required

Storage key returned by POST /files/upload-url.

Example:

"signedFiles/550e8400-e29b-41d4-a716-446655440000/files/b3b7bd7b-85f9-49e7-843d-71f656df5ca5"

name
string
required

Original filename of the uploaded file, including extension.

Example:

"amendment-v2.docx"

contentType
string
required

MIME content type of the uploaded file.

Example:

"application/pdf"

Response

New contract version created successfully

id
string
required

Unique identifier for the contract version.

Example:

"550e8400-e29b-41d4-a716-446655440000"

contractId
string
required

The contract this contract version belongs to.

Example:

"550e8400-e29b-41d4-a716-446655440010"

version
number
required

Version number within the contract.

Example:

3

status
enum<string>
required

Current status of the contract version.

Available options:
draft,
sent,
negotiation,
accepted,
reviewing,
reviewedByExternalParty,
signed
Example:

"draft"

contentType
string | null
required

MIME content type of the contract version content.

Example:

"application/pdf"

createdAt
string<date-time>
required

Time at which the contract version was created. Formatted as an ISO 8601 date-time string.

Example:

"2024-01-15T10:30:00.000Z"