New Light partners with Amesto GlobalLight partners with Amesto Global Read the announcement

Generate document upload URL

POST
https://api.light.inc/v1/contracts/{contractId}/generate-document-upload-url

Generates a pre-signed URL to upload the main contract document (PDF). After uploading to this URL, the document will appear in the contract's document preview.

Permission: contracts:update (AR_CLERK, COMPANY_ADMIN, CONTROLLER)

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Path parameters

  • contractId string · uuidrequired

Request body

application/json;charset=UTF-8

  • filename string

    Name of the file to upload

Response

  • uploadUrl string

    Pre-signed URL to upload the document to

  • key string

    Key to identify the uploaded document

  • metadata object

    Metadata to include with the upload request