Keap · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Keap Product Discounts API

8 actions 8 updates phrasing extends openapi/keap-product-discounts-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Keap's API. It is a proposal applied on top of the contract, not a document Keap publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 8

$.info
$.paths['/rest/v2/discounts/products'].get
$.paths['/rest/v2/discounts/products'].post
$.paths['/rest/v2/discounts/products/{discount_id}/criteria'].post
$.paths['/rest/v2/discounts/products/{discount_id}'].get
$.paths['/rest/v2/discounts/products/{discount_id}'].delete
$.paths['/rest/v2/discounts/products/{discount_id}'].patch
$.paths['/rest/v2/discounts/products/{discount_id}/criteria/{criteria_id}'].delete

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Keap Product Discounts API
  version: 1.0.0
extends: openapi/keap-product-discounts-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-18'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 7
- target: $.paths['/rest/v2/discounts/products'].get
  update:
    x-apievangelist-phrasing:
      intent: List product discounts
      effect: read
      questions:
      - Which discounts are set up on my products?
      - Can I filter product discounts by type or value?
      instructions:
      - text: List all product discounts.
      - text: Show product discounts matching {filter}.
        slots:
          filter: query.filter
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a product discount
      effect: write
      questions:
      - How do I give a percentage discount on a product?
      - Can a product discount apply to commission calculations?
      instructions:
      - text: Create a {discount_type} discount of {discount_value} on product {product_id} called {name}.
        slots:
          discount_type: requestBody.discount_type
          discount_value: requestBody.discount_value
          product_id: requestBody.product_id
          name: requestBody.name
      - text: 'Add a {discount_type} discount {discount_value} on {product_id} named {name} that applies to commissions: {apply_to_commissions}.'
        slots:
          discount_type: requestBody.discount_type
          discount_value: requestBody.discount_value
          product_id: requestBody.product_id
          name: requestBody.name
          apply_to_commissions: requestBody.apply_to_commissions
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products/{discount_id}/criteria'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a condition to a product discount
      effect: write
      questions:
      - How do I make a product discount apply only to a subscription plan?
      - Can a product discount require a promo code?
      instructions:
      - text: Add a {type} criteria to product discount {discount_id}.
        slots:
          type: requestBody.type
          discount_id: path.discount_id
      - text: Require promo code {code} for product discount {discount_id}.
        slots:
          code: requestBody.code
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products/{discount_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a product discount
      effect: read
      questions:
      - What are the details of one product discount?
      - Can I look up a product discount by its ID?
      instructions:
      - text: Get product discount {discount_id}.
        slots:
          discount_id: path.discount_id
      - text: Show the product discount {discount_id}.
        slots:
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products/{discount_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a product discount
      effect: destructive
      questions:
      - How do I remove a product discount?
      - Can I delete a discount I no longer offer?
      instructions:
      - text: Delete product discount {discount_id}.
        slots:
          discount_id: path.discount_id
      - text: Remove the product discount {discount_id}.
        slots:
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products/{discount_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a product discount
      effect: write
      questions:
      - How do I change the value of an existing product discount?
      - Can I rename a product discount without touching its criteria?
      instructions:
      - text: Rename product discount {discount_id} to {name}.
        slots:
          discount_id: path.discount_id
          name: requestBody.name
      - text: Change the discount value of product discount {discount_id} to {discount_value}.
        slots:
          discount_id: path.discount_id
          discount_value: requestBody.discount_value
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/products/{discount_id}/criteria/{criteria_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a product discount rule
      effect: destructive
      questions:
      - How do I remove a rule from a product discount?
      - Can I delete one product discount criteria only?
      instructions:
      - text: Delete criteria {criteria_id} from product discount {discount_id}.
        slots:
          criteria_id: path.criteria_id
          discount_id: path.discount_id
      - text: Remove product discount rule {criteria_id} on {discount_id}.
        slots:
          criteria_id: path.criteria_id
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/keap-product-discounts-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.