Integrations

Trigger a Tool

POSThttps://tryferra.co/api/public/v1/integration-trigger/{id}

Executes a provider-specific tool on a connected channel, for example searching Instagram audio for Reels, listing Discord channels, or fetching Reddit flairs. Discover available tools with the integration settings endpoint.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

idstringrequired

path · The integration ID

Body

methodNamestringrequired

The tool method name, as returned by the integration settings endpoint

dataobject

Key-value parameters for the tool

Request

curl -X POST 'https://tryferra.co/api/public/v1/integration-trigger/{id}' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "methodName": "audioSearch",
  "data": {
    "q": "summer vibes",
    "type": "music"
  }
}'

Responses

200Tool executed successfully
{
  "output": [
    {
      "id": "587784541076604",
      "title": "Summer Vibes",
      "artist": "Some Artist",
      "image": "https://scontent.cdninstagram.com/cover.jpg",
      "duration": 30000,
      "previewUrl": "https://scontent.cdninstagram.com/preview.mp4"
    }
  ]
}
401Channel disconnected due to expired token
404Integration or tool not found

Some providers expose helper tools for fetching dynamic data needed when constructing post settings, for example searching Instagram audio to attach to a Reel, listing Discord channels, or fetching Reddit flairs.

Discover the tools available for a channel with the settings endpoint. Each tool entry contains the methodName to pass here together with its parameter schema.

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).