docs_add_openapi
Import an OpenAPI/Swagger spec from a JSON URL to turn API endpoints into searchable documentation, using saved host credentials when available.
Instructions
Import an OpenAPI/Swagger specification from a direct JSON URL. Converts all API endpoints to searchable documentation. Automatically uses saved credentials for the host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The OpenAPI JSON URL (e.g., "https://api.example.com/openapi.json") | |
| name | No | Optional: display name for the API documentation | |
| apiKey | No | Optional: API key to include in headers | |
| sourceId | No | Optional: custom source ID (auto-generated from URL if not provided) | |
| authHeader | No | Optional: Authorization header value (e.g., "Bearer your-token") | |
| description | No | Optional: description for the source |