Skip to main content
POST
/
sdk
/
{environmentId}
/
exchange
/
{exchangeKey}
/
accounts
/
{accountId}
/
transfer
Transfer funds from an exchange account to an external address or another Coinbase account
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "to": "An example name",
  "amount": 1,
  "currency": "An example name",
  "network": "An example name",
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "description": "An example name",
  "mfaCode": "An example name"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "exchangeAccountId": "95b11417-f18f-457f-8804-68e361f9164f",
  "status": "<string>",
  "amount": 123,
  "currency": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

exchangeKey
enum<string>
required

Exchange identifier

Available options:
coinbase,
kraken
accountId
string
required

UUID of an exchange account

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
to
string
required
Maximum length: 255
Example:

"An example name"

amount
number
required

the amount to transfer

Required range: x >= 0
currency
string
required
Maximum length: 50
Example:

"An example name"

network
string
Maximum length: 50
Example:

"An example name"

id
string
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

description
string
Maximum length: 255
Example:

"An example name"

mfaCode
string
Maximum length: 50
Example:

"An example name"

Response

Transfer created successfully

id
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

amount
number
required

the amount to transfer

currency
string
required

Chain symbol that funds are to be transferred in.

exchangeAccountId
string
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

status
string

Current status of the transaction

createdAt
string<date-time>