Mager API
Clipping Engine

Buat highlight

POST/api/v1/highlights

Menyusun highlight reel dari rekaman pertandingan: AI menilai tiap momen, menyatukan yang terbaik, dan bila diminta merender hasilnya dengan sebuah template.

Autentikasi

MagerApiKey
x-mager-api-key<token>

API key Mager

Di: header

Parameter header

x-mager-api-key*string

API key Mager

Body permintaan

application/json

Definisi TypeScript

Pakai tipe request body di TypeScript.

Body response

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/highlights" \  -H "x-mager-api-key: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",    "title": "Persija vs Persib",    "category": "soccer",    "duration": "5400",    "start_time": "00:00:00",    "end_time": "01:00:00",    "layout": "SQUARE_BLUR",    "target_resolution": "1080p",    "callback_url": "https://client.example.com/webhooks/mager"  }'
{  "status": 201,  "message": "Success",  "data": {    "task_id": "cmclip01hxyz123",    "status": "running",    "model": null,    "template_id": null,    "callback_url": "https://client.example.com/webhooks/mager",    "created_at": "2026-08-14T06:00:00.000Z",    "updated_at": "2026-08-14T06:00:00.000Z",    "completed_at": null,    "error": null,    "billing": {      "base_moods": 1,      "charged_moods": 2,      "extra_moods_charged": 2    },    "output": null,    "result": [],    "webhooks": []  }}