---
title: "Generate document upload URL"
method: POST
path: "/v1/invoice-payables/{invoicePayableId}/document/upload-url"
tags: ["v1 - Invoice Payables"]
---

# Generate document upload URL

`POST /v1/invoice-payables/{invoicePayableId}/document/upload-url`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/invoice-payables/{invoicePayableId}/document/upload-url`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Generates a secure upload URL for invoice payable documents

## Path parameters

- `invoicePayableId` string, uuid, required

## Request body

- ExternalUploadInvoicePayableDocumentRequestV1Model
  - `documentName` string: Original file name of the document.
  - `contentType` string: MIME type of the uploaded document (e.g. application/pdf).

## Response `default`

default response

- ExternalInvoicePayableUploadUrlResponseV1Model
  - `uploadUrl` string, url: Pre-signed URL to which the invoice payable document can be uploaded.
  - `headers` object: HTTP headers required when uploading the document to the pre-signed URL.

---

[API](https://skmtc.dev/light/apis/light-api.md) - [All operations](https://skmtc.dev/light/apis/light-api/llms.txt) - [OpenAPI document](https://skmtc.dev/light/apis/light-api/revisions/84f51306f648?raw)
