Coinbase · Capability

Coinbase Onramp API — Sell

Coinbase Onramp API — Sell. 2 operations. Lead operation: Get sell options. Self-contained Naftiko capability covering one Coinbase business surface.

Run with Naftiko CoinbaseSell

What You Can Do

GET
Getselloptions — Get sell options
/v1/sell/options
POST
Createsellquote — Create sell quote
/v1/sell/quote

MCP Tools

get-sell-options

Get sell options

read-only idempotent
create-sell-quote

Create sell quote

Capability Spec

onramp-sell.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coinbase Onramp API — Sell
  description: 'Coinbase Onramp API — Sell. 2 operations. Lead operation: Get sell options. Self-contained Naftiko capability
    covering one Coinbase business surface.'
  tags:
  - Coinbase
  - Sell
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COINBASE_API_KEY: COINBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: onramp-sell
    baseUri: https://api.developer.coinbase.com/onramp/v1
    description: Coinbase Onramp API — Sell business capability. Self-contained, no shared references.
    resources:
    - name: sell-options
      path: /sell/options
      operations:
      - name: getselloptions
        method: GET
        description: Get sell options
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: country
          in: query
          type: string
          description: ISO 3166-1 alpha-2 country code
          required: true
        - name: subdivision
          in: query
          type: string
          description: ISO 3166-2 subdivision code
    - name: sell-quote
      path: /sell/quote
      operations:
      - name: createsellquote
        method: POST
        description: Create sell quote
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.COINBASE_API_KEY}}'
  exposes:
  - type: rest
    namespace: onramp-sell-rest
    port: 8080
    description: REST adapter for Coinbase Onramp API — Sell. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/sell/options
      name: sell-options
      description: REST surface for sell-options.
      operations:
      - method: GET
        name: getselloptions
        description: Get sell options
        call: onramp-sell.getselloptions
        with:
          country: rest.country
          subdivision: rest.subdivision
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sell/quote
      name: sell-quote
      description: REST surface for sell-quote.
      operations:
      - method: POST
        name: createsellquote
        description: Create sell quote
        call: onramp-sell.createsellquote
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onramp-sell-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coinbase Onramp API — Sell. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-sell-options
      description: Get sell options
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onramp-sell.getselloptions
      with:
        country: tools.country
        subdivision: tools.subdivision
      outputParameters:
      - type: object
        mapping: $.
    - name: create-sell-quote
      description: Create sell quote
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: onramp-sell.createsellquote
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.