Run a Mod

Run the Post Copywriter Mod.

Get copy for your brand's social media posts

POST
/mods/3e573356-4aa3-4aee-b652-7b026de54d34/run
/mods/3e573356-4aa3-4aee-b652-7b026de54d34/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/3e573356-4aa3-4aee-b652-7b026de54d34/run" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "parameters": {
      "media_input": {
        "type": "text",
        "content": "Lorem ipsum dolor sit amet"
      }
    }
  }'

Success

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