Retrieve a pending upload policy before the current expiry; accepted parts/files extend idle time to 15 minutes, capped at two hours from creation.

post/api/v1/uploads/{uploadId}/presign

Request

  • Base URL: https://portamora.app
  • URL: https://portamora.app/api/v1/uploads/{uploadId}/presign
  • Auth: one of:
    • API key in cookie __Host-session
    • HTTP bearer

Path parameters

uploadIdstring required

Case-sensitive upload identifier with 10 safe-alphabet characters after the prefix.

Headers

x-amz-content-sha256string required

Lowercase SHA-256 hex of the exact body bytes, including the empty body. The example client adds this automatically; no AWS credentials are needed.

Response

Successful private response; Cache-Control: no-store.

idstring required

Case-sensitive upload identifier with 10 safe-alphabet characters after the prefix.

expiresAtstring date-time required
urlstring required

An absolute HTTPS storage URL, or a relative /api/v1/local-uploads/... path on the local site.

fieldsobject required

Changes

No recorded changes to this operation across all 1 revision of this API.