MATIH Platform is in active MVP development. Documentation reflects current implementation status.
8. Platform Services
API Reference

API Reference

Complete endpoint reference for the Infrastructure Service. All endpoints require JWT authentication. The service runs on port 8089.


Infrastructure Provisioning

MethodPathDescription
POST/api/v1/infrastructure/tenants/:tenantId/provisionProvision tenant infrastructure
GET/api/v1/infrastructure/tenants/:tenantIdGet infrastructure state
PUT/api/v1/infrastructure/tenants/:tenantIdUpdate infrastructure
DELETE/api/v1/infrastructure/tenants/:tenantIdDeprovision infrastructure

Drift Detection

MethodPathDescription
POST/api/v1/infrastructure/tenants/:tenantId/drift-checkTrigger drift detection
GET/api/v1/infrastructure/tenants/:tenantId/drift-reportGet drift report

Credentials

MethodPathDescription
POST/api/v1/infrastructure/credentialsRegister credential
GET/api/v1/infrastructure/credentialsList credentials
GET/api/v1/infrastructure/credentials/:credentialIdGet credential
PUT/api/v1/infrastructure/credentials/:credentialIdUpdate credential
DELETE/api/v1/infrastructure/credentials/:credentialIdDelete credential
POST/api/v1/infrastructure/credentials/:credentialId/rotateRotate credential

Ingress Management

MethodPathDescription
POST/api/v1/infrastructure/ingress/tenants/:tenantId/controllerDeploy ingress controller
POST/api/v1/infrastructure/ingress/tenants/:tenantId/dnsCreate DNS zone
POST/api/v1/infrastructure/ingress/tenants/:tenantId/ingressCreate tenant ingress
GET/api/v1/infrastructure/ingress/tenants/:tenantIdGet ingress status

Service Management

MethodPathDescription
POST/api/v1/infrastructure/services/tenants/:tenantId/deployDeploy a service
GET/api/v1/infrastructure/services/tenants/:tenantIdList tenant services
GET/api/v1/infrastructure/services/tenants/:tenantId/:serviceNameGet service status
POST/api/v1/infrastructure/services/tenants/:tenantId/:serviceName/scaleScale a service

Topology

MethodPathDescription
GET/api/v1/infrastructure/topologyGet full platform topology
GET/api/v1/infrastructure/topology/tenants/:tenantIdGet tenant topology

Terraform State

MethodPathDescription
GET/api/v1/infrastructure/terraform/tenants/:tenantId/stateGet state info
POST/api/v1/infrastructure/terraform/tenants/:tenantId/state/lockLock state
POST/api/v1/infrastructure/terraform/tenants/:tenantId/state/unlockUnlock state

Artifacts

MethodPathDescription
GET/api/v1/infrastructure/artifactsList platform artifacts
GET/api/v1/infrastructure/artifacts/:nameGet artifact details
GET/api/v1/infrastructure/artifacts/:name/versionsList artifact versions