ask, an automation run, a chat, or the set-up run. GET /v1/sessions/{id} reads one (see Endpoints). The endpoints on this page list them and act on them.
Each has an MCP twin with the same payload: list_sessions, cancel_session, delete_session and add_context. See the tool reference.
GET /v1/sessions
Read-only. No credits. MCP tool:
list_sessions.Shell
Response
status is the three-word vocabulary (complete, running, failed); state is the finer stored word. A cancelled session reads failed under status and cancelled under state.
POST /v1/sessions/{id}/cancel
No credits. Works on a spent balance. MCP tool:
cancel_session.Response
DELETE /v1/sessions/{id}
Permanently deletes a finished session and its trace. A running session answers409: cancel it first.
Response
POST /v1/sessions/{id}/context
Gives a session text or links it cannot find itself. The agent reads it as a message in the thread.
Send
text, urls, or both.
run: false(default): nothing starts. The session’s next turn reads the context, and a run already in flight picks it up when its current turn ends.run: true: the session is queued again to act on it now. That is a new turn, and it costs credits.
Shell
Response
POST /v1/sessions/{id}/attachments
No credits. Needs
steer. MCP tool: ask, through its files.multipart/form-data with one file in a field named file, then reference the returned id in POST /v1/ask as files with the same session.
The type is read from the file’s content, not its name. Anything else is
415; a file over 10 MB is 413. A session in another workspace is 404.
Shell
Response
status is read (the text was read), image, or unreadable. An unreadable file, such as a scanned PDF with no text in it, is still attached and still answers 201; notice then says which file it was and to upload it again as a PDF with selectable text. The agent is told it has not read that file, so it will not describe what is in it.
The file is private. url is a signed link that works for one hour. To get a fresh one, call GET /v1/sessions/{id}/attachments/{attachment_id}.
Shell
POST /v1/ask.
GET /v1/attachments/{id}
Read-only. No credits. Needs
read. MCP: get on attensira://{workspace}/attachment/{id}.Not on
api.attensira.com as its own path: read it there as GET /v1/objects/attachment/{id}, or send this path to https://webapp.attensira.com with the same key.url signed for one hour: the same body as GET /v1/sessions/{id}/attachments/{attachment_id}. An attachment in another workspace is 404. Read through GET /v1/objects/attachment/{id}, the answer also carries it as file.
POST /v1/uploads
No credits. Needs
steer. Works on a spent balance. MCP tool: upload.Not on
api.attensira.com yet: send it to https://webapp.attensira.com with the same key, which answers errors in its own envelope.act with answer on a question an agent asked, as payload.file. To give the agent a file to read in a conversation, attach it to the session instead, above.
Send JSON with the file base64-encoded, which is what an MCP client can send, or the same multipart/form-data as an attachment, with the file in a field named file:
The same types as an attachment are taken (PDF, DOCX, CSV, TXT, PNG, JPG), read from the file’s content and not its name: anything else is
415, and a file over 10 MB is 413.
Shell
Response
404: upload the file again.