Files

Get a single file by id

Get a single file by id

GET
/v1/files/{id}

Authorization

x-api-key
<token>

API Key for authentication

In: header

Path Parameters

idrequired
string

Response Body

The response for a file. Properties depend on the file type.

TypeScript Definitions

Use the response body type in TypeScript.

responserequired
File Response

The response for a file. Properties depend on the file type.

curl -X GET "https://api.scan-documents.com/v1/files/string" \
  -H "x-api-key: <token>"
{
  "id": "file_euyrvozb9302uwhq",
  "name": "Example Image",
  "type": "image/png",
  "properties": {
    "size": 1024,
    "width": 800,
    "height": 600
  },
  "task_id": null,
  "created_at": "2021-05-01T12:00:00Z"
}