List files
Returns a paginated list of all patient files of the company.
Request
GET /api/oauth/v2/resource/files
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0) |
limit | integer | No | Number of results (default: 50, max: 200) |
Response
Success (200 OK)
json
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "MRI Report",
"shortTitle": "MRI",
"date": "2026-06-10",
"filename": "mri-report.pdf",
"notice": "Important report, please review.",
"mimeType": "application/pdf",
"fileSize": 204800,
"download": "https://app.offisy.at/api/oauth/v2/resource/files/a1b2c3d4-e5f6-7890-abcd-ef1234567890/download",
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
}
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"title": "Datei",
"shortTitle": "Dat",
"date": null,
"filename": "upload.jpg",
"notice": null,
"mimeType": "image/jpeg",
"fileSize": 51200,
"download": "https://app.offisy.at/api/oauth/v2/resource/files/b2c3d4e5-f6a7-8901-bcde-f12345678901/download",
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
}
}
],
"meta": {
"total": 17,
"offset": 0,
"limit": 50
}
}Response fields
| Field | Type | Description |
|---|---|---|
data | Array | List of files |
data[].id | string (UUID) | Unique ID of the file |
data[].title | string | Title of the file |
data[].shortTitle | string | Short title of the file |
data[].date | string | null | Date of the file (YYYY-MM-DD) |
data[].filename | string | Original filename |
data[].notice | string | null | Notice/note for the file (stored encrypted server-side) |
data[].mimeType | string | MIME type of the file (e.g. application/pdf) |
data[].fileSize | integer | File size in bytes |
data[].download | string | URL to download the decrypted file |
data[].customer | object | Assigned customer |
data[].customer.id | string (UUID) | Customer ID |
data[].customer.firstName | string | Customer first name |
data[].customer.lastName | string | Customer last name |
meta.total | integer | Total number of files |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/files?offset=0&limit=50" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope medicals not present |