# Operations list

**Endpoint**

`GET/v2/report/operations`

**Link**

{% embed url="<https://stagep.tst-apidmndelss.com/openapi/v2.html#/operations/Report_OperationList>" %}

### Request Parameters

| Parameter | Type    | Required | Description                                 |
| --------- | ------- | -------- | ------------------------------------------- |
| pageSize  | integer | Yes      | Number of records per page. Example: `10`   |
| page      | integer | Yes      | Page number (starting from 0). Example: `0` |

**Example request:**

text

```
GET https://stagep.tst-apidmndelss.com/v2/report/operations?pageSize=10&page=0
```

### Response Structure

The response is returned in JSON format:

json

```
{
  "data": "UEsDBBQACAAIA...",
  "name": ""
}
```

| Field | Type   | Description                                 |
| ----- | ------ | ------------------------------------------- |
| data  | string | Excel file (XLSX) content encoded in Base64 |
| name  | string | File name (may be empty)                    |

#### How to Open the File from the `data` Field

The `data` field contains a Base64 string that needs to be decoded and saved as an `.xlsx` file.

**Method 1 — via base64.guru (no coding)**

1. Copy the `data` field value from the JSON response
2. Open <https://base64.guru/converter/decode/file>
3. Paste the string into the input field
4. Click "Decode Base64 to File"
5. Click "Download" — the file will be downloaded
6. Rename the downloaded file by adding the `.xlsx` extension (if not added automatically)
7. Open the file in Microsoft Excel or Google Sheets

**Method 2 — via** [**base64decode.org**](https://base64decode.org/)

1. Open [https://base64decode.org](https://base64decode.org/)
2. Paste the string from the `data` field
3. Click "Decode"
4. Click "Download"
5. Save the file with the `.xlsx` extension

**Method 3 — via Python (for developers)**

python

```
import base64, json

# Paste the API response here
response = {"data": "UEsDBBQ...", "name": ""}

decoded = base64.b64decode(response["data"])
with open("operations_report.xlsx", "wb") as f:
    f.write(decoded)

print("File saved: operations_report.xlsx")
```

**Method 4 — via Terminal (Mac/Linux)**

bash

```
echo "YOUR_BASE64" | base64 -d > operations_report.xlsx
```

### Pagination

To retrieve all data, use the `page` and `pageSize` parameters:

| Request               | Result        |
| --------------------- | ------------- |
| `?pageSize=10&page=0` | Records 1–10  |
| `?pageSize=10&page=1` | Records 11–20 |
| `?pageSize=10&page=2` | Records 21–30 |

### Notes

* The Base64 string in the `data` field starts with `UEsDBBQ` — this is the standard header of a ZIP archive (XLSX format) encoded in Base64
* If the file does not open, make sure you copied the entire string without spaces or line breaks
* A valid Base64 string always ends with `=` or `==`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.delos.financial/report/operations-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
