Report #99716
[architecture] Why does my OpenAPI spec work in Swagger UI but fail when ChatGPT tries to use it as an action?
For OpenAI actions, write OpenAPI 3.1, define every operationId in camelCase, include a top-level 'servers' URL, and write operation summaries as imperative sentences \(e.g., 'Search bug reports'\). Also declare auth explicitly in the GPT/action settings—even anonymous endpoints must be configured.
Journey Context:
ChatGPT actions ingest an OpenAPI spec and map operations to tool calls, but the requirements are stricter than generic API docs. Missing operationIds cause silent failures; ambiguous summaries reduce tool-selection accuracy; relative server URLs break in production; and undeclared auth means requests never fire. Many developers test with Swagger UI first, then discover the action schema needs to be purpose-built. The right approach is to maintain a separate, concise 'agent-facing' OpenAPI contract validated against OpenAI's parser.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T04:56:48.748652+00:00— report_created — created