Koyeb · Capability

Koyeb Rest API — Coupons

Koyeb Rest API — Coupons. 1 operations. Lead operation: Redeem Coupon. Self-contained Naftiko capability covering one Koyeb business surface.

Run with Naftiko KoyebCoupons

What You Can Do

POST
Redeemcoupon — Redeem Coupon
/v1/v1/coupons

MCP Tools

redeem-coupon

Redeem Coupon

Capability Spec

koyeb-coupons.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Koyeb Rest API — Coupons
  description: 'Koyeb Rest API — Coupons. 1 operations. Lead operation: Redeem Coupon. Self-contained Naftiko capability covering
    one Koyeb business surface.'
  tags:
  - Koyeb
  - Coupons
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KOYEB_API_KEY: KOYEB_API_KEY
capability:
  consumes:
  - type: http
    namespace: koyeb-coupons
    baseUri: https://app.koyeb.com
    description: Koyeb Rest API — Coupons business capability. Self-contained, no shared references.
    resources:
    - name: v1-coupons
      path: /v1/coupons
      operations:
      - name: redeemcoupon
        method: POST
        description: Redeem Coupon
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: string
          required: true
  exposes:
  - type: rest
    namespace: koyeb-coupons-rest
    port: 8080
    description: REST adapter for Koyeb Rest API — Coupons. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/coupons
      name: v1-coupons
      description: REST surface for v1-coupons.
      operations:
      - method: POST
        name: redeemcoupon
        description: Redeem Coupon
        call: koyeb-coupons.redeemcoupon
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: koyeb-coupons-mcp
    port: 9090
    transport: http
    description: MCP adapter for Koyeb Rest API — Coupons. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: redeem-coupon
      description: Redeem Coupon
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: koyeb-coupons.redeemcoupon
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.