Automette docs

Start a file upload

POST
/api/v1/uploads

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/uploads" \  -H "Content-Type: application/json" \  -d '{    "target": "template_asset",    "template_id": "string",    "filename": "string"  }'
{  "upload_id": "eyJ0IjoidGVtcGxhdGVfZG9jeCIsInRlYW0iOiJ0ZWFtXzEyMyJ9.7Qk2...",  "upload_url": "https://docuagen.s3.eu-west-1.amazonaws.com/",  "fields": {    "key": "temp-uploads/6f1c.../body.docx",    "policy": "eyJleHBpcmF0aW9uIjoi..."  },  "max_bytes": 26214400,  "expires_in": 900,  "upload_with": "curl -f -X POST \"https://docuagen.s3.eu-west-1.amazonaws.com/\" -F key=\"...\" -F policy=\"...\" -F file=@<path-to-file>"}