Uber · Capability

Uber Vouchers API — Templates

Uber Vouchers API — Templates. 2 operations. Lead operation: List Voucher Templates. Self-contained Naftiko capability covering one Uber business surface.

Run with Naftiko UberTemplates

What You Can Do

GET
Listvouchertemplates — List Voucher Templates
/v1/voucher-program-templates
POST
Createvouchertemplate — Create Voucher Template
/v1/voucher-program-templates

MCP Tools

list-voucher-templates

List Voucher Templates

read-only idempotent
create-voucher-template

Create Voucher Template

Capability Spec

vouchers-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Uber Vouchers API — Templates
  description: 'Uber Vouchers API — Templates. 2 operations. Lead operation: List Voucher Templates. Self-contained Naftiko
    capability covering one Uber business surface.'
  tags:
  - Uber
  - Templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UBER_API_KEY: UBER_API_KEY
capability:
  consumes:
  - type: http
    namespace: vouchers-templates
    baseUri: https://api.uber.com/v1
    description: Uber Vouchers API — Templates business capability. Self-contained, no shared references.
    resources:
    - name: voucher-program-templates
      path: /voucher-program-templates
      operations:
      - name: listvouchertemplates
        method: GET
        description: List Voucher Templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createvouchertemplate
        method: POST
        description: Create Voucher Template
        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.UBER_API_KEY}}'
  exposes:
  - type: rest
    namespace: vouchers-templates-rest
    port: 8080
    description: REST adapter for Uber Vouchers API — Templates. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/voucher-program-templates
      name: voucher-program-templates
      description: REST surface for voucher-program-templates.
      operations:
      - method: GET
        name: listvouchertemplates
        description: List Voucher Templates
        call: vouchers-templates.listvouchertemplates
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createvouchertemplate
        description: Create Voucher Template
        call: vouchers-templates.createvouchertemplate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vouchers-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for Uber Vouchers API — Templates. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-voucher-templates
      description: List Voucher Templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vouchers-templates.listvouchertemplates
      outputParameters:
      - type: object
        mapping: $.
    - name: create-voucher-template
      description: Create Voucher Template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vouchers-templates.createvouchertemplate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.