POST
/
{environmentId}
/
storage
/
local
curl --request POST \
  --url https://app.formbricks.com/api/v2/{environmentId}/storage/local \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "surveyId": "survey123",
  "fileName": "example.jpg",
  "fileType": "image/jpeg",
  "signature": "signedSignatureValue",
  "uuid": "uniqueUuidValue",
  "timestamp": "1627891234567",
  "fileBase64String": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/..."
}'
{
  "message": "File uploaded successfully"
}

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Path Parameters

environmentId
string
required

The ID of the environment.

Body

application/json

Response

200
application/json
OK - File uploaded successfully.

The response is of type object.