Run a Mod

Run the Key moments from video Mod.

Get the key moments from any YouTube video

POST
/mods/39c86df9-7ada-4ea1-9886-67063b2c2ebc/run
/mods/39c86df9-7ada-4ea1-9886-67063b2c2ebc/run

The Authorization access token

Authorization

X-API-Key<token>

API key. Example: "X-API-Key": "<apiKey>"

In: header

Authorization
Required
Bearer <token>

Session token. Example: "Authorization": "Bearer <token>"

In: header

Request Body

application/jsonRequired

parameters
Required
object

curl -X POST "https://api.endless.io/v1/mods/39c86df9-7ada-4ea1-9886-67063b2c2ebc/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "media_input": {
        "type": "video",
        "url": "https://www.youtube.com/watch?v=V3rTaj7zdoc"
      }
    }
  }'

Success

{
  "type": "text",
  "content": "Lorem ipsum dolor sit amet"
}