배포 생성
POST/v1/deployments
배포 생성
Parameters
Returns
배포 생성
DeploymentCreateParams parameters = new()
{
Agent = "string",
EnvironmentID = "x",
InitialEvents =
[
new BetaManagedAgentsUserMessageEventParams()
{
Content =
[
new BetaManagedAgentsTextBlock()
{
Text = "Where is my order #1234?",
Type = Type.Text,
},
],
Type = Type.UserMessage,
},
],
Name = "x",
};
var betaManagedAgentsDeployment = await client.Beta.Deployments.Create(parameters);
Console.WriteLine(betaManagedAgentsDeployment);Response 200
{
"id": "depl_011CZkZcDH3vPqd7xnEfwTai",
"agent": {
"id": "agent_011CZkYpogX7uDKUyvBTophP",
"type": "agent",
"version": 1
},
"archived_at": null,
"created_at": "2026-03-15T10:00:00Z",
"description": "Compiles yesterday's orders into a report every weekday morning.",
"environment_id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"initial_events": [
{
"content": [
{
"text": "Compile yesterday's orders into report.md.",
"type": "text"
}
],
"type": "user.message"
}
],
"metadata": {},
"name": "Daily order report",
"paused_reason": {
"type": "manual"
},
"resources": [
{
"type": "github_repository",
"url": "url",
"checkout": {
"name": "main",
"type": "branch"
},
"mount_path": "mount_path"
}
],
"schedule": {
"expression": "0 9 * * 1-5",
"timezone": "America/Los_Angeles",
"type": "cron",
"last_run_at": "2026-03-16T16:00:09Z",
"upcoming_runs_at": [
"2026-03-17T16:00:00Z",
"2026-03-18T16:00:00Z"
]
},
"status": "active",
"type": "deployment",
"updated_at": "2026-03-15T10:00:00Z",
"vault_ids": [
"vlt_011CZkZDLs7fYzm1hXNPeRjv"
],
"budget": {
"max_list_cost": {
"amount": "2500",
"currency": "USD"
},
"type": "limit"
}
}Returns Examples
Response 200
{
"id": "depl_011CZkZcDH3vPqd7xnEfwTai",
"agent": {
"id": "agent_011CZkYpogX7uDKUyvBTophP",
"type": "agent",
"version": 1
},
"archived_at": null,
"created_at": "2026-03-15T10:00:00Z",
"description": "Compiles yesterday's orders into a report every weekday morning.",
"environment_id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"initial_events": [
{
"content": [
{
"text": "Compile yesterday's orders into report.md.",
"type": "text"
}
],
"type": "user.message"
}
],
"metadata": {},
"name": "Daily order report",
"paused_reason": {
"type": "manual"
},
"resources": [
{
"type": "github_repository",
"url": "url",
"checkout": {
"name": "main",
"type": "branch"
},
"mount_path": "mount_path"
}
],
"schedule": {
"expression": "0 9 * * 1-5",
"timezone": "America/Los_Angeles",
"type": "cron",
"last_run_at": "2026-03-16T16:00:09Z",
"upcoming_runs_at": [
"2026-03-17T16:00:00Z",
"2026-03-18T16:00:00Z"
]
},
"status": "active",
"type": "deployment",
"updated_at": "2026-03-15T10:00:00Z",
"vault_ids": [
"vlt_011CZkZDLs7fYzm1hXNPeRjv"
],
"budget": {
"max_list_cost": {
"amount": "2500",
"currency": "USD"
},
"type": "limit"
}
}