POST Webhook robots.v1.job.find_key_moments.pending

Payload

type'robots.v1.job.find_key_moments.pending' required

Type for the webhook event

idstring required

Unique identifier for the event

created_atstring date-time required

Time the event was created

Example payload

{
  "created_at": "2022-01-01T00:00:00.000000Z",
  "attempts": [
    {
      "created_at": "2022-01-01T00:00:00.000000Z"
    }
  ],
  "data": {
    "parameters": {
      "asset_id": "mux_asset_123abc",
      "max_moments": 10,
      "target_duration": {
        "min": 15.123,
        "max": 45.456
      }
    },
    "resources": {
      "assets": [
        {
          "id": "abc123asset",
          "meta": {
            "title": "My Video",
            "creator_id": "user123",
            "external_id": "ext456"
          },
          "_links": {
            "self": {
              "href": "/video/v1/assets/abc123asset"
            }
          }
        }
      ]
    },
    "outputs": {
      "moments": [
        {
          "start_time": 15.123,
          "end_time": 45.456,
          "cues": [
            {
              "start_time": 15.123,
              "end_time": 23.456,
              "text": "This is the moment everything changed."
            }
          ],
          "overall_score": 0.92,
          "title": "The Pivotal Realization",
          "quotable_segment": {
            "time": 15.123,
            "text": "This is the moment everything changed."
          },
          "audible_narrative": "The speaker describes a turning point.",
          "notable_audible_concepts": [
            "pivotal realization moment"
          ]
        }
      ]
    }
  }
}

Response

Return a 200 to indicate that the data was received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.