Run Investigation
POST https://app.resemble.ai/api/v2/agents/{uuid}/run
Run a Detect Agent 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 Detect Agents.
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 managed Detect Agent by its identifier. It does not accept agent configuration, tier, prompt, or memory overrides.
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 the selected Detect Agent, the service initializes the agent’s backing state automatically. This does not require a public create-agent 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.
