Search APIs
Add Your API
Coinbase API thumbnail

Coinbase

API Overview

Connect to the Coinbase Digital Currency API to make bitcoin/ethereum transactions and get real-time data. Test an API call and export the code into your app.

Read the Developer Terms overview here (as of 03/13/2017): https://developers.coinbase.com/docs/wallet/terms

Make bitcoin/ethereum transactions and get real-time data.

Coinbase Package

Connect to the Coinbase Digital Currency API to make bitcoin/ethereum transactions and get real-time data. Test an API call and export the code into your app.

  • Domain: coinbase.com
  • Credentials: clientId, clientSecret, apiKey, secretKey

How to get credentials:

  1. Sign up in Coinbase, and verify your email.
  2. Navigate to Settings/API Access.
  3. Click "New OAuth2 Application", fill all required fields.
  4. Your app will appear in "My OAuth2 Applications" section. Open it.
  5. Use Client ID and Client Secret as credentials.

Custom datatypes:

DatatypeDescriptionExample
DatepickerString which includes date and time2016-05-28 00:00:00
MapString which includes latitude and longitude coma separated50.37, 26.56
ListSimple array["123", "sample"]
SelectString with predefined valuessample
ArrayArray of objects[{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}]

Coinbase.getAccessToken

Geta access token.

FieldTypeDescription
clientIdcredentialsClient identifier.
clientSecretcredentialsClient secret.
redirectUriStringURL in your app where users will be sent after authorization.
codeStringA one-time use code that may be exchanged for a bearer token.

Coinbase.refreshAccessToken

Refresh access token.

FieldTypeDescription
clientIdcredentialsClient identifier.
clientSecretcredentialsClient secret.
refreshTokenStringThe refresh token retrieved during the initial request for an access token.

Coinbase.revokeAccessToken

RevokeAccessToken.

FieldTypeDescription
tokenStringActive access token.

Coinbase.getNotifications

Lists notifications where the current user was the subscriber. Scopes: wallet:notifications:read

FieldTypeDescription
apiKeycredentialsYour API Key.
secretKeycredentialsYour API Secret.

Coinbase.getSingleNotification

Show a notification for which the current user was a subsciber. Scopes: wallet:notifications:read

FieldTypeDescription
apiKeycredentialsYour API Key.
secretKeycredentialsYour API Secret.
notificationsIdStringSingle notification identifier.

Coinbase.getUser

Get any user’s public information with their ID.

FieldTypeDescription
accessTokenStringAccess token.
userIdStringUser identifier.

Coinbase.getMe

Get current user’s public information. Scope: wallet:user:read,wallet:user:email

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getMyAuthInfo

Get current user’s authorization information including granted scopes.

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.updateMe

Modify current user and their preferences. Scope: wallet:user:update

FieldTypeDescription
accessTokenStringAccess token.
nameStringUser’s public name.
timeZoneStringTime zone.
nativeCurrencyStringLocal currency used to display amounts converted from BTC.

Coinbase.getAccounts

Lists current user’s accounts to which the authentication method has access to. Scope: wallet:accounts:read

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getSingleAccount

Show current user’s account. Scopes: wallet:accounts:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringCurrent user account identifier.

Coinbase.createAccount

Creates a new account for user. Scopes: wallet:accounts:create

FieldTypeDescription
accessTokenStringAccess token.
nameStringAccount name.

Coinbase.setAccountAsPrimary

Promote an account as primary account. Scopes: wallet:accounts:update

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.updateAccount

UpdateAccount. Scopes: wallet:accounts:update

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
nameStringAccount name

Coinbase.deleteAccount

Removes user’s account. Scopes: wallet:accounts:delete

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getAddresses

Lists addresses for an account. Scopes: wallet:addresses:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleAddress

GetSingleAddress. Scopes: wallet:addresses:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
addressIdStringAddress identifier.

Coinbase.getAddressTransactions

List transactions that have been sent to a specific address. Scopes: wallet:transactions:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
addressIdStringAddress identifier.

Coinbase.createAddress

Creates a new address for an account. Scopes: wallet:addresses:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
nameStringAddress label.

Coinbase.getTransactions

Lists account’s transactions. Scopes: wallet:transactions:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleTransaction

Show an individual transaction for an account. Scopes: wallet:transactions:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
transactionIdStringTransaction identifier.

Coinbase.sendMoney

Send funds to a bitcoin address, ethereum address, or email address. Scopes: wallet:transactions:send

FieldTypeDescription
accessTokenStringAccess token.
toStringA bitcoin address, ethereum address, or an email of the recipient.
amountStringAmount to be sent.
currencyStringCurrency for the amount.
descriptionStringNotes to be included in the email that the recipient receives.
skipNotificationsBooleanDon’t send notification emails for small amounts.
feeStringTransaction fee in BTC if you would like to pay it.
idemStringA token to ensure idempotence.

Coinbase.transferAccountsMoney

Transfer bitcoin or ethereum between two of a user’s accounts. Scopes: wallet:transactions:transfer

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
toStringID of the receiving account.
amountStringAmount to be transferred.
currencyStringCurrency for the amount.
descriptionStringNotes to be included in the transfer.

Coinbase.requestMoney

Requests money from an email address. Scopes: wallet:transactions:request

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
toStringAn email of the recipient.
amountStringAmount to be requested.
currencyStringCurrency for the amount.
descriptionStringNotes to be included in the email that the recipient receives.

Coinbase.completeRequestMoney

Lets the recipient of a money request complete the request by sending money to the user who requested the money. Scopes: wallet:transactions:request

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
transactionIdStringTransaction identifier.

Coinbase.resendMoneyRequest

Lets the user resend a money request. Scopes: wallet:transactions:request

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
transactionIdStringTransaction identifier.

Coinbase.cancelRequestMoney

Lets a user cancel a money request. Scopes: wallet:transactions:request

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
transactionIdStringTransaction identifier.

Coinbase.getBuys

Lists buys for an account. Scopes: wallet:buys:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleBuy

Show an individual buy. Scopes: wallet:buys:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
buyIdStringIndividual buy identifier.

Coinbase.placeBuyOrder

Buys a user-defined amount of bitcoin or ethereum. Scopes: wallet:buys:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
amountStringBuy amount without fees.
totalStringBuy amount with fees (alternative to amount).
currencyStringCurrency for the amount.
paymentMethodStringThe ID of the payment method that should be used for the buy.
agreeBtcAmountVariesBooleanWhether or not you would still like to buy if you have to wait for your money to arrive to lock in a price.
commitBooleanIf set to false, this buy will not be immediately completed.
quoteBooleanIf set to true, response will return an unsave buy for detailed price quote.

Coinbase.commitBuy

Completes a buy that is created in commit: false state. Scopes: wallet:buys:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
buyIdStringIndividual buy identifier.

Coinbase.getSells

Lists sells for an account. Scopes: wallet:sells:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleSell

Show an individual sell. Scopes: wallet:sells:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
sellIdStringIndividual sell identifier.

Coinbase.placeSellOrder

Sells a user-defined amount of bitcoin or ethereum. Scopes: wallet:sells:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
amountStringSell amount.
totalStringSell amount with fees.
currencyStringCurrency for the amount.
paymentMethodStringThe ID of the payment method that should be used for the sell.
agreeBtcAmountVariesBooleanWhether or not you would still like to sell if you have to wait for your money to arrive to lock in a price.
quoteBooleanf set to true, response will return an unsave sell for detailed price quote.

Coinbase.commitSell

Completes a sell that is created in commit: false state. Scopes: wallet:sells:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
sellIdStringIndividual sell identifier.

Coinbase.getDeposits

Lists deposits for an account. Scopes: wallet:deposits:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleDeposit

Show an individual deposit. Scopes: wallet:deposits:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
depositIdStringDeposit identifier.

Coinbase.depositFunds

Deposits user-defined amount of funds to a fiat account. Scopes: wallet:deposits:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
amountStringDeposit amount.
currencyStringCurrency for the amount.
paymentMethodStringThe ID of the payment method that should be used for the deposit.
commitBooleanIf set to false, this deposit will not be immediately completed.

Coinbase.commitDeposit

Completes a deposit that is created in commit: false state. Scopes: wallet:deposits:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
depositIdStringDeposit identifier.

Coinbase.getWithdrawals

Lists withdrawals for an account. Scopes: wallet:withdrawals:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.

Coinbase.getSingleWithdrawal

Show an individual withdrawal. Scopes: wallet:withdrawals:read

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
withdrawalIdStringWithdrawal identifier.

Coinbase.withdrawFunds

Withdraws user-defined amount of funds from a fiat account. Scopes: wallet:withdrawals:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
amountStringWithdrawal amount.
currencyStringCurrency for the amount.
paymentMethodStringThe ID of the payment method that should be used for the withdrawal.
commitBooleanIf set to false, this withdrawal will not be immediately completed.

Coinbase.commitWithdrawal

Completes a withdrawal that is created in commit: false state. Scopes: wallet:withdrawals:create

FieldTypeDescription
accessTokenStringAccess token.
accountIdStringAccount identifier.
withdrawalIdStringWithdrawal identifier.

Coinbase.getPaymentMethods

Lists current user’s payment methods. Scopes: wallet:payment-methods:read

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getSinglePaymentMethod

Show current user’s payment method. Scopes: wallet:payment-methods:read

FieldTypeDescription
accessTokenStringAccess token.
paymentMethodIdStringPayment method identifier.

Coinbase.getSingleMerchant

Get any merchant’s information with their ID.

FieldTypeDescription
accessTokenStringAccess token.
merchantIdStringMerchant identifier.

Coinbase.getOrders

Lists the current user’s (merchant) orders. Scopes: wallet:orders:read

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getSingleOrder

Show current merchant order. Scopes: wallet:orders:read

FieldTypeDescription
accessTokenStringAccess token.
orderIdStringOrder identifier.

Coinbase.createOrder

Creates a new merchant order. Scopes: wallet:orders:create

FieldTypeDescription
accessTokenStringAccess token.
amountStringOrder amount (price).
currencyStringOrder amount’s currency.
nameStringName of the order.
descriptionStringMore detailed description of the order.
notificationsUrlStringOrder specific notification URL.
metadataJSONJSON Object. Developer defined key value pairs.

Coinbase.refundOrder

Refunds an order. Scopes: wallet:orders:refund

FieldTypeDescription
accessTokenStringAccess token.
orderIdStringOrder identifier.
currencyStringThe currency to issue the refund in.
refundAddressStringMust be a valid bitcoin address.

Coinbase.getCheckouts

Lists current user’s checkouts. Scopes: wallet:checkouts:read

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getSingleCheckout

Show current user’s checkout. Scopes: wallet:checkouts:read

FieldTypeDescription
accessTokenStringAccess token.
checkoutIdStringCheckout identifier.

Coinbase.createCheckout

Creates a new merchant order checkout product. Scopes: wallet:checkouts:create

FieldTypeDescription
accessTokenStringAccess token.
amountStringOrder amount (price).
currencyStringOrder amount’s currency.
nameStringName of the order.
descriptionStringMore detailed description of the checkout order.
typeStringCheckout’s order type.
styleSelectStyle of a payment button. One of: buy_now_large, buy_now_small, donation_large, donation_small ,custom_large, custom_small.
customerDefinedAmountBooleanAllow customer to define the amount they are paying.
amountPresetsListArray of Strings, allow customer to select one of the predefined amount values.
successUrlStringURL to which the customer is redirected after successful payment.
cancelUrlStringURL to which the customer is redirected after they have canceled a payment.
notificationsUrlStringCheckout specific notification URL.
autoRedirectBooleanAuto-redirect users to success or cancel url after payment.
collectShippingAddressBooleanCollect shipping address from customer.
collectEmailBooleanCollect email address from customer.
collectPhoneNumberBooleanCollect phone number from customer.
collectCountryBooleanCollect country from customer.
metadataJSONJSON Object. Developer defined key value pairs.

Coinbase.getCheckoutOrders

Lists checkout product’s orders. Scopes: wallet:checkouts:read

FieldTypeDescription
accessTokenStringAccess token.
checkoutIdStringCheckout identifier.

Coinbase.createCheckoutOrder

Creates a new order for a checkout. Scopes: wallet:checkouts:create

FieldTypeDescription
accessTokenStringAccess token.
checkoutIdStringCheckout identifier.

Coinbase.getCurrencies

List known currencies.

FieldTypeDescription
accessTokenStringAccess token.

Coinbase.getExchangeRates

Get current exchange rates.

FieldTypeDescription
accessTokenStringAccess token.
currencyStringBase currency (default: USD).

Coinbase.getBuyPrice

Get the total price to buy one bitcoin or ether.

FieldTypeDescription
accessTokenStringAccess token.
currencyPairStringCurrency pair. Example BTC-USD.

Coinbase.getSellPrice

Get the total price to sell one bitcoin or ether.

FieldTypeDescription
accessTokenStringAccess token.
currencyPairStringCurrency pair. Example BTC-USD.

Coinbase.getSpotPrice

Get the current market price for bitcoin.

FieldTypeDescription
accessTokenStringAccess token.
currencyPairStringCurrency pair. Example BTC-USD.
dateDatePickerSpecify date for historic spot price in format YYYY-MM-DD (UTC).

Coinbase.getCurrentTime

Get the API server time.

No arguments.

Coinbase.nextPage

Retrieve next page for paginated blocks.

FieldTypeDescription
accessTokenStringAccess token.
nextUriStringNext page Uri, from pagination object in response.