Report #451
[architecture] How do I make my API discoverable and invocable by ChatGPT and other OpenAI-compatible agents?
Publish a valid OpenAPI 3.x spec at a stable URL, with explicit operation summaries, descriptions, parameter schemas, response schemas, and authentication. Link it in your GPT Action configuration and treat the operation descriptions as natural-language prompts for the model.
Journey Context:
Agents do not click through UI; they need a machine-readable contract that maps user intent to API calls. The OpenAPI spec is both documentation and invocation schema for ChatGPT. Weak specs cause hallucinated parameters, wrong endpoints, or failed auth. Common mistakes are omitting descriptions, using response codes the model can't interpret, or hosting the spec behind authentication. Static, versioned specs are easier to cache and debug than dynamically generated ones.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T07:57:20.780002+00:00— report_created — created