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

# Send from wallet

POST https://api.mitu.ai/v1/wallets/{id}/transfers
Content-Type: application/json

Send USDC from a wallet to an external address on the customer's behalf, which requires an `Idempotency-Key`.

Reference: https://docs.mitu.ai/api-reference/agent-wallets/send-from-wallet

## Authentication

- `x-api-key` header (required) — Your API key, using a test key for the sandbox and a live key for production.

## Servers

- `https://api.mitu.ai` (Production, default)
- `https://sandbox-api.mitu.ai` (Sandbox)

## Request

### Path parameters

- `id` (string, required) — Unique identifier of the resource.

### Headers

- `Idempotency-Key` (string, required) — A unique value of up to 100 characters for this transfer, so a retried request never sends the money twice.

### Body (application/json)

This endpoint expects a SendFromWallet.

- `amount` (string, required) — The amount to send, as a decimal string with at most six decimal places.
- `currency` (enum, required) — The currency to send.
  - Allowed values: `USDC`
- `network` (enum, required) — The network to send on.
  - Allowed values: `base`, `tempo`, `solana`
- `address` (string, required) — The address to send the USDC to, on the chosen network.
- `reference` (string, optional) — Your own reference for the transfer, returned on the transaction and its events.
- `memo` (string, optional) — A note describing the transfer.

## Response

### 201

Send accepted. The transfer starts as pending and its outcome is confirmed through wallet events.

- `message` (string, required)
- `data` (WalletTransaction, required) — One movement of money into or out of an Agent Wallet.

## Errors

### 400 Bad Request Error

The request is invalid and could not be processed.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 401 Unauthorized Error

Authentication failed because the API key is missing or invalid.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 403 Forbidden Error

The authenticated account is not allowed to perform this action.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 404 Not Found Error

The requested resource could not be found.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 409 Conflict Error

The request conflicts with the current state of the resource.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 422 Unprocessable Entity Error

One or more request fields are invalid.

- `message` (string, required)
- `errors` (list of ValidationErrorDetail, required)

### 429 Too Many Requests Error

Too many requests were sent in a short period.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 500 Internal Server Error

An unexpected error occurred while processing the request.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

### 503 Service Unavailable Error

The service is temporarily unavailable.

- `statusCode` (integer, required) — The HTTP status code of the response.
- `message` (ErrorResponseMessage, required) — What went wrong. For a request that fails validation, a list with one entry for each field to correct.
- `error` (string, required) — The name of the HTTP status.

## Types

### WalletTransaction

One movement of money into or out of an Agent Wallet.

- `id` (string, optional)
- `wallet_id` (string, optional)
- `customer_id` (string, optional)
- `direction` (enum, optional) — Which way the money went. Fixed by `type`, so a payment is always `out` and a deposit is always `in`.
  - Allowed values: `in`, `out`
- `type` (enum, optional) — What caused the movement, such as a payment made by the agent, a subscription charge, a deposit, a transfer sent from the wallet or a refund.
  - Allowed values: `payment`, `subscription`, `deposit`, `transfer`, `refund`
- `amount` (string, optional) — Decimal amount, sent as a string.
- `currency` (string, optional)
- `status` (enum, optional) — A movement is not instant. A `pending` debit has left the available balance but has not settled, so reconcile on `completed` rather than on the row existing.
  - Allowed values: `pending`, `completed`, `failed`
- `reference` (string, optional, nullable) — Your own reference for the movement, such as the reference sent with a transfer, or null when none was given.
- `tx_hash` (string, optional, nullable) — The onchain settlement you can verify yourself. `null` until the movement settles, and absent for movements that never touch a chain.
- `created_at` (datetime, optional)
- `completed_at` (datetime, optional, nullable) — When the movement settled. `null` while it is still pending.

### ErrorResponseMessage

What went wrong. For a request that fails validation, a list with one entry for each field to correct.

- string
- list of string

### ValidationErrorDetail

- `field` (string, required) — Field that failed validation.
- `message` (string, required) — Description of the validation problem.

## Examples

**Request**

```json
{
  "amount": "25.00",
  "currency": "USDC",
  "network": "base",
  "address": "0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b"
}
```

**Response**

```json
{
  "message": "Wallet transaction retrieved successfully",
  "data": {
    "id": "3f7c1e4a-902f-4b6d-8a15-2c9e0b7d4416",
    "wallet_id": "wal_65286515b43d4e3eba93",
    "customer_id": "cus_0t9549fps3xd",
    "direction": "out",
    "type": "payment",
    "amount": "0.035000",
    "currency": "USDC",
    "status": "completed",
    "reference": null,
    "tx_hash": "0xfe093b9a57695615cc453f86b2890eb70e0a2860ce040f54af7aca03ce2a89ab",
    "created_at": "2026-09-09T19:03:28.480Z",
    "completed_at": "2026-09-09T19:03:31.902Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.mitu.ai/v1/wallets/id/transfers"

payload = {
    "amount": "25.00",
    "currency": "USDC",
    "network": "base",
    "address": "0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.mitu.ai/v1/wallets/id/transfers';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'x-api-key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"amount":"25.00","currency":"USDC","network":"base","address":"0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b"}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.mitu.ai/v1/wallets/id/transfers"

	payload := strings.NewReader("{\n  \"amount\": \"25.00\",\n  \"currency\": \"USDC\",\n  \"network\": \"base\",\n  \"address\": \"0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	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://api.mitu.ai/v1/wallets/id/transfers")

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

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"amount\": \"25.00\",\n  \"currency\": \"USDC\",\n  \"network\": \"base\",\n  \"address\": \"0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b\"\n}"

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.post("https://api.mitu.ai/v1/wallets/id/transfers")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"amount\": \"25.00\",\n  \"currency\": \"USDC\",\n  \"network\": \"base\",\n  \"address\": \"0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.mitu.ai/v1/wallets/id/transfers', [
  'body' => '{
  "amount": "25.00",
  "currency": "USDC",
  "network": "base",
  "address": "0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.mitu.ai/v1/wallets/id/transfers");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": \"25.00\",\n  \"currency\": \"USDC\",\n  \"network\": \"base\",\n  \"address\": \"0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "amount": "25.00",
  "currency": "USDC",
  "network": "base",
  "address": "0x4b2c8e1f6a9d3b7e0c5a2f8d1e6b9c3a7f0d2e5b"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.mitu.ai/v1/wallets/id/transfers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```