Create new Trusted Destinations
curl --request POST \
--url https://api.anchorage-staging.com/v2/trusted_destinations \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotentId": "1ca86e65-4340-4876-85f4-8334852b9c43",
"trustedDestinations": [
{
"address": "2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw",
"assetType": "BTC",
"description": "<string>",
"name": "<string>",
"isNetworkLevel": true,
"memo": "Internal trade ID 0xabc123",
"trustedDestinationAmlQuestionnaire": {
"destinationType": "FINANCIAL_INSTITUTION",
"institutionCountry": "US",
"institutionName": "Coinbase",
"recipientCity": "San Francisco",
"recipientCountry": "JP",
"recipientFirstName": "Satoshi",
"recipientFullName": "Satoshi Nakamoto",
"recipientLastName": "Nakamoto",
"recipientPostalCode": "65584-5678",
"recipientStateProvince": "Wyoming",
"recipientStreetAddress": "1234 NW Bobcat Lane, St. Robert, MO",
"recipientType": "PERSON",
"selfhostedDescription": "An explanation about where this address is held",
"selfhostedWalletOwner": "MY_ORGANIZATION"
}
}
]
}
'import requests
url = "https://api.anchorage-staging.com/v2/trusted_destinations"
payload = {
"idempotentId": "1ca86e65-4340-4876-85f4-8334852b9c43",
"trustedDestinations": [
{
"address": "2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw",
"assetType": "BTC",
"description": "<string>",
"name": "<string>",
"isNetworkLevel": True,
"memo": "Internal trade ID 0xabc123",
"trustedDestinationAmlQuestionnaire": {
"destinationType": "FINANCIAL_INSTITUTION",
"institutionCountry": "US",
"institutionName": "Coinbase",
"recipientCity": "San Francisco",
"recipientCountry": "JP",
"recipientFirstName": "Satoshi",
"recipientFullName": "Satoshi Nakamoto",
"recipientLastName": "Nakamoto",
"recipientPostalCode": "65584-5678",
"recipientStateProvince": "Wyoming",
"recipientStreetAddress": "1234 NW Bobcat Lane, St. Robert, MO",
"recipientType": "PERSON",
"selfhostedDescription": "An explanation about where this address is held",
"selfhostedWalletOwner": "MY_ORGANIZATION"
}
}
]
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotentId: '1ca86e65-4340-4876-85f4-8334852b9c43',
trustedDestinations: [
{
address: '2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw',
assetType: 'BTC',
description: '<string>',
name: '<string>',
isNetworkLevel: true,
memo: 'Internal trade ID 0xabc123',
trustedDestinationAmlQuestionnaire: {
destinationType: 'FINANCIAL_INSTITUTION',
institutionCountry: 'US',
institutionName: 'Coinbase',
recipientCity: 'San Francisco',
recipientCountry: 'JP',
recipientFirstName: 'Satoshi',
recipientFullName: 'Satoshi Nakamoto',
recipientLastName: 'Nakamoto',
recipientPostalCode: '65584-5678',
recipientStateProvince: 'Wyoming',
recipientStreetAddress: '1234 NW Bobcat Lane, St. Robert, MO',
recipientType: 'PERSON',
selfhostedDescription: 'An explanation about where this address is held',
selfhostedWalletOwner: 'MY_ORGANIZATION'
}
}
]
})
};
fetch('https://api.anchorage-staging.com/v2/trusted_destinations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"creationRequestId": "1ca86e65-4340-4876-85f4-8334852b9c43"
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Create new Trusted Destinations
Permissions required: Manage Trusted Destinations
Create new Trusted Destinations
POST
/
trusted_destinations
Create new Trusted Destinations
curl --request POST \
--url https://api.anchorage-staging.com/v2/trusted_destinations \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotentId": "1ca86e65-4340-4876-85f4-8334852b9c43",
"trustedDestinations": [
{
"address": "2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw",
"assetType": "BTC",
"description": "<string>",
"name": "<string>",
"isNetworkLevel": true,
"memo": "Internal trade ID 0xabc123",
"trustedDestinationAmlQuestionnaire": {
"destinationType": "FINANCIAL_INSTITUTION",
"institutionCountry": "US",
"institutionName": "Coinbase",
"recipientCity": "San Francisco",
"recipientCountry": "JP",
"recipientFirstName": "Satoshi",
"recipientFullName": "Satoshi Nakamoto",
"recipientLastName": "Nakamoto",
"recipientPostalCode": "65584-5678",
"recipientStateProvince": "Wyoming",
"recipientStreetAddress": "1234 NW Bobcat Lane, St. Robert, MO",
"recipientType": "PERSON",
"selfhostedDescription": "An explanation about where this address is held",
"selfhostedWalletOwner": "MY_ORGANIZATION"
}
}
]
}
'import requests
url = "https://api.anchorage-staging.com/v2/trusted_destinations"
payload = {
"idempotentId": "1ca86e65-4340-4876-85f4-8334852b9c43",
"trustedDestinations": [
{
"address": "2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw",
"assetType": "BTC",
"description": "<string>",
"name": "<string>",
"isNetworkLevel": True,
"memo": "Internal trade ID 0xabc123",
"trustedDestinationAmlQuestionnaire": {
"destinationType": "FINANCIAL_INSTITUTION",
"institutionCountry": "US",
"institutionName": "Coinbase",
"recipientCity": "San Francisco",
"recipientCountry": "JP",
"recipientFirstName": "Satoshi",
"recipientFullName": "Satoshi Nakamoto",
"recipientLastName": "Nakamoto",
"recipientPostalCode": "65584-5678",
"recipientStateProvince": "Wyoming",
"recipientStreetAddress": "1234 NW Bobcat Lane, St. Robert, MO",
"recipientType": "PERSON",
"selfhostedDescription": "An explanation about where this address is held",
"selfhostedWalletOwner": "MY_ORGANIZATION"
}
}
]
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotentId: '1ca86e65-4340-4876-85f4-8334852b9c43',
trustedDestinations: [
{
address: '2N19AcihQ1a4MxQW658UFHTioUNnMkiHPkw',
assetType: 'BTC',
description: '<string>',
name: '<string>',
isNetworkLevel: true,
memo: 'Internal trade ID 0xabc123',
trustedDestinationAmlQuestionnaire: {
destinationType: 'FINANCIAL_INSTITUTION',
institutionCountry: 'US',
institutionName: 'Coinbase',
recipientCity: 'San Francisco',
recipientCountry: 'JP',
recipientFirstName: 'Satoshi',
recipientFullName: 'Satoshi Nakamoto',
recipientLastName: 'Nakamoto',
recipientPostalCode: '65584-5678',
recipientStateProvince: 'Wyoming',
recipientStreetAddress: '1234 NW Bobcat Lane, St. Robert, MO',
recipientType: 'PERSON',
selfhostedDescription: 'An explanation about where this address is held',
selfhostedWalletOwner: 'MY_ORGANIZATION'
}
}
]
})
};
fetch('https://api.anchorage-staging.com/v2/trusted_destinations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"creationRequestId": "1ca86e65-4340-4876-85f4-8334852b9c43"
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Authorizations
An API key associated with a security role
Body
application/json
Create Trusted Destinations request
Response
Successfully started creation of Trusted Destinations
The client-provided ID which can be used to specify this request in other operations
Maximum string length:
128Example:
"1ca86e65-4340-4876-85f4-8334852b9c43"
Was this page helpful?
⌘I