Skip to main content
POST
/
open-api
/
v1.0
/
products
/
{productId}
/
digital-files
/
upload-url
Request a presigned upload URL for a digital file
curl --request POST \
  --url https://api.fourthwall.com/open-api/v1.0/products/{productId}/digital-files/upload-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "artwork.png",
  "contentType": "image/png",
  "size": 1048576
}
'
{ "uploadUrl": "<string>", "fileUrl": "<string>" }

Documentation Index

Fetch the complete documentation index at: https://docs.fourthwall.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint is in beta and subject to change.
OAuth scope: offer_writeAPI keys have full access to this endpoint.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

productId
string
required

Body

application/json

Request for a presigned upload URL for a digital file

fileName
string
required

Name of the file

Example:

"artwork.png"

contentType
string
required

MIME type of the file

Example:

"image/png"

size
integer<int64>
required

File size in bytes

Example:

1048576

Response

Created

Response containing a presigned upload URL for a digital file

uploadUrl
string
required

Presigned URL to upload the file to via HTTP PUT

fileUrl
string
required

The file URL reference to use when confirming the upload