Keap · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Keap Category Discounts API

8 actions 8 updates phrasing extends openapi/keap-category-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/productCategories'].get
$.paths['/rest/v2/discounts/productCategories'].post
$.paths['/rest/v2/discounts/productCategories/{discount_id}/criteria'].post
$.paths['/rest/v2/discounts/productCategories/{discount_id}'].get
$.paths['/rest/v2/discounts/productCategories/{discount_id}'].delete
$.paths['/rest/v2/discounts/productCategories/{discount_id}'].patch
$.paths['/rest/v2/discounts/productCategories/{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 Category Discounts API
  version: 1.0.0
extends: openapi/keap-category-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/productCategories'].get
  update:
    x-apievangelist-phrasing:
      intent: List product category discounts
      effect: read
      questions:
      - Which product categories carry a discount?
      - Can I filter category discounts by name?
      instructions:
      - text: List all product category discounts.
      - text: Show category discounts matching {filter}.
        slots:
          filter: query.filter
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a product category discount
      effect: write
      questions:
      - How do I give a percentage discount on a whole product category?
      - Can a category discount apply to commission calculations?
      instructions:
      - text: Create a category discount {name} of {discount_percent} percent on categories {product_category_ids}.
        slots:
          name: requestBody.name
          discount_percent: requestBody.discount_percent
          product_category_ids: requestBody.product_category_ids
      - text: 'Create category discount {name} applying to commissions: {apply_to_commissions}.'
        slots:
          name: requestBody.name
          apply_to_commissions: requestBody.apply_to_commissions
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories/{discount_id}/criteria'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a date or promo code to a category discount
      effect: write
      questions:
      - Can I make a category discount apply only during a promo period?
      - How do I attach a promotional code to a category discount?
      instructions:
      - text: Add a date-range criteria to category discount {discount_id} from {range_start_time} to {range_end_time}.
        slots:
          discount_id: path.discount_id
          range_start_time: requestBody.range_start_time
          range_end_time: requestBody.range_end_time
      - text: Add a promo code {code} to category discount {discount_id}.
        slots:
          code: requestBody.code
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories/{discount_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Retrieve a product category discount
      effect: read
      questions:
      - What percentage and criteria does a category discount have?
      - Can I look up one category discount by ID?
      instructions:
      - text: Show category discount {discount_id}.
        slots:
          discount_id: path.discount_id
      - text: Get the product category discount {discount_id}.
        slots:
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories/{discount_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a product category discount
      effect: destructive
      questions:
      - How do I remove a category discount?
      - Can I delete a whole product category discount?
      instructions:
      - text: Delete category discount {discount_id}.
        slots:
          discount_id: path.discount_id
      - text: Remove the product category discount {discount_id}.
        slots:
          discount_id: path.discount_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories/{discount_id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a product category discount
      effect: write
      questions:
      - Can I change the percentage of an existing category discount?
      - Is it possible to update only some fields of a category discount?
      instructions:
      - text: Set category discount {discount_id} to {discount_percent} percent.
        slots:
          discount_id: path.discount_id
          discount_percent: requestBody.discount_percent
      - text: Update category discount {discount_id} with name {name} and description {description}.
        slots:
          discount_id: path.discount_id
          name: requestBody.name
          description: requestBody.description
      method: generated
      generated: '2026-11-18'
- target: $.paths['/rest/v2/discounts/productCategories/{discount_id}/criteria/{criteria_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a date or promo code from a category discount
      effect: destructive
      questions:
      - How do I stop a category discount from being limited to a promo code?
      - Can I delete a date-range rule from a category discount?
      instructions:
      - text: Delete criteria {criteria_id} from category discount {discount_id}.
        slots:
          criteria_id: path.criteria_id
          discount_id: path.discount_id
      - text: Remove the promo code rule {criteria_id} on category discount {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-category-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.