Skip to main content

Deployment Records

Deployment records track Kubernetes deployments for agent versions.

Internal Use

These endpoints are called by the build pipeline. Use Update Agent to trigger deployments.


Create Deployment Record

POST /api/v1/agents/deploy — 🌐 Public

Request Body

FieldTypeRequiredDescription
agent_idstringAgent UUID
statusstringDeployment status
build_idstringAssociated build ID
service_urlstringURL where the agent is deployed
k8s_deployment_namestringKubernetes deployment name
namespacestringK8s namespace (default: nasiko-agents)
error_messagestringError details on failure

Deployment Status Values

StatusMeaning
startingInitializing
runningLive and serving traffic
stoppedStopped
failedDeployment failed

Update Deployment Status

PUT /api/v1/agents/deployment/{deployment_id}/status — 🌐 Public

Path Parameters

ParameterDescription
deployment_idDeployment record ID

Request Body

Same fields as Create Deployment Record.