Skip to main content
GET
/
media
/
by-entity
Get files by entity
curl --request GET \
  --url https://app.azalt.co/api/v1/media/by-entity \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "relatedModelType": "<string>",
    "relatedModelId": "<string>",
    "fieldName": "<string>",
    "fileName": "<string>",
    "extension": "<string>",
    "fileSize": 123,
    "organizationRefId": "<string>",
    "userRefId": "<string>",
    "formSubmissionRefId": "<string>",
    "reportTemplateRefId": "<string>",
    "formElementSubmissionRefId": "<string>",
    "isDeleted": true,
    "fileKey": "<string>",
    "contentType": "<string>",
    "signedUrl": "<string>",
    "expiresAt": "<string>",
    "complianceCheckRefId": "<string>",
    "createdAt": "<unknown>",
    "updatedAt": "<unknown>"
  }
]

Authorizations

Authorization
string
header
required

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

Query Parameters

entityType
enum<string>
required
Available options:
Organization,
User,
FormSubmission,
FormElementSubmission,
ReportTemplate,
ComplianceCheck,
FormElement,
FormSite,
ReportSection,
Report,
ReportSectionTemplateExample,
AiConversation
entityIds
string[]
required
fieldName
string
take
number

Response

Successful response

id
string
required
fieldName
string
required
fileName
string
required
extension
string | null
required
fileSize
number | null
required
organizationRefId
string | null
required
userRefId
string | null
required
formSubmissionRefId
string | null
required
reportTemplateRefId
string | null
required
formElementSubmissionRefId
string | null
required
isDeleted
boolean
required
fileKey
string
required
contentType
string
required
signedUrl
string
required
expiresAt
string
required
complianceCheckRefId
string | null
createdAt
any
updatedAt
any
{key}
any