curl --request POST \
  --url https://api.openlayer.com/v1/storage/presigned-url \
  --header 'Authorization: Bearer <token>'
{
  "url": "<string>",
  "fields": {},
  "storageUri": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.

Query Parameters

objectName
string
required

The name of the object.

Response

200
application/json
Response OK.
url
string
required

The presigned url.

storageUri
string
required

The storage URI to send back to the backend after the upload was completed.

fields
object

Fields to include in the body of the upload. Only needed by s3