Pages

Register a file for a page action

POST
/pages/{page_id}/uploads

Start uploading a file for a file input of an action of the current version (field_key '.', record_id for update actions): checks access, type and size and returns upload_url for one HTTP PUT of the bytes, then pages.upload_confirm. The upload is bound to you, the version, the field and the record and is used once by pages.action; unused uploads expire. Repeating the call with the same idempotency_key returns the same open upload with a fresh upload_url.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

page_id*Page Id

Resource identifier: page_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.

Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/pages/123e4567-e89b-42d3-a456-426614174000/uploads" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "field_key": "example",    "file_name": "invoice-2026-09.pdf",    "size": 1  }'
{  "upload_id": "123e4567-e89b-42d3-a456-426614174000",  "document_id": "123e4567-e89b-42d3-a456-426614174000",  "upload_url": "example",  "expires_at": "example",  "file_name": "invoice-2026-09.pdf"}