Infra API
Overview
The MK.IO Infrastructure API is the project-level REST API for infrastructure configuration in MK.IO. It focuses on network and site management for operations workflows where infrastructure resources are created, queried, updated, and retired.
Authentication
All endpoints require a bearer token in the Authorization header:
Authorization: Bearer <your_token>
You can create and manage your tokens in your profile settings under Your personal API tokens. Follow the API tokens guide for more information.
Usage
Base URL: https://app.mk.io
Typical usage pattern:
- Create and maintain network and site resources.
- Update or remove resources as requirements change.
Endpoints
Networks 5 endpoints
get List Networks /api/v1/projects/{project_name}/infra/networks get Get Network /api/v1/projects/{project_name}/infra/networks/{name} put Create Network /api/v1/projects/{project_name}/infra/networks/{name} patch Update Network /api/v1/projects/{project_name}/infra/networks/{name} del Delete Network /api/v1/projects/{project_name}/infra/networks/{name}
Sites 5 endpoints
get List Sites /api/v1/projects/{project_name}/infra/sites get Get Site /api/v1/projects/{project_name}/infra/sites/{name} put Create Site /api/v1/projects/{project_name}/infra/sites/{name} patch Update Site /api/v1/projects/{project_name}/infra/sites/{name} del Delete Site /api/v1/projects/{project_name}/infra/sites/{name}