Square · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Square Cards API

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

What the actions change

x-apievangelist-phrasing

Targets 5

$.info
$.paths['/v2/cards'].get
$.paths['/v2/cards'].post
$.paths['/v2/cards/{card_id}'].get
$.paths['/v2/cards/{card_id}/disable'].post

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 Square Cards API
  version: 1.0.0
extends: openapi/square-cards-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-09-26'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 4
- target: $.paths['/v2/cards'].get
  update:
    x-apievangelist-phrasing:
      intent: List saved cards on file
      effect: read
      questions:
      - Which cards on file does a customer have?
      - Can I include disabled cards when listing saved cards?
      instructions:
      - text: List cards on file for customer {customer_id}.
        slots:
          customer_id: query.customer_id
      - text: List saved cards with reference {reference_id}, including disabled {include_disabled}.
        slots:
          reference_id: query.reference_id
          include_disabled: query.include_disabled
      method: generated
      generated: '2026-09-26'
- target: $.paths['/v2/cards'].post
  update:
    x-apievangelist-phrasing:
      intent: Save a card on file
      effect: write
      questions:
      - How do I store a card for future charges using the Cards API?
      - Can I save a card from a payment token or a previous payment?
      instructions:
      - text: Save card {card} on file from source {source_id}.
        slots:
          card: requestBody.card
          source_id: requestBody.source_id
      - text: Store card {card} from token {source_id} with verification {verification_token}.
        slots:
          card: requestBody.card
          source_id: requestBody.source_id
          verification_token: requestBody.verification_token
      method: generated
      generated: '2026-09-26'
- target: $.paths['/v2/cards/{card_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a saved card
      effect: read
      questions:
      - What brand, last four and expiry does a saved card have?
      - Can I look up one card on file by its ID?
      instructions:
      - text: Get card {card_id}.
        slots:
          card_id: path.card_id
      - text: Show brand and expiry of saved card {card_id}.
        slots:
          card_id: path.card_id
      method: generated
      generated: '2026-09-26'
- target: $.paths['/v2/cards/{card_id}/disable'].post
  update:
    x-apievangelist-phrasing:
      intent: Disable a saved card
      effect: destructive
      questions:
      - How do I stop a saved card from being charged again?
      - What happens if I disable a card that's already disabled?
      instructions:
      - text: Disable card {card_id}.
        slots:
          card_id: path.card_id
      - text: Prevent any further charges on saved card {card_id}.
        slots:
          card_id: path.card_id
      method: generated
      generated: '2026-09-26'

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/square-cards-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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