{
  "openapi": "3.1.0",
  "info": {
    "title": "Whiteboxx Agents API",
    "description": "Call Whiteboxx agents from your own code. An agent speaks in the first person from measured market evidence, and every answer cites the evidence rows it used. When the evidence is thin, old or missing, the agent says so.\n\n## Sign in\n\nSend an API key as a bearer token:\n\n```\nAuthorization: Bearer <API key>\n```\n\nYou make an API key in the app. Open the account menu and choose **API keys**. A key works in every organization you belong to.\n\n## Base URL\n\nEvery call goes to `https://engine.whiteboxx.ai`. It is the live service. A call there acts on your organization's real workspaces and agents, and a call that asks an agent spends credits. There is no test server. To see what a run would do without spending anything, plan it first (step 2 of Run a workflow below).\n\n## Without a browser\n\nThis page needs JavaScript. For a script or an agent that reads the docs:\n\n- [/llms.txt](/llms.txt) lists every call on this page, and [/llms-full.txt](/llms-full.txt) is the whole reference as Markdown. The OpenAPI schema is at [/openapi.json](/openapi.json).\n- The Whiteboxx skill teaches a coding agent the API, the CLI, the Python SDK and the MCP tools. Install it with `npx skills add https://engine.whiteboxx.ai`, or read it at [SKILL.md](https://engine.whiteboxx.ai/.well-known/agent-skills/whiteboxx/SKILL.md).\n- An MCP client connects to `https://engine.whiteboxx.ai/v1/mcp` with your API key as a bearer token. `GET /v1/mcp/tools` lists its tools.\n\n## Your first answer\n\n1. **List your organizations.** Call `GET /v1/organizations` and keep an `organization_id`. A key lists all of them.\n2. **List the workspaces in it.** Call `GET /v1/workspaces?organization_id=…` and keep a `workspace_id`.\n3. **List the agents in a workspace.** Call `GET /v1/agents?workspace_id=…` and keep an `agent_id`.\n4. **Read the agent's persona.** Call `GET /v1/agents/{agent_id}`. Add `?view=page` to get a smaller response.\n5. **Open a conversation.** Call `POST /v1/conversations` with `workspace_id` and `agent_id`. To talk to a group, send `agent_ids` instead of `agent_id`.\n6. **Ask a question.** Call `POST /v1/conversations/{conversation_id}/messages` with a `question`. To get each answer as soon as the agent writes it, call `messages:stream` instead. It returns server-sent events.\n\n```bash\nTOKEN=...   # your API key\nAPI=https://engine.whiteboxx.ai\n\ncurl -s $API/v1/organizations -H \"Authorization: Bearer $TOKEN\"\ncurl -s \"$API/v1/workspaces?organization_id=$ORG\" -H \"Authorization: Bearer $TOKEN\"\ncurl -s \"$API/v1/agents?workspace_id=$WS\" -H \"Authorization: Bearer $TOKEN\"\ncurl -s $API/v1/agents/$AGENT -H \"Authorization: Bearer $TOKEN\"\ncurl -s $API/v1/conversations -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'content-type: application/json' \\\n  -d \"{\\\"workspace_id\\\":\\\"$WS\\\",\\\"agent_id\\\":\\\"$AGENT\\\"}\"\ncurl -s $API/v1/conversations/$CONV/messages -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"question\":\"What makes you switch brands?\"}'\n```\n\n## Run a workflow\n\nA workflow puts a set of questions to several agents at once and keeps every answer: a focus group, a brainstorm, a creative evaluation, a survey.\n\n1. **Find the workflow.** Call `GET /v1/workflows?workspace_id=…&origin=whiteboxx` for Whiteboxx's workflows, or leave out `origin` for your organization's own. Keep a `workflow_id`, and read its `run_form` and `input_spec` to see what a run needs. A workflow that shows files, such as Creative evaluation, takes them by `asset_id`. List the workspace's files with `GET /v1/assets?workspace_id=…`, or upload one with `POST /v1/assets`.\n2. **See the plan.** Call `POST /v1/workflows/{workflow_id}/runs` with `workspace_id`, `agent_ids` and what the workflow needs, such as a `question_set`. Nothing is asked yet. The answer says how many questions go to how many agents, and `expected_cost_units` is the credits it is expected to cost.\n3. **Start it.** Send the same body with `\"start\": true` and an `Idempotency-Key` header. Keep the `workflow_run_id` and the `thread_id` it went into.\n4. **Read it until it ends.** Call `GET /v1/workflow-runs/{run_id}` until `status` is `succeeded`, `partial`, `failed` or `canceled`.\n5. **Read what it made.** Call `GET /v1/workflow-runs/{run_id}/outputs`. A focus group's answers are in the conversation the run's `conversation_id` names, or export them with `GET /v1/workflows/{workflow_id}/runs/{run_id}/transcript`.\n\n```bash\nWF=...   # a workflow_id, such as Focus group's\ncurl -s \"$API/v1/workflows?workspace_id=$WS&origin=whiteboxx\" -H \"Authorization: Bearer $TOKEN\"\ncurl -s $API/v1/workflows/$WF/runs -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'content-type: application/json' \\\n  -d \"{\\\"workspace_id\\\":\\\"$WS\\\",\\\"agent_ids\\\":[\\\"$AGENT\\\",\\\"$AGENT2\\\"],\\\"question_set\\\":\\\"usage_patterns\\\"}\"\ncurl -s $API/v1/workflows/$WF/runs -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'content-type: application/json' -H \"Idempotency-Key: focus-group-1\" \\\n  -d \"{\\\"workspace_id\\\":\\\"$WS\\\",\\\"agent_ids\\\":[\\\"$AGENT\\\",\\\"$AGENT2\\\"],\\\"question_set\\\":\\\"usage_patterns\\\",\\\"start\\\":true}\"\ncurl -s $API/v1/workflow-runs/$RUN -H \"Authorization: Bearer $TOKEN\"\ncurl -s $API/v1/workflow-runs/$RUN/outputs -H \"Authorization: Bearer $TOKEN\"\n```\n\nEvery run goes in a thread. Leave out `thread_id` and the run opens a new one, or create a thread first with `POST /v1/threads` and send its id to keep several runs together.\n\n**Send request** on this page calls the live API with the API key you enter under **Authentication**. Those calls spend credits, the same as calls from your code.\n",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://engine.whiteboxx.ai",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Organizations",
      "description": "Every workspace and agent belongs to an organization, so the first call lists the organizations you can work in. An API key works in every one of them. A request acts in the organization of the workspace or agent it names."
    },
    {
      "name": "Workspaces",
      "description": "Every agent belongs to a workspace, and every workspace to an organization. Send the `organization_id` from List organizations. The calls below take a `workspace_id` from this list."
    },
    {
      "name": "Agents",
      "description": "The agents in a workspace, one row each. To read an agent's persona, use the call under Agent persona."
    },
    {
      "name": "Agent persona",
      "description": "One agent in full. It includes who the agent speaks as, the evidence it holds, the age of that evidence and the results of its build checks."
    },
    {
      "name": "Converse",
      "description": "Open a conversation with one agent or a group, ask questions and read the transcript. Every answer cites the evidence rows it used."
    },
    {
      "name": "Threads",
      "description": "A thread holds a piece of work: its runs and conversations, in order. Every run goes in a thread. If you start a run without one, the run opens a new thread."
    },
    {
      "name": "Workflows",
      "description": "A workflow is a saved job you run with your agents: a focus group, a brainstorm, a creative evaluation, a survey. Whiteboxx provides 11, and your organization can save its own. Each workflow's `run_form` and `input_spec` say what a run of it needs."
    },
    {
      "name": "Run inputs",
      "description": "What some workflows need before they run. Creative evaluation judges files in the workspace, on the objectives in the creative catalog. List the files already there before you upload one. Survey asks a panel: the people it asks, weighted to a population. Make panels in the app."
    },
    {
      "name": "Run a workflow",
      "description": "Ask for the plan first: it says how many questions go to how many agents, and what that costs in credits. Then start the run with the same request and `start: true`, and read it until it finishes."
    },
    {
      "name": "Run results",
      "description": "What a finished run made. Every run lists its outputs. The answers of a focus group, brainstorm or group conversation are a transcript; a creative evaluation adds a scored card for each creative; a survey's answers are weighted results."
    }
  ],
  "paths": {
    "/v1/organizations": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "List organizations",
        "description": "Lists the organizations you can work in, with each one's `organization_id` and name.\n\nKeep an `organization_id` to list its workspaces.",
        "operationId": "list_organizations_v1_organizations_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrganizationListItem"
                  },
                  "type": "array",
                  "title": "Response List Organizations V1 Organizations Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "x-api-number": 560,
        "x-cli-name": "list-organizations"
      }
    },
    "/v1/workspaces": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "List workspaces",
        "description": "Lists the workspaces you can reach in one organization. Send the `organization_id` from `GET /v1/organizations`.\n\n`organization_id` is required. A call without it still answers for now, for the organization your key was made in, and the response carries a `Deprecation` header. We will announce the date such calls stop working.\n\nAn organization your key cannot reach answers `404` with `organization_not_found`, the same as one that does not exist.",
        "operationId": "list_workspaces_v1_workspaces_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Required. The organization to list, from `GET /v1/organizations`. Calls without it still answer for now and carry a Deprecation header; they will be refused from a date we announce.",
              "title": "Organization Id"
            },
            "description": "Required. The organization to list, from `GET /v1/organizations`. Calls without it still answer for now and carry a Deprecation header; they will be refused from a date we announce."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkspaceResponse"
                  },
                  "title": "Response List Workspaces V1 Workspaces Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 10,
        "x-cli-name": "list-workspaces"
      }
    },
    "/v1/agents": {
      "get": {
        "tags": [
          "Agents"
        ],
        "summary": "List agents",
        "description": "Lists the agents in a workspace, one row per agent. To find the agents a build made, filter by `run_id`.\n\nThe list leaves out execution agents: the interviewers, experts and synthesizers Whiteboxx makes to do work in a workflow. Send `kind=execution_agent` and `include_execution=true` to list every published one.\n\nA row has no persona. To read the persona, call `GET /v1/agents/{agent_id}`.",
        "operationId": "list_agents_v1_agents_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "The workspace to list, from `GET /v1/workspaces`.",
              "title": "Workspace Id"
            },
            "description": "The workspace to list, from `GET /v1/workspaces`."
          },
          {
            "name": "run_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only the agents this build run produced.",
              "title": "Run Id"
            },
            "description": "Only the agents this build run produced."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`execution_agent` lists only the execution agents, which Whiteboxx makes. Without it, they are left out.",
              "title": "Kind"
            },
            "description": "`execution_agent` lists only the execution agents, which Whiteboxx makes. Without it, they are left out."
          },
          {
            "name": "include_execution",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "With `kind=execution_agent`, also list the execution agents that have their own skills, data and tools to use. Ignored otherwise.",
              "default": false,
              "title": "Include Execution"
            },
            "description": "With `kind=execution_agent`, also list the execution agents that have their own skills, data and tools to use. Ignored otherwise."
          },
          {
            "name": "can_ask_directly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Only published execution agents you can ask a question directly, outside a workflow run.",
              "default": false,
              "title": "Can Ask Directly"
            },
            "description": "Only published execution agents you can ask a question directly, outside a workflow run."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "description": "The most agents on one page.",
              "default": 50,
              "title": "Limit"
            },
            "description": "The most agents on one page."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`next_cursor` from the page before, for the next page.",
              "title": "Cursor"
            },
            "description": "`next_cursor` from the page before, for the next page."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_AgentListItem_"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 25,
        "x-cli-name": "list-agents"
      }
    },
    "/v1/agents/{agent_id}": {
      "get": {
        "tags": [
          "Agent persona"
        ],
        "summary": "Get an agent",
        "description": "Returns one agent with its persona, the size of its evidence, its build checks and the age of its evidence.\n\n`signal_count` is the sample the app shows. `citable_count` is every row the agent holds and can cite. The second number is usually larger.\n\n`probe_results` records the checks run when the agent was built, and never changes. `latest_probe` is the most recent check. If the two disagree, the agent's answers have drifted since the build.",
        "operationId": "get_agent_v1_agents__agent_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Agent Id"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "full",
                "page"
              ],
              "type": "string",
              "description": "`page` leaves out the trace manifest, the instruction gate, the source plan and all of the persona card but its profile.",
              "default": "full",
              "title": "View"
            },
            "description": "`page` leaves out the trace manifest, the instruction gate, the source plan and all of the persona card but its profile."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 27,
        "x-cli-name": "get-agent"
      }
    },
    "/v1/conversations": {
      "post": {
        "tags": [
          "Converse"
        ],
        "summary": "Create a conversation",
        "description": "Opens a conversation with one agent, a group of agents or a workflow.\n\nEach person has one live conversation with each agent, per thread and per posture. If you open one with a single agent you already have a live conversation with, the API returns it with status 200 instead of 201. To start over, archive it first. Groups and workflow runs always get a new conversation.",
        "operationId": "create_conversation_v1_conversations_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 32,
        "x-cli-name": "create-conversation"
      }
    },
    "/v1/conversations/{conversation_id}/messages": {
      "post": {
        "tags": [
          "Converse"
        ],
        "summary": "Ask",
        "description": "Asks a question and returns every answer with the evidence it cites.\n\nIn a group, each agent answers separately, from its own evidence and in its own voice. The API returns the answers side by side and never averages them.\n\nA group takes as long to answer as all its agents put together. If that is too long to wait for one response, call `messages:stream` instead.",
        "operationId": "ask_v1_conversations__conversation_id__messages_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "idempotency-key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "description": "Makes a retry safe: the same key and question in this conversation returns the first answer and charges nothing more.",
              "title": "Idempotency-Key"
            },
            "description": "Makes a retry safe: the same key and question in this conversation returns the first answer and charges nothing more."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 34,
        "x-cli-name": "ask"
      },
      "get": {
        "tags": [
          "Converse"
        ],
        "summary": "List messages",
        "description": "Returns the transcript in `position` order: the first `limit` messages after position `after`. The API only adds messages.\n\nTo read a transcript longer than `limit`, call again with `after` set to the last position you got, until a page comes back shorter than `limit`.\n\nIn a group, the agent messages that follow a question are the answers to it. `agent_id` says which agent gave each one.",
        "operationId": "list_messages_v1_conversations__conversation_id__messages_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "After"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageResponse"
                  },
                  "title": "Response List Messages V1 Conversations  Conversation Id  Messages Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 33,
        "x-cli-name": "list-messages"
      }
    },
    "/v1/conversations/{conversation_id}/messages:stream": {
      "post": {
        "tags": [
          "Converse"
        ],
        "summary": "Ask, and get each answer as it is written",
        "description": "Asks a question, like `POST /messages`, and returns the answers as server-sent events.\n\nA group's agents answer one after another, so the plain call waits for all of them. This call sends the question back at once, then sends each answer as soon as it is ready.\n\nThe text arrives in `delta` events while an agent writes. Citations arrive only in the `answer` event, after the API checks them against the agent's evidence. Keep the `answer` event and use the deltas only for display.\n\nThe events come in this order:\n\n1. One `question` event.\n2. For each agent, in roster order: any number of `looking` events when the agent looks something up (with `where`), then `delta` events (with the agent's `index`), then one `answer` event.\n3. One `done` event with the turn's total.\n\nIf something fails after the first answer, the API sends an `error` event. It can't change the HTTP status at that point, because it has already sent it.",
        "operationId": "ask_streaming_v1_conversations__conversation_id__messages_stream_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "idempotency-key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              },
              "text/event-stream": {}
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 96,
        "x-cli-name": "ask-streaming"
      }
    },
    "/v1/threads": {
      "post": {
        "tags": [
          "Threads"
        ],
        "summary": "Create a thread",
        "description": "Creates an empty thread in a workspace. Send `workspace_id`, a `title` and an `idempotency_key` of your own: sending the same key again returns the same thread instead of a second one.\n\nYou rarely need this call first. A run started without a `thread_id` opens a thread of its own, named after the workflow.",
        "operationId": "create_thread_v1_threads_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateThreadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadView"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 201,
        "x-cli-name": "create-thread"
      },
      "get": {
        "tags": [
          "Threads"
        ],
        "summary": "List threads",
        "description": "Lists the threads in a workspace that you can see, most recently changed first. An archived thread is left out.\n\nSend `workspace_id`. To find the threads that ran one workflow, add `workflow_id`; to search titles, add `q`. For the next page, send the last row's `updated_at` and `thread_id` as `before_updated_at` and `before_id`.",
        "operationId": "list_threads_v1_threads_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Workspace Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "work",
                    "chats",
                    "earlier",
                    "shared"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Mine"
            }
          },
          {
            "name": "workflow_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Workflow Id"
            }
          },
          {
            "name": "before_updated_at",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before Updated At"
            }
          },
          {
            "name": "before_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ThreadView"
                  },
                  "title": "Response List Threads V1 Threads Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 202,
        "x-cli-name": "list-threads"
      }
    },
    "/v1/threads/{thread_id}": {
      "get": {
        "tags": [
          "Threads"
        ],
        "summary": "Get a thread",
        "description": "Returns one thread with what is in it: its `runs` and `conversations`, each with its id, in order.\n\n`archived_at` is set when the thread is archived.",
        "operationId": "get_thread_v1_threads__thread_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Thread Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadDetailView"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 203,
        "x-cli-name": "get-thread"
      },
      "patch": {
        "tags": [
          "Threads"
        ],
        "summary": "Rename a thread",
        "description": "Renames a thread. Send the new `title`.",
        "operationId": "rename_thread_v1_threads__thread_id__patch",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Thread Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameThreadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadView"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 293,
        "x-cli-name": "rename-thread"
      }
    },
    "/v1/threads/{thread_id}:archive": {
      "post": {
        "tags": [
          "Threads"
        ],
        "summary": "Archive a thread",
        "description": "Archives a thread: it leaves the thread list, and its runs and conversations are kept. This is how you delete a thread; there is no other delete.\n\n`archived_at` says when it was archived. `status` stays `active`, so read `archived_at` to tell. Restore it with `:restore`.",
        "operationId": "archive_thread_v1_threads__thread_id__archive_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Thread Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadView"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 327,
        "x-cli-name": "archive-thread"
      }
    },
    "/v1/threads/{thread_id}:restore": {
      "post": {
        "tags": [
          "Threads"
        ],
        "summary": "Restore a thread",
        "description": "Brings an archived thread back into the thread list, with everything in it.",
        "operationId": "restore_thread_v1_threads__thread_id__restore_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Thread Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadView"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 328,
        "x-cli-name": "restore-thread"
      }
    },
    "/v1/workflows": {
      "get": {
        "tags": [
          "Workflows"
        ],
        "summary": "List workflows",
        "description": "Lists the workflows you can run in a workspace. Send `workspace_id`. For the next page, send `next_cursor` as `cursor` while `has_more` is true.\n\nBy default the list holds your organization's own workflows. Whiteboxx's are listed with `origin=whiteboxx`, and both with `origin=all`. Whiteboxx provides Chat, Group conversation, Focus group, five Brainstorms (Six hats, Five whys, Fishbone, SCAMPER, Round robin), Creative evaluation, Creative variation and Survey.\n\nEach row's `run_form` says how many agents a run takes (`least` to `most`), whether it needs files (`files`) and whether it reads a previous run (`earlier_run`). `input_spec.question_sets` lists the question sets you can choose from, by `key`. `agent_spec.slots` lists the parts a run fills in `agents_by_role`: each slot's `role`, how many agents it takes (`min` to `max`), and `operator: true` when the part is an execution agent, such as Creative evaluation's `reader`. Chat is not run here: talk to one agent with `POST /v1/conversations`.",
        "operationId": "list_workflows_v1_workflows_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The workspace whose workflows to list, from `GET /v1/workspaces`.",
              "title": "Workspace Id"
            },
            "description": "The workspace whose workflows to list, from `GET /v1/workspaces`."
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^(solo|group)$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`solo` for workflows with one agent, `group` for several. Absent, both.",
              "title": "Mode"
            },
            "description": "`solo` for workflows with one agent, `group` for several. Absent, both."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^(guide|survey)$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`guide` for a transcript, `survey` for weighted results. Absent, both.",
              "title": "Kind"
            },
            "description": "`guide` for a transcript, `survey` for weighted results. Absent, both."
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(user|whiteboxx|all)$",
              "description": "`whiteboxx` for the workflows Whiteboxx provides, `user` (the default) for your organization's own, `all` for both.",
              "default": "user",
              "title": "Origin"
            },
            "description": "`whiteboxx` for the workflows Whiteboxx provides, `user` (the default) for your organization's own, `all` for both."
          },
          {
            "name": "drafts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include drafts, which cannot run yet. Absent, left out.",
              "default": false,
              "title": "Drafts"
            },
            "description": "Include drafts, which cannot run yet. Absent, left out."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`next_cursor` from the page before, for the next page.",
              "title": "Cursor"
            },
            "description": "`next_cursor` from the page before, for the next page."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "description": "How many to return on a page.",
              "default": 50,
              "title": "Limit"
            },
            "description": "How many to return on a page."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_WorkflowResponse_"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 58,
        "x-cli-name": "list-workflows"
      }
    },
    "/v1/workflows/{workflow_id}": {
      "get": {
        "tags": [
          "Workflows"
        ],
        "summary": "Get a workflow",
        "description": "Returns one workflow: its questions or question sets, its `run_form` and its `input_spec`, which together say what a run of it needs.",
        "operationId": "get_workflow_v1_workflows__workflow_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 60,
        "x-cli-name": "get-workflow"
      }
    },
    "/v1/assets": {
      "get": {
        "tags": [
          "Run inputs"
        ],
        "summary": "List files",
        "description": "Lists the files in a workspace that a run can show, newest first: images, PDFs, pages and ad copy already uploaded. Send `workspace_id`. `kind` keeps one type (`image`, `pdf`, `text`, `document`, `video`, `audio` or `ad_copy`), and `q` keeps the files whose name holds it. `limit` is 50 unless you send another, up to 100.\n\nThe answer is a list, with no `data` wrapper. A removed file is left out. Send a file's `asset_id` in a run's `asset_ids` to show it again, without uploading it a second time.",
        "operationId": "list_assets_v1_assets_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The workspace whose files to list, from `GET /v1/workspaces`.",
              "title": "Workspace Id"
            },
            "description": "The workspace whose files to list, from `GET /v1/workspaces`."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^(page|image|pdf|text|document|video|audio|ad_copy)$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only creatives of this kind. `page` is a landing page captured from its address; `image` is every other picture. Absent, every kind.",
              "title": "Kind"
            },
            "description": "Only creatives of this kind. `page` is a landing page captured from its address; `image` is every other picture. Absent, every kind."
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only files whose name holds these words, case aside.",
              "title": "Q"
            },
            "description": "Only files whose name holds these words, case aside."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "How many to return, newest first.",
              "default": 50,
              "title": "Limit"
            },
            "description": "How many to return, newest first."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssetResponse"
                  },
                  "title": "Response List Assets V1 Assets Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 106,
        "x-cli-name": "list-assets"
      },
      "post": {
        "tags": [
          "Run inputs"
        ],
        "summary": "Upload a file",
        "description": "Uploads a file to show agents on a run: an image of an ad, a landing page, packaging. Send it as `multipart/form-data` with `workspace_id`, `name` and `file`.\n\nKeep the `asset_id` and send it in a run's `asset_ids`. Creative evaluation judges the files it is given.",
        "operationId": "upload_asset_v1_assets_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_asset_v1_assets_post"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 105,
        "x-cli-name": "upload-asset"
      }
    },
    "/v1/assets/{asset_id}": {
      "get": {
        "tags": [
          "Run inputs"
        ],
        "summary": "Get a file",
        "description": "Returns one file: its name, kind, size, checksum and the workspace it is in.",
        "operationId": "get_asset_v1_assets__asset_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Asset Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 107,
        "x-cli-name": "get-asset"
      }
    },
    "/v1/assets/{asset_id}:archive": {
      "post": {
        "tags": [
          "Run inputs"
        ],
        "summary": "Remove a file",
        "description": "Removes a file from the workspace, so it is no longer listed or offered to a run. Nothing is deleted: a run that showed it still opens it. Removing a file twice is not an error.",
        "operationId": "archive_asset_v1_assets__asset_id__archive_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Asset Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 407,
        "x-cli-name": "archive-asset"
      }
    },
    "/v1/creative-catalog": {
      "get": {
        "tags": [
          "Run inputs"
        ],
        "summary": "Read the creative catalog",
        "description": "Returns what a creative evaluation can judge, for one `creative_type` (`image_ad`, `landing_page`, `packaging`, `ad_copy`, `video_ad` or `written_content`).\n\n`objectives` are what the work can be for, such as `awareness` or `conversion`, each with the parameters it is judged on and their weights. Send an objective's `key` as a run's `objective`, and the run uses those parameters.",
        "operationId": "read_creative_catalog_v1_creative_catalog_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "creative_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^(image_ad|landing_page|packaging|ad_copy|video_ad|written_content|custom)$",
              "description": "What the creatives are, as a run's `creative_type` names it.",
              "title": "Creative Type"
            },
            "description": "What the creatives are, as a run's `creative_type` names it."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreativeCatalogResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 405,
        "x-cli-name": "read-creative-catalog"
      }
    },
    "/v1/panels": {
      "get": {
        "tags": [
          "Run inputs"
        ],
        "summary": "List panels",
        "description": "Lists the panels in a workspace. Send `workspace_id`.\n\nA panel is the people a survey asks, weighted to a population. Send a panel's `panel_id` when you run Survey. This reference does not cover making a panel; make one in the app.",
        "operationId": "list_panels_v1_panels_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workspace Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PanelResponse"
                  },
                  "title": "Response List Panels V1 Panels Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 185,
        "x-cli-name": "list-panels"
      }
    },
    "/v1/panels/{panel_id}": {
      "get": {
        "tags": [
          "Run inputs"
        ],
        "summary": "Get a panel",
        "operationId": "get_panel_v1_panels__panel_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "panel_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Panel Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanelResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 186,
        "x-cli-name": "get-panel",
        "description": "Returns one panel: its objective, the groups of people in it and the share of the population each one stands for."
      }
    },
    "/v1/workflows/{workflow_id}/runs": {
      "post": {
        "tags": [
          "Run a workflow"
        ],
        "summary": "Plan or start a run",
        "description": "Plans or starts a run of a workflow.\n\n**Plan first.** With `start` left out or `false`, nothing is asked and nothing is charged. The answer says how many questions go to how many agents (`questions_planned`, `seats`) and the credits it is expected to cost (`expected_cost_units`). The quote is the least a run costs: when work written for the run costs more, `cost_says` says by how much and why. If a required input is missing, the call is refused with a `reason` naming it and a `remedy`.\n\n**Then start.** Send the same body with `start: true` and an `Idempotency-Key` header of your own. Sending it again with the same key returns the same run instead of starting a second one. The answer carries the `workflow_run_id` and the `thread_id` the run went into. Read the run with `GET /v1/workflow-runs/{run_id}` until its `status` is `succeeded`, `partial`, `failed` or `canceled`.\n\nWhat each of Whiteboxx's workflows needs, besides `workspace_id`:\n\n- **Group conversation:** `agent_ids` and your own `questions`.\n- **Focus group** and each **Brainstorm:** `agent_ids` and a `question_set` key from the workflow's `input_spec.question_sets`, or your own `questions`.\n- **Creative evaluation:** the files in `asset_ids` (list the workspace's files with `GET /v1/assets`), a `creative_type`, an `objective` key from `GET /v1/creative-catalog`, and `agents_by_role` with one `reader` (an execution agent whose `roles` include `reader`) and the agents `asked`. A run without a usable reader is refused with `reader_required`, and the refusal's `choices` lists the readers you can send.\n- **Creative variation:** the evaluation run in `earlier_run_ids` and its `thread_id`, `variation` saying which creative to vary (`C1` is the evaluation's first) and which of its card's changes to make (the evaluation's `creative_cards` output lists each card's `changes`, numbered from 1), and `agents_by_role` with an `art_director`.\n- **Survey:** a `panel_id` and a `brief`. Your own `questions` each need a `kind`.\n\nA part played by one agent, such as `reader` or `art_director`, takes one id, alone or as a list of one.\n\nWhat a run has spent so far is its `cost_units`. Reading a run returns what it was given in `inputs`.",
        "operationId": "run_workflow_v1_workflows__workflow_id__runs_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 160
                },
                {
                  "type": "null"
                }
              ],
              "description": "Required to start a run. A start sent again with the same key returns the first run instead of starting and charging a second.",
              "title": "Idempotency-Key"
            },
            "description": "Required to start a run. A start sent again with the same key returns the first run instead of starting and charging a second."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRunResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 100,
        "x-cli-name": "run-workflow"
      },
      "get": {
        "tags": [
          "Run a workflow"
        ],
        "summary": "List a workflow's runs",
        "description": "Lists the runs of one workflow that you can see, newest first.",
        "operationId": "list_workflow_runs_v1_workflows__workflow_id__runs_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowRunResponse"
                  },
                  "title": "Response List Workflow Runs V1 Workflows  Workflow Id  Runs Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 101,
        "x-cli-name": "list-workflow-runs"
      }
    },
    "/v1/workflow-runs/{run_id}": {
      "get": {
        "tags": [
          "Run a workflow"
        ],
        "summary": "Get a run",
        "description": "Returns a run as it is now. `status` goes from `queued` to `running`, then ends `succeeded`, `partial`, `failed` or `canceled`. A `partial` run finished with some answers missing: `answers_failed` counts them, and `error_reason` says why.\n\n`questions_asked` against `questions_planned` shows how far it has got, and `cost_units` the credits spent so far. When the charge differs from the quote, `cost_says` explains it. When it ends, `outputs` lists what it made.\n\n`inputs` is what the run was given: the fields of the request that started it, such as its `asset_ids`, `agents_by_role` and `objective`. Send them again to run it the same way.",
        "operationId": "get_workflow_run_v1_workflow_runs__run_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Run Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRunResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 279,
        "x-cli-name": "get-workflow-run"
      }
    },
    "/v1/workflow-runs/{run_id}:cancel": {
      "post": {
        "tags": [
          "Run a workflow"
        ],
        "summary": "Cancel a run",
        "description": "Stops a run that has not finished. A question already being answered finishes its answer; nothing after it is asked. The answers given so far are kept, and the run ends `canceled`.\n\nA run that has already ended answers `409` with `run_already_ended`.",
        "operationId": "cancel_workflow_run_v1_workflow_runs__run_id__cancel_post",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Run Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRunResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 280,
        "x-cli-name": "cancel-workflow-run"
      }
    },
    "/v1/workflow-runs/{run_id}/outputs": {
      "get": {
        "tags": [
          "Run results"
        ],
        "summary": "List a run's outputs",
        "description": "Lists what a run made, each with its `kind`, its `status` and its `body`.\n\nFor a focus group, brainstorm or group conversation, the run's `conversation_id` names the conversation that holds every answer: read it with `GET /v1/conversations/{conversation_id}/messages`, or export it whole. A creative evaluation adds a `creative_cards` output: a card for each creative, with its grade and the changes it suggests.",
        "operationId": "list_run_outputs_v1_workflow_runs__run_id__outputs_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Run Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RunOutputResponse"
                  },
                  "title": "Response List Run Outputs V1 Workflow Runs  Run Id  Outputs Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 290,
        "x-cli-name": "list-run-outputs"
      }
    },
    "/v1/workflow-runs/{run_id}/outputs/{output_id}": {
      "get": {
        "tags": [
          "Run results"
        ],
        "summary": "Get an output",
        "operationId": "get_run_output_v1_workflow_runs__run_id__outputs__output_id__get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Run Id"
            }
          },
          {
            "name": "output_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Output Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunOutputResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 291,
        "x-cli-name": "get-run-output",
        "description": "Returns one output of a run, with its full `body`."
      }
    },
    "/v1/workflows/{workflow_id}/runs/{run_id}/transcript": {
      "get": {
        "tags": [
          "Run results"
        ],
        "summary": "Export a transcript",
        "description": "Exports a run's transcript as one JSON document: each question, and each agent's answer to it with the evidence it cites.",
        "operationId": "export_transcript_v1_workflows__workflow_id__runs__run_id__transcript_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          },
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Run Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Export Transcript V1 Workflows  Workflow Id  Runs  Run Id  Transcript Get"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 102,
        "x-cli-name": "export-transcript"
      }
    },
    "/v1/interactions/{interaction_id}/waves/{wave}/results": {
      "get": {
        "tags": [
          "Run results"
        ],
        "summary": "Read a survey's results",
        "description": "Returns a survey's results: for each question, the share of the population that gave each answer, weighted to the panel.\n\nA survey run's `interaction_id` and `wave` come back on the run. `n_eff` is the effective number of answers after weighting. Below 30, a question's `status` is `below_floor` and its shares come without a margin of error; `below_floor_reason` says so.",
        "operationId": "read_results_v1_interactions__interaction_id__waves__wave__results_get",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "interaction_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Interaction Id"
            }
          },
          {
            "name": "wave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wave"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the key is not valid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "404": {
            "description": "Not found, or not in your reach",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "409": {
            "description": "Not possible in its current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Refused as asked, or the request did not validate",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/RefusalEnvelope"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-api-number": 179,
        "x-cli-name": "read-results"
      }
    }
  },
  "components": {
    "schemas": {
      "AgentCharge": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "credits": {
            "type": "integer",
            "title": "Credits"
          },
          "note": {
            "type": "string",
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "credits",
          "note"
        ],
        "title": "AgentCharge",
        "description": "One agent's line on the ledger."
      },
      "AgentLink": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "name"
        ],
        "title": "AgentLink",
        "description": "Another agent, named the way its page names it."
      },
      "AgentListItem": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "your_thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Your Thread Id"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "description": "`human_agent` for a person, `execution_agent` for an execution agent, `respondent` for a swarm seat. An older spelling reads as the kind it always was."
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocked Reason"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "market": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Market"
          },
          "roles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Roles"
          },
          "parent_agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Agent Id"
          },
          "persona_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Name"
          },
          "persona_age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Age"
          },
          "persona_place": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Place"
          },
          "role": {
            "type": "string",
            "title": "Role",
            "default": ""
          },
          "persona_work": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Work"
          },
          "traits": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Traits"
          },
          "picture_asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Picture Asset Id"
          },
          "threads": {
            "type": "integer",
            "title": "Threads",
            "default": 0
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "signal_count": {
            "type": "integer",
            "title": "Signal Count"
          },
          "citable_count": {
            "type": "integer",
            "title": "Citable Count"
          },
          "evidence_age": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Age"
          },
          "probe_results": {
            "additionalProperties": true,
            "type": "object",
            "title": "Probe Results"
          },
          "knowledge_by_source": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Knowledge By Source"
          },
          "source_insight_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Insight Id"
          },
          "source_insight_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Source Insight Ids"
          },
          "studies_running": {
            "type": "boolean",
            "title": "Studies Running",
            "default": false
          },
          "ready_to_build": {
            "type": "boolean",
            "title": "Ready To Build",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "public_id",
          "kind",
          "name",
          "status",
          "blocked_reason",
          "workspace_id",
          "created_at",
          "market",
          "signal_count",
          "citable_count",
          "evidence_age",
          "probe_results",
          "knowledge_by_source",
          "source_insight_id",
          "source_insight_ids"
        ],
        "title": "AgentListItem",
        "description": "One agent as a *row*, not as a page.\n\n`AgentResponse` answers \"show me this agent\" and carries what that screen\nneeds: the persona, the compiled card, the trace manifest. A list asked for\nthe same thing and got it per row — on one agent the manifest alone was 18KB\nof a 26KB response, and a workspace of fifty would have shipped well over a\nmegabyte to draw a table of names and statuses.\n\nSo this is the deliberate subset: every field some list actually reads, and\nnothing else. What a row does not show belongs behind\n`GET /v1/agents/{agent_id}`, which is one request away and is where a person\ngoes when they want the detail.\n\n`created_by` is absent for a second reason. It resolves through a lazy\nrelationship, so including it made the list one query per row."
      },
      "AgentResponse": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "description": "`human_agent` for a person, `execution_agent` for an execution agent, `respondent` for a swarm seat. An older spelling reads as the kind it always was."
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "persona_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Name"
          },
          "your_thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Your Thread Id"
          },
          "picture_asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Picture Asset Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocked Reason"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "source_insight_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Insight Id"
          },
          "evidence_digest": {
            "type": "string",
            "title": "Evidence Digest"
          },
          "signal_count": {
            "type": "integer",
            "title": "Signal Count"
          },
          "persona_card": {
            "additionalProperties": true,
            "type": "object",
            "title": "Persona Card"
          },
          "persona": {
            "additionalProperties": true,
            "type": "object",
            "title": "Persona"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "probe_results": {
            "additionalProperties": true,
            "type": "object",
            "title": "Probe Results"
          },
          "trace_manifest": {
            "additionalProperties": true,
            "type": "object",
            "title": "Trace Manifest"
          },
          "mindset": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Mindset"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "market": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Market"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "role": {
            "type": "string",
            "title": "Role",
            "default": ""
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": ""
          },
          "dials": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Dials",
            "default": []
          },
          "instructions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions"
          },
          "instruction_gate": {
            "additionalProperties": true,
            "type": "object",
            "title": "Instruction Gate"
          },
          "source_insight_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Source Insight Ids"
          },
          "knowledge_by_source": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Knowledge By Source"
          },
          "citable_count": {
            "type": "integer",
            "title": "Citable Count"
          },
          "claimable": {
            "additionalProperties": true,
            "type": "object",
            "title": "Claimable"
          },
          "latest_probe": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latest Probe"
          },
          "evidence_age": {
            "additionalProperties": true,
            "type": "object",
            "title": "Evidence Age"
          },
          "run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Run Id"
          },
          "brief": {
            "additionalProperties": true,
            "type": "object",
            "title": "Brief"
          },
          "source_plan": {
            "additionalProperties": true,
            "type": "object",
            "title": "Source Plan"
          },
          "dropped_studies": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Dropped Studies"
          },
          "evidence_audit": {
            "additionalProperties": true,
            "type": "object",
            "title": "Evidence Audit"
          },
          "profile_card": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileCard"
              },
              {
                "type": "null"
              }
            ]
          },
          "profile_card_state": {
            "type": "string",
            "enum": [
              "ready",
              "missing",
              "none"
            ],
            "title": "Profile Card State",
            "default": "none"
          },
          "operator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperatorView"
              },
              {
                "type": "null"
              }
            ]
          },
          "remixed_from": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentLink"
              },
              {
                "type": "null"
              }
            ]
          },
          "remix_instruction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remix Instruction"
          },
          "twins": {
            "items": {
              "$ref": "#/components/schemas/AgentLink"
            },
            "type": "array",
            "title": "Twins"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "public_id",
          "kind",
          "name",
          "status",
          "blocked_reason",
          "workspace_id",
          "source_insight_id",
          "evidence_digest",
          "signal_count",
          "persona_card",
          "persona",
          "created_at",
          "created_by",
          "probe_results",
          "trace_manifest",
          "mindset",
          "instructions",
          "instruction_gate",
          "source_insight_ids",
          "knowledge_by_source",
          "citable_count",
          "evidence_age"
        ],
        "title": "AgentResponse"
      },
      "AnswerLanguageOption": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "label": {
            "type": "string",
            "title": "Label"
          }
        },
        "type": "object",
        "required": [
          "code",
          "label"
        ],
        "title": "AnswerLanguageOption"
      },
      "app__api__v1__conversations__ParticipantResponse": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "agent_public_id": {
            "type": "string",
            "title": "Agent Public Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "persona_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Name"
          },
          "picture_asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Picture Asset Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "posture": {
            "type": "string",
            "title": "Posture",
            "default": "standard"
          },
          "hears": {
            "type": "string",
            "title": "Hears",
            "default": "private"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "agent_public_id",
          "name",
          "position",
          "label"
        ],
        "title": "ParticipantResponse"
      },
      "app__api__v1__workflows__ParticipantResponse": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "agent_public_id": {
            "type": "string",
            "title": "Agent Public Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "addressable": {
            "type": "boolean",
            "title": "Addressable"
          },
          "posture": {
            "type": "string",
            "title": "Posture",
            "default": "standard"
          },
          "hears": {
            "type": "string",
            "title": "Hears",
            "default": "private"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "agent_public_id",
          "name",
          "position",
          "label",
          "status",
          "addressable"
        ],
        "title": "ParticipantResponse"
      },
      "AskRequest": {
        "properties": {
          "question": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 2,
            "title": "Question",
            "description": "What to ask."
          },
          "answering": {
            "type": "string",
            "pattern": "^(private|open)$",
            "title": "Answering",
            "description": "In a group, `private` has each agent answer without seeing the others, and `open` lets each agent read what the group has already said first. Default `private`.",
            "default": "private"
          },
          "asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asset Id",
            "description": "One asset to show the agents. It goes before `asset_ids`."
          },
          "asset_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Asset Ids",
            "description": "Assets to show the agents, such as images or documents. What an agent says about them is description, not evidence, and is never cited."
          },
          "mode": {
            "type": "string",
            "pattern": "^(deterministic|model)$",
            "title": "Mode",
            "description": "Ignored. Still accepted so an older client is not refused.",
            "default": "model",
            "deprecated": true
          },
          "agent_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Ids",
            "description": "In a group, ask only these agents. Without it, all answer."
          },
          "posture": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Posture",
            "description": "How the agents asked talk from this question on: one of `standard`, `reflection`, `storytelling`, `skeptical_reviewer`, `executive_briefing`. Without it, each keeps its own."
          }
        },
        "type": "object",
        "required": [
          "question"
        ],
        "title": "AskRequest"
      },
      "AskResponse": {
        "properties": {
          "conversation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Conversation Id"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "question": {
            "$ref": "#/components/schemas/MessageResponse"
          },
          "answers": {
            "items": {
              "$ref": "#/components/schemas/MessageResponse"
            },
            "type": "array",
            "title": "Answers"
          },
          "answer": {
            "$ref": "#/components/schemas/MessageResponse"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units"
          },
          "charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionCharge"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "conversation_id",
          "mode",
          "question",
          "answers",
          "answer",
          "cost_units"
        ],
        "title": "AskResponse"
      },
      "AssetResponse": {
        "properties": {
          "asset_id": {
            "type": "string",
            "format": "uuid",
            "title": "Asset Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "byte_size": {
            "type": "integer",
            "title": "Byte Size"
          },
          "checksum_sha256": {
            "type": "string",
            "title": "Checksum Sha256"
          },
          "caption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caption"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "origin": {
            "type": "string",
            "title": "Origin",
            "default": "uploaded"
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "part_of_asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Part Of Asset Id"
          },
          "evidence_note": {
            "type": "string",
            "title": "Evidence Note",
            "default": "An agent may only cite its ledger, and this is not in it. Anything said about this asset is description, not evidence: it carries no references and may not be quoted as a finding."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "name",
          "kind",
          "content_type",
          "byte_size",
          "checksum_sha256",
          "caption",
          "workspace_id",
          "created_at"
        ],
        "title": "AssetResponse"
      },
      "Body_upload_asset_v1_assets_post": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "caption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caption"
          },
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "name",
          "file"
        ],
        "title": "Body_upload_asset_v1_assets_post"
      },
      "BoxEvidence": {
        "properties": {
          "evidence": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Evidence"
          },
          "kept": {
            "type": "integer",
            "title": "Kept"
          },
          "left": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Left"
          }
        },
        "type": "object",
        "required": [
          "evidence",
          "kept",
          "left"
        ],
        "title": "BoxEvidence",
        "description": "What one box's people were written from."
      },
      "CatalogObjectiveParameter": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "weight": {
            "type": "integer",
            "title": "Weight"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "weight"
        ],
        "title": "CatalogObjectiveParameter"
      },
      "CatalogObjectiveView": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "subtitle": {
            "type": "string",
            "title": "Subtitle"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "parameters": {
            "items": {
              "$ref": "#/components/schemas/CatalogObjectiveParameter"
            },
            "type": "array",
            "title": "Parameters"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "subtitle",
          "description",
          "parameters"
        ],
        "title": "CatalogObjectiveView"
      },
      "CatalogParameterView": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "description"
        ],
        "title": "CatalogParameterView"
      },
      "ConversationResponse": {
        "properties": {
          "posture_revision": {
            "type": "integer",
            "title": "Posture Revision",
            "default": 0
          },
          "conversation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Conversation Id"
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id"
          },
          "agent_public_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Public Id"
          },
          "workflow_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Id"
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "participants": {
            "items": {
              "$ref": "#/components/schemas/app__api__v1__conversations__ParticipantResponse"
            },
            "type": "array",
            "title": "Participants"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "message_count": {
            "type": "integer",
            "title": "Message Count",
            "default": 0
          },
          "questions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Questions"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "created_by_account_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Account Id"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "shared_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shared At"
          },
          "access": {
            "type": "string",
            "title": "Access",
            "default": "owner"
          },
          "reading": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "verdict",
                  "analysis"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reading"
          }
        },
        "type": "object",
        "required": [
          "conversation_id",
          "agent_id",
          "agent_public_id",
          "workflow_id",
          "mode",
          "participants",
          "title",
          "status"
        ],
        "title": "ConversationResponse"
      },
      "CreateConversationRequest": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id",
            "description": "The workspace the agents are in."
          },
          "workflow_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Id",
            "description": "Open from a saved workflow. Its agents and mode are copied in, and `agent_ids` replaces its agents. With Group conversation's id, it opens a chat with two or more `agent_ids` as a run of Group conversation."
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id",
            "description": "One agent, for a chat with that agent alone."
          },
          "agent_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Ids",
            "description": "Several agents, for a group of up to 12. Their answers come back in this order."
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 240
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "A name for the conversation."
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id",
            "description": "The thread to file it in. Without one, a new thread is opened that holds only this conversation."
          },
          "posture": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Posture",
            "description": "How the agents talk: one of `standard`, `reflection`, `storytelling`, `skeptical_reviewer`, `executive_briefing`. Default `standard`."
          }
        },
        "type": "object",
        "required": [
          "workspace_id"
        ],
        "title": "CreateConversationRequest"
      },
      "CreateThreadRequest": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "title": {
            "type": "string",
            "maxLength": 240,
            "minLength": 1,
            "title": "Title"
          },
          "idempotency_key": {
            "type": "string",
            "maxLength": 160,
            "minLength": 1,
            "title": "Idempotency Key"
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "title",
          "idempotency_key"
        ],
        "title": "CreateThreadRequest"
      },
      "CreativeCatalogResponse": {
        "properties": {
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "creative_type": {
            "type": "string",
            "title": "Creative Type"
          },
          "objectives": {
            "items": {
              "$ref": "#/components/schemas/CatalogObjectiveView"
            },
            "type": "array",
            "title": "Objectives"
          },
          "parameters": {
            "items": {
              "$ref": "#/components/schemas/CatalogParameterView"
            },
            "type": "array",
            "title": "Parameters"
          }
        },
        "type": "object",
        "required": [
          "version",
          "creative_type",
          "objectives",
          "parameters"
        ],
        "title": "CreativeCatalogResponse"
      },
      "DocumentCheck": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "needs": {
            "items": {
              "$ref": "#/components/schemas/NeedState"
            },
            "type": "array",
            "title": "Needs"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "will_do": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Will Do"
          }
        },
        "type": "object",
        "required": [
          "ok",
          "needs",
          "reasons",
          "will_do"
        ],
        "title": "DocumentCheck"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "MergedGroup": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "share": {
            "type": "number",
            "title": "Share"
          }
        },
        "type": "object",
        "required": [
          "label",
          "share"
        ],
        "title": "MergedGroup",
        "description": "A group too small to keep as its own, counted in another (`Split.merged_into`)."
      },
      "MessageResponse": {
        "properties": {
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "role": {
            "type": "string",
            "title": "Role"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "answering": {
            "type": "string",
            "title": "Answering",
            "default": "private"
          },
          "saw_messages": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Saw Messages"
          },
          "posture": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Posture"
          },
          "hears": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hears"
          },
          "describes_asset": {
            "type": "boolean",
            "title": "Describes Asset",
            "default": false
          },
          "asset_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Asset Ids"
          },
          "evidence_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Note"
          },
          "asked_by_agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked By Agent Id"
          },
          "asked_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked By Name"
          },
          "asked_why": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked Why"
          },
          "operator_sources": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Operator Sources"
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id"
          },
          "agent_public_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Public Id"
          },
          "agent_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Name"
          },
          "persona_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Name"
          },
          "trace_refs": {
            "items": {
              "$ref": "#/components/schemas/MessageTraceRef"
            },
            "type": "array",
            "title": "Trace Refs"
          },
          "unknowns": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Unknowns"
          },
          "evidence_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Score"
          },
          "generation_mode": {
            "type": "string",
            "title": "Generation Mode"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units"
          },
          "live_context": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Live Context"
          },
          "my_rating": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "up",
                  "down"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "My Rating"
          }
        },
        "type": "object",
        "required": [
          "position",
          "role",
          "content",
          "trace_refs",
          "unknowns",
          "generation_mode",
          "model",
          "cost_units"
        ],
        "title": "MessageResponse"
      },
      "MessageTraceRef": {
        "properties": {
          "ref": {
            "type": "string",
            "title": "Ref"
          },
          "row_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Row Key"
          },
          "card_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Key"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "default": ""
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "evidence"
          },
          "source_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Label"
          },
          "data_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Source"
          },
          "evidence_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Uri"
          },
          "checksum_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checksum Sha256"
          },
          "insight_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Insight Id"
          }
        },
        "type": "object",
        "required": [
          "ref"
        ],
        "title": "MessageTraceRef",
        "description": "One citation on a turn, as much of it as a transcript needs.\n\nTyped rather than passed through as a bare dict. The ledger writes this row\nwith its own key names — `evidence_checksum` — and the field was published\nas `dict[str, Any]`, so a reader had to guess the shape and nothing checked\nthe guess. The playground guessed `checksum_sha256`, got `undefined`, and\nthe whole conversation page went white on `.slice`.\n\nThe full row, with populations and shares, is at\n`/{id}/messages/{position}/evidence`. This is the identity of the citation:\nenough to show it, name it, and go and look it up."
      },
      "NeedState": {
        "properties": {
          "use_id": {
            "type": "string",
            "title": "Use Id"
          },
          "token": {
            "type": "string",
            "title": "Token"
          },
          "optional": {
            "type": "boolean",
            "title": "Optional"
          },
          "met": {
            "type": "boolean",
            "title": "Met"
          },
          "left_by": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Left By"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "use_id",
          "token",
          "optional",
          "met",
          "left_by",
          "reason"
        ],
        "title": "NeedState"
      },
      "OperatorDataTool": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "status"
        ],
        "title": "OperatorDataTool"
      },
      "OperatorGeneralTool": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "type": "string",
            "title": "Label"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label"
        ],
        "title": "OperatorGeneralTool"
      },
      "OperatorSkillFile": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          }
        },
        "type": "object",
        "required": [
          "name",
          "text",
          "sha256"
        ],
        "title": "OperatorSkillFile"
      },
      "OperatorSource": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "OperatorSource"
      },
      "OperatorView": {
        "properties": {
          "definition_key": {
            "type": "string",
            "title": "Definition Key"
          },
          "roles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Roles"
          },
          "version_number": {
            "type": "integer",
            "title": "Version Number"
          },
          "introduces_as": {
            "type": "string",
            "title": "Introduces As"
          },
          "instructions": {
            "type": "string",
            "title": "Instructions"
          },
          "skill_files": {
            "items": {
              "$ref": "#/components/schemas/OperatorSkillFile"
            },
            "type": "array",
            "title": "Skill Files"
          },
          "data_tools": {
            "items": {
              "$ref": "#/components/schemas/OperatorDataTool"
            },
            "type": "array",
            "title": "Data Tools"
          },
          "general_tools": {
            "items": {
              "$ref": "#/components/schemas/OperatorGeneralTool"
            },
            "type": "array",
            "title": "General Tools"
          },
          "output_formats": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Output Formats"
          },
          "drafted_from": {
            "items": {
              "$ref": "#/components/schemas/OperatorSource"
            },
            "type": "array",
            "title": "Drafted From"
          },
          "approved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved By"
          },
          "approved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved At"
          },
          "agent_class": {
            "type": "string",
            "enum": [
              "operator",
              "execution"
            ],
            "title": "Agent Class",
            "default": "operator"
          },
          "profile_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Key"
          },
          "management_scope": {
            "type": "string",
            "enum": [
              "platform",
              "workspace"
            ],
            "title": "Management Scope",
            "default": "platform"
          },
          "creation_contract": {
            "additionalProperties": true,
            "type": "object",
            "title": "Creation Contract"
          },
          "execution_manifest": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Manifest"
          }
        },
        "type": "object",
        "required": [
          "definition_key",
          "roles",
          "version_number",
          "introduces_as",
          "instructions",
          "skill_files",
          "data_tools",
          "general_tools",
          "output_formats",
          "drafted_from",
          "approved_by",
          "approved_at"
        ],
        "title": "OperatorView",
        "description": "What an execution agent carries: the approved version a member can read."
      },
      "OrganizationListItem": {
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid",
            "title": "Organization Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "organization_id",
          "name"
        ],
        "title": "OrganizationListItem"
      },
      "Page_AgentListItem_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/AgentListItem"
            },
            "type": "array",
            "title": "Data"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "data"
        ],
        "title": "Page[AgentListItem]"
      },
      "Page_WorkflowResponse_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/WorkflowResponse"
            },
            "type": "array",
            "title": "Data"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "data"
        ],
        "title": "Page[WorkflowResponse]"
      },
      "PanelDesign": {
        "properties": {
          "population_model": {
            "type": "string",
            "title": "Population Model"
          },
          "method": {
            "type": "string",
            "title": "Method"
          },
          "market": {
            "type": "string",
            "title": "Market"
          },
          "splits": {
            "items": {
              "$ref": "#/components/schemas/Split"
            },
            "type": "array",
            "title": "Splits"
          },
          "why_these_splits": {
            "type": "string",
            "title": "Why These Splits"
          },
          "selected_axes": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Selected Axes"
          },
          "boxes": {
            "items": {
              "$ref": "#/components/schemas/SwarmBox"
            },
            "type": "array",
            "title": "Boxes"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/SwarmAgent"
            },
            "type": "array",
            "title": "Agents"
          },
          "n_elicited": {
            "type": "integer",
            "title": "N Elicited"
          },
          "n_represented": {
            "type": "integer",
            "title": "N Represented"
          },
          "n_eff": {
            "type": "number",
            "title": "N Eff"
          },
          "complexity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Complexity Score"
          },
          "complexity_components": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Complexity Components"
          },
          "refused": {
            "items": {
              "$ref": "#/components/schemas/RefusedSplit"
            },
            "type": "array",
            "title": "Refused"
          }
        },
        "type": "object",
        "required": [
          "population_model",
          "method",
          "market",
          "splits",
          "why_these_splits",
          "selected_axes",
          "boxes",
          "agents",
          "n_elicited",
          "n_represented",
          "n_eff"
        ],
        "title": "PanelDesign",
        "description": "What a swarm is: its splits, its boxes, and how many people stand for how many rows."
      },
      "PanelResponse": {
        "properties": {
          "panel_id": {
            "type": "string",
            "format": "uuid",
            "title": "Panel Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "objective": {
            "type": "string",
            "title": "Objective"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "seed": {
            "type": "integer",
            "title": "Seed"
          },
          "target_panel_size": {
            "type": "integer",
            "title": "Target Panel Size"
          },
          "asked_cap": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked Cap"
          },
          "universe": {
            "type": "string",
            "title": "Universe"
          },
          "fingerprint": {
            "type": "string",
            "title": "Fingerprint"
          },
          "segments": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Segments"
          },
          "cells": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Cells"
          },
          "cell_source": {
            "additionalProperties": true,
            "type": "object",
            "title": "Cell Source"
          },
          "survey_count": {
            "type": "integer",
            "title": "Survey Count",
            "default": 0
          },
          "design": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PanelDesign"
              },
              {
                "type": "null"
              }
            ]
          },
          "people": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SwarmPeople"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "title": "Created At",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "panel_id",
          "name",
          "objective",
          "status",
          "seed",
          "target_panel_size",
          "asked_cap",
          "universe",
          "fingerprint",
          "segments",
          "cells",
          "cell_source"
        ],
        "title": "PanelResponse"
      },
      "ParameterWeight": {
        "properties": {
          "key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "weight": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1,
            "title": "Weight"
          },
          "question": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Question"
          }
        },
        "type": "object",
        "required": [
          "weight"
        ],
        "title": "ParameterWeight",
        "description": "A parameter a creative evaluation judges, and its weight.\n\nEither one of the catalog's, by `key`, or the person's own: a `name` and\na line saying what it `description` means. Never both. `question` is\nwhat this run asks for it, written by `creative:questions`; without one\nthe run asks the parameter's catalog questions."
      },
      "ProfileCard": {
        "properties": {
          "version": {
            "type": "integer",
            "const": 3,
            "title": "Version"
          },
          "digest": {
            "type": "string",
            "title": "Digest"
          },
          "written": {
            "$ref": "#/components/schemas/ProfileCardWritten"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/ProfileCardGroup"
            },
            "type": "array",
            "title": "Groups"
          },
          "interests": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileCardInterests"
              },
              {
                "type": "null"
              }
            ]
          },
          "quote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileCardQuote"
              },
              {
                "type": "null"
              }
            ]
          },
          "configuration": {
            "items": {
              "$ref": "#/components/schemas/ProfileCardDial"
            },
            "type": "array",
            "title": "Configuration"
          }
        },
        "type": "object",
        "required": [
          "version",
          "digest",
          "written",
          "groups",
          "interests",
          "quote",
          "configuration"
        ],
        "title": "ProfileCard",
        "description": "The persona card the agent's page draws, exactly as stored."
      },
      "ProfileCardDial": {
        "properties": {
          "dial": {
            "type": "string",
            "title": "Dial"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "word": {
            "type": "string",
            "enum": [
              "High",
              "Moderate",
              "Low"
            ],
            "title": "Word"
          },
          "sentence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sentence"
          }
        },
        "type": "object",
        "required": [
          "dial",
          "title",
          "icon",
          "word",
          "sentence"
        ],
        "title": "ProfileCardDial",
        "description": "A dial as the card shows it: a title, a glyph, a word and a sentence."
      },
      "ProfileCardGroup": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProfileCardItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "title",
          "items"
        ],
        "title": "ProfileCardGroup",
        "description": "A group of facts under a title in the person's pronoun."
      },
      "ProfileCardInterest": {
        "properties": {
          "index": {
            "type": "integer",
            "title": "Index"
          },
          "text": {
            "type": "string",
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "index",
          "text"
        ],
        "title": "ProfileCardInterest",
        "description": "One thing the person follows, as a chip."
      },
      "ProfileCardInterests": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProfileCardInterest"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "title",
          "items"
        ],
        "title": "ProfileCardInterests",
        "description": "What the person follows."
      },
      "ProfileCardItem": {
        "properties": {
          "cites": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Cites"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          }
        },
        "type": "object",
        "required": [
          "cites",
          "label",
          "text",
          "icon"
        ],
        "title": "ProfileCardItem",
        "description": "One fact on the persona card, phrased by the model."
      },
      "ProfileCardQuote": {
        "properties": {
          "indices": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Indices"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "of": {
            "type": "integer",
            "title": "Of"
          }
        },
        "type": "object",
        "required": [
          "indices",
          "text",
          "of"
        ],
        "title": "ProfileCardQuote",
        "description": "One or two of the person's own sentences, copied word for word."
      },
      "ProfileCardWritten": {
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "title": "At"
          },
          "by": {
            "type": "string",
            "enum": [
              "build",
              "first_view",
              "backfill"
            ],
            "title": "By"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "prompt_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Version"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units"
          },
          "dropped": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Dropped"
          }
        },
        "type": "object",
        "required": [
          "at",
          "by",
          "model",
          "prompt_version",
          "cost_units",
          "dropped"
        ],
        "title": "ProfileCardWritten",
        "description": "When, by what and by which model the card was written."
      },
      "QuestionCharge": {
        "properties": {
          "credits": {
            "type": "integer",
            "title": "Credits"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/AgentCharge"
            },
            "type": "array",
            "title": "Agents"
          }
        },
        "type": "object",
        "required": [
          "credits",
          "agents"
        ],
        "title": "QuestionCharge",
        "description": "What a question cost, read from the ledger.\n\nAn agent that never answered has no line here, and\n`unfinished_agent_names` on the turn names it."
      },
      "QuestionRequest": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 2,
            "title": "Text",
            "description": "The question, as the agents read it."
          },
          "topic": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(single_choice|yes_no|scale)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind",
            "description": "For a survey: `single_choice`, `yes_no` or `scale`. A survey question needs one. Other workflows ask in prose and ignore it."
          },
          "options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Options",
            "description": "The choices for a `single_choice` survey question, two or more."
          },
          "answering": {
            "type": "string",
            "pattern": "^(private|open)$",
            "title": "Answering",
            "description": "`private`: each agent answers without seeing the others. `open`: each agent answers after reading what the others said.",
            "default": "private"
          },
          "asset_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asset Id"
          },
          "asset_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Asset Ids"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "QuestionRequest"
      },
      "ReferenceAd": {
        "properties": {
          "asset_id": {
            "type": "string",
            "format": "uuid",
            "title": "Asset Id"
          },
          "group": {
            "type": "string",
            "pattern": "^(did_well|did_poorly)$",
            "title": "Group"
          },
          "impressions": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Impressions"
          },
          "clicks": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Clicks"
          },
          "spend": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Spend"
          },
          "reach": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Reach"
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "group"
        ],
        "title": "ReferenceAd",
        "description": "An ad that ran before, marked for how it did, with any numbers the\nperson has. The numbers are kept as entered; nothing measures them."
      },
      "Refusal": {
        "properties": {
          "reason": {
            "type": "string",
            "title": "Reason",
            "description": "A code for why, stable enough to branch on."
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail",
            "description": "What happened, in a sentence."
          },
          "remedy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remedy",
            "description": "What to do next."
          }
        },
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "Refusal"
      },
      "RefusalEnvelope": {
        "properties": {
          "detail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Refusal"
              },
              {
                "type": "string"
              }
            ],
            "title": "Detail"
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "RefusalEnvelope",
        "description": "What a refused request answers with.\n\n`detail` is a sentence rather than a `Refusal` on some older refusals."
      },
      "RefusedSplit": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "source_label": {
            "type": "string",
            "title": "Source Label"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "source",
          "source_label",
          "label",
          "reason"
        ],
        "title": "RefusedSplit",
        "description": "A card the agents measured that a representative swarm does not split by, and why."
      },
      "RenameThreadRequest": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 240,
            "minLength": 1,
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "RenameThreadRequest"
      },
      "ResultsResponse": {
        "properties": {
          "wave_id": {
            "type": "string",
            "format": "uuid",
            "title": "Wave Id"
          },
          "wave": {
            "type": "integer",
            "title": "Wave"
          },
          "questions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Questions"
          },
          "disclosure": {
            "additionalProperties": true,
            "type": "object",
            "title": "Disclosure"
          },
          "suppressed": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Suppressed"
          },
          "panel": {
            "additionalProperties": true,
            "type": "object",
            "title": "Panel"
          },
          "study": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Study"
          }
        },
        "type": "object",
        "required": [
          "wave_id",
          "wave",
          "questions",
          "disclosure",
          "suppressed",
          "panel"
        ],
        "title": "ResultsResponse"
      },
      "RunForm": {
        "properties": {
          "talk": {
            "type": "string",
            "title": "Talk"
          },
          "first": {
            "type": "string",
            "title": "First"
          },
          "screen": {
            "type": "string",
            "title": "Screen"
          },
          "solo": {
            "type": "boolean",
            "title": "Solo"
          },
          "least": {
            "type": "integer",
            "title": "Least"
          },
          "most": {
            "type": "integer",
            "title": "Most"
          },
          "files": {
            "type": "string",
            "title": "Files"
          },
          "earlier_run": {
            "type": "string",
            "title": "Earlier Run"
          },
          "topic": {
            "type": "boolean",
            "title": "Topic"
          },
          "questions": {
            "type": "integer",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "talk",
          "first",
          "screen",
          "solo",
          "least",
          "most",
          "files",
          "earlier_run",
          "topic",
          "questions"
        ],
        "title": "RunForm",
        "description": "What a run of this workflow asks, as its talk component says it."
      },
      "RunOutputResponse": {
        "properties": {
          "output_id": {
            "type": "string",
            "format": "uuid",
            "title": "Output Id"
          },
          "workflow_run_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workflow Run Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "schema_version": {
            "type": "string",
            "title": "Schema Version"
          },
          "body": {
            "additionalProperties": true,
            "type": "object",
            "title": "Body"
          },
          "checks": {
            "additionalProperties": true,
            "type": "object",
            "title": "Checks"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "output_id",
          "workflow_run_id",
          "kind",
          "status",
          "schema_version"
        ],
        "title": "RunOutputResponse"
      },
      "RunOutputSummary": {
        "properties": {
          "output_id": {
            "type": "string",
            "format": "uuid",
            "title": "Output Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "checks": {
            "additionalProperties": true,
            "type": "object",
            "title": "Checks"
          },
          "report_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report Id"
          },
          "answer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answer"
          }
        },
        "type": "object",
        "required": [
          "output_id",
          "kind",
          "status"
        ],
        "title": "RunOutputSummary"
      },
      "RunWorkflowRequest": {
        "properties": {
          "thread_budget_usd": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 10000,
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Budget Usd",
            "description": "The most the run's thread may spend, in US dollars. A workflow whose plan says it needs a thread budget refuses to start without one."
          },
          "execution_inputs": {
            "additionalProperties": true,
            "type": "object",
            "title": "Execution Inputs",
            "description": "The settings a workflow that runs an interaction or an execution scope takes, such as its `market`, checked against the input schema in its `execution_spec`. Other workflows read none."
          },
          "approval_digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approval Digest",
            "description": "To start a workflow whose plan returns `execution.approval_digest`: send it back with `start` true, so the run starts as it was planned. A changed plan is refused."
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id",
            "description": "The thread the run goes in. Omit it and the run opens a new thread."
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id",
            "description": "The workspace to run in. Required with a workflow from Whiteboxx, which belongs to no workspace. A workspace's own workflow always runs in its workspace."
          },
          "agent_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Ids",
            "description": "The agents who answer, from `GET /v1/agents`. A workflow from Whiteboxx needs them; the workflow's `run_form` says how many it takes (`least` to `most`)."
          },
          "asset_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asset Ids",
            "description": "Files to show the agents on every question: files already in the workspace (`GET /v1/assets`), or ones you upload with `POST /v1/assets`. Creative evaluation needs at least one: the work it judges."
          },
          "start": {
            "type": "boolean",
            "title": "Start",
            "description": "`false` (the default) returns the plan and its cost in credits and asks nothing. `true` starts the run, and needs an `Idempotency-Key` header.",
            "default": false
          },
          "brief": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Brief",
            "description": "What the run should find out. A survey is named after it."
          },
          "agents_by_role": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agents By Role",
            "description": "Who plays each part, for a workflow with parts. Creative evaluation: `{\"reader\": <execution agent id>, \"asked\": [<agent ids>]}`. Creative variation: `{\"art_director\": <execution agent id>}`, with a `reviewer` if you want one. A part one agent plays takes its id alone or as a list of one. List execution agents with `GET /v1/agents?kind=execution_agent&include_execution=true`; each one's `roles` says which parts it can play."
          },
          "earlier_run_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Earlier Run Ids",
            "description": "Previous runs this run reads. Creative variation needs the creative evaluation it varies; a survey can read previous runs."
          },
          "strategy_handoff_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Strategy Handoff Id"
          },
          "strategy_handoff_hash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Strategy Handoff Hash"
          },
          "questions": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/QuestionRequest"
                },
                "type": "array",
                "maxItems": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Questions",
            "description": "The questions to ask on this run. Group conversation needs them. A survey takes them in place of its own, each with a `kind`. Elsewhere they replace the chosen question set."
          },
          "question_set": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Set",
            "description": "Which of the workflow's question sets to ask, by `key` (`input_spec.question_sets`). Focus group and each Brainstorm need one, or `questions`."
          },
          "question_budget": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 15,
                "minimum": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Budget",
            "description": "For a workflow with an interviewer: how many questions it may ask, up to the workflow's cap. Absent, the cap."
          },
          "creative_type": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(image_ad|landing_page|packaging|ad_copy|video_ad|written_content|custom)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creative Type",
            "description": "For Creative evaluation: what the files are. Required there."
          },
          "creative_type_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "title": "Creative Type Name"
          },
          "conversation_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Conversation Ids",
            "description": "For a report: chats in the same thread that the run reads. Only chats their owner shared; a private one is refused."
          },
          "postures": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "format": "uuid"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Postures",
            "description": "How each agent talks on this run, by agent id: one of `standard`, `reflection`, `storytelling`, `skeptical_reviewer`, `executive_briefing`. Absent, as the workflow sets it."
          },
          "hears": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "format": "uuid"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hears",
            "description": "What each agent hears of the others, by agent id: one of `private`, `this_question`, `round_summary`, `full_transcript`. Absent, as the workflow sets it."
          },
          "objective": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Objective",
            "description": "For Creative evaluation: what the work is for. Send an objective `key` from `GET /v1/creative-catalog`, and the catalog's parameters are used. Your own words need `parameters` too."
          },
          "parameters": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ParameterWeight"
                },
                "type": "array",
                "maxItems": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Parameters",
            "description": "For Creative evaluation: what the work is judged on, 3 to 8, with weights that sum to 100. Needed only when `objective` is in your own words."
          },
          "ad_platform": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(meta|google_search|linkedin|tiktok)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ad Platform",
            "description": "For Creative evaluation of ad copy, where the copy runs: its length is checked against that platform's limits. Required for ad copy."
          },
          "reference_ads": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ReferenceAd"
                },
                "type": "array",
                "maxItems": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference Ads",
            "description": "For Creative evaluation: up to four earlier ads that did well and four that did poorly, each an uploaded image. The agents see them, marked."
          },
          "variation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VariationRequest"
              },
              {
                "type": "null"
              }
            ],
            "description": "For Creative variation: which creative of the evaluation in `earlier_run_ids` to vary, and how. Required there. Send the evaluation's `thread_id` too."
          },
          "panel_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Panel Id",
            "description": "For Survey: the panel whose people answer, from `GET /v1/panels`. Required there."
          }
        },
        "type": "object",
        "title": "RunWorkflowRequest"
      },
      "SavedAsView": {
        "properties": {
          "workflow_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workflow Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "workflow_id",
          "name"
        ],
        "title": "SavedAsView",
        "description": "The newest workflow saved from a run, as the run's card names it."
      },
      "Split": {
        "properties": {
          "axis_id": {
            "type": "string",
            "title": "Axis Id"
          },
          "agent_id": {
            "type": "string",
            "title": "Agent Id",
            "default": ""
          },
          "agent": {
            "type": "string",
            "title": "Agent",
            "default": ""
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "levels": {
            "items": {
              "$ref": "#/components/schemas/SplitLevel"
            },
            "type": "array",
            "title": "Levels"
          },
          "excluded": {
            "items": {
              "$ref": "#/components/schemas/SplitLevel"
            },
            "type": "array",
            "title": "Excluded"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/SplitAgent"
            },
            "type": "array",
            "title": "Agents"
          },
          "why": {
            "type": "string",
            "title": "Why",
            "default": ""
          },
          "source": {
            "type": "string",
            "title": "Source",
            "default": ""
          },
          "source_label": {
            "type": "string",
            "title": "Source Label",
            "default": ""
          },
          "merged": {
            "items": {
              "$ref": "#/components/schemas/MergedGroup"
            },
            "type": "array",
            "title": "Merged"
          },
          "merged_into": {
            "type": "string",
            "title": "Merged Into",
            "default": ""
          },
          "note": {
            "type": "string",
            "title": "Note",
            "default": ""
          },
          "measured": {
            "type": "boolean",
            "title": "Measured",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "axis_id",
          "label",
          "levels"
        ],
        "title": "Split",
        "description": "One way the population is cut, and how much of it is at each level."
      },
      "SplitAgent": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "shares": {
            "items": {
              "type": "number"
            },
            "type": "array",
            "title": "Shares"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "name",
          "shares"
        ],
        "title": "SplitAgent",
        "description": "One agent's own share of each group of a split, from its own rows."
      },
      "SplitLevel": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "share": {
            "type": "number",
            "title": "Share"
          },
          "key": {
            "type": "string",
            "title": "Key",
            "default": ""
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/SplitMember"
            },
            "type": "array",
            "title": "Rows"
          },
          "unmeasured": {
            "type": "number",
            "title": "Unmeasured",
            "default": 0
          },
          "why": {
            "type": "string",
            "title": "Why",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "label",
          "share"
        ],
        "title": "SplitLevel"
      },
      "SplitMember": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "keys": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Keys"
          },
          "share": {
            "type": "number",
            "title": "Share"
          },
          "kept": {
            "type": "boolean",
            "title": "Kept",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "label",
          "keys",
          "share"
        ],
        "title": "SplitMember",
        "description": "A row of a group, as the filter ticks it: an age band's two rows are one."
      },
      "SwarmAgent": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "weight": {
            "type": "number",
            "title": "Weight"
          },
          "people": {
            "type": "integer",
            "title": "People"
          },
          "mindset": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Mindset"
          },
          "left_out": {
            "type": "boolean",
            "title": "Left Out",
            "default": false
          },
          "method": {
            "type": "string",
            "title": "Method",
            "default": ""
          },
          "split_by": {
            "type": "string",
            "title": "Split By",
            "default": ""
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "split_reason": {
            "type": "string",
            "title": "Split Reason",
            "default": ""
          },
          "kept": {
            "type": "number",
            "title": "Kept",
            "default": 1
          },
          "split_trace_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Split Trace Id"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "name",
          "weight",
          "people"
        ],
        "title": "SwarmAgent"
      },
      "SwarmBox": {
        "properties": {
          "cell_id": {
            "type": "string",
            "title": "Cell Id"
          },
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "agent": {
            "type": "string",
            "title": "Agent"
          },
          "groups": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Groups"
          },
          "share": {
            "type": "number",
            "title": "Share"
          },
          "people": {
            "type": "integer",
            "title": "People"
          }
        },
        "type": "object",
        "required": [
          "cell_id",
          "agent_id",
          "agent",
          "groups",
          "share",
          "people"
        ],
        "title": "SwarmBox",
        "description": "One box of the crossed splits, for one agent: its share and its people."
      },
      "SwarmPeople": {
        "properties": {
          "model": {
            "type": "string",
            "title": "Model"
          },
          "written_at": {
            "type": "string",
            "title": "Written At"
          },
          "people": {
            "items": {
              "$ref": "#/components/schemas/SwarmPerson"
            },
            "type": "array",
            "title": "People"
          },
          "boxes": {
            "additionalProperties": {
              "$ref": "#/components/schemas/BoxEvidence"
            },
            "type": "object",
            "title": "Boxes"
          }
        },
        "type": "object",
        "required": [
          "model",
          "written_at",
          "people",
          "boxes"
        ],
        "title": "SwarmPeople"
      },
      "SwarmPerson": {
        "properties": {
          "seed_id": {
            "type": "string",
            "title": "Seed Id"
          },
          "cell_id": {
            "type": "string",
            "title": "Cell Id"
          },
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "age": {
            "type": "integer",
            "title": "Age"
          },
          "gender": {
            "type": "string",
            "title": "Gender"
          },
          "city": {
            "type": "string",
            "title": "City"
          },
          "household": {
            "type": "string",
            "title": "Household"
          },
          "work": {
            "type": "string",
            "title": "Work"
          },
          "about": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "About"
          }
        },
        "type": "object",
        "required": [
          "seed_id",
          "cell_id",
          "agent_id",
          "age",
          "gender",
          "city",
          "household",
          "work",
          "about"
        ],
        "title": "SwarmPerson",
        "description": "One person in a swarm, as written when it was saved."
      },
      "ThreadConversationView": {
        "properties": {
          "conversation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Conversation Id"
          },
          "posture_revision": {
            "type": "integer",
            "title": "Posture Revision",
            "default": 0
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "workflow_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Id"
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id"
          },
          "yours": {
            "type": "boolean",
            "title": "Yours",
            "default": false
          },
          "last_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last At"
          },
          "archived": {
            "type": "boolean",
            "title": "Archived",
            "default": false
          },
          "intro": {
            "type": "boolean",
            "title": "Intro",
            "default": false
          },
          "participants": {
            "items": {
              "$ref": "#/components/schemas/ThreadSeatView"
            },
            "type": "array",
            "title": "Participants",
            "default": []
          },
          "workflow_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Name"
          },
          "questions": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Questions"
          },
          "shared": {
            "type": "boolean",
            "title": "Shared",
            "default": false
          },
          "legacy_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legacy At"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "turn_count": {
            "type": "integer",
            "title": "Turn Count",
            "default": 0
          },
          "preview": {
            "items": {
              "$ref": "#/components/schemas/ThreadTurnView"
            },
            "type": "array",
            "title": "Preview",
            "default": []
          },
          "reading": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "verdict",
                  "analysis"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reading"
          }
        },
        "type": "object",
        "required": [
          "conversation_id",
          "title",
          "mode",
          "workflow_id",
          "status",
          "created_at"
        ],
        "title": "ThreadConversationView",
        "description": "One transcript inside the thread, named the way a reader would name it."
      },
      "ThreadDetailView": {
        "properties": {
          "thread_id": {
            "type": "string",
            "format": "uuid",
            "title": "Thread Id"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "title_by": {
            "type": "string",
            "title": "Title By",
            "default": "auto"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "idempotency_key": {
            "type": "string",
            "title": "Idempotency Key"
          },
          "context_memory": {
            "additionalProperties": true,
            "type": "object",
            "title": "Context Memory"
          },
          "event_count": {
            "type": "integer",
            "title": "Event Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "workflows": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Workflows",
            "default": []
          },
          "run_count": {
            "type": "integer",
            "title": "Run Count",
            "default": 0
          },
          "chat_count": {
            "type": "integer",
            "title": "Chat Count",
            "default": 0
          },
          "legacy_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legacy At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "audience": {
            "type": "string",
            "title": "Audience",
            "default": "workspace"
          },
          "people_count": {
            "type": "integer",
            "title": "People Count",
            "default": 0
          },
          "link_count": {
            "type": "integer",
            "title": "Link Count",
            "default": 0
          },
          "yours": {
            "type": "boolean",
            "title": "Yours",
            "default": false
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "shared_with": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Shared With",
            "default": []
          },
          "your_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Your Level"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ThreadEventView"
            },
            "type": "array",
            "title": "Events"
          },
          "conversations": {
            "items": {
              "$ref": "#/components/schemas/ThreadConversationView"
            },
            "type": "array",
            "title": "Conversations",
            "default": []
          },
          "runs": {
            "items": {
              "$ref": "#/components/schemas/ThreadRunView"
            },
            "type": "array",
            "title": "Runs",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "thread_id",
          "workspace_id",
          "title",
          "status",
          "idempotency_key",
          "context_memory",
          "event_count",
          "created_at",
          "updated_at",
          "events"
        ],
        "title": "ThreadDetailView"
      },
      "ThreadEventView": {
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid",
            "title": "Event Id"
          },
          "event_type": {
            "type": "string",
            "title": "Event Type"
          },
          "resource_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Type"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Run Id"
          },
          "compact": {
            "additionalProperties": true,
            "type": "object",
            "title": "Compact"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object",
            "title": "Payload"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "event_id",
          "event_type",
          "resource_type",
          "resource_id",
          "run_id",
          "compact",
          "payload",
          "created_at"
        ],
        "title": "ThreadEventView"
      },
      "ThreadRunView": {
        "properties": {
          "pending_study": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Study"
          },
          "execution": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution"
          },
          "primary_result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Result"
          },
          "workflow_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Run Id"
          },
          "workflow_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workflow Id"
          },
          "workflow_version": {
            "type": "integer",
            "title": "Workflow Version"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "guide"
          },
          "conversation_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation Id"
          },
          "interaction_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interaction Run Id"
          },
          "interaction_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interaction Id"
          },
          "wave": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wave"
          },
          "n_eff": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "N Eff"
          },
          "reported": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reported"
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "n_eff_estimate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "N Eff Estimate"
          },
          "reportable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reportable"
          },
          "reporting_floor": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reporting Floor"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "questions_planned": {
            "type": "integer",
            "title": "Questions Planned"
          },
          "questions_asked": {
            "type": "integer",
            "title": "Questions Asked"
          },
          "seats": {
            "type": "integer",
            "title": "Seats"
          },
          "answers_failed": {
            "type": "integer",
            "title": "Answers Failed",
            "default": 0
          },
          "model_calls": {
            "type": "integer",
            "title": "Model Calls"
          },
          "expected_cost_units": {
            "type": "integer",
            "title": "Expected Cost Units"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units"
          },
          "cost_says": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Says"
          },
          "error_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Reason"
          },
          "not_answered": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Not Answered"
          },
          "walk": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WalkedBlock"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Walk"
          },
          "fits_limit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fits Limit"
          },
          "limit_says": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Says"
          },
          "will_do": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Will Do"
          },
          "executor": {
            "type": "string",
            "title": "Executor",
            "default": "conversation"
          },
          "stop_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop Reason"
          },
          "outputs": {
            "items": {
              "$ref": "#/components/schemas/RunOutputSummary"
            },
            "type": "array",
            "title": "Outputs"
          },
          "version_kept": {
            "type": "boolean",
            "title": "Version Kept",
            "default": false
          },
          "source_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Run Id"
          },
          "waiting_for": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waiting For"
          },
          "postures": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Postures"
          },
          "hearings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Hearings"
          },
          "plan_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Run Id"
          },
          "plan_position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Position"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inputs",
            "description": "What this run was given: the fields of the request that started it, such as `asset_ids`, `agent_ids`, `agents_by_role`, `creative_type`, `objective`, `question_set`, `questions` or `panel_id`. `null` for a plan that has not started, or an older run whose request cannot be read back."
          },
          "workflow_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Name"
          },
          "reading": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "verdict",
                  "analysis"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reading"
          },
          "saved_as": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SavedAsView"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "workflow_run_id",
          "workflow_id",
          "workflow_version",
          "conversation_id",
          "status",
          "questions_planned",
          "questions_asked",
          "seats",
          "model_calls",
          "expected_cost_units",
          "cost_units"
        ],
        "title": "ThreadRunView",
        "description": "A workflow run as the thread reads it: the run's record, plus the name.\n\nThe run itself is the same shape the workflow's own page lists, so a\nfigure read here and a figure read there cannot disagree. The name is\nadded because a run row alone says `workflow_id` and a reader wants\n\"Route A vs B, third run\"."
      },
      "ThreadSeatView": {
        "properties": {
          "agent_id": {
            "type": "string",
            "format": "uuid",
            "title": "Agent Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "persona_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persona Name"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind"
          },
          "posture": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Posture"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "name"
        ],
        "title": "ThreadSeatView",
        "description": "Who answered in a transcript: the agent, and the label it sat under."
      },
      "ThreadTurnView": {
        "properties": {
          "position": {
            "type": "integer",
            "title": "Position",
            "default": 0
          },
          "role": {
            "type": "string",
            "title": "Role"
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          },
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Asset Ids",
            "default": []
          },
          "asked_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked By"
          },
          "asked_why": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asked Why"
          },
          "sources": {
            "items": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "array",
            "title": "Sources",
            "default": []
          },
          "unknowns": {
            "type": "integer",
            "title": "Unknowns",
            "default": 0
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "role",
          "text"
        ],
        "title": "ThreadTurnView",
        "description": "One line of a transcript, as a thread shows it.\n\nEnough to read what went in and what came back without leaving the thread.\nA thread whose runs are links is a table of contents; the point of putting\nthe work in one place is that the work is *there*."
      },
      "ThreadView": {
        "properties": {
          "thread_id": {
            "type": "string",
            "format": "uuid",
            "title": "Thread Id"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "title_by": {
            "type": "string",
            "title": "Title By",
            "default": "auto"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "idempotency_key": {
            "type": "string",
            "title": "Idempotency Key"
          },
          "context_memory": {
            "additionalProperties": true,
            "type": "object",
            "title": "Context Memory"
          },
          "event_count": {
            "type": "integer",
            "title": "Event Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "workflows": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Workflows",
            "default": []
          },
          "run_count": {
            "type": "integer",
            "title": "Run Count",
            "default": 0
          },
          "chat_count": {
            "type": "integer",
            "title": "Chat Count",
            "default": 0
          },
          "legacy_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legacy At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "audience": {
            "type": "string",
            "title": "Audience",
            "default": "workspace"
          },
          "people_count": {
            "type": "integer",
            "title": "People Count",
            "default": 0
          },
          "link_count": {
            "type": "integer",
            "title": "Link Count",
            "default": 0
          },
          "yours": {
            "type": "boolean",
            "title": "Yours",
            "default": false
          },
          "owner_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Name"
          },
          "shared_with": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Shared With",
            "default": []
          },
          "your_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Your Level"
          }
        },
        "type": "object",
        "required": [
          "thread_id",
          "workspace_id",
          "title",
          "status",
          "idempotency_key",
          "context_memory",
          "event_count",
          "created_at",
          "updated_at"
        ],
        "title": "ThreadView"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VariationRequest": {
        "properties": {
          "creative": {
            "type": "string",
            "pattern": "^C[0-9]{1,2}$",
            "title": "Creative",
            "description": "Which creative of the evaluation to vary: `C1` is the first file it judged, `C2` the second."
          },
          "changes": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Changes",
            "description": "Which of the changes on that creative's card to make, by position from 1."
          },
          "instruction": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Instruction",
            "description": "Your own instruction, in words."
          },
          "count": {
            "type": "integer",
            "maximum": 3,
            "minimum": 1,
            "title": "Count",
            "description": "How many variations to make, 1 to 3.",
            "default": 1
          },
          "guidelines_source_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guidelines Source Id"
          }
        },
        "type": "object",
        "required": [
          "creative"
        ],
        "title": "VariationRequest",
        "description": "What a Creative variation makes: of which creative in the earlier\nevaluation, acting on which of its card's changes, with what the person\nadds, how many."
      },
      "WalkedBlock": {
        "properties": {
          "use": {
            "type": "string",
            "title": "Use"
          },
          "block": {
            "type": "string",
            "title": "Block"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "tokens": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tokens"
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Missing"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "use",
          "block",
          "label",
          "status"
        ],
        "title": "WalkedBlock",
        "description": "One talk block as a run walked it."
      },
      "WorkflowResponse": {
        "properties": {
          "execution_spec": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Spec"
          },
          "workflow_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workflow Id"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "guide"
          },
          "panel_spec": {
            "additionalProperties": true,
            "type": "object",
            "title": "Panel Spec"
          },
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "answer_mode": {
            "type": "string",
            "title": "Answer Mode"
          },
          "questions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Questions"
          },
          "participants": {
            "items": {
              "$ref": "#/components/schemas/app__api__v1__workflows__ParticipantResponse"
            },
            "type": "array",
            "title": "Participants"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Id"
          },
          "runnable": {
            "type": "boolean",
            "title": "Runnable"
          },
          "proposed_questions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Proposed Questions"
          },
          "proposal_status": {
            "type": "string",
            "title": "Proposal Status",
            "default": "none"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "run_count": {
            "type": "integer",
            "title": "Run Count",
            "default": 0
          },
          "last_run_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Run At"
          },
          "origin": {
            "type": "string",
            "title": "Origin",
            "default": "user"
          },
          "source_workflow_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Workflow Id"
          },
          "executor": {
            "type": "string",
            "title": "Executor",
            "default": "conversation"
          },
          "input_spec": {
            "additionalProperties": true,
            "type": "object",
            "title": "Input Spec"
          },
          "agent_spec": {
            "additionalProperties": true,
            "type": "object",
            "title": "Agent Spec"
          },
          "output_spec": {
            "additionalProperties": true,
            "type": "object",
            "title": "Output Spec"
          },
          "editable": {
            "type": "boolean",
            "title": "Editable",
            "default": true
          },
          "your_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Your Level"
          },
          "document": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Document"
          },
          "started_as": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started As"
          },
          "check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DocumentCheck"
              },
              {
                "type": "null"
              }
            ]
          },
          "draft_document": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Draft Document"
          },
          "draft_check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DocumentCheck"
              },
              {
                "type": "null"
              }
            ]
          },
          "run_form": {
            "$ref": "#/components/schemas/RunForm"
          }
        },
        "type": "object",
        "required": [
          "workflow_id",
          "key",
          "name",
          "description",
          "mode",
          "answer_mode",
          "questions",
          "participants",
          "version",
          "status",
          "workspace_id",
          "runnable",
          "run_form"
        ],
        "title": "WorkflowResponse"
      },
      "WorkflowRunResponse": {
        "properties": {
          "pending_study": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Study"
          },
          "execution": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution"
          },
          "primary_result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Result"
          },
          "workflow_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Run Id"
          },
          "workflow_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workflow Id"
          },
          "workflow_version": {
            "type": "integer",
            "title": "Workflow Version"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "guide"
          },
          "conversation_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation Id"
          },
          "interaction_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interaction Run Id"
          },
          "interaction_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interaction Id"
          },
          "wave": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wave"
          },
          "n_eff": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "N Eff"
          },
          "reported": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reported"
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "n_eff_estimate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "N Eff Estimate"
          },
          "reportable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reportable"
          },
          "reporting_floor": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reporting Floor"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "questions_planned": {
            "type": "integer",
            "title": "Questions Planned"
          },
          "questions_asked": {
            "type": "integer",
            "title": "Questions Asked"
          },
          "seats": {
            "type": "integer",
            "title": "Seats"
          },
          "answers_failed": {
            "type": "integer",
            "title": "Answers Failed",
            "default": 0
          },
          "model_calls": {
            "type": "integer",
            "title": "Model Calls"
          },
          "expected_cost_units": {
            "type": "integer",
            "title": "Expected Cost Units"
          },
          "cost_units": {
            "type": "integer",
            "title": "Cost Units"
          },
          "cost_says": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Says"
          },
          "error_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Reason"
          },
          "not_answered": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Not Answered"
          },
          "walk": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WalkedBlock"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Walk"
          },
          "fits_limit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fits Limit"
          },
          "limit_says": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Says"
          },
          "will_do": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Will Do"
          },
          "executor": {
            "type": "string",
            "title": "Executor",
            "default": "conversation"
          },
          "stop_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop Reason"
          },
          "outputs": {
            "items": {
              "$ref": "#/components/schemas/RunOutputSummary"
            },
            "type": "array",
            "title": "Outputs"
          },
          "version_kept": {
            "type": "boolean",
            "title": "Version Kept",
            "default": false
          },
          "source_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Run Id"
          },
          "waiting_for": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waiting For"
          },
          "postures": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Postures"
          },
          "hearings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Hearings"
          },
          "plan_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Run Id"
          },
          "plan_position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan Position"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inputs",
            "description": "What this run was given: the fields of the request that started it, such as `asset_ids`, `agent_ids`, `agents_by_role`, `creative_type`, `objective`, `question_set`, `questions` or `panel_id`. `null` for a plan that has not started, or an older run whose request cannot be read back."
          }
        },
        "type": "object",
        "required": [
          "workflow_run_id",
          "workflow_id",
          "workflow_version",
          "conversation_id",
          "status",
          "questions_planned",
          "questions_asked",
          "seats",
          "model_calls",
          "expected_cost_units",
          "cost_units"
        ],
        "title": "WorkflowRunResponse"
      },
      "WorkspaceResponse": {
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "title": "Workspace Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "anchor_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Anchor Kind"
          },
          "anchor_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Anchor Name"
          },
          "market": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Market"
          },
          "markets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Markets",
            "default": []
          },
          "agent_allocation": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Allocation"
          },
          "workflow_credit_allocation": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Credit Allocation"
          },
          "answer_languages": {
            "items": {
              "$ref": "#/components/schemas/AnswerLanguageOption"
            },
            "type": "array",
            "title": "Answer Languages",
            "default": []
          },
          "agents": {
            "type": "integer",
            "title": "Agents",
            "default": 0
          },
          "threads": {
            "type": "integer",
            "title": "Threads",
            "default": 0
          },
          "last_active_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Active At"
          },
          "market_languages": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Market Languages",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "workspace_id",
          "name",
          "status",
          "anchor_kind",
          "anchor_name",
          "market"
        ],
        "title": "WorkspaceResponse"
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "description": "An API key. You make one in the app, from the account menu, under API keys. A key works in every organization you belong to.",
        "scheme": "bearer"
      }
    }
  }
}
