Generate OpenAPI Specification with API Design Agent
You can rapidly design APIs and generate comprehensive OpenAPI specifications with the API Design Agent. The API Design Agent is an AI-driven tool that leverages natural language descriptions to generate a deployment-ready 3.1.0 OpenAPI specification.
Generate OpenAPI Specification
-
In API Control Plane, select APIs > Actions.
-
Select Generate OpenAPI Specification.
-
Populate the following mandatory fields.
noteEach field must contain between 10 and 5000 characters.
- Technical Name - The technical API name.
- Display Name - The API display name.
- Status - If active, the API can be subscribed to and is visible in the Developer Portal.
- Owner - The organization the API belongs to.
- API Purpose - The business problem the API solves or key domains it manages.
- API Consumers - The primary users or consumers of the API and how they interact.

-
Populate the following optional fields as necessary. Adding more information will produce the most accurate specification.
noteEach field is limited to 5000 characters.
- API Objects/Entities - The main objects or entities that exist in your domain. This helps define the API data models and endpoints.
- Authentication - The authentication method that ensures the API is secure.
- Operations - The types of operations users will have with each resource.
- Key Fields - Key fields/properties for each resource.
- Retrieval Details - Pagination, filtering, and sorting options.
- Error Handling - Custom error codes and special error-handling rules.
- Versioning - Versioning strategy for the API.
-
Select Generate. A time estimate displays as the specification is generated and you are automatically redirected to the new API.
-
When complete, the OpenAPI specification's security and quality scores display. Select View to open the generated specification.

If the specification doesn't generate, a message will display with the reason for the failure. Select Try again and you are re-directed to the previous page.

Generate Open Proxy Specification
To deploy your API, you must create an Open Proxy Specification. The Open Proxy Specification is used to describe the publishing of an API in a vendor agnostic way. Environments supporting this capability are able to transform this vendor agnostic spec into the format used by the runtime and deploy it on the runtime. This can be used to create and update API proxies in a unified way across multiple runtimes.
- Open APIs and select your API name.
- Select Versions and select the API version from the list.
- Select Open Proxy Specification.
- Select Generate Open Proxy Specification.
- Provide the following:
- Backend URL
- Gateway Context Path
- Select Create. The Open Proxy file opens.
