---
title: 'Upload a large file'
description: 'Get an address to upload a large file to, for parse. Send one request and get JSON back. Examples in cURL, TypeScript and Python.'
og:title: 'Upload a large file | Stophy'
og:description: 'Get an address to upload a large file to, for parse. Send one request and get JSON back. Examples in cURL, TypeScript and Python.'
openapi: 'api-reference/openapi.json POST /v1/parse/upload-url'
---
{/* Generated by scripts/gen-reference.ts from api-reference/openapi.json and the live catalog. Do not edit. */}
## Price
Free.
See [Pricing](/account/pricing).
```bash cURL
curl -X POST https://api.stophy.dev/v1/parse/upload-url \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filename":"report.pdf","contentType":"application/pdf","declaredSizeBytes":1048576}'
```
```typescript TypeScript
const response = await fetch("https://api.stophy.dev/v1/parse/upload-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
filename: "report.pdf",
contentType: "application/pdf",
declaredSizeBytes: 1048576,
}),
});
console.log(await response.json());
```
```python Python
import os
import requests
response = requests.post(
"https://api.stophy.dev/v1/parse/upload-url",
headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
json={
"filename": "report.pdf",
"contentType": "application/pdf",
"declaredSizeBytes": 1048576,
},
)
print(response.json())
```
```json 200
{
"success": true,
"uploadId": "upl_eb2b98551c724a6fa7c7c6c7bb61b227",
"uploadUrl": "",
"expiresAt": "2026-11-17T18:03:14.325Z",
"uploadRef": "upl_eb2b98551c724a6fa7c7c6c7bb61b227",
"maxBytes": 37748736,
"costUsd": 0,
"creditsUsed": 0,
"requestId": "28ed8ed2-ec50-440a-a427-9e4d68e1ccc4"
}
```