Run Deployment Now

post/v1/deployments/{deployment_id}/run?beta=true

Path parameters

deployment_idstring required

Path parameter deployment_id

Headers

anthropic-versionstring
anthropic-betastring

Response

Successful response (OK)

type'deployment_run' required
idstring required

Unique identifier for this run (drun_...).

deployment_idstring required

ID of the deployment that produced this run.

session_idstring nullable required

Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.

created_atstring date-time required

A timestamp in RFC 3339 format

Example response

{
  "agent": {
    "type": "agent",
    "id": "agent_011CZkYqphY8vELVzwCUpqiQ",
    "version": 1
  }
}

Changes

Changed in 2 of the 68 revisions of this API.13

  • d2b230555b7f12See the full diff
    • response property session_id list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • removed from the response property allOf list for the response status

      response-property-all-of-removed

    • added subschema #2 to the response property anyOf list for the response status

      response-property-any-of-added

    • endpoint added

      endpoint-added