fastly openapi schema
Fastly
Fastly
This repository contains an unofficial OpenAPI 3.0 specification for the Fastly API. It was created by reverse engineering the publicly available API documentation.
This is an unofficial specification and is not endorsed, supported, or guaranteed by Fastly. It may be incomplete or contain inaccuracies. The specification is provided "as is" without warranty of any kind.
This repository contains two OpenAPI specifications:
The complete specification of the Fastly API, containing all endpoints, parameters, and schemas. This is useful for comprehensive API documentation and client generation.
A streamlined subset of the API specifically optimized for AI agent interaction. This specification:
The MCP version is ideal for integration with AI assistants and tools that need to interact with Fastly through natural language interfaces.
You can generate interactive documentation from these specifications using tools like:
Examples:
# For the complete API
npx @redocly/cli preview-docs fastly-openapi.yaml
# For the AI-optimized subset
npx @redocly/cli preview-docs fastly-openapi-mcp.yaml
To validate the specifications:
# For the complete API
npx @stoplight/spectral-cli lint fastly-openapi.yaml
# For the AI-optimized subset
npx @stoplight/spectral-cli lint fastly-openapi-mcp.yaml
These specifications can be used with OpenAPI code generators to create client libraries in various programming languages:
# For the complete API
npx @openapitools/openapi-generator-cli generate -i fastly-openapi.yaml -g javascript -o ./client
# For the AI-optimized subset
npx @openapitools/openapi-generator-cli generate -i fastly-openapi-mcp.yaml -g javascript -o ./client-mcp
Both specifications are designed to be "agent-ready" - optimized for use with AI agents and tools. They follow best practices for machine readability:
The MCP version takes agent-readiness even further with:
For specific use cases for the MCP specification, see subset.md which outlines common conversational tasks and the corresponding API workflows.