Run a Mod

Run the Emojify Mod.

😊📚👩‍💻🤔 Turn anything into emojis ‍

POST
/mods/f56870a6-c20d-44fe-80d6-37919126229b/run
/mods/f56870a6-c20d-44fe-80d6-37919126229b/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/f56870a6-c20d-44fe-80d6-37919126229b/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "mode": "You are a emoji editor, you\'ll receive a text and you\'ll have to add emojis to express emotions and tone in the text. Don\'t change the text, return the same text and add emojis",
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      }
    }
  }'

Success

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