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

# Listar envíos de stablecoin

GET https://app.recurrente.com/api/swaps

Lista los envíos de stablecoin del más reciente al más antiguo. Filtra por fecha de creación con `from_time` + `until_time`.


Reference: https://docs.recurrente.com/referencia-api/api-reference/swaps/list-swaps

## Authentication

- `X-SECRET-KEY` header (required) — Tu clave secreta de API. Una llave de cuenta (`sk_live_...`, `sk_test_...`) opera sobre su propia cuenta y, con `X-ACCOUNT-ID`, sobre sus cuentas conectadas. La llave también fija el ambiente: una `sk_test_` solo lista y resuelve objetos de prueba (`live_mode: false`) y una `sk_live_` solo objetos reales. Un ID del otro ambiente responde `404` (`401` en `/customers`). Una llave de organización (`sk_org_live_...`, `sk_org_test_...`) alcanza todas las cuentas de una organización y solo sirve para leer: saldos, movimientos y reportes. Para operar sobre una cuenta debe nombrarla con `X-ACCOUNT-ID`; omitirlo en una lectura devuelve todas las cuentas de la organización. Cualquier otro endpoint responde `403` con `code: organization_key_unsupported`.

## Request

### Query parameters

- `from_time` (datetime, optional) — Inicio del rango de creación. Si se envía como fecha sin hora, se interpreta como el inicio del día. Se aplica solo junto con `until_time`.
- `until_time` (datetime, optional) — Fin del rango de creación. Si se envía como fecha sin hora, se interpreta como el final del día. Se aplica solo junto con `from_time`.

## Response

### 200

Lista de swaps

- `list of Swap`

## Types

### Swap

- `id` (string, optional)
- `status` (enum, optional)
  - Allowed values: `pending`, `in_review`, `processing`, `rejected`, `sent`, `failed`, `completed`
- `source_currency` (string, optional)
- `source_amount` (integer, optional) — Monto origen en la unidad mínima de la moneda
- `destination_currency` (enum, optional)
  - Allowed values: `USDC`, `USDT`, `USAT`, `XAUT`, `PYUSD`
- `destination_amount` (integer, optional)
- `exchange_rate` (double, optional)
- `chain` (string, optional)
- `recipient_address` (string, optional, nullable)
- `created_at` (datetime, optional)

## Examples

**Response**

```json
[
  {
    "id": "sw_ab12cd34",
    "status": "in_review",
    "source_currency": "USD",
    "source_amount": 10000,
    "destination_currency": "USDC",
    "destination_amount": 1,
    "exchange_rate": 1.1,
    "chain": "base",
    "recipient_address": "string",
    "created_at": "2024-01-15T09:30:00Z"
  }
]
```

**SDK Code**

```python
import requests

url = "https://app.recurrente.com/api/swaps"

querystring = {"from_time":"2026-07-01","until_time":"2026-07-31"}

headers = {"X-SECRET-KEY": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31';
const options = {method: 'GET', headers: {'X-SECRET-KEY': '<apiKey>'}};

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://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31"

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

	req.Header.Add("X-SECRET-KEY", "<apiKey>")

	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://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31")

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

request = Net::HTTP::Get.new(url)
request["X-SECRET-KEY"] = '<apiKey>'

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://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31")
  .header("X-SECRET-KEY", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31', [
  'headers' => [
    'X-SECRET-KEY' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31");
var request = new RestRequest(Method.GET);
request.AddHeader("X-SECRET-KEY", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-SECRET-KEY": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.recurrente.com/api/swaps?from_time=2026-07-01&until_time=2026-07-31")! 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()
```