{
  "openapi": "3.1.0",
  "info": {
    "title": "Chat2Checkout public API",
    "version": "1.0.0",
    "summary": "Read-only public facts about Chat2Checkout: plans and prices, features per plan and the help guide.",
    "description": "No key and no sign-in. GET only. Responses are the same facts as the public website and are cached for an hour; please cache them. Each address may make 60 requests a minute: every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers, and going over answers 429 with Retry-After. Versions: the address carries the version (/v1/). Within v1 we only add fields, parameters and operations. A field or operation that will be removed is announced at least 90 days ahead with Deprecation and Sunset response headers; a breaking change gets a new version address. A business's own data (chats, leads, orders) is not in this API: it is read through the MCP server after the owner signs in, see /auth.md.",
    "contact": {
      "name": "Chat2Checkout support",
      "url": "https://chat2checkout.com/contact",
      "email": "support@chat2checkout.com"
    },
    "termsOfService": "https://chat2checkout.com/legal/terms"
  },
  "servers": [
    {
      "url": "https://chat2checkout.com/api/public/v1"
    }
  ],
  "externalDocs": {
    "description": "How an agent gets access",
    "url": "https://chat2checkout.com/auth.md"
  },
  "security": [],
  "tags": [
    {
      "name": "Public facts"
    }
  ],
  "paths": {
    "/plans": {
      "get": {
        "operationId": "listPlans",
        "tags": [
          "Public facts"
        ],
        "summary": "Plans and prices",
        "description": "Every plan with its USD price, messages, websites and team members, plus the free trial, the money-back guarantee and any running sale.",
        "parameters": [
          {
            "name": "family",
            "in": "query",
            "required": false,
            "description": "Only the plans of one family.",
            "schema": {
              "type": "string",
              "enum": [
                "ai-included",
                "own-ai-key"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The plans.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plans"
                }
              }
            },
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "A parameter has a value that is not allowed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests in a minute from one address.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "Something went wrong.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/features": {
      "get": {
        "operationId": "listFeatures",
        "tags": [
          "Public facts"
        ],
        "summary": "Features per plan",
        "description": "Every feature with a short description and what each plan includes.",
        "parameters": [
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "description": "Only what this plan includes.",
            "schema": {
              "type": "string",
              "enum": [
                "free",
                "pro",
                "agency",
                "starter",
                "growth",
                "business",
                "enterprise"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The feature groups.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Features"
                }
              }
            },
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "A parameter has a value that is not allowed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests in a minute from one address.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "Something went wrong.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/help": {
      "get": {
        "operationId": "listHelpSections",
        "tags": [
          "Public facts"
        ],
        "summary": "Help guide",
        "description": "Every section of the help guide with its numbered steps.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "A question or keywords: only the sections that match best, best first (at most 5).",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The help sections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Help"
                }
              }
            },
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "A parameter has a value that is not allowed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests in a minute from one address.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "Something went wrong.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/help/{section}": {
      "get": {
        "operationId": "getHelpSection",
        "tags": [
          "Public facts"
        ],
        "summary": "One help section",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "A section id from listHelpSections.",
            "schema": {
              "type": "string",
              "enum": [
                "start",
                "wordpress",
                "shopify",
                "otherSites",
                "assistant",
                "training",
                "alerts",
                "reports",
                "ai",
                "webhooks",
                "highlevel",
                "zapier",
                "make",
                "n8n",
                "jsApi",
                "social",
                "billing"
              ]
            }
          }
        ],
        "description": "One section of the help guide with its numbered steps.",
        "responses": {
          "200": {
            "description": "The section.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpSection"
                }
              }
            },
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "No help section has this id.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests in a minute from one address.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Requests allowed a minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the allowance is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "Something went wrong.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Plans": {
        "type": "object",
        "required": [
          "currency",
          "plans",
          "freeTrial",
          "moneyBack",
          "sale"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "pricingPage": {
            "type": "string",
            "format": "uri"
          },
          "signUp": {
            "type": "string",
            "format": "uri"
          },
          "families": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "yearly": {
            "type": "string"
          },
          "freeTrial": {
            "type": "object",
            "required": [
              "days",
              "messages",
              "cardNeeded"
            ],
            "properties": {
              "days": {
                "type": "integer"
              },
              "messages": {
                "type": "integer"
              },
              "cardNeeded": {
                "type": "boolean"
              }
            }
          },
          "moneyBack": {
            "type": "object",
            "required": [
              "days"
            ],
            "properties": {
              "days": {
                "type": "integer"
              },
              "note": {
                "type": "string"
              }
            }
          },
          "sale": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "required": [
                  "name",
                  "ends",
                  "percentOff"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "ends": {
                    "type": "string",
                    "format": "date"
                  },
                  "percentOff": {
                    "type": "object",
                    "properties": {
                      "plans": {
                        "type": "number"
                      },
                      "agency": {
                        "type": "number"
                      }
                    }
                  },
                  "appliesTo": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "plans": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "family",
                "price",
                "messagesPerMonth",
                "websites",
                "teamMembers"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "family": {
                  "type": "string",
                  "enum": [
                    "ai-included",
                    "own-ai-key"
                  ]
                },
                "price": {
                  "type": "object",
                  "required": [
                    "monthly",
                    "yearly"
                  ],
                  "properties": {
                    "monthly": {
                      "type": "number",
                      "description": "USD a month."
                    },
                    "yearly": {
                      "type": "number",
                      "description": "USD a year."
                    },
                    "saleFirstMonth": {
                      "type": "number",
                      "description": "USD for the first month while a sale runs."
                    },
                    "saleFirstYear": {
                      "type": "number",
                      "description": "USD for the first year while a sale runs."
                    }
                  }
                },
                "messagesPerMonth": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "null = no limit from Chat2Checkout."
                },
                "websites": {
                  "type": "integer"
                },
                "teamMembers": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "Features": {
        "type": "object",
        "required": [
          "plans",
          "groups"
        ],
        "properties": {
          "featuresPage": {
            "type": "string",
            "format": "uri"
          },
          "plans": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The plan ids used as keys below."
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "features"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "description",
                      "plans"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "plans": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Plan id → what that plan includes."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Help": {
        "type": "object",
        "required": [
          "sections"
        ],
        "properties": {
          "helpPage": {
            "type": "string",
            "format": "uri"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HelpSection"
            }
          }
        }
      },
      "HelpSection": {
        "type": "object",
        "required": [
          "id",
          "title",
          "summary",
          "steps",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "start",
              "wordpress",
              "shopify",
              "otherSites",
              "assistant",
              "training",
              "alerts",
              "reports",
              "ai",
              "webhooks",
              "highlevel",
              "zapier",
              "make",
              "n8n",
              "jsApi",
              "social",
              "billing"
            ]
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details.",
        "required": [
          "type",
          "title",
          "status"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri-reference"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          }
        }
      }
    }
  }
}