Skip to main content
POST
/
media
/
presigned-url
Create presigned URL for file upload
curl --request POST \
  --url https://app.azalt.co/api/v1/media/presigned-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "<string>",
  "entityType": "Organization",
  "entityId": "<string>",
  "fieldName": "<string>",
  "fileSize": 123
}
'
{
  "url": "<string>",
  "fields": {},
  "mediaId": "<string>",
  "mediaKey": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
fileName
string
required
entityType
enum<string>
required
Available options:
Organization,
User,
FormSubmission,
FormElementSubmission,
ReportTemplate,
ComplianceCheck,
FormElement,
FormSite,
ReportSection,
Report,
ReportSectionTemplateExample,
AiConversation
entityId
string
required
fieldName
string
required
fileSize
number

Response

Successful response

url
string
required
fields
object
required
mediaId
string
required
mediaKey
string
required