Quora · Capability

Poe API — Usage

Poe API — Usage. 2 operations. Lead operation: Get current point balance. Self-contained Naftiko capability covering one Quora business surface.

Run with Naftiko QuoraUsage

What You Can Do

GET
Getcurrentbalance — Get current point balance
/v1/usage/current-balance
GET
Getpointshistory — Get points usage history
/v1/usage/points-history

MCP Tools

get-current-point-balance

Get current point balance

read-only idempotent
get-points-usage-history

Get points usage history

read-only idempotent

Capability Spec

poe-usage.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Poe API — Usage
  description: 'Poe API — Usage. 2 operations. Lead operation: Get current point balance. Self-contained Naftiko capability
    covering one Quora business surface.'
  tags:
  - Quora
  - Usage
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    QUORA_API_KEY: QUORA_API_KEY
capability:
  consumes:
  - type: http
    namespace: poe-usage
    baseUri: https://api.poe.com/v1
    description: Poe API — Usage business capability. Self-contained, no shared references.
    resources:
    - name: usage-current_balance
      path: /usage/current_balance
      operations:
      - name: getcurrentbalance
        method: GET
        description: Get current point balance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: usage-points_history
      path: /usage/points_history
      operations:
      - name: getpointshistory
        method: GET
        description: Get points usage history
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Maximum number of entries to return.
        - name: starting_after
          in: query
          type: string
          description: Cursor (`query_id`) to paginate after.
    authentication:
      type: bearer
      token: '{{env.QUORA_API_KEY}}'
  exposes:
  - type: rest
    namespace: poe-usage-rest
    port: 8080
    description: REST adapter for Poe API — Usage. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/usage/current-balance
      name: usage-current-balance
      description: REST surface for usage-current_balance.
      operations:
      - method: GET
        name: getcurrentbalance
        description: Get current point balance
        call: poe-usage.getcurrentbalance
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/usage/points-history
      name: usage-points-history
      description: REST surface for usage-points_history.
      operations:
      - method: GET
        name: getpointshistory
        description: Get points usage history
        call: poe-usage.getpointshistory
        with:
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: poe-usage-mcp
    port: 9090
    transport: http
    description: MCP adapter for Poe API — Usage. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-current-point-balance
      description: Get current point balance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: poe-usage.getcurrentbalance
      outputParameters:
      - type: object
        mapping: $.
    - name: get-points-usage-history
      description: Get points usage history
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: poe-usage.getpointshistory
      with:
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.