Base URLs
The Meshery Server API is accessible at:localhost:9081 with your Meshery Server address.
API Endpoints
- REST API:
http://localhost:9081/api/* - GraphQL API:
http://localhost:9081/api/system/graphql/query - GraphQL Playground:
http://localhost:9081/api/system/graphql/playground
API Types
REST API
The REST API provides comprehensive endpoints for:- Workspaces - Organize teams and projects
- Environments - Manage deployment targets
- Connections - Connect to Kubernetes clusters and external services
- Designs - Create and deploy infrastructure patterns
- Components - Work with MeshModel components
- Models - Manage infrastructure models
- Performance - Run performance tests
- System - Server configuration and metadata
GraphQL API
The GraphQL API provides:- Queries - Fetch data about control planes, data planes, namespaces, performance results, and more
- Mutations - Modify operator and adapter status
- Subscriptions - Real-time updates for performance results, controller status, cluster resources, and events
Response Format
All REST API responses return JSON with the following structure:Success Response
Error Response
Common Query Parameters
Many REST endpoints support these query parameters:Page number for pagination (0-indexed)
Number of items per page. Use
all to return all results.Search term for filtering results (greedy search)
Field to order by (e.g.,
name, created_at, updated_at)Sort direction:
asc or descRate Limiting
Currently, Meshery does not enforce rate limiting on API requests. However, for production use, consider implementing your own rate limiting at the reverse proxy or load balancer level.API Versioning
Meshery APIs follow semantic versioning. The current API version is included in response headers:CORS
Cross-Origin Resource Sharing (CORS) is enabled for all API endpoints to support browser-based applications.OpenAPI Specification
Meshery provides an OpenAPI/Swagger specification for the REST API:Getting Help
For API support:Next Steps
Authentication
Learn how to authenticate API requests
REST API
Explore REST endpoints
GraphQL API
Use the GraphQL API