Browser Capture
const url = 'https://api.ultimateteam.ai/api/multimodal/browser-capture';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"agent_role":"ceo","context_prompt":"Analyze this browser capture.","image_base64":"example","mime_type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/multimodal/browser-capture \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "agent_role": "ceo", "context_prompt": "Analyze this browser capture.", "image_base64": "example", "mime_type": "example" }'Accept a base64-encoded browser capture for analysis.
Args:
request: The incoming FastAPI request (carries tenant context).
body: Validated :class:BrowserCaptureRequest payload.
analyzer: Injected analyzer dependency.
Returns:
:class:MultimodalResponse carrying the analysis summary and
attachment record id.
Raises: HTTPException: 422 on invalid base64, MIME / size violations or security failures.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”JSON body schema for POST /api/multimodal/browser-capture.
Attributes:
image_base64: Base64-encoded capture bytes.
mime_type: MIME type of the capture (must be in
:data:ALLOWED_MIME_TYPES).
agent_role: Which C-suite agent is analysing the capture.
context_prompt: Prompt passed to the vision model.
object
Responses
Section titled “ Responses ”Successful Response
Canonical response body for all /api/multimodal/* endpoints.
Attributes: analysis_id: Opaque UUID for the analysis turn. summary: PII-redacted analysis summary. source_channel: Which ingestion surface this came from. mime_type: MIME type of the analyzed content. model_used: LLM model id used. credits_consumed: Total credits billed (model + 8-credit surcharge). pii_flags: QualityGate PII hits (metadata only — never raw PII). attachment_record_id: Persisted AttachmentRecord id. vision_upgrade: Tier upgrade metadata from the router.
object
object
Examplegenerated
{ "analysis_id": "example", "attachment_record_id": "example", "credits_consumed": 1, "mime_type": "example", "model_used": "example", "pii_flags": [ {} ], "source_channel": "example", "summary": "example", "vision_upgrade": {}}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}