---
title: "File a document for a vendor"
method: POST
path: "/v1/spend-audit/todos/{key}/documents"
tags: ["Spend Audit"]
---

# File a document for a vendor

`POST /v1/spend-audit/todos/{key}/documents`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/spend-audit/todos/{key}/documents`
- Auth: HTTP bearer

Files a document for one vendor (multipart `file`, at most 50 MB, and `type`, the kind of document). It is read like any upload and closes the to-do once it shows what was asked for. Requires scope `apps:spend-audit:write`.

## Path parameters

- `key` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required
  - `type` string, required: The kind of document.

## Response `201`

The result.

- object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/spend-audit/todos/:key/documents/post.md)

---

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