> This page is for Taurus PROTECT, version v3.40.
> For other versions, use one of these documentation indexes:
> - v3.58 (default): https://taurushq.ferndocs.com/protect-capital/v3.58/llms.txt
> - v3.56: https://taurushq.ferndocs.com/protect-capital/v3.56/llms.txt
> - v3.54: https://taurushq.ferndocs.com/protect-capital/v3.54/llms.txt
> - v3.52: https://taurushq.ferndocs.com/protect-capital/v3.52/llms.txt
> - v3.50: https://taurushq.ferndocs.com/protect-capital/v3.50/llms.txt
> - v3.48: https://taurushq.ferndocs.com/protect-capital/v3.48/llms.txt
> - v3.46: https://taurushq.ferndocs.com/protect-capital/v3.46/llms.txt
> - v3.44: https://taurushq.ferndocs.com/protect-capital/v3.44/llms.txt
> - v3.42: https://taurushq.ferndocs.com/protect-capital/v3.42/llms.txt
> - v3.40: https://taurushq.ferndocs.com/protect-capital/v3.40/llms.txt
> - v3.38: https://taurushq.ferndocs.com/protect-capital/v3.38/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://taurushq.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://taurushq.ferndocs.com/_mcp/server.

# Export transactions

GET https://your-protect-instance.example.com/api/rest/v1/transactions/export

This endpoint exports a list of transactions

Reference: https://taurushq.ferndocs.com/protect-capital/reference/transactions/export

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `currency` (string, optional) — Filter on ID or symbol of the currency
- `direction` (string, optional)
- `query` (string, optional)
- `limit` (string, optional)
- `offset` (string, optional)
- `from` (datetime, optional)
- `to` (datetime, optional)
- `transactionIds` (list of string, optional)
- `format` (string, optional) — Desired file format, can be json, csv or csv_simple.
- `type` (string, optional)
- `source` (string, optional) — Returns only transaction that have this address as a source
- `destination` (string, optional) — Returns only transaction that have this address as a destination
- `ids` (list of string, optional) — Filter on Protect transaction ID, as visible in the transaction objects.
- `blockchain` (string, optional)
- `network` (string, optional)
- `fromBlockNumber` (string, optional)
- `toBlockNumber` (string, optional)
- `amountAbove` (string, optional) — Returns only transactions with an amount strictly above the given amount
- `excludeUnknownSourceDestination` (boolean, optional) — Returns only transactions with a known source and destination, default false
- `hashes` (list of string, optional) — Filter on transaction hash, as visible in the transaction objects.
- `address` (string, optional) — Returns only transaction that have this address as either a source or a destination

## Response

### 200

A successful response.

- `result` (string, optional)
- `totalItems` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request: indicates that the server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing)

- `any`

### 401 Unauthorized Error

Unauthorized: indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource

- `any`

### 403 Forbidden Error

Forbidden: indicates that the server understands the request but refuses to authorize it

- `any`

### 404 Not Found Error

Not Found: indicates that the server cannot find the requested resource

- `any`

### 500 Internal Server Error

Internal Server Error: indicates that the server encountered an unexpected condition that prevented it from fulfilling the request

- `any`

### 503 Service Unavailable Error

Service Unavailable: indicates that the server is not ready to handle the request.

- `any`

## Examples

**Response**

```json
{
  "result": "id,tenant_id,blockchain,currency,decimals,transaction_id,direction,sources -- records sep: '#' fields sep: '|' -- format: f11|f12#f21|f22#f31|f32 -- example: address|label|container|customer_id|amount|amount_main_unit|index|balance_before_transaction|balance_after_transaction|balance_after_transaction_base#address|label|container|customer_id|amount|amount_main_unit|index|balance_before_transaction|balance_after_transaction|balance_after_transaction_base#...,destinations -- records sep: '#' fields sep: '|' -- format: f11|f12#f21|f22#f31|f32 -- example: address|label|container|customer_id|amount|amount_main_unit|index|balance_before_transaction|balance_after_transaction|balance_after_transaction_base#address|label|container|customer_id|amount|amount_main_unit|index|balance_before_transaction|balance_after_transaction|balance_after_transaction_base#...,amount,amount_main_unit,fee,fee_main_unit,hash,block,reception_date,confirmation_date,isin,type 41567,1,ETH,ETH,18,200951:a3652402-b069-4e7d-928d-07b2d6634dea,outgoing,0x312d2a29c3adfc1360088b19a5157afa07971f40|1.10 TESTS TC|70005500.059|cust3|||0,||||||0,0,0,210826220912126535,0.210826220912126535,0x06273e6e59eea48b5508c1870e3f378742012c3d489a40826ae65b0b4890261a,14113487,2022-01-31T11:52:27Z,2022-01-31T12:00:31.164524Z,, 41566,1,XTZ,XTZ,6,,incoming,tz1WpH8peQDkYFhkuKw17KnrT4uWvAKKULwh||||||244,tz1STvLfC96TxvNFq9bsFCPvd4UJLyM5vCTf|Baker address||123456|||244,4654,0.004654,395,0.000395,opRLVnsgHUqpcU9Yoxh9Zz7HtmVJX2mh33CqEZPcsJD1U5t5gc1,2073113,2022-01-29T21:48:08Z,2022-01-29T21:55:45.977156Z,,transaction 41565,1,XTZ,XTZ,6,,incoming,tz1hTJnYMKSDUv55yREM8ezmC5nsdbPUWao7|Baker: Steak and Bake (tz1dNVDWPf3Q59SdJqnjdnu277iyvReiRS9M)|||||0,tz1SNaBji6Ex1ng4FHnA1iDBKx72CTjzCRTe|Laurent Tezos New addr 23.02.2021||3|||183,428,0.000428,395,0.000395,oorRPKNM6dXgeVKfLL2dHJfKVeNXebJ1MZAWPuKNKPckHJFJEyR,2072668,2022-01-29T18:03:18Z,2022-01-29T18:15:32.647506Z,,staking_reward 41563,1,XTZ,XTZ,6,,incoming,tz1imZ4ZKk9ukiU9GdLLvmsAhCVuznfTyjKD||||||298,tz1MrohofV2P9B9hojk1SMo5M1FYUfBTNYtd|May29 test address 1||1|||298,3004,0.003004,395,0.000395,ooNMBvR2FhNYD2anmFemmtwnviepqXhmAmqK7t89pPzRdPTPU1u,2072639,2022-01-29T17:48:48Z,2022-01-29T17:57:55.522667Z,,transactio 41562,1,XTZ,XTZ,6,,incoming,tz1LsnEuv4fLsgxU9HJK21v8zHwcuBjb99Cd|Baker: Lucid Mining (tz1VmiY38m3y95HqQLjMwqnMS7sdMfGomzKi)|||||0,tz1NPahQw1yZ3ENSFGbszbj2tMmTxjAUkQa2|address sep. 23||X1234|||19,2158,0.002158,0,0,op3FzkUgdsVMSnE6tdyZ77Ys6WSKruxP2yCsgDo6NU1LC4BTctf,2072639,2022-01-29T17:48:48Z,2022-01-29T17:57:43.89606Z,,staking_rewar ",
  "totalItems": "5"
}
```

**SDK Code**

```python
import requests

url = "https://your-protect-instance.example.com/api/rest/v1/transactions/export"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://your-protect-instance.example.com/api/rest/v1/transactions/export';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://your-protect-instance.example.com/api/rest/v1/transactions/export"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://your-protect-instance.example.com/api/rest/v1/transactions/export")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://your-protect-instance.example.com/api/rest/v1/transactions/export")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://your-protect-instance.example.com/api/rest/v1/transactions/export', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://your-protect-instance.example.com/api/rest/v1/transactions/export");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://your-protect-instance.example.com/api/rest/v1/transactions/export")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```