POST
/
api
/
v1
/
management
/
storage
/
local
curl --request POST \
  --url https://app.formbricks.com/api/v1/api/v1/management/storage/local \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Environment-ID: <x-environment-id>' \
  --header 'X-File-Name: <x-file-name>' \
  --header 'X-File-Type: <x-file-type>' \
  --header 'X-Signature: <x-signature>' \
  --header 'X-Timestamp: <x-timestamp>' \
  --header 'X-UUID: <x-uuid>' \
  --header 'x-api-key: <x-api-key>'
{
  "data": {
    "message": "File uploaded successfully"
  }
}

Headers

x-api-key
string
required
X-File-Type
string
required

MIME type of the file. Must be a valid MIME type.

X-File-Name
string
required

URI encoded file name.

X-Environment-ID
string
required

ID of the environment.

X-Signature
string
required

Signature for verifying the request.

X-UUID
string
required

Unique identifier for the signed upload.

X-Timestamp
string
required

Timestamp used for the signature.

Body

multipart/form-data
file
file
required

The file to be uploaded as a valid file object (buffer).

Response

200
application/json
OK - File uploaded successfully.
data
object

Was this page helpful?