Get a session
Changed onReturns the session with its status, tags, and credit usage. With computerId, the session is read from that computer, and status is running while its agent loop runs. This feature is enabled for selected organizations only.
Request
- Base URLhttps://api.factory.ai
- AuthHTTP bearer
Path parameters
Session ID
Query parameters
Computer ID to query directly
Set to true to add pinned to the answer: true when your pinned list holds this session, false when it does not.
Headers
Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.
Response
Response for status 200
Session ID
Immediate parent session ID for a Task subagent, if one exists
Session title
Current session execution status
Number of messages in session
Creation timestamp (Unix ms). Read from a computer with computerId, a single session reports its earliest message's creation time (the request time when it has no messages), and a list reports when the session file was created (its last update time when the computer did not record that)
Last update timestamp (Unix ms). Read from a computer with computerId, a single session reports its latest message's update time (the request time when it has no messages)
Completion timestamp (Unix ms)
The computer the session runs on: your computer on the session's host, otherwise the computer the session records. Absent when its host has none of your computers and it records none. Read from a computer with computerId, that computer
Session tags. A workstream carries a mission-v2 tag whose metadata has kind "orchestrator" and a missionId equal to its own sessionId; spaceId appears once its shared folder is attached
Integration artifacts (pull requests, issues, pages) the session touched, oldest first
Total Factory credits consumed by the session and its subagents
Pin preference reported by this operation. Present on a successful getSession response when includePinned=true, or on a successful updateSession response when its body supplied pinned. Absence means not reported, not unpinned.
Changes
- info
added the new optional
queryrequest parameterincludePinned - info
added the optional property
pinnedto the response with the status
- info
- info
added the new optional
headerrequest parameterX-Factory-Org-Id
26 more changes in this revision
- info