# Whiteboxx Agents API - **OpenAPI Version:** `3.2.0` - **API Version:** `0.1.0` 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. ## Sign in Send an API key as a bearer token: ``` Authorization: Bearer ``` You make an API key in the app. Open the account menu and choose **API keys**. A key works in every organization you belong to. ## Base URL Every 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). ## Without a browser This page needs JavaScript. For a script or an agent that reads the docs: - [/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). - 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). - 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. ## Your first answer 1. **List your organizations.** Call `GET /v1/organizations` and keep an `organization_id`. A key lists all of them. 2. **List the workspaces in it.** Call `GET /v1/workspaces?organization_id=…` and keep a `workspace_id`. 3. **List the agents in a workspace.** Call `GET /v1/agents?workspace_id=…` and keep an `agent_id`. 4. **Read the agent's persona.** Call `GET /v1/agents/{agent_id}`. Add `?view=page` to get a smaller response. 5. **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`. 6. **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. ```bash TOKEN=... # your API key API=https://engine.whiteboxx.ai curl -s $API/v1/organizations -H "Authorization: Bearer $TOKEN" curl -s "$API/v1/workspaces?organization_id=$ORG" -H "Authorization: Bearer $TOKEN" curl -s "$API/v1/agents?workspace_id=$WS" -H "Authorization: Bearer $TOKEN" curl -s $API/v1/agents/$AGENT -H "Authorization: Bearer $TOKEN" curl -s $API/v1/conversations -H "Authorization: Bearer $TOKEN" \ -H 'content-type: application/json' \ -d "{\"workspace_id\":\"$WS\",\"agent_id\":\"$AGENT\"}" curl -s $API/v1/conversations/$CONV/messages -H "Authorization: Bearer $TOKEN" \ -H 'content-type: application/json' \ -d '{"question":"What makes you switch brands?"}' ``` ## Run a workflow A 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. 1. **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`. 2. **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. 3. **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. 4. **Read it until it ends.** Call `GET /v1/workflow-runs/{run_id}` until `status` is `succeeded`, `partial`, `failed` or `canceled`. 5. **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`. ```bash WF=... # a workflow_id, such as Focus group's curl -s "$API/v1/workflows?workspace_id=$WS&origin=whiteboxx" -H "Authorization: Bearer $TOKEN" curl -s $API/v1/workflows/$WF/runs -H "Authorization: Bearer $TOKEN" \ -H 'content-type: application/json' \ -d "{\"workspace_id\":\"$WS\",\"agent_ids\":[\"$AGENT\",\"$AGENT2\"],\"question_set\":\"usage_patterns\"}" curl -s $API/v1/workflows/$WF/runs -H "Authorization: Bearer $TOKEN" \ -H 'content-type: application/json' -H "Idempotency-Key: focus-group-1" \ -d "{\"workspace_id\":\"$WS\",\"agent_ids\":[\"$AGENT\",\"$AGENT2\"],\"question_set\":\"usage_patterns\",\"start\":true}" curl -s $API/v1/workflow-runs/$RUN -H "Authorization: Bearer $TOKEN" curl -s $API/v1/workflow-runs/$RUN/outputs -H "Authorization: Bearer $TOKEN" ``` Every 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. **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. ## Contents **Operations** - [GET /v1/organizations](#scalar-operation-get-v1organizations) - [GET /v1/workspaces](#scalar-operation-get-v1workspaces) - [GET /v1/agents](#scalar-operation-get-v1agents) - [GET /v1/agents/{agent\_id}](#scalar-operation-get-v1agentsagent-id) - [POST /v1/conversations](#scalar-operation-post-v1conversations) - [GET /v1/conversations/{conversation\_id}/messages](#scalar-operation-get-v1conversationsconversation-idmessages) - [POST /v1/conversations/{conversation\_id}/messages](#scalar-operation-post-v1conversationsconversation-idmessages) - [POST /v1/conversations/{conversation\_id}/messages:stream](#scalar-operation-post-v1conversationsconversation-idmessagesstream) - [GET /v1/threads](#scalar-operation-get-v1threads) - [POST /v1/threads](#scalar-operation-post-v1threads) - [GET /v1/threads/{thread\_id}](#scalar-operation-get-v1threadsthread-id) - [PATCH /v1/threads/{thread\_id}](#scalar-operation-patch-v1threadsthread-id) - [POST /v1/threads/{thread\_id}:archive](#scalar-operation-post-v1threadsthread-idarchive) - [POST /v1/threads/{thread\_id}:restore](#scalar-operation-post-v1threadsthread-idrestore) - [GET /v1/workflows](#scalar-operation-get-v1workflows) - [GET /v1/workflows/{workflow\_id}](#scalar-operation-get-v1workflowsworkflow-id) - [GET /v1/assets](#scalar-operation-get-v1assets) - [POST /v1/assets](#scalar-operation-post-v1assets) - [GET /v1/assets/{asset\_id}](#scalar-operation-get-v1assetsasset-id) - [POST /v1/assets/{asset\_id}:archive](#scalar-operation-post-v1assetsasset-idarchive) - [GET /v1/creative-catalog](#scalar-operation-get-v1creative-catalog) - [GET /v1/panels](#scalar-operation-get-v1panels) - [GET /v1/panels/{panel\_id}](#scalar-operation-get-v1panelspanel-id) - [GET /v1/workflows/{workflow\_id}/runs](#scalar-operation-get-v1workflowsworkflow-idruns) - [POST /v1/workflows/{workflow\_id}/runs](#scalar-operation-post-v1workflowsworkflow-idruns) - [GET /v1/workflow-runs/{run\_id}](#scalar-operation-get-v1workflow-runsrun-id) - [POST /v1/workflow-runs/{run\_id}:cancel](#scalar-operation-post-v1workflow-runsrun-idcancel) - [GET /v1/workflow-runs/{run\_id}/outputs](#scalar-operation-get-v1workflow-runsrun-idoutputs) - [GET /v1/workflow-runs/{run\_id}/outputs/{output\_id}](#scalar-operation-get-v1workflow-runsrun-idoutputsoutput-id) - [GET /v1/workflows/{workflow\_id}/runs/{run\_id}/transcript](#scalar-operation-get-v1workflowsworkflow-idrunsrun-idtranscript) - [GET /v1/interactions/{interaction\_id}/waves/{wave}/results](#scalar-operation-get-v1interactionsinteraction-idwaveswaveresults) **Schemas** - [AgentCharge](#scalar-schema-agentcharge) - [AgentLink](#scalar-schema-agentlink) - [AgentListItem](#scalar-schema-agentlistitem) - [AgentResponse](#scalar-schema-agentresponse) - [AnswerLanguageOption](#scalar-schema-answerlanguageoption) - [app\_\_api\_\_v1\_\_conversations\_\_ParticipantResponse](#scalar-schema-app-api-v1-conversations-participantresponse) - [app\_\_api\_\_v1\_\_workflows\_\_ParticipantResponse](#scalar-schema-app-api-v1-workflows-participantresponse) - [AskRequest](#scalar-schema-askrequest) - [AskResponse](#scalar-schema-askresponse) - [AssetResponse](#scalar-schema-assetresponse) - [Body\_upload\_asset\_v1\_assets\_post](#scalar-schema-body-upload-asset-v1-assets-post) - [BoxEvidence](#scalar-schema-boxevidence) - [CatalogObjectiveParameter](#scalar-schema-catalogobjectiveparameter) - [CatalogObjectiveView](#scalar-schema-catalogobjectiveview) - [CatalogParameterView](#scalar-schema-catalogparameterview) - [ConversationResponse](#scalar-schema-conversationresponse) - [CreateConversationRequest](#scalar-schema-createconversationrequest) - [CreateThreadRequest](#scalar-schema-createthreadrequest) - [CreativeCatalogResponse](#scalar-schema-creativecatalogresponse) - [DocumentCheck](#scalar-schema-documentcheck) - [HTTPValidationError](#scalar-schema-httpvalidationerror) - [MergedGroup](#scalar-schema-mergedgroup) - [MessageResponse](#scalar-schema-messageresponse) - [MessageTraceRef](#scalar-schema-messagetraceref) - [NeedState](#scalar-schema-needstate) - [OperatorDataTool](#scalar-schema-operatordatatool) - [OperatorGeneralTool](#scalar-schema-operatorgeneraltool) - [OperatorSkillFile](#scalar-schema-operatorskillfile) - [OperatorSource](#scalar-schema-operatorsource) - [OperatorView](#scalar-schema-operatorview) - [OrganizationListItem](#scalar-schema-organizationlistitem) - [Page\_AgentListItem\_](#scalar-schema-page-agentlistitem) - [Page\_WorkflowResponse\_](#scalar-schema-page-workflowresponse) - [PanelDesign](#scalar-schema-paneldesign) - [PanelResponse](#scalar-schema-panelresponse) - [ParameterWeight](#scalar-schema-parameterweight) - [ProfileCard](#scalar-schema-profilecard) - [ProfileCardDial](#scalar-schema-profilecarddial) - [ProfileCardGroup](#scalar-schema-profilecardgroup) - [ProfileCardInterest](#scalar-schema-profilecardinterest) - [ProfileCardInterests](#scalar-schema-profilecardinterests) - [ProfileCardItem](#scalar-schema-profilecarditem) - [ProfileCardQuote](#scalar-schema-profilecardquote) - [ProfileCardWritten](#scalar-schema-profilecardwritten) - [QuestionCharge](#scalar-schema-questioncharge) - [QuestionRequest](#scalar-schema-questionrequest) - [ReferenceAd](#scalar-schema-referencead) - [Refusal](#scalar-schema-refusal) - [RefusalEnvelope](#scalar-schema-refusalenvelope) - [RefusedSplit](#scalar-schema-refusedsplit) - [RenameThreadRequest](#scalar-schema-renamethreadrequest) - [ResultsResponse](#scalar-schema-resultsresponse) - [RunForm](#scalar-schema-runform) - [RunOutputResponse](#scalar-schema-runoutputresponse) - [RunOutputSummary](#scalar-schema-runoutputsummary) - [RunWorkflowRequest](#scalar-schema-runworkflowrequest) - [SavedAsView](#scalar-schema-savedasview) - [Split](#scalar-schema-split) - [SplitAgent](#scalar-schema-splitagent) - [SplitLevel](#scalar-schema-splitlevel) - [SplitMember](#scalar-schema-splitmember) - [SwarmAgent](#scalar-schema-swarmagent) - [SwarmBox](#scalar-schema-swarmbox) - [SwarmPeople](#scalar-schema-swarmpeople) - [SwarmPerson](#scalar-schema-swarmperson) - [ThreadConversationView](#scalar-schema-threadconversationview) - [ThreadDetailView](#scalar-schema-threaddetailview) - [ThreadEventView](#scalar-schema-threadeventview) - [ThreadRunView](#scalar-schema-threadrunview) - [ThreadSeatView](#scalar-schema-threadseatview) - [ThreadTurnView](#scalar-schema-threadturnview) - [ThreadView](#scalar-schema-threadview) - [ValidationError](#scalar-schema-validationerror) - [VariationRequest](#scalar-schema-variationrequest) - [WalkedBlock](#scalar-schema-walkedblock) - [WorkflowResponse](#scalar-schema-workflowresponse) - [WorkflowRunResponse](#scalar-schema-workflowrunresponse) - [WorkspaceResponse](#scalar-schema-workspaceresponse) ## Servers - **URL:** `https://engine.whiteboxx.ai` - **Description:** Production ## Tags ### Organizations 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. ### Workspaces 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. ### Agents The agents in a workspace, one row each. To read an agent's persona, use the call under Agent persona. ### Agent persona 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. ### Converse Open a conversation with one agent or a group, ask questions and read the transcript. Every answer cites the evidence rows it used. ### Threads 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. ### Workflows 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. ### Run inputs 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. ### Run a workflow 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. ### Run results 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. ## Operations ### List organizations - **Method:** `GET` - **Path:** `/v1/organizations` - **Operation ID:** `list_organizations_v1_organizations_get` - **Tags:** Organizations Lists the organizations you can work in, with each one's `organization_id` and name. Keep an `organization_id` to list its workspaces. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [OrganizationListItem](#scalar-schema-organizationlistitem) **Generated example:** ```json [ { "organization_id": "", "name": "" } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. **Generated example:** ```json { "detail": { "reason": "", "detail": "", "remedy": "" } } ``` ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List workspaces - **Method:** `GET` - **Path:** `/v1/workspaces` - **Operation ID:** `list_workspaces_v1_workspaces_get` - **Tags:** Workspaces Lists the workspaces you can reach in one organization. Send the `organization_id` from `GET /v1/organizations`. `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. An organization your key cannot reach answers `404` with `organization_not_found`, the same as one that does not exist. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`organization_id`**: `string | null`, format: `uuid` 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 Successful Response **Content type:** `application/json` array of [WorkspaceResponse](#scalar-schema-workspaceresponse) **Generated example:** ```json [ { "workspace_id": "", "name": "", "status": "", "anchor_kind": "", "anchor_name": "", "market": "", "markets": [], "agent_allocation": 1, "workflow_credit_allocation": 1, "answer_languages": [], "agents": 0, "threads": 0, "last_active_at": "", "market_languages": {} } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List agents - **Method:** `GET` - **Path:** `/v1/agents` - **Operation ID:** `list_agents_v1_agents_get` - **Tags:** Agents Lists the agents in a workspace, one row per agent. To find the agents a build made, filter by `run_id`. The 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. A row has no persona. To read the persona, call `GET /v1/agents/{agent_id}`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`workspace_id` (required)**: `string`, format: `uuid` The workspace to list, from `GET /v1/workspaces`. - **`run_id`**: `string | null`, format: `uuid` Only the agents this build run produced. - **`kind`**: `string | null` `execution_agent` lists only the execution agents, which Whiteboxx makes. Without it, they are left out. - **`include_execution`**: `boolean`, default: `false` With `kind=execution_agent`, also list the execution agents that have their own skills, data and tools to use. Ignored otherwise. - **`can_ask_directly`**: `boolean`, default: `false` Only published execution agents you can ask a question directly, outside a workflow run. - **`limit`**: `integer`, default: `50`, minimum: `1`, maximum: `200` The most agents on one page. - **`cursor`**: `string | null` `next_cursor` from the page before, for the next page. #### Responses ##### 200 Successful Response **Content type:** `application/json` [Page\_AgentListItem\_](#scalar-schema-page-agentlistitem) **Generated example:** ```json { "data": [ { "agent_id": "", "your_thread_id": "", "public_id": "", "kind": "", "name": "", "status": "", "blocked_reason": "", "workspace_id": "", "created_at": "", "market": "", "roles": [ "" ], "parent_agent_id": "", "persona_name": "", "persona_age": 1, "persona_place": "", "role": "", "persona_work": "", "traits": [ "" ], "picture_asset_id": "", "threads": 0, "last_used_at": "", "signal_count": 1, "citable_count": 1, "evidence_age": { "additionalProperty": "anything" }, "probe_results": { "additionalProperty": "anything" }, "knowledge_by_source": [ { "additionalProperty": "anything" } ], "source_insight_id": "", "source_insight_ids": [ "" ], "studies_running": false, "ready_to_build": false } ], "next_cursor": "", "has_more": false } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get an agent - **Method:** `GET` - **Path:** `/v1/agents/{agent_id}` - **Operation ID:** `get_agent_v1_agents__agent_id__get` - **Tags:** Agent persona Returns one agent with its persona, the size of its evidence, its build checks and the age of its evidence. `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. `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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`agent_id` (required)**: `string`, format: `uuid` #### Query parameters - **`view`**: `string`, possible values: `"full", "page"`, default: `"full"` `page` leaves out the trace manifest, the instruction gate, the source plan and all of the persona card but its profile. #### Responses ##### 200 Successful Response **Content type:** `application/json` [AgentResponse](#scalar-schema-agentresponse) **Generated example:** ```json { "agent_id": "", "public_id": "", "kind": "", "name": "", "persona_name": "", "your_thread_id": "", "picture_asset_id": "", "status": "", "blocked_reason": "", "workspace_id": "", "source_insight_id": "", "evidence_digest": "", "signal_count": 1, "persona_card": { "additionalProperty": "anything" }, "persona": { "additionalProperty": "anything" }, "created_at": "", "created_by": "", "probe_results": { "additionalProperty": "anything" }, "trace_manifest": { "additionalProperty": "anything" }, "mindset": { "additionalProperty": 1 }, "subject": "", "market": "", "language": "", "role": "", "description": "", "dials": [], "instructions": "", "instruction_gate": { "additionalProperty": "anything" }, "source_insight_ids": [ "" ], "knowledge_by_source": [ { "additionalProperty": "anything" } ], "citable_count": 1, "claimable": { "additionalProperty": "anything" }, "latest_probe": { "additionalProperty": "anything" }, "evidence_age": { "additionalProperty": "anything" }, "run_id": "", "brief": { "additionalProperty": "anything" }, "source_plan": { "additionalProperty": "anything" }, "dropped_studies": [ { "additionalProperty": "anything" } ], "evidence_audit": { "additionalProperty": "anything" }, "profile_card": { "version": 3, "digest": "", "written": { "at": "", "by": "build", "model": "", "prompt_version": 1, "cost_units": 1, "dropped": { "additionalProperty": 1 } }, "groups": [ { "title": "", "items": [ { "cites": [ "" ], "label": "", "text": "", "icon": "" } ] } ], "interests": { "title": "", "items": [ { "index": 1, "text": "" } ] }, "quote": { "indices": [ 1 ], "text": "", "of": 1 }, "configuration": [ { "dial": "", "title": "", "icon": "", "word": "High", "sentence": "" } ] }, "profile_card_state": "none", "operator": { "definition_key": "", "roles": [ "" ], "version_number": 1, "introduces_as": "", "instructions": "", "skill_files": [ { "name": "", "text": "", "sha256": "" } ], "data_tools": [ { "key": "", "label": "", "status": "" } ], "general_tools": [ { "key": "", "label": "" } ], "output_formats": [ "" ], "drafted_from": [ { "url": "", "title": "" } ], "approved_by": "", "approved_at": "", "agent_class": "operator", "profile_key": "", "management_scope": "platform", "creation_contract": { "additionalProperty": "anything" }, "execution_manifest": { "additionalProperty": "anything" } }, "remixed_from": { "agent_id": "", "name": "" }, "remix_instruction": "", "twins": [ { "agent_id": "", "name": "" } ] } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Create a conversation - **Method:** `POST` - **Path:** `/v1/conversations` - **Operation ID:** `create_conversation_v1_conversations_post` - **Tags:** Converse Opens a conversation with one agent, a group of agents or a workflow. Each 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Request body **Required:** `true` **Content type:** `application/json` [CreateConversationRequest](#scalar-schema-createconversationrequest) **Generated example:** ```json { "workspace_id": "", "workflow_id": "", "agent_id": "", "agent_ids": [ "" ], "title": "", "thread_id": "", "posture": "" } ``` #### Responses ##### 201 Successful Response **Content type:** `application/json` [ConversationResponse](#scalar-schema-conversationresponse) **Generated example:** ```json { "posture_revision": 0, "conversation_id": "", "agent_id": "", "agent_public_id": "", "workflow_id": "", "thread_id": "", "mode": "", "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "persona_name": "", "picture_asset_id": "", "position": 1, "label": "", "posture": "standard", "hears": "private" } ], "title": "", "status": "", "archived_at": "", "message_count": 0, "questions": [ { "additionalProperty": "anything" } ], "created_at": "", "created_by_account_id": "", "created_by": "", "shared_at": "", "access": "owner", "reading": "verdict" } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List messages - **Method:** `GET` - **Path:** `/v1/conversations/{conversation_id}/messages` - **Operation ID:** `list_messages_v1_conversations__conversation_id__messages_get` - **Tags:** Converse Returns the transcript in `position` order: the first `limit` messages after position `after`. The API only adds messages. To 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`. In a group, the agent messages that follow a question are the answers to it. `agent_id` says which agent gave each one. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`conversation_id` (required)**: `string`, format: `uuid` #### Query parameters - **`limit`**: `integer`, default: `100`, minimum: `1`, maximum: `500` - **`after`**: `integer | null`, minimum: `0` #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [MessageResponse](#scalar-schema-messageresponse) **Generated example:** ```json [ { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Ask - **Method:** `POST` - **Path:** `/v1/conversations/{conversation_id}/messages` - **Operation ID:** `ask_v1_conversations__conversation_id__messages_post` - **Tags:** Converse Asks a question and returns every answer with the evidence it cites. In 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. A 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`conversation_id` (required)**: `string`, format: `uuid` #### Header parameters - **`idempotency-key`**: `string | null`, minLength: `1`, maxLength: `128` Makes a retry safe: the same key and question in this conversation returns the first answer and charges nothing more. #### Request body **Required:** `true` **Content type:** `application/json` [AskRequest](#scalar-schema-askrequest) **Generated example:** ```json { "question": "", "answering": "private", "asset_id": "", "asset_ids": [ "" ], "agent_ids": [ "" ], "posture": "" } ``` #### Responses ##### 200 Successful Response **Content type:** `application/json` [AskResponse](#scalar-schema-askresponse) **Generated example:** ```json { "conversation_id": "", "mode": "", "question": { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" }, "answers": [ { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" } ], "answer": { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" }, "cost_units": 1, "charge": { "credits": 1, "agents": [ { "agent_id": "", "credits": 1, "note": "" } ] } } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Ask, and get each answer as it is written - **Method:** `POST` - **Path:** `/v1/conversations/{conversation_id}/messages:stream` - **Operation ID:** `ask_streaming_v1_conversations__conversation_id__messages_stream_post` - **Tags:** Converse Asks a question, like `POST /messages`, and returns the answers as server-sent events. A 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. The 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. The events come in this order: 1. One `question` event. 2. 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. 3. One `done` event with the turn's total. If 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`conversation_id` (required)**: `string`, format: `uuid` #### Header parameters - **`idempotency-key`**: `string | null`, minLength: `1`, maxLength: `128` #### Request body **Required:** `true` **Content type:** `application/json` [AskRequest](#scalar-schema-askrequest) [Generated example](#scalar-example-15) #### Responses ##### 200 Successful Response **Content type:** `application/json` `any` **Generated example:** ```json null ``` **Content type:** `text/event-stream` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List threads - **Method:** `GET` - **Path:** `/v1/threads` - **Operation ID:** `list_threads_v1_threads_get` - **Tags:** Threads Lists the threads in a workspace that you can see, most recently changed first. An archived thread is left out. Send `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`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`workspace_id`**: `string | null`, format: `uuid` - **`limit`**: `integer`, default: `50`, minimum: `1`, maximum: `200` - **`kind`**: `string | null`, possible values: `"work", "chats", "earlier", "shared"` - **`q`**: `string | null`, maxLength: `200` - **`mine`**: `boolean`, default: `false` - **`workflow_id`**: `string | null`, format: `uuid` - **`before_updated_at`**: `string | null`, format: `date-time` - **`before_id`**: `string | null`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [ThreadView](#scalar-schema-threadview) **Generated example:** ```json [ { "thread_id": "", "workspace_id": "", "title": "", "title_by": "auto", "status": "", "idempotency_key": "", "context_memory": { "additionalProperty": "anything" }, "event_count": 1, "created_at": "", "updated_at": "", "workflows": [], "run_count": 0, "chat_count": 0, "legacy_at": "", "archived_at": "", "audience": "workspace", "people_count": 0, "link_count": 0, "yours": false, "owner_name": "", "shared_with": [], "your_level": "" } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Create a thread - **Method:** `POST` - **Path:** `/v1/threads` - **Operation ID:** `create_thread_v1_threads_post` - **Tags:** Threads 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. You rarely need this call first. A run started without a `thread_id` opens a thread of its own, named after the workflow. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Request body **Required:** `true` **Content type:** `application/json` [CreateThreadRequest](#scalar-schema-createthreadrequest) **Generated example:** ```json { "workspace_id": "", "title": "", "idempotency_key": "" } ``` #### Responses ##### 201 Successful Response **Content type:** `application/json` [ThreadView](#scalar-schema-threadview) **Generated example:** ```json { "thread_id": "", "workspace_id": "", "title": "", "title_by": "auto", "status": "", "idempotency_key": "", "context_memory": { "additionalProperty": "anything" }, "event_count": 1, "created_at": "", "updated_at": "", "workflows": [], "run_count": 0, "chat_count": 0, "legacy_at": "", "archived_at": "", "audience": "workspace", "people_count": 0, "link_count": 0, "yours": false, "owner_name": "", "shared_with": [], "your_level": "" } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get a thread - **Method:** `GET` - **Path:** `/v1/threads/{thread_id}` - **Operation ID:** `get_thread_v1_threads__thread_id__get` - **Tags:** Threads Returns one thread with what is in it: its `runs` and `conversations`, each with its id, in order. `archived_at` is set when the thread is archived. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`thread_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [ThreadDetailView](#scalar-schema-threaddetailview) **Generated example:** ```json { "thread_id": "", "workspace_id": "", "title": "", "title_by": "auto", "status": "", "idempotency_key": "", "context_memory": { "additionalProperty": "anything" }, "event_count": 1, "created_at": "", "updated_at": "", "workflows": [], "run_count": 0, "chat_count": 0, "legacy_at": "", "archived_at": "", "audience": "workspace", "people_count": 0, "link_count": 0, "yours": false, "owner_name": "", "shared_with": [], "your_level": "", "events": [ { "event_id": "", "event_type": "", "resource_type": "", "resource_id": "", "run_id": "", "compact": { "additionalProperty": "anything" }, "payload": { "additionalProperty": "anything" }, "created_at": "" } ], "conversations": [], "runs": [] } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Rename a thread - **Method:** `PATCH` - **Path:** `/v1/threads/{thread_id}` - **Operation ID:** `rename_thread_v1_threads__thread_id__patch` - **Tags:** Threads Renames a thread. Send the new `title`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`thread_id` (required)**: `string`, format: `uuid` #### Request body **Required:** `true` **Content type:** `application/json` [RenameThreadRequest](#scalar-schema-renamethreadrequest) **Generated example:** ```json { "title": "" } ``` #### Responses ##### 200 Successful Response **Content type:** `application/json` [ThreadView](#scalar-schema-threadview) [Generated example](#scalar-example-23) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Archive a thread - **Method:** `POST` - **Path:** `/v1/threads/{thread_id}:archive` - **Operation ID:** `archive_thread_v1_threads__thread_id__archive_post` - **Tags:** Threads 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. `archived_at` says when it was archived. `status` stays `active`, so read `archived_at` to tell. Restore it with `:restore`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`thread_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [ThreadView](#scalar-schema-threadview) [Generated example](#scalar-example-23) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Restore a thread - **Method:** `POST` - **Path:** `/v1/threads/{thread_id}:restore` - **Operation ID:** `restore_thread_v1_threads__thread_id__restore_post` - **Tags:** Threads Brings an archived thread back into the thread list, with everything in it. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`thread_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [ThreadView](#scalar-schema-threadview) [Generated example](#scalar-example-23) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List workflows - **Method:** `GET` - **Path:** `/v1/workflows` - **Operation ID:** `list_workflows_v1_workflows_get` - **Tags:** Workflows 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. By 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. Each 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`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`workspace_id`**: `string | null`, format: `uuid` The workspace whose workflows to list, from `GET /v1/workspaces`. - **`mode`**: `string | null`, pattern: `^(solo|group)$` `solo` for workflows with one agent, `group` for several. Absent, both. - **`kind`**: `string | null`, pattern: `^(guide|survey)$` `guide` for a transcript, `survey` for weighted results. Absent, both. - **`origin`**: `string`, default: `"user"`, pattern: `^(user|whiteboxx|all)$` `whiteboxx` for the workflows Whiteboxx provides, `user` (the default) for your organization's own, `all` for both. - **`drafts`**: `boolean`, default: `false` Include drafts, which cannot run yet. Absent, left out. - **`cursor`**: `string | null` `next_cursor` from the page before, for the next page. - **`limit`**: `integer`, default: `50`, minimum: `1`, maximum: `200` How many to return on a page. #### Responses ##### 200 Successful Response **Content type:** `application/json` [Page\_WorkflowResponse\_](#scalar-schema-page-workflowresponse) **Generated example:** ```json { "data": [ { "execution_spec": { "additionalProperty": "anything" }, "workflow_id": "", "key": "", "name": "", "description": "", "kind": "guide", "panel_spec": { "additionalProperty": "anything" }, "mode": "", "answer_mode": "", "questions": [ { "additionalProperty": "anything" } ], "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "position": 1, "label": "", "status": "", "addressable": true, "posture": "standard", "hears": "private" } ], "version": 1, "status": "", "workspace_id": "", "runnable": true, "proposed_questions": [ { "additionalProperty": "anything" } ], "proposal_status": "none", "created_at": "", "run_count": 0, "last_run_at": "", "origin": "user", "source_workflow_id": "", "executor": "conversation", "input_spec": { "additionalProperty": "anything" }, "agent_spec": { "additionalProperty": "anything" }, "output_spec": { "additionalProperty": "anything" }, "editable": true, "your_level": "", "document": { "additionalProperty": "anything" }, "started_as": "", "check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "draft_document": { "additionalProperty": "anything" }, "draft_check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "run_form": { "talk": "", "first": "", "screen": "", "solo": true, "least": 1, "most": 1, "files": "", "earlier_run": "", "topic": true, "questions": 1 } } ], "next_cursor": "", "has_more": false } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get a workflow - **Method:** `GET` - **Path:** `/v1/workflows/{workflow_id}` - **Operation ID:** `get_workflow_v1_workflows__workflow_id__get` - **Tags:** Workflows Returns one workflow: its questions or question sets, its `run_form` and its `input_spec`, which together say what a run of it needs. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`workflow_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [WorkflowResponse](#scalar-schema-workflowresponse) **Generated example:** ```json { "execution_spec": { "additionalProperty": "anything" }, "workflow_id": "", "key": "", "name": "", "description": "", "kind": "guide", "panel_spec": { "additionalProperty": "anything" }, "mode": "", "answer_mode": "", "questions": [ { "additionalProperty": "anything" } ], "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "position": 1, "label": "", "status": "", "addressable": true, "posture": "standard", "hears": "private" } ], "version": 1, "status": "", "workspace_id": "", "runnable": true, "proposed_questions": [ { "additionalProperty": "anything" } ], "proposal_status": "none", "created_at": "", "run_count": 0, "last_run_at": "", "origin": "user", "source_workflow_id": "", "executor": "conversation", "input_spec": { "additionalProperty": "anything" }, "agent_spec": { "additionalProperty": "anything" }, "output_spec": { "additionalProperty": "anything" }, "editable": true, "your_level": "", "document": { "additionalProperty": "anything" }, "started_as": "", "check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "draft_document": { "additionalProperty": "anything" }, "draft_check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "run_form": { "talk": "", "first": "", "screen": "", "solo": true, "least": 1, "most": 1, "files": "", "earlier_run": "", "topic": true, "questions": 1 } } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List files - **Method:** `GET` - **Path:** `/v1/assets` - **Operation ID:** `list_assets_v1_assets_get` - **Tags:** Run inputs 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. The 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`workspace_id`**: `string | null`, format: `uuid` The workspace whose files to list, from `GET /v1/workspaces`. - **`kind`**: `string | null`, pattern: `^(page|image|pdf|text|document|video|audio|ad_copy)$` Only creatives of this kind. `page` is a landing page captured from its address; `image` is every other picture. Absent, every kind. - **`q`**: `string | null`, maxLength: `200` Only files whose name holds these words, case aside. - **`limit`**: `integer`, default: `50`, minimum: `1`, maximum: `100` How many to return, newest first. #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [AssetResponse](#scalar-schema-assetresponse) **Generated example:** ```json [ { "asset_id": "", "name": "", "kind": "", "content_type": "", "byte_size": 1, "checksum_sha256": "", "caption": "", "workspace_id": "", "created_at": "", "origin": "uploaded", "source_url": "", "archived_at": "", "part_of_asset_id": "", "evidence_note": "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." } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Upload a file - **Method:** `POST` - **Path:** `/v1/assets` - **Operation ID:** `upload_asset_v1_assets_post` - **Tags:** Run inputs 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`. Keep the `asset_id` and send it in a run's `asset_ids`. Creative evaluation judges the files it is given. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Request body **Required:** `true` **Content type:** `multipart/form-data` [Body\_upload\_asset\_v1\_assets\_post](#scalar-schema-body-upload-asset-v1-assets-post) **Generated example:** ```json { "workspace_id": "", "name": "", "caption": "", "file": "" } ``` #### Responses ##### 201 Successful Response **Content type:** `application/json` [AssetResponse](#scalar-schema-assetresponse) **Generated example:** ```json { "asset_id": "", "name": "", "kind": "", "content_type": "", "byte_size": 1, "checksum_sha256": "", "caption": "", "workspace_id": "", "created_at": "", "origin": "uploaded", "source_url": "", "archived_at": "", "part_of_asset_id": "", "evidence_note": "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." } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get a file - **Method:** `GET` - **Path:** `/v1/assets/{asset_id}` - **Operation ID:** `get_asset_v1_assets__asset_id__get` - **Tags:** Run inputs Returns one file: its name, kind, size, checksum and the workspace it is in. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`asset_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [AssetResponse](#scalar-schema-assetresponse) [Generated example](#scalar-example-38) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Remove a file - **Method:** `POST` - **Path:** `/v1/assets/{asset_id}:archive` - **Operation ID:** `archive_asset_v1_assets__asset_id__archive_post` - **Tags:** Run inputs 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`asset_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [AssetResponse](#scalar-schema-assetresponse) [Generated example](#scalar-example-38) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Read the creative catalog - **Method:** `GET` - **Path:** `/v1/creative-catalog` - **Operation ID:** `read_creative_catalog_v1_creative_catalog_get` - **Tags:** Run inputs Returns what a creative evaluation can judge, for one `creative_type` (`image_ad`, `landing_page`, `packaging`, `ad_copy`, `video_ad` or `written_content`). `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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`creative_type` (required)**: `string`, pattern: `^(image_ad|landing_page|packaging|ad_copy|video_ad|written_content|custom)$` What the creatives are, as a run's `creative_type` names it. #### Responses ##### 200 Successful Response **Content type:** `application/json` [CreativeCatalogResponse](#scalar-schema-creativecatalogresponse) **Generated example:** ```json { "version": 1, "creative_type": "", "objectives": [ { "key": "", "label": "", "subtitle": "", "description": "", "parameters": [ { "key": "", "label": "", "weight": 1 } ] } ], "parameters": [ { "key": "", "label": "", "description": "" } ] } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List panels - **Method:** `GET` - **Path:** `/v1/panels` - **Operation ID:** `list_panels_v1_panels_get` - **Tags:** Run inputs Lists the panels in a workspace. Send `workspace_id`. A 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Query parameters - **`workspace_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [PanelResponse](#scalar-schema-panelresponse) **Generated example:** ```json [ { "panel_id": "", "name": "", "objective": "", "status": "", "seed": 1, "target_panel_size": 1, "asked_cap": 1, "universe": "", "fingerprint": "", "segments": [ { "additionalProperty": "anything" } ], "cells": [ { "additionalProperty": "anything" } ], "cell_source": { "additionalProperty": "anything" }, "survey_count": 0, "design": { "population_model": "", "method": "", "market": "", "splits": [ { "axis_id": "", "agent_id": "", "agent": "", "label": "", "levels": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "excluded": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "agents": [ { "agent_id": "", "name": "", "shares": [ 1 ] } ], "why": "", "source": "", "source_label": "", "merged": [ { "label": "", "share": 1 } ], "merged_into": "", "note": "", "measured": false } ], "why_these_splits": "", "selected_axes": [ { "additionalProperty": "anything" } ], "boxes": [ { "cell_id": "", "agent_id": "", "agent": "", "groups": { "additionalProperty": "" }, "share": 1, "people": 1 } ], "agents": [ { "agent_id": "", "name": "", "weight": 1, "people": 1, "mindset": { "additionalProperty": 1 }, "left_out": false, "method": "", "split_by": "", "model": "", "split_reason": "", "kept": 1, "split_trace_id": "" } ], "n_elicited": 1, "n_represented": 1, "n_eff": 1, "complexity_score": 1, "complexity_components": { "additionalProperty": 1 }, "refused": [ { "source": "", "source_label": "", "label": "", "reason": "" } ] }, "people": { "model": "", "written_at": "", "people": [ { "seed_id": "", "cell_id": "", "agent_id": "", "age": 1, "gender": "", "city": "", "household": "", "work": "", "about": [ "" ] } ], "boxes": { "additionalProperty": { "evidence": [ "" ], "kept": 1, "left": { "additionalProperty": 1 } } } }, "created_at": "" } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get a panel - **Method:** `GET` - **Path:** `/v1/panels/{panel_id}` - **Operation ID:** `get_panel_v1_panels__panel_id__get` - **Tags:** Run inputs Returns one panel: its objective, the groups of people in it and the share of the population each one stands for. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`panel_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [PanelResponse](#scalar-schema-panelresponse) **Generated example:** ```json { "panel_id": "", "name": "", "objective": "", "status": "", "seed": 1, "target_panel_size": 1, "asked_cap": 1, "universe": "", "fingerprint": "", "segments": [ { "additionalProperty": "anything" } ], "cells": [ { "additionalProperty": "anything" } ], "cell_source": { "additionalProperty": "anything" }, "survey_count": 0, "design": { "population_model": "", "method": "", "market": "", "splits": [ { "axis_id": "", "agent_id": "", "agent": "", "label": "", "levels": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "excluded": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "agents": [ { "agent_id": "", "name": "", "shares": [ 1 ] } ], "why": "", "source": "", "source_label": "", "merged": [ { "label": "", "share": 1 } ], "merged_into": "", "note": "", "measured": false } ], "why_these_splits": "", "selected_axes": [ { "additionalProperty": "anything" } ], "boxes": [ { "cell_id": "", "agent_id": "", "agent": "", "groups": { "additionalProperty": "" }, "share": 1, "people": 1 } ], "agents": [ { "agent_id": "", "name": "", "weight": 1, "people": 1, "mindset": { "additionalProperty": 1 }, "left_out": false, "method": "", "split_by": "", "model": "", "split_reason": "", "kept": 1, "split_trace_id": "" } ], "n_elicited": 1, "n_represented": 1, "n_eff": 1, "complexity_score": 1, "complexity_components": { "additionalProperty": 1 }, "refused": [ { "source": "", "source_label": "", "label": "", "reason": "" } ] }, "people": { "model": "", "written_at": "", "people": [ { "seed_id": "", "cell_id": "", "agent_id": "", "age": 1, "gender": "", "city": "", "household": "", "work": "", "about": [ "" ] } ], "boxes": { "additionalProperty": { "evidence": [ "" ], "kept": 1, "left": { "additionalProperty": 1 } } } }, "created_at": "" } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List a workflow's runs - **Method:** `GET` - **Path:** `/v1/workflows/{workflow_id}/runs` - **Operation ID:** `list_workflow_runs_v1_workflows__workflow_id__runs_get` - **Tags:** Run a workflow Lists the runs of one workflow that you can see, newest first. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`workflow_id` (required)**: `string`, format: `uuid` #### Query parameters - **`limit`**: `integer`, default: `20`, minimum: `1`, maximum: `100` #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [WorkflowRunResponse](#scalar-schema-workflowrunresponse) **Generated example:** ```json [ { "pending_study": { "additionalProperty": "anything" }, "execution": { "additionalProperty": "anything" }, "primary_result": { "additionalProperty": "anything" }, "workflow_run_id": "", "workflow_id": "", "workflow_version": 1, "kind": "guide", "conversation_id": "", "interaction_run_id": "", "interaction_id": "", "wave": 1, "n_eff": 1, "reported": true, "thread_id": "", "n_eff_estimate": 1, "reportable": true, "reporting_floor": 1, "status": "", "questions_planned": 1, "questions_asked": 1, "seats": 1, "answers_failed": 0, "model_calls": 1, "expected_cost_units": 1, "cost_units": 1, "cost_says": "", "error_reason": "", "not_answered": [ "" ], "walk": [ { "use": "", "block": "", "version": 1, "label": "", "status": "", "tokens": [ "" ], "missing": [ "" ], "reason": "" } ], "fits_limit": true, "limit_says": "", "will_do": [ "" ], "executor": "conversation", "stop_reason": "", "outputs": [ { "output_id": "", "kind": "", "status": "", "reason": "", "checks": { "additionalProperty": "anything" }, "report_id": "", "answer": "" } ], "version_kept": false, "source_run_id": "", "waiting_for": "", "postures": [ "" ], "hearings": [ "" ], "plan_run_id": "", "plan_position": 1, "started_at": "", "completed_at": "", "inputs": { "additionalProperty": "anything" } } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Plan or start a run - **Method:** `POST` - **Path:** `/v1/workflows/{workflow_id}/runs` - **Operation ID:** `run_workflow_v1_workflows__workflow_id__runs_post` - **Tags:** Run a workflow Plans or starts a run of a workflow. **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`. **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`. What each of Whiteboxx's workflows needs, besides `workspace_id`: - **Group conversation:** `agent_ids` and your own `questions`. - **Focus group** and each **Brainstorm:** `agent_ids` and a `question_set` key from the workflow's `input_spec.question_sets`, or your own `questions`. - **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. - **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`. - **Survey:** a `panel_id` and a `brief`. Your own `questions` each need a `kind`. A part played by one agent, such as `reader` or `art_director`, takes one id, alone or as a list of one. What a run has spent so far is its `cost_units`. Reading a run returns what it was given in `inputs`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`workflow_id` (required)**: `string`, format: `uuid` #### Header parameters - **`Idempotency-Key`**: `string | null`, maxLength: `160` Required to start a run. A start sent again with the same key returns the first run instead of starting and charging a second. #### Request body **Required:** `true` **Content type:** `application/json` [RunWorkflowRequest](#scalar-schema-runworkflowrequest) **Generated example:** ```json { "thread_budget_usd": 1, "execution_inputs": { "additionalProperty": "anything" }, "approval_digest": "", "thread_id": "", "workspace_id": "", "agent_ids": [ "" ], "asset_ids": [ "" ], "start": false, "brief": "", "agents_by_role": { "additionalProperty": "anything" }, "earlier_run_ids": [ "" ], "strategy_handoff_id": "", "strategy_handoff_hash": "", "questions": [ { "text": "", "topic": "", "kind": "", "options": [ "" ], "answering": "private", "asset_id": "", "asset_ids": [ "" ] } ], "question_set": "", "question_budget": 1, "creative_type": "", "creative_type_name": "", "conversation_ids": [ "" ], "postures": { "additionalProperty": "" }, "hears": { "additionalProperty": "" }, "objective": "", "parameters": [ { "key": "", "name": "", "description": "", "weight": 1, "question": "" } ], "ad_platform": "", "reference_ads": [ { "asset_id": "", "group": "", "impressions": 0, "clicks": 0, "spend": 0, "reach": 0 } ], "variation": { "creative": "", "changes": [ 1 ], "instruction": "", "count": 1, "guidelines_source_id": "" }, "panel_id": "" } ``` #### Responses ##### 200 Successful Response **Content type:** `application/json` [WorkflowRunResponse](#scalar-schema-workflowrunresponse) **Generated example:** ```json { "pending_study": { "additionalProperty": "anything" }, "execution": { "additionalProperty": "anything" }, "primary_result": { "additionalProperty": "anything" }, "workflow_run_id": "", "workflow_id": "", "workflow_version": 1, "kind": "guide", "conversation_id": "", "interaction_run_id": "", "interaction_id": "", "wave": 1, "n_eff": 1, "reported": true, "thread_id": "", "n_eff_estimate": 1, "reportable": true, "reporting_floor": 1, "status": "", "questions_planned": 1, "questions_asked": 1, "seats": 1, "answers_failed": 0, "model_calls": 1, "expected_cost_units": 1, "cost_units": 1, "cost_says": "", "error_reason": "", "not_answered": [ "" ], "walk": [ { "use": "", "block": "", "version": 1, "label": "", "status": "", "tokens": [ "" ], "missing": [ "" ], "reason": "" } ], "fits_limit": true, "limit_says": "", "will_do": [ "" ], "executor": "conversation", "stop_reason": "", "outputs": [ { "output_id": "", "kind": "", "status": "", "reason": "", "checks": { "additionalProperty": "anything" }, "report_id": "", "answer": "" } ], "version_kept": false, "source_run_id": "", "waiting_for": "", "postures": [ "" ], "hearings": [ "" ], "plan_run_id": "", "plan_position": 1, "started_at": "", "completed_at": "", "inputs": { "additionalProperty": "anything" } } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get a run - **Method:** `GET` - **Path:** `/v1/workflow-runs/{run_id}` - **Operation ID:** `get_workflow_run_v1_workflow_runs__run_id__get` - **Tags:** Run a workflow 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. `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. `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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`run_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [WorkflowRunResponse](#scalar-schema-workflowrunresponse) [Generated example](#scalar-example-51) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Cancel a run - **Method:** `POST` - **Path:** `/v1/workflow-runs/{run_id}:cancel` - **Operation ID:** `cancel_workflow_run_v1_workflow_runs__run_id__cancel_post` - **Tags:** Run a workflow 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`. A run that has already ended answers `409` with `run_already_ended`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`run_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [WorkflowRunResponse](#scalar-schema-workflowrunresponse) [Generated example](#scalar-example-51) ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### List a run's outputs - **Method:** `GET` - **Path:** `/v1/workflow-runs/{run_id}/outputs` - **Operation ID:** `list_run_outputs_v1_workflow_runs__run_id__outputs_get` - **Tags:** Run results Lists what a run made, each with its `kind`, its `status` and its `body`. For 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`run_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` array of [RunOutputResponse](#scalar-schema-runoutputresponse) **Generated example:** ```json [ { "output_id": "", "workflow_run_id": "", "kind": "", "status": "", "reason": "", "schema_version": "", "body": { "additionalProperty": "anything" }, "checks": { "additionalProperty": "anything" }, "model": "", "cost_units": 0 } ] ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Get an output - **Method:** `GET` - **Path:** `/v1/workflow-runs/{run_id}/outputs/{output_id}` - **Operation ID:** `get_run_output_v1_workflow_runs__run_id__outputs__output_id__get` - **Tags:** Run results Returns one output of a run, with its full `body`. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`run_id` (required)**: `string`, format: `uuid` - **`output_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` [RunOutputResponse](#scalar-schema-runoutputresponse) **Generated example:** ```json { "output_id": "", "workflow_run_id": "", "kind": "", "status": "", "reason": "", "schema_version": "", "body": { "additionalProperty": "anything" }, "checks": { "additionalProperty": "anything" }, "model": "", "cost_units": 0 } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Export a transcript - **Method:** `GET` - **Path:** `/v1/workflows/{workflow_id}/runs/{run_id}/transcript` - **Operation ID:** `export_transcript_v1_workflows__workflow_id__runs__run_id__transcript_get` - **Tags:** Run results Exports a run's transcript as one JSON document: each question, and each agent's answer to it with the evidence it cites. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`workflow_id` (required)**: `string`, format: `uuid` - **`run_id` (required)**: `string`, format: `uuid` #### Responses ##### 200 Successful Response **Content type:** `application/json` `object` **Generated example:** ```json { "additionalProperty": "anything" } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### Read a survey's results - **Method:** `GET` - **Path:** `/v1/interactions/{interaction_id}/waves/{wave}/results` - **Operation ID:** `read_results_v1_interactions__interaction_id__waves__wave__results_get` - **Tags:** Run results Returns a survey's results: for each question, the share of the population that gave each answer, weighted to the panel. A 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. **Servers:** [Inherited servers](#scalar-context-global-servers) #### Authentication - **bearer**: HTTP bearer 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. #### Path parameters - **`interaction_id` (required)**: `string`, format: `uuid` - **`wave` (required)**: `integer` #### Responses ##### 200 Successful Response **Content type:** `application/json` [ResultsResponse](#scalar-schema-resultsresponse) **Generated example:** ```json { "wave_id": "", "wave": 1, "questions": [ { "additionalProperty": "anything" } ], "disclosure": { "additionalProperty": "anything" }, "suppressed": [ "" ], "panel": { "additionalProperty": "anything" }, "study": { "additionalProperty": "anything" } } ``` ##### 401, 402, 403, 404, 409 - `401` Not signed in, or the key is not valid - `402` Not enough credits - `403` Not allowed here - `404` Not found, or not in your reach - `409` Not possible in its current state **Content type:** `application/json` [RefusalEnvelope](#scalar-schema-refusalenvelope) What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. [Generated example](#scalar-example-2) ##### 422 Refused as asked, or the request did not validate **Content type:** `application/json` [HTTPValidationError](#scalar-schema-httpvalidationerror) | [RefusalEnvelope](#scalar-schema-refusalenvelope) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ## Schemas ### AgentCharge **Type:** `object` One agent's line on the ledger. - **`agent_id` (required)**: `string`, format: `uuid` - **`credits` (required)**: `integer` - **`note` (required)**: `string` **Generated example:** ```json { "agent_id": "", "credits": 1, "note": "" } ``` ### AgentLink **Type:** `object` Another agent, named the way its page names it. - **`agent_id` (required)**: `string`, format: `uuid` - **`name` (required)**: `string` **Generated example:** ```json { "agent_id": "", "name": "" } ``` ### AgentListItem **Type:** `object` One agent as a *row*, not as a page. `AgentResponse` answers "show me this agent" and carries what that screen needs: the persona, the compiled card, the trace manifest. A list asked for the same thing and got it per row — on one agent the manifest alone was 18KB of a 26KB response, and a workspace of fifty would have shipped well over a megabyte to draw a table of names and statuses. So this is the deliberate subset: every field some list actually reads, and nothing else. What a row does not show belongs behind `GET /v1/agents/{agent_id}`, which is one request away and is where a person goes when they want the detail. `created_by` is absent for a second reason. It resolves through a lazy relationship, so including it made the list one query per row. - **`agent_id` (required)**: `string`, format: `uuid` - **`blocked_reason` (required)**: `string | null` - **`citable_count` (required)**: `integer` - **`created_at` (required)**: `string`, format: `date-time` - **`evidence_age` (required)**: `object | null` - **`kind` (required)**: `string` `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. - **`knowledge_by_source` (required)**: `array of object` - **`market` (required)**: `string | null` - **`name` (required)**: `string` - **`probe_results` (required)**: `object` - **`public_id` (required)**: `string` - **`signal_count` (required)**: `integer` - **`source_insight_id` (required)**: `string | null`, format: `uuid` - **`source_insight_ids` (required)**: `array` **Items:** `string`, format: `uuid` - **`status` (required)**: `string` - **`workspace_id` (required)**: `string`, format: `uuid` - **`last_used_at`**: `string | null`, format: `date-time` - **`parent_agent_id`**: `string | null`, format: `uuid` - **`persona_age`**: `integer | null` - **`persona_name`**: `string | null` - **`persona_place`**: `string | null` - **`persona_work`**: `string | null` - **`picture_asset_id`**: `string | null`, format: `uuid` - **`ready_to_build`**: `boolean`, default: `false` - **`role`**: `string`, default: `""` - **`roles`**: `array of string` - **`studies_running`**: `boolean`, default: `false` - **`threads`**: `integer`, default: `0` - **`traits`**: `array of string` - **`your_thread_id`**: `string | null`, format: `uuid` **Generated example:** ```json { "agent_id": "", "your_thread_id": "", "public_id": "", "kind": "", "name": "", "status": "", "blocked_reason": "", "workspace_id": "", "created_at": "", "market": "", "roles": [ "" ], "parent_agent_id": "", "persona_name": "", "persona_age": 1, "persona_place": "", "role": "", "persona_work": "", "traits": [ "" ], "picture_asset_id": "", "threads": 0, "last_used_at": "", "signal_count": 1, "citable_count": 1, "evidence_age": { "additionalProperty": "anything" }, "probe_results": { "additionalProperty": "anything" }, "knowledge_by_source": [ { "additionalProperty": "anything" } ], "source_insight_id": "", "source_insight_ids": [ "" ], "studies_running": false, "ready_to_build": false } ``` ### AgentResponse **Type:** `object` - **`agent_id` (required)**: `string`, format: `uuid` - **`blocked_reason` (required)**: `string | null` - **`citable_count` (required)**: `integer` - **`created_at` (required)**: `string`, format: `date-time` - **`created_by` (required)**: `string | null` - **`evidence_age` (required)**: `object` - **`evidence_digest` (required)**: `string` - **`instruction_gate` (required)**: `object` - **`instructions` (required)**: `string | null` - **`kind` (required)**: `string` `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. - **`knowledge_by_source` (required)**: `array of object` - **`mindset` (required)**: `object` **Additional properties:** `number` - **`name` (required)**: `string` - **`persona` (required)**: `object` - **`persona_card` (required)**: `object` - **`probe_results` (required)**: `object` - **`public_id` (required)**: `string` - **`signal_count` (required)**: `integer` - **`source_insight_id` (required)**: `string | null`, format: `uuid` - **`source_insight_ids` (required)**: `array` **Items:** `string`, format: `uuid` - **`status` (required)**: `string` - **`trace_manifest` (required)**: `object` - **`workspace_id` (required)**: `string`, format: `uuid` - **`brief`**: `object` - **`claimable`**: `object` - **`description`**: `string`, default: `""` - **`dials`**: `array of object`, default: `[]` - **`dropped_studies`**: `array of object` - **`evidence_audit`**: `object` - **`language`**: `string | null` - **`latest_probe`**: `object | null` - **`market`**: `string | null` - **`operator`**: [OperatorView](#scalar-schema-operatorview) | `null` What an execution agent carries: the approved version a member can read. - **`persona_name`**: `string | null` - **`picture_asset_id`**: `string | null`, format: `uuid` - **`profile_card`**: [ProfileCard](#scalar-schema-profilecard) | `null` The persona card the agent's page draws, exactly as stored. - **`profile_card_state`**: `string`, possible values: `"ready", "missing", "none"`, default: `"none"` - **`remix_instruction`**: `string | null` - **`remixed_from`**: [AgentLink](#scalar-schema-agentlink) | `null` Another agent, named the way its page names it. - **`role`**: `string`, default: `""` - **`run_id`**: `string | null`, format: `uuid` - **`source_plan`**: `object` - **`subject`**: `string | null` - **`twins`**: array of [AgentLink](#scalar-schema-agentlink) - **`your_thread_id`**: `string | null`, format: `uuid` **Generated example:** ```json { "agent_id": "", "public_id": "", "kind": "", "name": "", "persona_name": "", "your_thread_id": "", "picture_asset_id": "", "status": "", "blocked_reason": "", "workspace_id": "", "source_insight_id": "", "evidence_digest": "", "signal_count": 1, "persona_card": { "additionalProperty": "anything" }, "persona": { "additionalProperty": "anything" }, "created_at": "", "created_by": "", "probe_results": { "additionalProperty": "anything" }, "trace_manifest": { "additionalProperty": "anything" }, "mindset": { "additionalProperty": 1 }, "subject": "", "market": "", "language": "", "role": "", "description": "", "dials": [], "instructions": "", "instruction_gate": { "additionalProperty": "anything" }, "source_insight_ids": [ "" ], "knowledge_by_source": [ { "additionalProperty": "anything" } ], "citable_count": 1, "claimable": { "additionalProperty": "anything" }, "latest_probe": { "additionalProperty": "anything" }, "evidence_age": { "additionalProperty": "anything" }, "run_id": "", "brief": { "additionalProperty": "anything" }, "source_plan": { "additionalProperty": "anything" }, "dropped_studies": [ { "additionalProperty": "anything" } ], "evidence_audit": { "additionalProperty": "anything" }, "profile_card": { "version": 3, "digest": "", "written": { "at": "", "by": "build", "model": "", "prompt_version": 1, "cost_units": 1, "dropped": { "additionalProperty": 1 } }, "groups": [ { "title": "", "items": [ { "cites": [ "" ], "label": "", "text": "", "icon": "" } ] } ], "interests": { "title": "", "items": [ { "index": 1, "text": "" } ] }, "quote": { "indices": [ 1 ], "text": "", "of": 1 }, "configuration": [ { "dial": "", "title": "", "icon": "", "word": "High", "sentence": "" } ] }, "profile_card_state": "none", "operator": { "definition_key": "", "roles": [ "" ], "version_number": 1, "introduces_as": "", "instructions": "", "skill_files": [ { "name": "", "text": "", "sha256": "" } ], "data_tools": [ { "key": "", "label": "", "status": "" } ], "general_tools": [ { "key": "", "label": "" } ], "output_formats": [ "" ], "drafted_from": [ { "url": "", "title": "" } ], "approved_by": "", "approved_at": "", "agent_class": "operator", "profile_key": "", "management_scope": "platform", "creation_contract": { "additionalProperty": "anything" }, "execution_manifest": { "additionalProperty": "anything" } }, "remixed_from": { "agent_id": "", "name": "" }, "remix_instruction": "", "twins": [ { "agent_id": "", "name": "" } ] } ``` ### AnswerLanguageOption **Type:** `object` - **`code` (required)**: `string` - **`label` (required)**: `string` **Generated example:** ```json { "code": "", "label": "" } ``` ### ParticipantResponse **Type:** `object` - **`agent_id` (required)**: `string`, format: `uuid` - **`agent_public_id` (required)**: `string` - **`label` (required)**: `string | null` - **`name` (required)**: `string` - **`position` (required)**: `integer` - **`hears`**: `string`, default: `"private"` - **`persona_name`**: `string | null` - **`picture_asset_id`**: `string | null`, format: `uuid` - **`posture`**: `string`, default: `"standard"` **Generated example:** ```json { "agent_id": "", "agent_public_id": "", "name": "", "persona_name": "", "picture_asset_id": "", "position": 1, "label": "", "posture": "standard", "hears": "private" } ``` ### ParticipantResponse **Type:** `object` - **`addressable` (required)**: `boolean` - **`agent_id` (required)**: `string`, format: `uuid` - **`agent_public_id` (required)**: `string` - **`label` (required)**: `string | null` - **`name` (required)**: `string` - **`position` (required)**: `integer` - **`status` (required)**: `string` - **`hears`**: `string`, default: `"private"` - **`posture`**: `string`, default: `"standard"` **Generated example:** ```json { "agent_id": "", "agent_public_id": "", "name": "", "position": 1, "label": "", "status": "", "addressable": true, "posture": "standard", "hears": "private" } ``` ### AskRequest **Type:** `object` - **`question` (required)**: `string`, minLength: `2`, maxLength: `2000` What to ask. - **`agent_ids`**: `array | null` In a group, ask only these agents. Without it, all answer. **Items:** `string`, format: `uuid` - **`answering`**: `string`, default: `"private"`, pattern: `^(private|open)$` 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`. - **`asset_id`**: `string | null`, format: `uuid` One asset to show the agents. It goes before `asset_ids`. - **`asset_ids`**: `array` Assets to show the agents, such as images or documents. What an agent says about them is description, not evidence, and is never cited. **Items:** `string`, format: `uuid` - **`mode`**: `string`, default: `"model"`, pattern: `^(deterministic|model)$`, deprecated Ignored. Still accepted so an older client is not refused. - **`posture`**: `string | null`, maxLength: `40` How the agents asked talk from this question on: one of `standard`, `reflection`, `storytelling`, `skeptical_reviewer`, `executive_briefing`. Without it, each keeps its own. **Generated example:** ```json { "question": "", "answering": "private", "asset_id": "", "asset_ids": [ "" ], "agent_ids": [ "" ], "posture": "" } ``` ### AskResponse **Type:** `object` - **`answer` (required)**: [MessageResponse](#scalar-schema-messageresponse) - **`answers` (required)**: array of [MessageResponse](#scalar-schema-messageresponse) - **`conversation_id` (required)**: `string`, format: `uuid` - **`cost_units` (required)**: `integer` - **`mode` (required)**: `string` - **`question` (required)**: [MessageResponse](#scalar-schema-messageresponse) - **`charge`**: [QuestionCharge](#scalar-schema-questioncharge) | `null` What a question cost, read from the ledger. An agent that never answered has no line here, and `unfinished_agent_names` on the turn names it. **Generated example:** ```json { "conversation_id": "", "mode": "", "question": { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" }, "answers": [ { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" } ], "answer": { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" }, "cost_units": 1, "charge": { "credits": 1, "agents": [ { "agent_id": "", "credits": 1, "note": "" } ] } } ``` ### AssetResponse **Type:** `object` - **`asset_id` (required)**: `string`, format: `uuid` - **`byte_size` (required)**: `integer` - **`caption` (required)**: `string | null` - **`checksum_sha256` (required)**: `string` - **`content_type` (required)**: `string` - **`created_at` (required)**: `string`, format: `date-time` - **`kind` (required)**: `string` - **`name` (required)**: `string` - **`workspace_id` (required)**: `string`, format: `uuid` - **`archived_at`**: `string | null`, format: `date-time` - **`evidence_note`**: `string`, 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."` - **`origin`**: `string`, default: `"uploaded"` - **`part_of_asset_id`**: `string | null`, format: `uuid` - **`source_url`**: `string | null` **Generated example:** ```json { "asset_id": "", "name": "", "kind": "", "content_type": "", "byte_size": 1, "checksum_sha256": "", "caption": "", "workspace_id": "", "created_at": "", "origin": "uploaded", "source_url": "", "archived_at": "", "part_of_asset_id": "", "evidence_note": "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." } ``` ### Body\_upload\_asset\_v1\_assets\_post **Type:** `object` - **`file` (required)**: `string` - **`name` (required)**: `string` - **`workspace_id` (required)**: `string`, format: `uuid` - **`caption`**: `string | null` **Generated example:** ```json { "workspace_id": "", "name": "", "caption": "", "file": "" } ``` ### BoxEvidence **Type:** `object` What one box's people were written from. - **`evidence` (required)**: `array of string` - **`kept` (required)**: `integer` - **`left` (required)**: `object` **Additional properties:** `integer` **Generated example:** ```json { "evidence": [ "" ], "kept": 1, "left": { "additionalProperty": 1 } } ``` ### CatalogObjectiveParameter **Type:** `object` - **`key` (required)**: `string` - **`label` (required)**: `string` - **`weight` (required)**: `integer` **Generated example:** ```json { "key": "", "label": "", "weight": 1 } ``` ### CatalogObjectiveView **Type:** `object` - **`description` (required)**: `string` - **`key` (required)**: `string` - **`label` (required)**: `string` - **`parameters` (required)**: array of [CatalogObjectiveParameter](#scalar-schema-catalogobjectiveparameter) - **`subtitle` (required)**: `string` **Generated example:** ```json { "key": "", "label": "", "subtitle": "", "description": "", "parameters": [ { "key": "", "label": "", "weight": 1 } ] } ``` ### CatalogParameterView **Type:** `object` - **`description` (required)**: `string` - **`key` (required)**: `string` - **`label` (required)**: `string` **Generated example:** ```json { "key": "", "label": "", "description": "" } ``` ### ConversationResponse **Type:** `object` - **`agent_id` (required)**: `string | null`, format: `uuid` - **`agent_public_id` (required)**: `string | null` - **`conversation_id` (required)**: `string`, format: `uuid` - **`mode` (required)**: `string` - **`participants` (required)**: array of [app\_\_api\_\_v1\_\_conversations\_\_ParticipantResponse](#scalar-schema-app-api-v1-conversations-participantresponse) - **`status` (required)**: `string` - **`title` (required)**: `string | null` - **`workflow_id` (required)**: `string | null`, format: `uuid` - **`access`**: `string`, default: `"owner"` - **`archived_at`**: `string | null`, format: `date-time` - **`created_at`**: `string | null`, format: `date-time` - **`created_by`**: `string | null` - **`created_by_account_id`**: `string | null`, format: `uuid` - **`message_count`**: `integer`, default: `0` - **`posture_revision`**: `integer`, default: `0` - **`questions`**: `array of object` - **`reading`**: `string | null`, possible values: `"verdict", "analysis"` - **`shared_at`**: `string | null`, format: `date-time` - **`thread_id`**: `string | null`, format: `uuid` **Generated example:** ```json { "posture_revision": 0, "conversation_id": "", "agent_id": "", "agent_public_id": "", "workflow_id": "", "thread_id": "", "mode": "", "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "persona_name": "", "picture_asset_id": "", "position": 1, "label": "", "posture": "standard", "hears": "private" } ], "title": "", "status": "", "archived_at": "", "message_count": 0, "questions": [ { "additionalProperty": "anything" } ], "created_at": "", "created_by_account_id": "", "created_by": "", "shared_at": "", "access": "owner", "reading": "verdict" } ``` ### CreateConversationRequest **Type:** `object` - **`workspace_id` (required)**: `string`, format: `uuid` The workspace the agents are in. - **`agent_id`**: `string | null`, format: `uuid` One agent, for a chat with that agent alone. - **`agent_ids`**: `array | null` Several agents, for a group of up to 12. Their answers come back in this order. **Items:** `string`, format: `uuid` - **`posture`**: `string | null`, maxLength: `40` How the agents talk: one of `standard`, `reflection`, `storytelling`, `skeptical_reviewer`, `executive_briefing`. Default `standard`. - **`thread_id`**: `string | null`, format: `uuid` The thread to file it in. Without one, a new thread is opened that holds only this conversation. - **`title`**: `string | null`, maxLength: `240` A name for the conversation. - **`workflow_id`**: `string | null`, format: `uuid` 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. **Generated example:** ```json { "workspace_id": "", "workflow_id": "", "agent_id": "", "agent_ids": [ "" ], "title": "", "thread_id": "", "posture": "" } ``` ### CreateThreadRequest **Type:** `object` - **`idempotency_key` (required)**: `string`, minLength: `1`, maxLength: `160` - **`title` (required)**: `string`, minLength: `1`, maxLength: `240` - **`workspace_id` (required)**: `string`, format: `uuid` **Generated example:** ```json { "workspace_id": "", "title": "", "idempotency_key": "" } ``` ### CreativeCatalogResponse **Type:** `object` - **`creative_type` (required)**: `string` - **`objectives` (required)**: array of [CatalogObjectiveView](#scalar-schema-catalogobjectiveview) - **`parameters` (required)**: array of [CatalogParameterView](#scalar-schema-catalogparameterview) - **`version` (required)**: `integer` **Generated example:** ```json { "version": 1, "creative_type": "", "objectives": [ { "key": "", "label": "", "subtitle": "", "description": "", "parameters": [ { "key": "", "label": "", "weight": 1 } ] } ], "parameters": [ { "key": "", "label": "", "description": "" } ] } ``` ### DocumentCheck **Type:** `object` - **`needs` (required)**: array of [NeedState](#scalar-schema-needstate) - **`ok` (required)**: `boolean` - **`reasons` (required)**: `array of string` - **`will_do` (required)**: `array of string` **Generated example:** ```json { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] } ``` ### HTTPValidationError **Type:** `object` - **`detail`**: array of [ValidationError](#scalar-schema-validationerror) **Generated example:** ```json { "detail": [ { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ] } ``` ### MergedGroup **Type:** `object` A group too small to keep as its own, counted in another (`Split.merged_into`). - **`label` (required)**: `string` - **`share` (required)**: `number` **Generated example:** ```json { "label": "", "share": 1 } ``` ### MessageResponse **Type:** `object` - **`content` (required)**: `string` - **`cost_units` (required)**: `integer` - **`generation_mode` (required)**: `string` - **`model` (required)**: `string | null` - **`position` (required)**: `integer` - **`role` (required)**: `string` - **`trace_refs` (required)**: array of [MessageTraceRef](#scalar-schema-messagetraceref) - **`unknowns` (required)**: `array of string` - **`agent_id`**: `string | null`, format: `uuid` - **`agent_name`**: `string | null` - **`agent_public_id`**: `string | null` - **`answering`**: `string`, default: `"private"` - **`asked_by_agent_id`**: `string | null`, format: `uuid` - **`asked_by_name`**: `string | null` - **`asked_why`**: `string | null` - **`asset_ids`**: `array` **Items:** `string`, format: `uuid` - **`created_at`**: `string | null`, format: `date-time` - **`describes_asset`**: `boolean`, default: `false` - **`evidence_note`**: `string | null` - **`evidence_score`**: `integer | null` - **`hears`**: `string | null` - **`live_context`**: `object | null` - **`my_rating`**: `string | null`, possible values: `"up", "down"` - **`operator_sources`**: `array of object` - **`persona_name`**: `string | null` - **`posture`**: `string | null` - **`saw_messages`**: `array of integer` **Generated example:** ```json { "position": 1, "role": "", "content": "", "created_at": "", "answering": "private", "saw_messages": [ 1 ], "posture": "", "hears": "", "describes_asset": false, "asset_ids": [ "" ], "evidence_note": "", "asked_by_agent_id": "", "asked_by_name": "", "asked_why": "", "operator_sources": [ { "additionalProperty": "anything" } ], "agent_id": "", "agent_public_id": "", "agent_name": "", "persona_name": "", "trace_refs": [ { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ], "unknowns": [ "" ], "evidence_score": 1, "generation_mode": "", "model": "", "cost_units": 1, "live_context": { "additionalProperty": "anything" }, "my_rating": "up" } ``` ### MessageTraceRef **Type:** `object` One citation on a turn, as much of it as a transcript needs. Typed rather than passed through as a bare dict. The ledger writes this row with its own key names — `evidence_checksum` — and the field was published as `dict[str, Any]`, so a reader had to guess the shape and nothing checked the guess. The playground guessed `checksum_sha256`, got `undefined`, and the whole conversation page went white on `.slice`. The full row, with populations and shares, is at `/{id}/messages/{position}/evidence`. This is the identity of the citation: enough to show it, name it, and go and look it up. - **`ref` (required)**: `string` - **`card_key`**: `string | null` - **`checksum_sha256`**: `string | null` - **`data_source`**: `string | null` - **`evidence_uri`**: `string | null` - **`insight_id`**: `string | null`, format: `uuid` - **`kind`**: `string`, default: `"evidence"` - **`name`**: `string`, default: `""` - **`row_key`**: `string | null` - **`source_label`**: `string | null` **Generated example:** ```json { "ref": "", "row_key": "", "card_key": "", "name": "", "kind": "evidence", "source_label": "", "data_source": "", "evidence_uri": "", "checksum_sha256": "", "insight_id": "" } ``` ### NeedState **Type:** `object` - **`left_by` (required)**: `array of string` - **`met` (required)**: `boolean` - **`optional` (required)**: `boolean` - **`reason` (required)**: `string | null` - **`token` (required)**: `string` - **`use_id` (required)**: `string` **Generated example:** ```json { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ``` ### OperatorDataTool **Type:** `object` - **`key` (required)**: `string` - **`label` (required)**: `string` - **`status` (required)**: `string` **Generated example:** ```json { "key": "", "label": "", "status": "" } ``` ### OperatorGeneralTool **Type:** `object` - **`key` (required)**: `string` - **`label` (required)**: `string` **Generated example:** ```json { "key": "", "label": "" } ``` ### OperatorSkillFile **Type:** `object` - **`name` (required)**: `string` - **`sha256` (required)**: `string` - **`text` (required)**: `string` **Generated example:** ```json { "name": "", "text": "", "sha256": "" } ``` ### OperatorSource **Type:** `object` - **`url` (required)**: `string` - **`title`**: `string | null` **Generated example:** ```json { "url": "", "title": "" } ``` ### OperatorView **Type:** `object` What an execution agent carries: the approved version a member can read. - **`approved_at` (required)**: `string | null`, format: `date-time` - **`approved_by` (required)**: `string | null` - **`data_tools` (required)**: array of [OperatorDataTool](#scalar-schema-operatordatatool) - **`definition_key` (required)**: `string` - **`drafted_from` (required)**: array of [OperatorSource](#scalar-schema-operatorsource) - **`general_tools` (required)**: array of [OperatorGeneralTool](#scalar-schema-operatorgeneraltool) - **`instructions` (required)**: `string` - **`introduces_as` (required)**: `string` - **`output_formats` (required)**: `array of string` - **`roles` (required)**: `array of string` - **`skill_files` (required)**: array of [OperatorSkillFile](#scalar-schema-operatorskillfile) - **`version_number` (required)**: `integer` - **`agent_class`**: `string`, possible values: `"operator", "execution"`, default: `"operator"` - **`creation_contract`**: `object` - **`execution_manifest`**: `object | null` - **`management_scope`**: `string`, possible values: `"platform", "workspace"`, default: `"platform"` - **`profile_key`**: `string | null` **Generated example:** ```json { "definition_key": "", "roles": [ "" ], "version_number": 1, "introduces_as": "", "instructions": "", "skill_files": [ { "name": "", "text": "", "sha256": "" } ], "data_tools": [ { "key": "", "label": "", "status": "" } ], "general_tools": [ { "key": "", "label": "" } ], "output_formats": [ "" ], "drafted_from": [ { "url": "", "title": "" } ], "approved_by": "", "approved_at": "", "agent_class": "operator", "profile_key": "", "management_scope": "platform", "creation_contract": { "additionalProperty": "anything" }, "execution_manifest": { "additionalProperty": "anything" } } ``` ### OrganizationListItem **Type:** `object` - **`name` (required)**: `string` - **`organization_id` (required)**: `string`, format: `uuid` **Generated example:** ```json { "organization_id": "", "name": "" } ``` ### Page\[AgentListItem] **Type:** `object` - **`data` (required)**: array of [AgentListItem](#scalar-schema-agentlistitem) - **`has_more`**: `boolean`, default: `false` - **`next_cursor`**: `string | null` **Generated example:** ```json { "data": [ { "agent_id": "", "your_thread_id": "", "public_id": "", "kind": "", "name": "", "status": "", "blocked_reason": "", "workspace_id": "", "created_at": "", "market": "", "roles": [ "" ], "parent_agent_id": "", "persona_name": "", "persona_age": 1, "persona_place": "", "role": "", "persona_work": "", "traits": [ "" ], "picture_asset_id": "", "threads": 0, "last_used_at": "", "signal_count": 1, "citable_count": 1, "evidence_age": { "additionalProperty": "anything" }, "probe_results": { "additionalProperty": "anything" }, "knowledge_by_source": [ { "additionalProperty": "anything" } ], "source_insight_id": "", "source_insight_ids": [ "" ], "studies_running": false, "ready_to_build": false } ], "next_cursor": "", "has_more": false } ``` ### Page\[WorkflowResponse] **Type:** `object` - **`data` (required)**: array of [WorkflowResponse](#scalar-schema-workflowresponse) - **`has_more`**: `boolean`, default: `false` - **`next_cursor`**: `string | null` **Generated example:** ```json { "data": [ { "execution_spec": { "additionalProperty": "anything" }, "workflow_id": "", "key": "", "name": "", "description": "", "kind": "guide", "panel_spec": { "additionalProperty": "anything" }, "mode": "", "answer_mode": "", "questions": [ { "additionalProperty": "anything" } ], "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "position": 1, "label": "", "status": "", "addressable": true, "posture": "standard", "hears": "private" } ], "version": 1, "status": "", "workspace_id": "", "runnable": true, "proposed_questions": [ { "additionalProperty": "anything" } ], "proposal_status": "none", "created_at": "", "run_count": 0, "last_run_at": "", "origin": "user", "source_workflow_id": "", "executor": "conversation", "input_spec": { "additionalProperty": "anything" }, "agent_spec": { "additionalProperty": "anything" }, "output_spec": { "additionalProperty": "anything" }, "editable": true, "your_level": "", "document": { "additionalProperty": "anything" }, "started_as": "", "check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "draft_document": { "additionalProperty": "anything" }, "draft_check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "run_form": { "talk": "", "first": "", "screen": "", "solo": true, "least": 1, "most": 1, "files": "", "earlier_run": "", "topic": true, "questions": 1 } } ], "next_cursor": "", "has_more": false } ``` ### PanelDesign **Type:** `object` What a swarm is: its splits, its boxes, and how many people stand for how many rows. - **`agents` (required)**: array of [SwarmAgent](#scalar-schema-swarmagent) - **`boxes` (required)**: array of [SwarmBox](#scalar-schema-swarmbox) - **`market` (required)**: `string` - **`method` (required)**: `string` - **`n_eff` (required)**: `number` - **`n_elicited` (required)**: `integer` - **`n_represented` (required)**: `integer` - **`population_model` (required)**: `string` - **`selected_axes` (required)**: `array of object` - **`splits` (required)**: array of [Split](#scalar-schema-split) - **`why_these_splits` (required)**: `string` - **`complexity_components`**: `object` **Additional properties:** `number` - **`complexity_score`**: `number | null` - **`refused`**: array of [RefusedSplit](#scalar-schema-refusedsplit) **Generated example:** ```json { "population_model": "", "method": "", "market": "", "splits": [ { "axis_id": "", "agent_id": "", "agent": "", "label": "", "levels": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "excluded": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "agents": [ { "agent_id": "", "name": "", "shares": [ 1 ] } ], "why": "", "source": "", "source_label": "", "merged": [ { "label": "", "share": 1 } ], "merged_into": "", "note": "", "measured": false } ], "why_these_splits": "", "selected_axes": [ { "additionalProperty": "anything" } ], "boxes": [ { "cell_id": "", "agent_id": "", "agent": "", "groups": { "additionalProperty": "" }, "share": 1, "people": 1 } ], "agents": [ { "agent_id": "", "name": "", "weight": 1, "people": 1, "mindset": { "additionalProperty": 1 }, "left_out": false, "method": "", "split_by": "", "model": "", "split_reason": "", "kept": 1, "split_trace_id": "" } ], "n_elicited": 1, "n_represented": 1, "n_eff": 1, "complexity_score": 1, "complexity_components": { "additionalProperty": 1 }, "refused": [ { "source": "", "source_label": "", "label": "", "reason": "" } ] } ``` ### PanelResponse **Type:** `object` - **`asked_cap` (required)**: `integer | null` - **`cell_source` (required)**: `object` - **`cells` (required)**: `array of object` - **`fingerprint` (required)**: `string` - **`name` (required)**: `string` - **`objective` (required)**: `string` - **`panel_id` (required)**: `string`, format: `uuid` - **`seed` (required)**: `integer` - **`segments` (required)**: `array of object` - **`status` (required)**: `string` - **`target_panel_size` (required)**: `integer` - **`universe` (required)**: `string` - **`created_at`**: `string`, default: `""` - **`design`**: [PanelDesign](#scalar-schema-paneldesign) | `null` What a swarm is: its splits, its boxes, and how many people stand for how many rows. - **`people`**: [SwarmPeople](#scalar-schema-swarmpeople) | `null` - **`survey_count`**: `integer`, default: `0` **Generated example:** ```json { "panel_id": "", "name": "", "objective": "", "status": "", "seed": 1, "target_panel_size": 1, "asked_cap": 1, "universe": "", "fingerprint": "", "segments": [ { "additionalProperty": "anything" } ], "cells": [ { "additionalProperty": "anything" } ], "cell_source": { "additionalProperty": "anything" }, "survey_count": 0, "design": { "population_model": "", "method": "", "market": "", "splits": [ { "axis_id": "", "agent_id": "", "agent": "", "label": "", "levels": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "excluded": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "agents": [ { "agent_id": "", "name": "", "shares": [ 1 ] } ], "why": "", "source": "", "source_label": "", "merged": [ { "label": "", "share": 1 } ], "merged_into": "", "note": "", "measured": false } ], "why_these_splits": "", "selected_axes": [ { "additionalProperty": "anything" } ], "boxes": [ { "cell_id": "", "agent_id": "", "agent": "", "groups": { "additionalProperty": "" }, "share": 1, "people": 1 } ], "agents": [ { "agent_id": "", "name": "", "weight": 1, "people": 1, "mindset": { "additionalProperty": 1 }, "left_out": false, "method": "", "split_by": "", "model": "", "split_reason": "", "kept": 1, "split_trace_id": "" } ], "n_elicited": 1, "n_represented": 1, "n_eff": 1, "complexity_score": 1, "complexity_components": { "additionalProperty": 1 }, "refused": [ { "source": "", "source_label": "", "label": "", "reason": "" } ] }, "people": { "model": "", "written_at": "", "people": [ { "seed_id": "", "cell_id": "", "agent_id": "", "age": 1, "gender": "", "city": "", "household": "", "work": "", "about": [ "" ] } ], "boxes": { "additionalProperty": { "evidence": [ "" ], "kept": 1, "left": { "additionalProperty": 1 } } } }, "created_at": "" } ``` ### ParameterWeight **Type:** `object` A parameter a creative evaluation judges, and its weight. Either one of the catalog's, by `key`, or the person's own: a `name` and a line saying what it `description` means. Never both. `question` is what this run asks for it, written by `creative:questions`; without one the run asks the parameter's catalog questions. - **`weight` (required)**: `integer`, minimum: `1`, maximum: `100` - **`description`**: `string | null`, maxLength: `300` - **`key`**: `string | null`, minLength: `1`, maxLength: `64` - **`name`**: `string | null`, maxLength: `60` - **`question`**: `string | null`, minLength: `3`, maxLength: `300` **Generated example:** ```json { "key": "", "name": "", "description": "", "weight": 1, "question": "" } ``` ### ProfileCard **Type:** `object` The persona card the agent's page draws, exactly as stored. - **`configuration` (required)**: array of [ProfileCardDial](#scalar-schema-profilecarddial) - **`digest` (required)**: `string` - **`groups` (required)**: array of [ProfileCardGroup](#scalar-schema-profilecardgroup) - **`interests` (required)**: [ProfileCardInterests](#scalar-schema-profilecardinterests) | `null` What the person follows. - **`quote` (required)**: [ProfileCardQuote](#scalar-schema-profilecardquote) | `null` One or two of the person's own sentences, copied word for word. - **`version` (required)**: `integer`, const: `3` - **`written` (required)**: [ProfileCardWritten](#scalar-schema-profilecardwritten) When, by what and by which model the card was written. **Generated example:** ```json { "version": 3, "digest": "", "written": { "at": "", "by": "build", "model": "", "prompt_version": 1, "cost_units": 1, "dropped": { "additionalProperty": 1 } }, "groups": [ { "title": "", "items": [ { "cites": [ "" ], "label": "", "text": "", "icon": "" } ] } ], "interests": { "title": "", "items": [ { "index": 1, "text": "" } ] }, "quote": { "indices": [ 1 ], "text": "", "of": 1 }, "configuration": [ { "dial": "", "title": "", "icon": "", "word": "High", "sentence": "" } ] } ``` ### ProfileCardDial **Type:** `object` A dial as the card shows it: a title, a glyph, a word and a sentence. - **`dial` (required)**: `string` - **`icon` (required)**: `string | null` - **`sentence` (required)**: `string | null` - **`title` (required)**: `string` - **`word` (required)**: `string`, possible values: `"High", "Moderate", "Low"` **Generated example:** ```json { "dial": "", "title": "", "icon": "", "word": "High", "sentence": "" } ``` ### ProfileCardGroup **Type:** `object` A group of facts under a title in the person's pronoun. - **`items` (required)**: array of [ProfileCardItem](#scalar-schema-profilecarditem) - **`title` (required)**: `string | null` **Generated example:** ```json { "title": "", "items": [ { "cites": [ "" ], "label": "", "text": "", "icon": "" } ] } ``` ### ProfileCardInterest **Type:** `object` One thing the person follows, as a chip. - **`index` (required)**: `integer` - **`text` (required)**: `string` **Generated example:** ```json { "index": 1, "text": "" } ``` ### ProfileCardInterests **Type:** `object` What the person follows. - **`items` (required)**: array of [ProfileCardInterest](#scalar-schema-profilecardinterest) - **`title` (required)**: `string | null` **Generated example:** ```json { "title": "", "items": [ { "index": 1, "text": "" } ] } ``` ### ProfileCardItem **Type:** `object` One fact on the persona card, phrased by the model. - **`cites` (required)**: `array of string` - **`icon` (required)**: `string | null` - **`label` (required)**: `string` - **`text` (required)**: `string` **Generated example:** ```json { "cites": [ "" ], "label": "", "text": "", "icon": "" } ``` ### ProfileCardQuote **Type:** `object` One or two of the person's own sentences, copied word for word. - **`indices` (required)**: `array of integer` - **`of` (required)**: `integer` - **`text` (required)**: `string` **Generated example:** ```json { "indices": [ 1 ], "text": "", "of": 1 } ``` ### ProfileCardWritten **Type:** `object` When, by what and by which model the card was written. - **`at` (required)**: `string`, format: `date-time` - **`by` (required)**: `string`, possible values: `"build", "first_view", "backfill"` - **`cost_units` (required)**: `integer` - **`dropped` (required)**: `object` **Additional properties:** `integer` - **`model` (required)**: `string` - **`prompt_version` (required)**: `integer | null` **Generated example:** ```json { "at": "", "by": "build", "model": "", "prompt_version": 1, "cost_units": 1, "dropped": { "additionalProperty": 1 } } ``` ### QuestionCharge **Type:** `object` What a question cost, read from the ledger. An agent that never answered has no line here, and `unfinished_agent_names` on the turn names it. - **`agents` (required)**: array of [AgentCharge](#scalar-schema-agentcharge) - **`credits` (required)**: `integer` **Generated example:** ```json { "credits": 1, "agents": [ { "agent_id": "", "credits": 1, "note": "" } ] } ``` ### QuestionRequest **Type:** `object` - **`text` (required)**: `string`, minLength: `2`, maxLength: `2000` The question, as the agents read it. - **`answering`**: `string`, default: `"private"`, pattern: `^(private|open)$` `private`: each agent answers without seeing the others. `open`: each agent answers after reading what the others said. - **`asset_id`**: `string | null`, format: `uuid` - **`asset_ids`**: `array` **Items:** `string`, format: `uuid` - **`kind`**: `string | null`, pattern: `^(single_choice|yes_no|scale)$` For a survey: `single_choice`, `yes_no` or `scale`. A survey question needs one. Other workflows ask in prose and ignore it. - **`options`**: `array of string` The choices for a `single_choice` survey question, two or more. - **`topic`**: `string | null`, maxLength: `80` **Generated example:** ```json { "text": "", "topic": "", "kind": "", "options": [ "" ], "answering": "private", "asset_id": "", "asset_ids": [ "" ] } ``` ### ReferenceAd **Type:** `object` An ad that ran before, marked for how it did, with any numbers the person has. The numbers are kept as entered; nothing measures them. - **`asset_id` (required)**: `string`, format: `uuid` - **`group` (required)**: `string`, pattern: `^(did_well|did_poorly)$` - **`clicks`**: `number | null`, minimum: `0` - **`impressions`**: `number | null`, minimum: `0` - **`reach`**: `number | null`, minimum: `0` - **`spend`**: `number | null`, minimum: `0` **Generated example:** ```json { "asset_id": "", "group": "", "impressions": 0, "clicks": 0, "spend": 0, "reach": 0 } ``` ### Refusal **Type:** `object` - **`reason` (required)**: `string` A code for why, stable enough to branch on. - **`detail`**: `string | null` What happened, in a sentence. - **`remedy`**: `string | null` What to do next. **Generated example:** ```json { "reason": "", "detail": "", "remedy": "" } ``` ### RefusalEnvelope **Type:** `object` What a refused request answers with. `detail` is a sentence rather than a `Refusal` on some older refusals. - **`detail` (required)**: [Refusal](#scalar-schema-refusal) | `string` **Generated example:** ```json { "detail": { "reason": "", "detail": "", "remedy": "" } } ``` ### RefusedSplit **Type:** `object` A card the agents measured that a representative swarm does not split by, and why. - **`label` (required)**: `string` - **`reason` (required)**: `string` - **`source` (required)**: `string` - **`source_label` (required)**: `string` **Generated example:** ```json { "source": "", "source_label": "", "label": "", "reason": "" } ``` ### RenameThreadRequest **Type:** `object` - **`title` (required)**: `string`, minLength: `1`, maxLength: `240` **Generated example:** ```json { "title": "" } ``` ### ResultsResponse **Type:** `object` - **`disclosure` (required)**: `object` - **`panel` (required)**: `object` - **`questions` (required)**: `array of object` - **`suppressed` (required)**: `array of string` - **`wave` (required)**: `integer` - **`wave_id` (required)**: `string`, format: `uuid` - **`study`**: `object | null` **Generated example:** ```json { "wave_id": "", "wave": 1, "questions": [ { "additionalProperty": "anything" } ], "disclosure": { "additionalProperty": "anything" }, "suppressed": [ "" ], "panel": { "additionalProperty": "anything" }, "study": { "additionalProperty": "anything" } } ``` ### RunForm **Type:** `object` What a run of this workflow asks, as its talk component says it. - **`earlier_run` (required)**: `string` - **`files` (required)**: `string` - **`first` (required)**: `string` - **`least` (required)**: `integer` - **`most` (required)**: `integer` - **`questions` (required)**: `integer` - **`screen` (required)**: `string` - **`solo` (required)**: `boolean` - **`talk` (required)**: `string` - **`topic` (required)**: `boolean` **Generated example:** ```json { "talk": "", "first": "", "screen": "", "solo": true, "least": 1, "most": 1, "files": "", "earlier_run": "", "topic": true, "questions": 1 } ``` ### RunOutputResponse **Type:** `object` - **`kind` (required)**: `string` - **`output_id` (required)**: `string`, format: `uuid` - **`schema_version` (required)**: `string` - **`status` (required)**: `string` - **`workflow_run_id` (required)**: `string`, format: `uuid` - **`body`**: `object` - **`checks`**: `object` - **`cost_units`**: `integer`, default: `0` - **`model`**: `string | null` - **`reason`**: `string | null` **Generated example:** ```json { "output_id": "", "workflow_run_id": "", "kind": "", "status": "", "reason": "", "schema_version": "", "body": { "additionalProperty": "anything" }, "checks": { "additionalProperty": "anything" }, "model": "", "cost_units": 0 } ``` ### RunOutputSummary **Type:** `object` - **`kind` (required)**: `string` - **`output_id` (required)**: `string`, format: `uuid` - **`status` (required)**: `string` - **`answer`**: `string | null` - **`checks`**: `object` - **`reason`**: `string | null` - **`report_id`**: `string | null`, format: `uuid` **Generated example:** ```json { "output_id": "", "kind": "", "status": "", "reason": "", "checks": { "additionalProperty": "anything" }, "report_id": "", "answer": "" } ``` ### RunWorkflowRequest **Type:** `object` - **`ad_platform`**: `string | null`, pattern: `^(meta|google_search|linkedin|tiktok)$` For Creative evaluation of ad copy, where the copy runs: its length is checked against that platform's limits. Required for ad copy. - **`agent_ids`**: `array | null` 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`). **Items:** `string`, format: `uuid` - **`agents_by_role`**: `object | null` Who plays each part, for a workflow with parts. Creative evaluation: `{"reader": , "asked": []}`. Creative variation: `{"art_director": }`, 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. - **`approval_digest`**: `string | null` 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. - **`asset_ids`**: `array | null` 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. **Items:** `string`, format: `uuid` - **`brief`**: `string | null`, maxLength: `4000` What the run should find out. A survey is named after it. - **`conversation_ids`**: `array`, maxItems: `12` For a report: chats in the same thread that the run reads. Only chats their owner shared; a private one is refused. **Items:** `string`, format: `uuid` - **`creative_type`**: `string | null`, pattern: `^(image_ad|landing_page|packaging|ad_copy|video_ad|written_content|custom)$` For Creative evaluation: what the files are. Required there. - **`creative_type_name`**: `string | null`, maxLength: `80` - **`earlier_run_ids`**: `array`, maxItems: `12` Previous runs this run reads. Creative variation needs the creative evaluation it varies; a survey can read previous runs. **Items:** `string`, format: `uuid` - **`execution_inputs`**: `object` 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. - **`hears`**: `object | null` 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. **Additional properties:** `string` - **`objective`**: `string | null`, maxLength: `2000` 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. - **`panel_id`**: `string | null`, format: `uuid` For Survey: the panel whose people answer, from `GET /v1/panels`. Required there. - **`parameters`**: array of [ParameterWeight](#scalar-schema-parameterweight) | `null`, maxItems: `12` 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. - **`postures`**: `object | null` 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. **Additional properties:** `string` - **`question_budget`**: `integer | null`, minimum: `1`, maximum: `15` For a workflow with an interviewer: how many questions it may ask, up to the workflow's cap. Absent, the cap. - **`question_set`**: `string | null`, maxLength: `64` Which of the workflow's question sets to ask, by `key` (`input_spec.question_sets`). Focus group and each Brainstorm need one, or `questions`. - **`questions`**: array of [QuestionRequest](#scalar-schema-questionrequest) | `null`, maxItems: `12` 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. - **`reference_ads`**: array of [ReferenceAd](#scalar-schema-referencead) | `null`, maxItems: `8` 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. - **`start`**: `boolean`, default: `false` `false` (the default) returns the plan and its cost in credits and asks nothing. `true` starts the run, and needs an `Idempotency-Key` header. - **`strategy_handoff_hash`**: `string | null`, maxLength: `64` - **`strategy_handoff_id`**: `string | null`, format: `uuid` - **`thread_budget_usd`**: `number | null`, maximum: `10000`, exclusiveMinimum: `0` 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. - **`thread_id`**: `string | null`, format: `uuid` The thread the run goes in. Omit it and the run opens a new thread. - **`variation`**: [VariationRequest](#scalar-schema-variationrequest) | `null` 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. - **`workspace_id`**: `string | null`, format: `uuid` 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. **Generated example:** ```json { "thread_budget_usd": 1, "execution_inputs": { "additionalProperty": "anything" }, "approval_digest": "", "thread_id": "", "workspace_id": "", "agent_ids": [ "" ], "asset_ids": [ "" ], "start": false, "brief": "", "agents_by_role": { "additionalProperty": "anything" }, "earlier_run_ids": [ "" ], "strategy_handoff_id": "", "strategy_handoff_hash": "", "questions": [ { "text": "", "topic": "", "kind": "", "options": [ "" ], "answering": "private", "asset_id": "", "asset_ids": [ "" ] } ], "question_set": "", "question_budget": 1, "creative_type": "", "creative_type_name": "", "conversation_ids": [ "" ], "postures": { "additionalProperty": "" }, "hears": { "additionalProperty": "" }, "objective": "", "parameters": [ { "key": "", "name": "", "description": "", "weight": 1, "question": "" } ], "ad_platform": "", "reference_ads": [ { "asset_id": "", "group": "", "impressions": 0, "clicks": 0, "spend": 0, "reach": 0 } ], "variation": { "creative": "", "changes": [ 1 ], "instruction": "", "count": 1, "guidelines_source_id": "" }, "panel_id": "" } ``` ### SavedAsView **Type:** `object` The newest workflow saved from a run, as the run's card names it. - **`name` (required)**: `string` - **`workflow_id` (required)**: `string`, format: `uuid` - **`available`**: `boolean`, default: `true` **Generated example:** ```json { "workflow_id": "", "name": "", "available": true } ``` ### Split **Type:** `object` One way the population is cut, and how much of it is at each level. - **`axis_id` (required)**: `string` - **`label` (required)**: `string` - **`levels` (required)**: array of [SplitLevel](#scalar-schema-splitlevel) - **`agent`**: `string`, default: `""` - **`agent_id`**: `string`, default: `""` - **`agents`**: array of [SplitAgent](#scalar-schema-splitagent) - **`excluded`**: array of [SplitLevel](#scalar-schema-splitlevel) - **`measured`**: `boolean`, default: `false` - **`merged`**: array of [MergedGroup](#scalar-schema-mergedgroup) - **`merged_into`**: `string`, default: `""` - **`note`**: `string`, default: `""` - **`source`**: `string`, default: `""` - **`source_label`**: `string`, default: `""` - **`why`**: `string`, default: `""` **Generated example:** ```json { "axis_id": "", "agent_id": "", "agent": "", "label": "", "levels": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "excluded": [ { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ], "agents": [ { "agent_id": "", "name": "", "shares": [ 1 ] } ], "why": "", "source": "", "source_label": "", "merged": [ { "label": "", "share": 1 } ], "merged_into": "", "note": "", "measured": false } ``` ### SplitAgent **Type:** `object` One agent's own share of each group of a split, from its own rows. - **`agent_id` (required)**: `string` - **`name` (required)**: `string` - **`shares` (required)**: `array of number` **Generated example:** ```json { "agent_id": "", "name": "", "shares": [ 1 ] } ``` ### SplitLevel **Type:** `object` - **`label` (required)**: `string` - **`share` (required)**: `number` - **`key`**: `string`, default: `""` - **`rows`**: array of [SplitMember](#scalar-schema-splitmember) - **`unmeasured`**: `number`, default: `0` - **`why`**: `string`, default: `""` **Generated example:** ```json { "label": "", "share": 1, "key": "", "rows": [ { "label": "", "keys": [ "" ], "share": 1, "kept": true } ], "unmeasured": 0, "why": "" } ``` ### SplitMember **Type:** `object` A row of a group, as the filter ticks it: an age band's two rows are one. - **`keys` (required)**: `array of string` - **`label` (required)**: `string` - **`share` (required)**: `number` - **`kept`**: `boolean`, default: `true` **Generated example:** ```json { "label": "", "keys": [ "" ], "share": 1, "kept": true } ``` ### SwarmAgent **Type:** `object` - **`agent_id` (required)**: `string` - **`name` (required)**: `string` - **`people` (required)**: `integer` - **`weight` (required)**: `number` - **`kept`**: `number`, default: `1` - **`left_out`**: `boolean`, default: `false` - **`method`**: `string`, default: `""` - **`mindset`**: `object` **Additional properties:** `number` - **`model`**: `string | null` - **`split_by`**: `string`, default: `""` - **`split_reason`**: `string`, default: `""` - **`split_trace_id`**: `string | null` **Generated example:** ```json { "agent_id": "", "name": "", "weight": 1, "people": 1, "mindset": { "additionalProperty": 1 }, "left_out": false, "method": "", "split_by": "", "model": "", "split_reason": "", "kept": 1, "split_trace_id": "" } ``` ### SwarmBox **Type:** `object` One box of the crossed splits, for one agent: its share and its people. - **`agent` (required)**: `string` - **`agent_id` (required)**: `string` - **`cell_id` (required)**: `string` - **`groups` (required)**: `object` **Additional properties:** `string` - **`people` (required)**: `integer` - **`share` (required)**: `number` **Generated example:** ```json { "cell_id": "", "agent_id": "", "agent": "", "groups": { "additionalProperty": "" }, "share": 1, "people": 1 } ``` ### SwarmPeople **Type:** `object` - **`boxes` (required)**: `object` **Additional properties:** [BoxEvidence](#scalar-schema-boxevidence) What one box's people were written from. - **`model` (required)**: `string` - **`people` (required)**: array of [SwarmPerson](#scalar-schema-swarmperson) - **`written_at` (required)**: `string` **Generated example:** ```json { "model": "", "written_at": "", "people": [ { "seed_id": "", "cell_id": "", "agent_id": "", "age": 1, "gender": "", "city": "", "household": "", "work": "", "about": [ "" ] } ], "boxes": { "additionalProperty": { "evidence": [ "" ], "kept": 1, "left": { "additionalProperty": 1 } } } } ``` ### SwarmPerson **Type:** `object` One person in a swarm, as written when it was saved. - **`about` (required)**: `array of string` - **`age` (required)**: `integer` - **`agent_id` (required)**: `string` - **`cell_id` (required)**: `string` - **`city` (required)**: `string` - **`gender` (required)**: `string` - **`household` (required)**: `string` - **`seed_id` (required)**: `string` - **`work` (required)**: `string` **Generated example:** ```json { "seed_id": "", "cell_id": "", "agent_id": "", "age": 1, "gender": "", "city": "", "household": "", "work": "", "about": [ "" ] } ``` ### ThreadConversationView **Type:** `object` One transcript inside the thread, named the way a reader would name it. - **`conversation_id` (required)**: `string`, format: `uuid` - **`created_at` (required)**: `string`, format: `date-time` - **`mode` (required)**: `string` - **`status` (required)**: `string` - **`title` (required)**: `string | null` - **`workflow_id` (required)**: `string | null`, format: `uuid` - **`agent_id`**: `string | null`, format: `uuid` - **`archived`**: `boolean`, default: `false` - **`intro`**: `boolean`, default: `false` - **`last_at`**: `string | null`, format: `date-time` - **`legacy_at`**: `string | null`, format: `date-time` - **`participants`**: array of [ThreadSeatView](#scalar-schema-threadseatview), default: `[]` - **`posture_revision`**: `integer`, default: `0` - **`preview`**: array of [ThreadTurnView](#scalar-schema-threadturnview), default: `[]` - **`questions`**: `integer | null` - **`reading`**: `string | null`, possible values: `"verdict", "analysis"` - **`shared`**: `boolean`, default: `false` - **`turn_count`**: `integer`, default: `0` - **`workflow_name`**: `string | null` - **`yours`**: `boolean`, default: `false` **Generated example:** ```json { "conversation_id": "", "posture_revision": 0, "title": "", "mode": "", "workflow_id": "", "agent_id": "", "yours": false, "last_at": "", "archived": false, "intro": false, "participants": [], "workflow_name": "", "questions": 1, "shared": false, "legacy_at": "", "status": "", "created_at": "", "turn_count": 0, "preview": [], "reading": "verdict" } ``` ### ThreadDetailView **Type:** `object` - **`context_memory` (required)**: `object` - **`created_at` (required)**: `string`, format: `date-time` - **`event_count` (required)**: `integer` - **`events` (required)**: array of [ThreadEventView](#scalar-schema-threadeventview) - **`idempotency_key` (required)**: `string` - **`status` (required)**: `string` - **`thread_id` (required)**: `string`, format: `uuid` - **`title` (required)**: `string` - **`updated_at` (required)**: `string`, format: `date-time` - **`workspace_id` (required)**: `string`, format: `uuid` - **`archived_at`**: `string | null`, format: `date-time` - **`audience`**: `string`, default: `"workspace"` - **`chat_count`**: `integer`, default: `0` - **`conversations`**: array of [ThreadConversationView](#scalar-schema-threadconversationview), default: `[]` - **`legacy_at`**: `string | null`, format: `date-time` - **`link_count`**: `integer`, default: `0` - **`owner_name`**: `string | null` - **`people_count`**: `integer`, default: `0` - **`run_count`**: `integer`, default: `0` - **`runs`**: array of [ThreadRunView](#scalar-schema-threadrunview), default: `[]` - **`shared_with`**: `array of string`, default: `[]` - **`title_by`**: `string`, default: `"auto"` - **`workflows`**: `array of string`, default: `[]` - **`your_level`**: `string | null` - **`yours`**: `boolean`, default: `false` **Generated example:** ```json { "thread_id": "", "workspace_id": "", "title": "", "title_by": "auto", "status": "", "idempotency_key": "", "context_memory": { "additionalProperty": "anything" }, "event_count": 1, "created_at": "", "updated_at": "", "workflows": [], "run_count": 0, "chat_count": 0, "legacy_at": "", "archived_at": "", "audience": "workspace", "people_count": 0, "link_count": 0, "yours": false, "owner_name": "", "shared_with": [], "your_level": "", "events": [ { "event_id": "", "event_type": "", "resource_type": "", "resource_id": "", "run_id": "", "compact": { "additionalProperty": "anything" }, "payload": { "additionalProperty": "anything" }, "created_at": "" } ], "conversations": [], "runs": [] } ``` ### ThreadEventView **Type:** `object` - **`compact` (required)**: `object` - **`created_at` (required)**: `string`, format: `date-time` - **`event_id` (required)**: `string`, format: `uuid` - **`event_type` (required)**: `string` - **`payload` (required)**: `object` - **`resource_id` (required)**: `string | null` - **`resource_type` (required)**: `string | null` - **`run_id` (required)**: `string | null`, format: `uuid` **Generated example:** ```json { "event_id": "", "event_type": "", "resource_type": "", "resource_id": "", "run_id": "", "compact": { "additionalProperty": "anything" }, "payload": { "additionalProperty": "anything" }, "created_at": "" } ``` ### ThreadRunView **Type:** `object` A workflow run as the thread reads it: the run's record, plus the name. The run itself is the same shape the workflow's own page lists, so a figure read here and a figure read there cannot disagree. The name is added because a run row alone says `workflow_id` and a reader wants "Route A vs B, third run". - **`conversation_id` (required)**: `string | null`, format: `uuid` - **`cost_units` (required)**: `integer` - **`expected_cost_units` (required)**: `integer` - **`model_calls` (required)**: `integer` - **`questions_asked` (required)**: `integer` - **`questions_planned` (required)**: `integer` - **`seats` (required)**: `integer` - **`status` (required)**: `string` - **`workflow_id` (required)**: `string`, format: `uuid` - **`workflow_run_id` (required)**: `string | null`, format: `uuid` - **`workflow_version` (required)**: `integer` - **`answers_failed`**: `integer`, default: `0` - **`completed_at`**: `string | null`, format: `date-time` - **`cost_says`**: `string | null` - **`error_reason`**: `string | null` - **`execution`**: `object | null` - **`executor`**: `string`, default: `"conversation"` - **`fits_limit`**: `boolean | null` - **`hearings`**: `array of string` - **`inputs`**: `object | null` 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. - **`interaction_id`**: `string | null`, format: `uuid` - **`interaction_run_id`**: `string | null`, format: `uuid` - **`kind`**: `string`, default: `"guide"` - **`limit_says`**: `string | null` - **`n_eff`**: `number | null` - **`n_eff_estimate`**: `number | null` - **`not_answered`**: `array of string` - **`outputs`**: array of [RunOutputSummary](#scalar-schema-runoutputsummary) - **`pending_study`**: `object | null` - **`plan_position`**: `integer | null` - **`plan_run_id`**: `string | null`, format: `uuid` - **`postures`**: `array of string` - **`primary_result`**: `object | null` - **`reading`**: `string | null`, possible values: `"verdict", "analysis"` - **`reportable`**: `boolean | null` - **`reported`**: `boolean | null` - **`reporting_floor`**: `number | null` - **`saved_as`**: [SavedAsView](#scalar-schema-savedasview) | `null` The newest workflow saved from a run, as the run's card names it. - **`source_run_id`**: `string | null`, format: `uuid` - **`started_at`**: `string | null`, format: `date-time` - **`stop_reason`**: `string | null` - **`thread_id`**: `string | null`, format: `uuid` - **`version_kept`**: `boolean`, default: `false` - **`waiting_for`**: `string | null` - **`walk`**: array of [WalkedBlock](#scalar-schema-walkedblock) | `null` - **`wave`**: `integer | null` - **`will_do`**: `array of string` - **`workflow_name`**: `string | null` **Generated example:** ```json { "pending_study": { "additionalProperty": "anything" }, "execution": { "additionalProperty": "anything" }, "primary_result": { "additionalProperty": "anything" }, "workflow_run_id": "", "workflow_id": "", "workflow_version": 1, "kind": "guide", "conversation_id": "", "interaction_run_id": "", "interaction_id": "", "wave": 1, "n_eff": 1, "reported": true, "thread_id": "", "n_eff_estimate": 1, "reportable": true, "reporting_floor": 1, "status": "", "questions_planned": 1, "questions_asked": 1, "seats": 1, "answers_failed": 0, "model_calls": 1, "expected_cost_units": 1, "cost_units": 1, "cost_says": "", "error_reason": "", "not_answered": [ "" ], "walk": [ { "use": "", "block": "", "version": 1, "label": "", "status": "", "tokens": [ "" ], "missing": [ "" ], "reason": "" } ], "fits_limit": true, "limit_says": "", "will_do": [ "" ], "executor": "conversation", "stop_reason": "", "outputs": [ { "output_id": "", "kind": "", "status": "", "reason": "", "checks": { "additionalProperty": "anything" }, "report_id": "", "answer": "" } ], "version_kept": false, "source_run_id": "", "waiting_for": "", "postures": [ "" ], "hearings": [ "" ], "plan_run_id": "", "plan_position": 1, "started_at": "", "completed_at": "", "inputs": { "additionalProperty": "anything" }, "workflow_name": "", "reading": "verdict", "saved_as": { "workflow_id": "", "name": "", "available": true } } ``` ### ThreadSeatView **Type:** `object` Who answered in a transcript: the agent, and the label it sat under. - **`agent_id` (required)**: `string`, format: `uuid` - **`name` (required)**: `string` - **`kind`**: `string | null` - **`label`**: `string | null` - **`persona_name`**: `string | null` - **`posture`**: `string | null` **Generated example:** ```json { "agent_id": "", "name": "", "label": "", "persona_name": "", "kind": "", "posture": "" } ``` ### ThreadTurnView **Type:** `object` One line of a transcript, as a thread shows it. Enough to read what went in and what came back without leaving the thread. A thread whose runs are links is a table of contents; the point of putting the work in one place is that the work is *there*. - **`role` (required)**: `string` - **`text` (required)**: `string` - **`asked_by`**: `string | null` - **`asked_why`**: `string | null` - **`asset_ids`**: `array of string`, default: `[]` - **`author`**: `string | null` - **`cost_units`**: `integer`, default: `0` - **`position`**: `integer`, default: `0` - **`sources`**: `array`, default: `[]` **Items:** `object` **Additional properties:** `string` - **`truncated`**: `boolean`, default: `false` - **`unknowns`**: `integer`, default: `0` **Generated example:** ```json { "position": 0, "role": "", "author": "", "text": "", "truncated": false, "asset_ids": [], "asked_by": "", "asked_why": "", "sources": [], "unknowns": 0, "cost_units": 0 } ``` ### ThreadView **Type:** `object` - **`context_memory` (required)**: `object` - **`created_at` (required)**: `string`, format: `date-time` - **`event_count` (required)**: `integer` - **`idempotency_key` (required)**: `string` - **`status` (required)**: `string` - **`thread_id` (required)**: `string`, format: `uuid` - **`title` (required)**: `string` - **`updated_at` (required)**: `string`, format: `date-time` - **`workspace_id` (required)**: `string`, format: `uuid` - **`archived_at`**: `string | null`, format: `date-time` - **`audience`**: `string`, default: `"workspace"` - **`chat_count`**: `integer`, default: `0` - **`legacy_at`**: `string | null`, format: `date-time` - **`link_count`**: `integer`, default: `0` - **`owner_name`**: `string | null` - **`people_count`**: `integer`, default: `0` - **`run_count`**: `integer`, default: `0` - **`shared_with`**: `array of string`, default: `[]` - **`title_by`**: `string`, default: `"auto"` - **`workflows`**: `array of string`, default: `[]` - **`your_level`**: `string | null` - **`yours`**: `boolean`, default: `false` **Generated example:** ```json { "thread_id": "", "workspace_id": "", "title": "", "title_by": "auto", "status": "", "idempotency_key": "", "context_memory": { "additionalProperty": "anything" }, "event_count": 1, "created_at": "", "updated_at": "", "workflows": [], "run_count": 0, "chat_count": 0, "legacy_at": "", "archived_at": "", "audience": "workspace", "people_count": 0, "link_count": 0, "yours": false, "owner_name": "", "shared_with": [], "your_level": "" } ``` ### ValidationError **Type:** `object` - **`loc` (required)**: `array of (string | integer)` - **`msg` (required)**: `string` - **`type` (required)**: `string` - **`ctx`**: `object` - **`input`**: `any` **Generated example:** ```json { "loc": [ "" ], "msg": "", "type": "", "input": null, "ctx": {} } ``` ### VariationRequest **Type:** `object` What a Creative variation makes: of which creative in the earlier evaluation, acting on which of its card's changes, with what the person adds, how many. - **`creative` (required)**: `string`, pattern: `^C[0-9]{1,2}$` Which creative of the evaluation to vary: `C1` is the first file it judged, `C2` the second. - **`changes`**: `array of integer`, maxItems: `12` Which of the changes on that creative's card to make, by position from 1. - **`count`**: `integer`, default: `1`, minimum: `1`, maximum: `3` How many variations to make, 1 to 3. - **`guidelines_source_id`**: `string | null`, format: `uuid` - **`instruction`**: `string | null`, maxLength: `1000` Your own instruction, in words. **Generated example:** ```json { "creative": "", "changes": [ 1 ], "instruction": "", "count": 1, "guidelines_source_id": "" } ``` ### WalkedBlock **Type:** `object` One talk block as a run walked it. - **`block` (required)**: `string` - **`label` (required)**: `string` - **`status` (required)**: `string` - **`use` (required)**: `string` - **`missing`**: `array of string` - **`reason`**: `string | null` - **`tokens`**: `array of string` - **`version`**: `integer | null` **Generated example:** ```json { "use": "", "block": "", "version": 1, "label": "", "status": "", "tokens": [ "" ], "missing": [ "" ], "reason": "" } ``` ### WorkflowResponse **Type:** `object` - **`answer_mode` (required)**: `string` - **`description` (required)**: `string | null` - **`key` (required)**: `string` - **`mode` (required)**: `string` - **`name` (required)**: `string` - **`participants` (required)**: array of [app\_\_api\_\_v1\_\_workflows\_\_ParticipantResponse](#scalar-schema-app-api-v1-workflows-participantresponse) - **`questions` (required)**: `array of object` - **`run_form` (required)**: [RunForm](#scalar-schema-runform) What a run of this workflow asks, as its talk component says it. - **`runnable` (required)**: `boolean` - **`status` (required)**: `string` - **`version` (required)**: `integer` - **`workflow_id` (required)**: `string`, format: `uuid` - **`workspace_id` (required)**: `string | null`, format: `uuid` - **`agent_spec`**: `object` - **`check`**: [DocumentCheck](#scalar-schema-documentcheck) | `null` - **`created_at`**: `string | null`, format: `date-time` - **`document`**: `object | null` - **`draft_check`**: [DocumentCheck](#scalar-schema-documentcheck) | `null` - **`draft_document`**: `object | null` - **`editable`**: `boolean`, default: `true` - **`execution_spec`**: `object | null` - **`executor`**: `string`, default: `"conversation"` - **`input_spec`**: `object` - **`kind`**: `string`, default: `"guide"` - **`last_run_at`**: `string | null`, format: `date-time` - **`origin`**: `string`, default: `"user"` - **`output_spec`**: `object` - **`panel_spec`**: `object` - **`proposal_status`**: `string`, default: `"none"` - **`proposed_questions`**: `array of object` - **`run_count`**: `integer`, default: `0` - **`source_workflow_id`**: `string | null`, format: `uuid` - **`started_as`**: `string | null` - **`your_level`**: `string | null` **Generated example:** ```json { "execution_spec": { "additionalProperty": "anything" }, "workflow_id": "", "key": "", "name": "", "description": "", "kind": "guide", "panel_spec": { "additionalProperty": "anything" }, "mode": "", "answer_mode": "", "questions": [ { "additionalProperty": "anything" } ], "participants": [ { "agent_id": "", "agent_public_id": "", "name": "", "position": 1, "label": "", "status": "", "addressable": true, "posture": "standard", "hears": "private" } ], "version": 1, "status": "", "workspace_id": "", "runnable": true, "proposed_questions": [ { "additionalProperty": "anything" } ], "proposal_status": "none", "created_at": "", "run_count": 0, "last_run_at": "", "origin": "user", "source_workflow_id": "", "executor": "conversation", "input_spec": { "additionalProperty": "anything" }, "agent_spec": { "additionalProperty": "anything" }, "output_spec": { "additionalProperty": "anything" }, "editable": true, "your_level": "", "document": { "additionalProperty": "anything" }, "started_as": "", "check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "draft_document": { "additionalProperty": "anything" }, "draft_check": { "ok": true, "needs": [ { "use_id": "", "token": "", "optional": true, "met": true, "left_by": [ "" ], "reason": "" } ], "reasons": [ "" ], "will_do": [ "" ] }, "run_form": { "talk": "", "first": "", "screen": "", "solo": true, "least": 1, "most": 1, "files": "", "earlier_run": "", "topic": true, "questions": 1 } } ``` ### WorkflowRunResponse **Type:** `object` - **`conversation_id` (required)**: `string | null`, format: `uuid` - **`cost_units` (required)**: `integer` - **`expected_cost_units` (required)**: `integer` - **`model_calls` (required)**: `integer` - **`questions_asked` (required)**: `integer` - **`questions_planned` (required)**: `integer` - **`seats` (required)**: `integer` - **`status` (required)**: `string` - **`workflow_id` (required)**: `string`, format: `uuid` - **`workflow_run_id` (required)**: `string | null`, format: `uuid` - **`workflow_version` (required)**: `integer` - **`answers_failed`**: `integer`, default: `0` - **`completed_at`**: `string | null`, format: `date-time` - **`cost_says`**: `string | null` - **`error_reason`**: `string | null` - **`execution`**: `object | null` - **`executor`**: `string`, default: `"conversation"` - **`fits_limit`**: `boolean | null` - **`hearings`**: `array of string` - **`inputs`**: `object | null` 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. - **`interaction_id`**: `string | null`, format: `uuid` - **`interaction_run_id`**: `string | null`, format: `uuid` - **`kind`**: `string`, default: `"guide"` - **`limit_says`**: `string | null` - **`n_eff`**: `number | null` - **`n_eff_estimate`**: `number | null` - **`not_answered`**: `array of string` - **`outputs`**: array of [RunOutputSummary](#scalar-schema-runoutputsummary) - **`pending_study`**: `object | null` - **`plan_position`**: `integer | null` - **`plan_run_id`**: `string | null`, format: `uuid` - **`postures`**: `array of string` - **`primary_result`**: `object | null` - **`reportable`**: `boolean | null` - **`reported`**: `boolean | null` - **`reporting_floor`**: `number | null` - **`source_run_id`**: `string | null`, format: `uuid` - **`started_at`**: `string | null`, format: `date-time` - **`stop_reason`**: `string | null` - **`thread_id`**: `string | null`, format: `uuid` - **`version_kept`**: `boolean`, default: `false` - **`waiting_for`**: `string | null` - **`walk`**: array of [WalkedBlock](#scalar-schema-walkedblock) | `null` - **`wave`**: `integer | null` - **`will_do`**: `array of string` **Generated example:** ```json { "pending_study": { "additionalProperty": "anything" }, "execution": { "additionalProperty": "anything" }, "primary_result": { "additionalProperty": "anything" }, "workflow_run_id": "", "workflow_id": "", "workflow_version": 1, "kind": "guide", "conversation_id": "", "interaction_run_id": "", "interaction_id": "", "wave": 1, "n_eff": 1, "reported": true, "thread_id": "", "n_eff_estimate": 1, "reportable": true, "reporting_floor": 1, "status": "", "questions_planned": 1, "questions_asked": 1, "seats": 1, "answers_failed": 0, "model_calls": 1, "expected_cost_units": 1, "cost_units": 1, "cost_says": "", "error_reason": "", "not_answered": [ "" ], "walk": [ { "use": "", "block": "", "version": 1, "label": "", "status": "", "tokens": [ "" ], "missing": [ "" ], "reason": "" } ], "fits_limit": true, "limit_says": "", "will_do": [ "" ], "executor": "conversation", "stop_reason": "", "outputs": [ { "output_id": "", "kind": "", "status": "", "reason": "", "checks": { "additionalProperty": "anything" }, "report_id": "", "answer": "" } ], "version_kept": false, "source_run_id": "", "waiting_for": "", "postures": [ "" ], "hearings": [ "" ], "plan_run_id": "", "plan_position": 1, "started_at": "", "completed_at": "", "inputs": { "additionalProperty": "anything" } } ``` ### WorkspaceResponse **Type:** `object` - **`anchor_kind` (required)**: `string | null` - **`anchor_name` (required)**: `string | null` - **`market` (required)**: `string | null` - **`name` (required)**: `string` - **`status` (required)**: `string` - **`workspace_id` (required)**: `string`, format: `uuid` - **`agent_allocation`**: `integer | null` - **`agents`**: `integer`, default: `0` - **`answer_languages`**: array of [AnswerLanguageOption](#scalar-schema-answerlanguageoption), default: `[]` - **`last_active_at`**: `string | null`, format: `date-time` - **`market_languages`**: `object`, default: `{}` **Additional properties:** `string` - **`markets`**: `array of string`, default: `[]` - **`threads`**: `integer`, default: `0` - **`workflow_credit_allocation`**: `integer | null` **Generated example:** ```json { "workspace_id": "", "name": "", "status": "", "anchor_kind": "", "anchor_name": "", "market": "", "markets": [], "agent_allocation": 1, "workflow_credit_allocation": 1, "answer_languages": [], "agents": 0, "threads": 0, "last_active_at": "", "market_languages": {} } ```