Skip to main content
GET
/
travel-rules
Get all travel rule information
curl --request GET \
  --url https://api.exchange.coinbase.com/travel-rules \
  --header 'cb-access-key: <api-key>' \
  --header 'cb-access-passphrase: <api-key>' \
  --header 'cb-access-sign: <api-key>' \
  --header 'cb-access-timestamp: <api-key>'
import requests

url = "https://api.exchange.coinbase.com/travel-rules"

headers = {
"cb-access-key": "<api-key>",
"cb-access-passphrase": "<api-key>",
"cb-access-sign": "<api-key>",
"cb-access-timestamp": "<api-key>"
}

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

print(response.text)
const options = {
method: 'GET',
headers: {
'cb-access-key': '<api-key>',
'cb-access-passphrase': '<api-key>',
'cb-access-sign': '<api-key>',
'cb-access-timestamp': '<api-key>'
}
};

fetch('https://api.exchange.coinbase.com/travel-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exchange.coinbase.com/travel-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"cb-access-key: <api-key>",
"cb-access-passphrase: <api-key>",
"cb-access-sign: <api-key>",
"cb-access-timestamp: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api.exchange.coinbase.com/travel-rules"

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

req.Header.Add("cb-access-key", "<api-key>")
req.Header.Add("cb-access-passphrase", "<api-key>")
req.Header.Add("cb-access-sign", "<api-key>")
req.Header.Add("cb-access-timestamp", "<api-key>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.exchange.coinbase.com/travel-rules")
.header("cb-access-key", "<api-key>")
.header("cb-access-passphrase", "<api-key>")
.header("cb-access-sign", "<api-key>")
.header("cb-access-timestamp", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.exchange.coinbase.com/travel-rules")

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

request = Net::HTTP::Get.new(url)
request["cb-access-key"] = '<api-key>'
request["cb-access-passphrase"] = '<api-key>'
request["cb-access-sign"] = '<api-key>'
request["cb-access-timestamp"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "address": "<string>",
    "originator_name": "<string>",
    "originator_country": "<string>",
    "vasp_id": "<string>",
    "vasp_country": "<string>",
    "lei_number": "<string>",
    "originator_address": {
      "address_1": "<string>",
      "address_2": "<string>",
      "address_3": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "postal_code": "<string>"
    }
  }
]
{
"message": "<string>"
}
{
"message": "<string>"
}

Authorizations

cb-access-key
string
header
required
cb-access-passphrase
string
header
required
cb-access-sign
string
header
required
cb-access-timestamp
string
header
required

Query Parameters

before
string

Used for pagination. Sets start cursor to before id.

after
string

Used for pagination. Sets end cursor to after id.

limit
integer<int64>
default:1000

Limit on number of results to return.

address
string

Optional filter by address

Response

id
string

Travel rule identifier

created_at
string<date-time>

Timestamp of when entry was added

address
string

Crypto address where funds will be deposited from

originator_name
string

Name of the originator of the funds

originator_country
string

country code (ISO 3166-1 alpha-2) of the originator of the funds

vasp_id
string

VASP-uuid

vasp_country
string

ISO 3166-1 alpha-2 formatted country code of the VASP

lei_number
string

Legal Entity Identifier (LEI) of the VASP

originator_address
object