Skip to main content

Get Forms Files

Description: To get a list of files attached to a form, a HTTP GET request is made to the URL.

Method: GET

URI: /forms/form_id/files

URI Parameters

  • form_id: The ID of the form

Parameters

  • attachments: Pass true to only return files that can be attached when printed. Default value is false, if not passed.

Headers: Authorization: Third party based authorization header

Returns

FieldTypeDescription
Array of Form FilesForm FileA form file object.

Example

Request
curl https://app-api.reiformslive.com.au/forms/1/files \
--request GET \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ=="
Response
[
{
"id": 1,
"form_id": 1,
"user_id": 1,
"filename": "Test.pdf",
"content_type": "application/pdf",
"attachment": true,
"deleted": false,
"created": "1506294669",
"updated": "1506294669",
"index": 1
}, ...
]