Upvest · Capability

Upvest Investment API — Withdrawals

Upvest Investment API — Withdrawals. 2 operations. Lead operation: Upvest Create a withdrawal. Self-contained Naftiko capability covering one Upvest business surface.

Run with Naftiko UpvestWithdrawals

What You Can Do

POST
Createwithdrawal — Upvest Create a withdrawal
/v1/withdrawals
GET
Listwithdrawals — Upvest List withdrawals
/v1/withdrawals

MCP Tools

upvest-create-withdrawal

Upvest Create a withdrawal

upvest-list-withdrawals

Upvest List withdrawals

read-only idempotent

Capability Spec

investment-withdrawals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Upvest Investment API — Withdrawals
  description: 'Upvest Investment API — Withdrawals. 2 operations. Lead operation: Upvest Create a withdrawal. Self-contained
    Naftiko capability covering one Upvest business surface.'
  tags:
  - Upvest
  - Withdrawals
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UPVEST_API_KEY: UPVEST_API_KEY
capability:
  consumes:
  - type: http
    namespace: investment-withdrawals
    baseUri: https://api.upvest.co
    description: Upvest Investment API — Withdrawals business capability. Self-contained, no shared references.
    resources:
    - name: withdrawals
      path: /withdrawals
      operations:
      - name: createwithdrawal
        method: POST
        description: Upvest Create a withdrawal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listwithdrawals
        method: GET
        description: Upvest List withdrawals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.UPVEST_API_KEY}}'
  exposes:
  - type: rest
    namespace: investment-withdrawals-rest
    port: 8080
    description: REST adapter for Upvest Investment API — Withdrawals. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/withdrawals
      name: withdrawals
      description: REST surface for withdrawals.
      operations:
      - method: POST
        name: createwithdrawal
        description: Upvest Create a withdrawal
        call: investment-withdrawals.createwithdrawal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listwithdrawals
        description: Upvest List withdrawals
        call: investment-withdrawals.listwithdrawals
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: investment-withdrawals-mcp
    port: 9090
    transport: http
    description: MCP adapter for Upvest Investment API — Withdrawals. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: upvest-create-withdrawal
      description: Upvest Create a withdrawal
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: investment-withdrawals.createwithdrawal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: upvest-list-withdrawals
      description: Upvest List withdrawals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: investment-withdrawals.listwithdrawals
      outputParameters:
      - type: object
        mapping: $.