Run Intelligence
POST https://app.resemble.ai/api/v2/intelligence
Analyzes a media file and returns comprehensive intelligence. The API auto-detects whether the input is audio, video, or image.
By default the request is synchronous. If you provide a callback_url, the request becomes asynchronous automatically: the API returns 202 Accepted with the newly created intelligence record, then sends the final result to your callback URL with an outbound HTTP POST.
Request Body
*One of media_token or url is required.
Example
Asynchronous Example (callback_url)
Response
Asynchronous Response (callback_url provided)
When callback_url is present, the API accepts the job immediately and returns a pending intelligence record:
The final result is then delivered to your callback URL via HTTP POST.
Callback Payload
On success, the callback payload matches the normal intelligence response shape:
On failure, the callback includes the persisted intelligence record plus an error field:
Audio/Video Response (json=true)
Notes
- One of
media_tokenorurlis required. - Requests without
callback_urlare processed synchronously and return200 OK. - Requests with
callback_urlare processed asynchronously and return202 Accepted. - Use Get Intelligence to poll for the final result if you do not want to rely on callbacks.
