Deploy
DeployResource
Methods
Create a new deployment.
Submits a deployment request. The deployment will:
- Parse and merge configuration files
- Create a Kubernetes Job running helm install
- Wait for deployment completion
- Return results
The build_id of the cloud build. Required if image_name and image_tag are not provided.
ISO 8601 expiry timestamp. Only valid for preview deployments. If omitted on a preview deployment, defaults to 8 hours from now. Previews are always ephemeral and always have an expires_at.
Name of the image to deploy. Required if build_id is not provided.
Tag of the image to deploy. Required if build_id is not provided.
When True, creates a preview deployment with a unique deployment-id suffix appended to the helm release name.
Non-unique grouping label for the preview (e.g. branch name, PR number). Persisted on the deployment record so callers can list all deploys for a given label via GET /v5/agentex/deployments?preview_label=X&limit=1 (get the latest). Sanitized to lowercase alphanumeric + hyphens for K8s DNS-label compatibility (max 30 characters after sanitization). Each deploy still gets a unique helm release name regardless of label, so concurrent redeploys never share K8s resources. Only valid when preview=True.
The identity that created the entity.
Kubernetes events for this deployment.
Get a deployment by its ID.
List all deployments with pagination and optional filters.
Get structured log lines for a deployment with cursor-based pagination.
The CLI can poll this endpoint to stream logs incrementally:
- First call: no cursor
- Subsequent calls: cursor=next_cursor from the previous response
- Stop polling when the deployment reaches a terminal status
Soft-delete a deployment. Marks it as deleted and triggers K8s resource cleanup.
Domain types
Slim event representation for the API response.
Response containing structured deployment log lines with cursor-based pagination.
The CLI can poll this endpoint to stream logs incrementally:
- First call: no after_id
- Subsequent calls: after_id=next_cursor from previous response
- Stop polling when has_more is False and the deployment reaches a terminal status