Coinbase

Coinbase

Go to site
Explore
/
Apps
/
Coinbase

Coinbase API Integrations

Build and run workflows using the Coinbase API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.coinbase.com/v2/user`,
  headers: {
    Authorization: `Bearer ${auths.coinbase.oauth_access_token}`,
  },
})
Commit Buy Order

Commits a buy order

 
Try it
Commit Sell Order

Commits a sell order

 
Try it
Commit Withdrawal

Commits a withdrawal

 
Try it
Place Buy Order

Places a buy order

 
Try it
Place Sell Order

Places a sell order

 
Try it

Authentication

Coinbase uses OAuth authentication. When you connect your Coinbase account, Pipedream will open a popup window where you can sign into Coinbase and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Coinbase API.

Pipedream requests the following authorization scopes when you connect your account:

wallet:accounts:readwallet:user:readwallet:buys:createwallet:sells:createwallet:withdrawals:create
OAuth Request Configurations:
  1. authorization
    GEThttps://www.coinbase.com/oauth/authorize?client_id={{oauth.client_id}}&state={{oauth.state}}&redirect_uri={{oauth.redirect_uri}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://www.coinbase.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=authorization_code&code={{oauth.code}}&redirect_uri={{oauth.redirect_uri}}
  3. refreshToken
    POSThttps://www.coinbase.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}