Files

List downloadable files for a resource

GET/resources/{ref}/files

Returns the original file (when present and downloadable at the linked user's access level — null otherwise) and all alternative files attached to the resource (e.g. formatted_extract entries produced by the formatted-document-extract feature, audio samples, supplementary files). Each entry carries a downloadUrl you can fetch directly with the same api-key. Requires the read scope.

X-Api-Key<token>

Issued to you when your integration is provisioned. Determines which catalogue resources are visible and which AI tools are available.

In: header

Path Parameters

ref*integer

Resource ref.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/resources/0/files"
{  "success": true,  "status": "success",  "message": "Success",  "data": {    "original": {      "fileName": "my-book.epub",      "extension": "epub",      "fileSize": 5480329,      "contentType": "application/epub+zip",      "downloadUrl": "https://example.veristage.com/api/external/resources/42/file"    },    "alternativeFiles": [      {        "id": 7,        "name": "Formatted extract",        "description": null,        "fileName": "alt_42_6864f0.docx",        "fileExtension": "docx",        "fileSize": 128034,        "altType": "formatted_extract",        "creationDate": "2026-07-15 10:00:00",        "contentType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",        "downloadUrl": "https://example.veristage.com/api/external/resources/42/files/7"      }    ]  }}

{  "success": false,  "status": "fail",  "message": "API key is required",  "error": {    "code": "NO_API_KEY",    "message": "API key is required"  }}

{  "success": false,  "status": "fail",  "message": "string",  "error": {    "message": "API key is required",    "code": "NO_API_KEY"  }}
{  "success": false,  "status": "fail",  "message": "string",  "error": {    "message": "API key is required",    "code": "NO_API_KEY"  }}