Run a Mod

Run the Song Emotion Analyzer Mod

Analyze the emotional tone and feelings of a song name, providing a detailed analysis of the emotions detected.

POST
/mods/2256cc6f-47b3-4c01-a870-c2199fa94c5d/run
/mods/2256cc6f-47b3-4c01-a870-c2199fa94c5d/run

The Authorization access token

Authorization

API-Key<token>

API key. Example: "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/2256cc6f-47b3-4c01-a870-c2199fa94c5d/run" \
  -H "API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "song_name": "string"
    }
  }'

Success

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