Attachment get
Retrieves attachment metadata by its unique identifier.
path Parameters
attachmentIdstring · required
Responses
Successful response
metadataobject · requiredidstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
userIdstringOwner user ID
agentSettingsIdstringScoped to agent settings
todoIdstringScoped to todo
symlinkTostringIf this is a symlink share, the attachment ID of the owner's original file
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.
Attachment getByTodo
Returns all attachments associated with a specific todo item.
path Parameters
todoIdstring · required
Responses
Successful response
metadataobject · requiredidstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
userIdstringOwner user ID
agentSettingsIdstringScoped to agent settings
todoIdstringScoped to todo
symlinkTostringIf this is a symlink share, the attachment ID of the owner's original file
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.
Attachment getByAgent
Returns all attachments associated with a specific agent settings.
path Parameters
agentSettingsIdstring · required
Responses
Successful response
metadataobject · requiredidstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
userIdstringOwner user ID
agentSettingsIdstringScoped to agent settings
todoIdstringScoped to todo
symlinkTostringIf this is a symlink share, the attachment ID of the owner's original file
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.
Attachment getByUser
Returns all attachments uploaded by the authenticated user.
path Parameters
userIdstring · required
Responses
Successful response
metadataobject · requiredidstring · requireduristring · requiredResource URI - always required. Format: "todoforai:todos/{todoId}/{id}"
originalNamestring · requiredmimeTypestring · requiredfileSizenumber · requiredIn bytes
userIdstringOwner user ID
agentSettingsIdstringScoped to agent settings
todoIdstringScoped to todo
symlinkTostringIf this is a symlink share, the attachment ID of the owner's original file
createdAtnumberisPublicbooleanstatusmodifiedAtnumberLast modified time (mtime), milliseconds epoch
permissionsnumberUnix permission bits (e.g. 0o644 = 420 decimal)
blockIdstringBlock ID that produced this attachment (for mapping tool results back to tool_calls)
toolCallIdstringLLM tool_call ID — for stamping results back to the originating tool call
textstringAgent → backend only: small text results travel inline here instead of a separate binary frame. Consumed at registration; never persisted.