Todo by ID
GET
/api/v1
/todos/{todoId}
Returns a single todo by ID
path Parameters
todoIdstring · requiredID of the todo to retrieve
Responses
Successful operation
idstringExample: todo-123projectIdstringExample: project-123statusstring · enumEnum values:LISTENINGTHINKINGDONEFAILEDCANCELLEDSCHEDULEDExample: LISTENINGcontentstringExample: TODO descriptionmessagesobject[]createdAtinteger · int64Example: 1625097600000lastActivityAtinteger · int64Example: 1625097600000scheduledTimestampinteger · int64Example: 1625097600000
Update todo
PUT
/api/v1
/todos/{todoId}
Updates a todo with the provided data
path Parameters
todoIdstring · requiredID of the todo to update
Request Body
statusstring · enum · requiredEnum values:LISTENINGTHINKINGDONEFAILEDCANCELLEDSCHEDULEDExample: LISTENINGagentSettingsIdstring · requiredExample: agent-123
Responses
Todo updated successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Send message
POST
/api/v1
/todos/{todoId}/messages
Adds a new message to an existing todo
path Parameters
todoIdstring · requiredID of the todo
Responses
Message added successfully
idstringExample: message-123contentstringExample: Message contentrolestringExample: usercreatedAtinteger · int64Example: 1625097600000blockTypesstring[]Example: ["TEXT","CODE"]blocksstringExample: serialized-blocksitokintegerExample: 100otokintegerExample: 500cache_writeintegerExample: 10cache_readintegerExample: 5pricenumber · floatExample: 0.05elapsedintegerExample: 2500scheduledTimestampinteger · int64Example: 1625097600000attachmentsobject[]attachmentsPricenumber · floatExample: 0.01attachmentsElapsedintegerExample: 500
Update waiting message
PATCH
/api/v1
/todos/{todoId}/messages/{messageId}
Updates a scheduled message
path Parameters
todoIdstring · requiredID of the todo
messageIdstring · requiredID of the message
Request Body
contentstringExample: Updated contentattachmentsobject[]scheduledTimestampinteger · int64Example: 1625097600000
Responses
Message updated successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Update status
PATCH
/api/v1
/todos/{todoId}/status
Updates the status of a todo
path Parameters
todoIdstring · requiredID of the todo
Request Body
statusstring · enum · requiredEnum values:LISTENINGTHINKINGDONEFAILEDCANCELLEDSCHEDULEDExample: DONE
Responses
Todo status updated successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Update schedule
PATCH
/api/v1
/todos/{todoId}/schedule
Updates the scheduled timestamp of a todo
path Parameters
todoIdstring · requiredID of the todo
Request Body
scheduledTimestampinteger · int64 · requiredExample: 1625097600000messageIdstring · requiredExample: message-123agentSettingsIdstring · requiredExample: agent-123
Responses
Todo schedule updated successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Start waiting Todo
POST
/api/v1
/todos/{todoId}/start
Starts processing a todo immediately
path Parameters
todoIdstring · requiredID of the todo
Request Body
messageIdstring · requiredExample: message-123agentSettingsIdstring · requiredExample: agent-123
Responses
Todo started successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Update and start a todo
POST
/api/v1
/todos/{todoId}/update-start
Updates a todo and starts processing it immediately
path Parameters
todoIdstring · requiredID of the todo
Request Body
messageIdstring · requiredExample: message-123agentSettingsIdstring · requiredExample: agent-123
attachmentsobject[]contentstringExample: Updated content
Responses
Todo updated and started successfully
successbooleanExample: truemessagestringExample: Operation completed successfully
Create todo
POST
/api/v1
/projects/{projectId}/todos
Creates a new todo for a specific project
path Parameters
projectIdstring · requiredID of the project
Request Body
todoIdstring · requiredExample: todo-123projectIdstring · requiredExample: project-123contentstring · requiredExample: TODO contentrolestring · requiredExample: useragentSettingsIdstring · requiredExample: agent-123attachmentsobject[] · required
scheduledTimestampinteger · int64Example: 1625097600000
Responses
Todo created successfully
idstringExample: todo-123projectIdstringExample: project-123statusstring · enumEnum values:LISTENINGTHINKINGDONEFAILEDCANCELLEDSCHEDULEDExample: LISTENINGcontentstringExample: TODO descriptionmessagesobject[]createdAtinteger · int64Example: 1625097600000lastActivityAtinteger · int64Example: 1625097600000scheduledTimestampinteger · int64Example: 1625097600000