Skip to main content
POST
Presign one PUT URL per file, into a CDN project

Authorizations

Authorization
string
header
required

An API key minted from the dashboard (POST /api/api-keys), of either class: api (prefix pxg_) or wordpress (prefix pxg_wp_). Which class a given route accepts is documented per-endpoint below; presenting a real key of a class the route doesn't accept is 403 WRONG_KEY_CLASS, never folded into 401 INVALID_API_KEY. No cookie fallback exists.

Body

application/json
files
object[]
required
Required array length: 1 - 100 elements
projectId
string<uuid>

REQUIRED for an api-class key (400 MISSING_PROJECT_ID if omitted; 404 if it names a project outside this key's org). Optional for a wordpress key, which always uploads into its own bound project — if given, it must equal that binding or the call 404s.

Response

OK

projectId
string
required
uploads
object[]
required