Skip to main content
POST
Publish the current draft to an environment

Authorizations

X-API-KEY
string
header
required

Path Parameters

agentId
string
required

Body

application/json

Metadata attached to a publish action, with an optional target environment.

deploymentMessage
string
default:""

Message describing this publish

environment
string

Environment to publish to (defaults to sandbox)

Response

Successful response

The resulting deployment from a promote / rollback / publish action, plus any test runs it triggered.

deployment
object
required

A deployment of an agent version to a specific environment, plus who created it and when.

testRunIds
string[]

IDs of test runs triggered by this deployment action

Last modified on April 22, 2026