Whop · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Whop REST API (v1) Promo Codes API

6 actions 6 updates phrasing extends openapi/whop-promo-codes-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Whop's API. It is a proposal applied on top of the contract, not a document Whop publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/promo_codes'].get
$.paths['/promo_codes'].post
$.paths['/promo_codes/{id}'].get
$.paths['/promo_codes/{id}'].post
$.paths['/promo_codes/{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 Whop REST API (v1) Promo Codes API
  version: 1.0.0
extends: openapi/whop-promo-codes-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/promo_codes'].get
  update:
    x-apievangelist-phrasing:
      intent: List promo codes
      effect: read
      questions:
      - What discount codes have I created?
      - Can I see all my promo codes?
      instructions:
      - text: List all promo codes.
      - text: Show every discount code I've set up.
      method: generated
      generated: '2026-11-22'
- target: $.paths['/promo_codes'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a promo code
      effect: write
      questions:
      - How do I create a discount code for my store?
      - Can a promo code give a fixed amount off or a percentage?
      instructions:
      - text: Create promo code {code} giving {amount_off} off.
        slots:
          code: requestBody.code
          amount_off: requestBody.amount_off
      - text: Create promo code {code} with {percent_off} percent off.
        slots:
          code: requestBody.code
          percent_off: requestBody.percent_off
      method: generated
      generated: '2026-11-22'
- target: $.paths['/promo_codes/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a promo code
      effect: read
      questions:
      - What amount or percent does a particular promo code give?
      - Can I look up one discount code by its id?
      instructions:
      - text: Show promo code {id}.
        slots:
          id: path.id
      - text: Get the details of discount code {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/promo_codes/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Update a promo code
      effect: write
      questions:
      - Can I change the amount off on an existing promo code?
      - Is it possible to deactivate a promo code?
      instructions:
      - text: Set promo code {id} to status {status}.
        slots:
          id: path.id
          status: requestBody.status
      - text: Change the amount off on promo code {id} to {amount_off}.
        slots:
          id: path.id
          amount_off: requestBody.amount_off
      method: generated
      generated: '2026-11-22'
- target: $.paths['/promo_codes/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a promo code
      effect: destructive
      questions:
      - How do I remove a discount code?
      - Can I delete a promo code I no longer need?
      instructions:
      - text: Delete promo code {id}.
        slots:
          id: path.id
      - text: Remove discount code {id} permanently.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'

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/whop-promo-codes-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.