Returns the malware-scan and file-type status of an attachment.
Request
GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/field/{fieldId}/blob/{blobId}/status
Successful response
application/json
| object | |||
| status | string | Values:
|
required |
| fileTypeStatus | string | The content-based file-type verdict, independent of the malware status. Values:
|
required |
| detectedFileType | string | The file type category the content was identified as at upload time, or empty if the backend doesn't inspect content or the content matched no known category. Reflects what the file actually contains, independent of the field's current allow-list (which the file-type status applies separately). Values:
|
optional |
| scanTime | integer | optional | |
| signature | string | optional | |
Error responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | AUTHENTICATION_ |
The request must be authenticated |
| 403 | FORBIDDEN | Permission denied |
| 404 | NOT_ |
The resource could not be found |
| 410 | DELETED | The resource has been deleted |
Example
curl -u anything:YOUR_API_TOKEN \
https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/field/carknkldta8h4o3/blob/ccwnp64ldta8ds82/status