POST
/
workspaces
/
upload
curl --request POST \
  --url https://api.mudstack.com/workspaces/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "key": "<string>",
  "signed_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string
required
x-workspace-id
string
required

Query Parameters

file_name
string
required

The name of the file to upload

content_type
string
required

The content type of the file

checksum
string
required

The checksum of the file

Response

200 - application/json
Successfully generated upload URL

Represents a signed URL for uploading an asset.

key
string

The unique key associated with the upload.

signed_url
string

The signed URL used for uploading the asset.