Run a Mod

Run the Popular Science Mod.

Este Mod transforma complejos temas científicos en textos que pueda entender cualquier hijo de vecino.

POST
/mods/b2b81f97-249a-4b4e-a9cc-5589848a90b5/run
/mods/b2b81f97-249a-4b4e-a9cc-5589848a90b5/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/b2b81f97-249a-4b4e-a9cc-5589848a90b5/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "media_input": {
        "type": "video",
        "url": "https://endless.io"
      }
    }
  }'

Success

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