Immediately starts a new agent session for the selected schedule.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
agentIdstringRequiredThe agent id.
scheduleIdstringRequiredThe schedule id.
Responses
200 OK
application/json
idstringOptionalThe thread id.
threadRunIdstring or nullOptionalThe current run id.
acceptedMessageIdstring or nullOptionalThe accepted first-message id, or null when the thread was created without a message.
typestring or nullOptionalThe thread type.
titlestring or nullOptionalThe thread title.
statusstringOptionalAllowed: "ready" "accepted" "queued" "failed"
The creation result: ready without a first message, accepted with a first message, queued when the first message waits for a run, or failed to start.
createdOnstring or nullOptionalThe creation timestamp.
createdBystringOptionalThe id of the user who created the thread.
updatedOnstring or nullOptionalThe last update timestamp.
updatedBystringOptionalThe id of the user who last updated the thread.
agentIdstring or nullOptionalThe custom agent assigned to the thread.
projectIdstring or nullOptionalThe associated project id.
taskIdstring or nullOptionalThe associated task id.
clientIdstring or nullOptionalThe associated client id.
documentIdstring or nullOptionalThe associated document id.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.