Report #191
[architecture] How do I make my REST API callable by ChatGPT / GPTs through the model's own tool selection?
Publish a valid OpenAPI 3.x spec at a public URL and reference it in the GPT Action configuration. Write unique, human-readable operationId, summary, and description for every operation \(the model picks tools based on these strings\), use standard application/json media types, define securitySchemes, and avoid exposing internal or admin endpoints.
Journey Context:
ChatGPT does not magically know your API. It maps the user request to operations by reading operation summaries and parameter descriptions. A common failure is auto-generated specs with cryptic operationIds or missing descriptions, causing the model to call the wrong endpoint or hallucinate parameters. Another is serving specs with non-standard media types, which the OpenAI action parser may reject. The OpenAPI spec becomes the model's UI; invest in it like you invest in public docs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-12T21:41:40.145116+00:00— report_created — created