Study File Uploads

Get presigned upload URL

Generate a pre-signed S3 URL for uploading study stimuli files. Use the returned URL and fields to upload the file via a multipart POST directly to S3, then include the S3 key in the create study request.

post/v1/studies/uploads/presigned-url

Request

  • Base URL
    https://api.viewpoints.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Request body

file_typestring required

MIME type of the file. Supported types: image/, video/, audio/*, application/pdf, plus document types (.doc/.docx/.txt/.msg) converted to text/PDF stimuli at launch.

filenamestring required

Example request

{
  "file_type": "image/png",
  "filename": "product_photo.png"
}

Response

OK

keystring required
max_file_sizeinteger required

Changes

No recorded changes to this operation across all 11 revisions of this API.