Tremendous · Capability

Tremendous API — Rewards

Tremendous API — Rewards. 2 operations. Lead operation: Get Reward. Self-contained Naftiko capability covering one Tremendous business surface.

Run with Naftiko TremendousRewards

What You Can Do

GET
Getreward — Get Reward
/v1/rewards/{id}
POST
Resendreward — Resend Reward
/v1/rewards/{id}/resend

MCP Tools

get-reward

Get Reward

read-only idempotent
resend-reward

Resend Reward

Capability Spec

tremendous-rewards.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tremendous API — Rewards
  description: 'Tremendous API — Rewards. 2 operations. Lead operation: Get Reward. Self-contained Naftiko capability covering
    one Tremendous business surface.'
  tags:
  - Tremendous
  - Rewards
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TREMENDOUS_API_KEY: TREMENDOUS_API_KEY
capability:
  consumes:
  - type: http
    namespace: tremendous-rewards
    baseUri: https://testflight.tremendous.com/api/v2
    description: Tremendous API — Rewards business capability. Self-contained, no shared references.
    resources:
    - name: rewards-id
      path: /rewards/{id}
      operations:
      - name: getreward
        method: GET
        description: Get Reward
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Reward ID
          required: true
    - name: rewards-id-resend
      path: /rewards/{id}/resend
      operations:
      - name: resendreward
        method: POST
        description: Resend Reward
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Reward ID
          required: true
    authentication:
      type: bearer
      token: '{{env.TREMENDOUS_API_KEY}}'
  exposes:
  - type: rest
    namespace: tremendous-rewards-rest
    port: 8080
    description: REST adapter for Tremendous API — Rewards. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/rewards/{id}
      name: rewards-id
      description: REST surface for rewards-id.
      operations:
      - method: GET
        name: getreward
        description: Get Reward
        call: tremendous-rewards.getreward
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/rewards/{id}/resend
      name: rewards-id-resend
      description: REST surface for rewards-id-resend.
      operations:
      - method: POST
        name: resendreward
        description: Resend Reward
        call: tremendous-rewards.resendreward
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tremendous-rewards-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tremendous API — Rewards. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-reward
      description: Get Reward
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tremendous-rewards.getreward
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: resend-reward
      description: Resend Reward
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tremendous-rewards.resendreward
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.