> This page is for Taurus PROTECT, version v3.38.
> 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.

# Create a DOT withdraw unbonded request

POST https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded
Content-Type: application/json

This endpoint creates an withdraw unbonded request for DOT. This will withdraw all the unbonded funds that are ready (unbonded funds are ready to be withdrawn 28 days after the unbonding request).
 Required role: **RequestCreator**.
This API can be made idempotent by generating an ID for the Request beforehand and passing it as the externalRequestId attribute

Reference: https://taurushq.ferndocs.com/protect-capital/reference/requests-dot/create-outgoing-dot-withdraw-unbonded-request

## Authentication

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

## Request

### Body (application/json)

This endpoint expects a tgvalidatordCreateOutgoingDOTWithdrawUnbondedRequestRequest.

- `fromAddressId` (string, required)
- `feeLimit` (string, optional)
- `comment` (string, optional)
- `transactionReference` (string, optional) — DEPRECATED - use externalRequestId instead
- `externalRequestId` (string, optional) — Identifier for the request in the user's system. This must be unique. Attempting to create a request with an existing externalRequestId will do nothing and return the originally created request

## Response

### 200

A successful response.

- `result` (tgvalidatordRequest, 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`

## Types

### tgvalidatordRequest

- `id` (string, optional)
- `tenantId` (string, optional)
- `currency` (string, optional)
- `envelope` (string, optional)
- `status` (string, optional)
- `trails` (list of tgvalidatordRequestTrail, optional)
- `signedRequests` (list of RequestSignedRequest, optional)
- `creationDate` (datetime, optional)
- `updateDate` (datetime, optional)
- `metadata` (tgvalidatordMetadata, optional)
- `attributes` (list of tgvalidatordRequestAttribute, optional)
- `rule` (string, optional)
- `approvers` (tgvalidatordApprovers, optional)
- `type` (string, optional)
- `currencyInfo` (tgvalidatordCurrency, optional)
- `needsApprovalFrom` (list of string, optional)
- `requestBundleId` (string, optional)
- `externalRequestId` (string, optional) — Identifier for the request in the user's system. This must be unique.
- `travelRuleDataInput` (tgvalidatordTravelRuleDataInput, optional)

### tgvalidatordRequestTrail

- `id` (string, optional)
- `userId` (string, optional)
- `externalUserId` (string, optional)
- `action` (string, optional)
- `comment` (string, optional)
- `date` (datetime, optional)
- `requestStatus` (string, optional)

### RequestSignedRequest

- `id` (string, optional)
- `signedRequest` (string, optional)
- `status` (string, optional)
- `hash` (string, optional)
- `block` (long, optional)
- `details` (string, optional)
- `creationDate` (datetime, optional)
- `updateDate` (datetime, optional)
- `broadcastDate` (datetime, optional)
- `confirmationDate` (datetime, optional)
- `attributes` (list of tgvalidatordSignedRequestAttribute, optional)

### tgvalidatordMetadata

- `hash` (string, optional)
- `payload` (any, optional)
- `payloadAsString` (string, optional)

### tgvalidatordRequestAttribute

- `id` (string, optional)
- `key` (string, optional)
- `value` (string, optional)
- `contentType` (string, optional)

### tgvalidatordApprovers

- `parallel` (list of tgvalidatordParallelApproversGroups, optional)

### tgvalidatordCurrency

- `name` (string, optional)
- `symbol` (string, optional)
- `coinTypeIndex` (string, optional)
- `blockchain` (string, optional)
- `isToken` (boolean, optional)
- `isERC20` (boolean, optional)
- `decimals` (string, optional)
- `contractAddress` (string, optional)
- `hasStaking` (boolean, optional)
- `isUTXOBased` (boolean, optional)
- `isAccountBased` (boolean, optional)
- `isFiat` (boolean, optional)
- `isFA12` (boolean, optional)
- `isFA20` (boolean, optional)
- `isNFT` (boolean, optional)
- `enabled` (boolean, optional)
- `id` (string, optional)
- `displayName` (string, optional)
- `type` (string, optional)
- `wlcaId` (string, optional)
- `network` (string, optional)
- `tokenID` (string, optional)
- `logo` (string, optional) — Data URI Scheme (e.g. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==')

### tgvalidatordTravelRuleDataInput

- `originatorPersonTravelRuleData` (tgvalidatordPersonTravelRuleData, optional)
- `originatorCompanyTravelRuleData` (tgvalidatordCompanyTravelRuleData, optional)
- `beneficiaryCompanyTravelRuleData` (tgvalidatordCompanyTravelRuleData, optional)
- `beneficiaryPersonTravelRuleData` (tgvalidatordPersonTravelRuleData, optional)
- `provider` (string, optional) — Provider is the type of the travel rule data provider. Supported provider: 'TaurusNetwork'

### tgvalidatordSignedRequestAttribute

- `id` (string, optional)
- `key` (string, optional)
- `value` (string, optional)
- `contentType` (string, optional)

### tgvalidatordParallelApproversGroups

- `sequential` (list of tgvalidatordApproversGroup, optional)

### tgvalidatordPersonTravelRuleData

- `name` (string, optional)
- `houseNumber` (string, optional)
- `street` (string, optional)
- `city` (string, optional)
- `province` (string, optional)
- `postalCode` (string, optional)
- `country` (string, optional)
- `idNumber` (string, optional)
- `externalCustomerID` (string, optional)
- `birthdate` (string, optional)
- `birthPlace` (string, optional)
- `accountNumber` (string, optional)

### tgvalidatordCompanyTravelRuleData

- `department` (string, optional)
- `buildingNumber` (string, optional)
- `street` (string, optional)
- `city` (string, optional)
- `province` (string, optional)
- `postalCode` (string, optional)
- `country` (string, optional)
- `legalEntityIdentifier` (string, optional)
- `businessName` (string, optional)
- `accountNumber` (string, optional)

### tgvalidatordApproversGroup

- `externalGroupID` (string, optional)
- `minimumSignatures` (long, optional)

## Examples

**Request**

```json
{
  "fromAddressId": "string"
}
```

**Response**

```json
{
  "result": {
    "id": "442",
    "tenantId": "1",
    "currency": "BTC",
    "envelope": "CgM0NDIQmfGjk6Ops/oVGAEqmgUSrAEKPwoPbS80NCcvMCcvMCcvMC8wGiAeyruP7CoNYcGISzRo8iZmuVnV6M9gLiZuShy7aDtKKiABKNHEFDD/////DxIoCiIxQ3Zoeml0ZFZMUGhOVGZ3NU5rUm9YWHZveldacGZhWXQ2EJ/nBRoVCg9tLzQ0Jy8wJy8wJy8wLzAYsbcOMig0NDI6NDY5ZTMxOGUtYjcxZC00MGUwLTg0ZjctNzVlOGQwOWE3Yzg2IhMKCnJlcXVlc3RfaWQQARoDNDQyIhIKCXJ1bGVzX2tleRABGgNCVEMiEQoIY3VycmVuY3kQARoDQlRDIlsKBnNvdXJjZRAEGkcIARJDCAESIjFKTUJZTU1pOWlqSlJlVFlxdEZUU2RlVkJ6azhOSGRzVHUaCm5vc3RybyBCVEMiD20vNDQnLzAnLzAnLzAvMCIGc291cmNlImIKC2Rlc3RpbmF0aW9uEAUaRBJCCMwBEiIxQ3Zoeml0ZFZMUGhOVGZ3NU5rUm9YWHZveldacGZhWXQ2GghteSBsYWJlbCIPbS80NCcvMCcvMCcvMC84IgtkZXN0aW5hdGlvbiKeAQoGYW1vdW50EAoaiQEKAwGGoBIHMTAuMDQzMBoKMTAwNDIuOTcwMCAIKgNCVEMyA0NIRjphCh12YWxpZGF0b3ItY29yZUB0YXVydXNncm91cC5jaBJAffe4nBGVSajYYQxxzEZbQuj0snr8WOC1P506eXRn2EUsDrAnkWvNW9wfU+pwUoBVUaXl/veYW/6m/DJsEKijLCIGYW1vdW50Ih4KEXRvdGFsX2ZpYXRfYW1vdW50EAEaBzEwLjA0MzAiCwoDZmVlEAIaAhMBIh4KFGZlZV9wYWlkX2J5X3JlY2VpdmVyEAEaBHRydWU=",
    "status": "CREATED",
    "trails": [
      {
        "userId": "11",
        "externalUserId": "team1@bank.com",
        "action": "created",
        "comment": "Ich bin eine flying Roasted Butternut Squash Boodles",
        "requestStatus": "CREATED"
      },
      {
        "userId": "1",
        "externalUserId": "validator-core@taurusgroup.ch",
        "action": "approvers_assigned",
        "comment": "rule = [source: any, destination: any, amount: 10.0000], approvals = ['team1': 1 sig, 'team2': 1 sig]",
        "requestStatus": "CREATED"
      }
    ],
    "rule": "rule = [source: any, destination: any, amount: 10.0000], approvals = ['team1': 1 sig, 'team2': 1 sig]",
    "approvers": {
      "parallel": [
        {
          "sequential": [
            {
              "externalGroupID": "team1",
              "minimumSignatures": 1
            },
            {
              "externalGroupID": "team2",
              "minimumSignatures": 1
            }
          ]
        }
      ]
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded"

payload = { "fromAddressId": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"fromAddressId":"string"}'
};

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://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded"

	payload := strings.NewReader("{\n  \"fromAddressId\": \"string\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"fromAddressId\": \"string\"\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://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"fromAddressId\": \"string\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded', [
  'body' => '{
  "fromAddressId": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"fromAddressId\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["fromAddressId": "string"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://your-protect-instance.example.com/api/rest/v1/requests/outgoing/dot/withdraw_unbonded")! 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()
```