Generate Engagement Insights (v0)

Create a 'generate-engagement-insights' job

Changed on

Deprecated: use POST /robots/v1/jobs/generate-engagement-insights instead. Creates a new job that uses AI to analyze viewer engagement patterns and generate insights for a Mux Video asset.

post/robots/v0/jobs/generate-engagement-insights

Request

  • Base URL
    https://api.mux.com
  • Auth
    • HTTP basic
    • or HTTP bearer

Request body

passthroughstring

Arbitrary string stored with the job and returned in responses. Useful for correlating jobs with your own systems.

Example request

{
  "parameters": {
    "asset_id": "mux_asset_123abc"
  }
}

Response

Engagement insights job queued

Example response

{
  "data": {
    "parameters": {
      "asset_id": "mux_asset_123abc"
    },
    "resources": {
      "assets": [
        {
          "id": "abc123asset",
          "meta": {
            "title": "My Video",
            "creator_id": "user123",
            "external_id": "ext456"
          },
          "_links": {
            "self": {
              "href": "/video/v1/assets/abc123asset"
            }
          }
        }
      ]
    },
    "outputs": {
      "moment_insights": [
        {
          "start_ms": 30000,
          "end_ms": 60000,
          "engagement_score": 0.89,
          "insight": "Viewers are highly engaged during the product demo, with minimal drop-off."
        }
      ],
      "overall_insight": {
        "summary": "Engagement peaks during hands-on demonstrations and drops during introductory segments.",
        "trends": [
          "Product demos drive the highest retention",
          "Viewers skip past the first 15 seconds of intro"
        ]
      }
    }
  }
}

Changes

    • info

      endpoint deprecated

    • info

      api operation id create-generate-engagement-insights-job removed and replaced with create-generate-engagement-insights-job-v0

    • info

      api tag Generate Engagement Insights (v0) added

    • info

      api tag Generate Engagement Insights removed