Contract

Import a contract

Changed on

Use this endpoint to import a contract.

post/contracts/import

Request

  • Base URL
    https://api.oneflow.com/v1
  • Auth
    none declared. Required headers: x-oneflow-api-token, x-oneflow-user-email

Headers

x-oneflow-api-tokenstring required

The API key of your Oneflow account.

x-oneflow-user-emailstring email required

The email address of a registered Oneflow user.

Request body

workspace_idinteger required

The unique ID of the workspace.

folder_idinteger

The unique ID of the folder.

namestring

The name of the contract.

playbook_idinteger nullable

The unique ID of the playbook.

Example request

{
  "workspace_id": 130001,
  "my_party": {
    "participants": [
      {
        "email": "own@email.com"
      }
    ]
  },
  "parties": [
    {
      "participant": {
        "name": "Firstname Lastname"
      }
    }
  ]
}

Response

Returns the imported contract.

idinteger required
importedboolean nullable

A flag denoting whether the contract has been imported or not.

marked_as_signedboolean nullable

A flag denoting whether the contract has been marked as signed or not.

published_timestring datetime nullable required
sign_laterboolean

A flag to indicate if the contract signing is postponed.

signing_period_expiry_timestring datetime nullable required
state'draft' | 'pending' | 'overdue' | 'signed' | 'declined' | 'unknown' required

One of the contract states.

state_updated_timestring datetime required
updated_timestring datetime nullable required

Changes