Upload File

POSThttps://api.filesearch.dev/v3/parse/uploads

Uploads a file from local disk so it can be parsed. Returns a captain:// id to pass as input to Parse Document or Parse Spreadsheet. Files that already sit behind a direct download link do not need this step.

Uploads are limited to 100 MB, can be parsed any number of times, and are deleted after 24 hours. Uploading is not billed.

Headers

authorizationstringOptional

Request

This endpoint expects a multipart form.

filefileRequired

The file to upload, up to 100 MB.

Response

The upload.

file_idstring

Pass this as input to Parse Document or Parse Spreadsheet.

expires_atstringformat: "date-time"

The upload is deleted 24 hours after it was created. After that the id no longer works.

Errors

POST/v3/parse/uploads
import requests

BASE_URL = "https://api.filesearch.dev"
API_KEY = "your_api_key"

with open("ledger.xlsx", "rb") as f:
    upload = requests.post(
        f"{BASE_URL}/v3/parse/uploads",
        headers={"Authorization": f"Bearer {API_KEY}"},
        files={"file": f},
        timeout=120,
    ).json()

print(upload["file_id"])
200
{
  "file_id": "captain://upl_5d41402abc4b2a76b9719d911017c592",
  "expires_at": "2026-10-02T15:03:50Z"
}
Was this page helpful?