List pending session elicitations
Changed onReturns the permission prompts (including spec approvals) and AskUser questions the session is waiting on. Each item carries the same fields the SDK permissionHandler and askUserHandler receive, plus the requestId to answer it with, and a permission prompt lists only the options the answer endpoint accepts. Items use these SDK shapes, not the MCP elicitation JSON Schema form. Option pickers (pick_options requests) are not covered, and neither are queued AskUser questions (blocking: false, which the agent does not wait on); answer those in the Factory desktop app, web app or CLI. This feature is enabled for selected organizations only.
Request
- Base URLhttps://api.factory.ai
- AuthHTTP bearer
Path parameters
Session ID
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
Permission prompts and AskUser questions the session is waiting on. Queued AskUser questions, which the agent does not wait on, are not listed.
Changes
- info
added the non-success response with the status
- info
- info
added the optional property
elicitations/items/anyOf[subschema #1]/toolUses/items/toolUse/scriptExecution/siteto the response with the status - info
added the optional property
elicitations/items/anyOf[subschema #1]/toolUses/items/toolUse/scriptExecution/stepto the response with the status
- info