Skip to main content
POST
/
public
/
auth
cURL
curl --request POST \
  --url https://drb.coinbase.com/api/v2/public/auth \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "coinbase_cdp",
  "token": "<string>"
}
'
{
  "id": 9929,
  "jsonrpc": "2.0",
  "result": {
    "access_token": "a3f8c2e1d4b7f09e5c6a2d8b1e4f7c0a9d3b6e2f5a8c1d4e7b0f3a6c9d2e5f8",
    "expires_in": 3600,
    "scope": "wallet:user:read wallet:accounts:read wallet:transactions:read wallet:buys:create",
    "token_type": "bearer"
  }
}

Body

application/json
grant_type
enum<string>
required

Coinbase grant type used to authenticate.

Available options:
coinbase_cdp,
coinbase_oauth2
Example:

"coinbase_cdp"

token
string
required

Coinbase-issued credential matching grant_type.

Response

200 - application/json

Success response

id
integer

The id that was sent in the request

jsonrpc
enum<string>

The JSON-RPC version (2.0)

Available options:
2.0
result
object