Run Investigation
POST https://app.resemble.ai/api/v2/agents/{uuid}/run
Run an investigator against uploaded media or a public URL. The response is a live Server-Sent Events (SSE) stream.
Path Parameters
Use a uuid returned by List Investigators.
Form Fields
Send the request as multipart/form-data.
When both file and url are provided, the uploaded file is sent for analysis. Prefer sending only one primary media source.
The run request selects a catalog or custom investigator by its uuid. It does not accept configuration, tier, prompt, memory, or skill overrides. A custom investigator runs with its enabled skills.
Analyze a file
Analyze a public URL
Stream Response
Each event is emitted as an SSE data frame containing JSON. The first frame identifies the persisted run:
Common event types include:
Memory updates and token/cost accounting events are consumed and stored server-side. They are not sent in the public stream. Learned memory is persisted back to the agent for future investigations.
Persistence
The API creates the run before streaming and stores:
- Submitted inputs and uploaded primary media
- The exact effective configuration used for the run
- Memory before and after the investigation
- The event transcript
- A compact result summary and any terminal error
The service continues recording the upstream investigation if the client disconnects, so run history remains available.
If this is the team’s first run with a catalog investigator, the service initializes the investigator’s backing state automatically. This does not require a public create request.
Errors Before Streaming
Errors found before the SSE stream opens are returned as JSON.
After the stream opens, failures are reported as error SSE frames and the HTTP status remains 200 OK. Individual tools can also report failures inside a tool_result while the overall investigation continues to final_verdict and done.
