infipostdocs
Integrations

Trigger a Tool

POST /integration-trigger/{id} — Infipost Public API

POST/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.

cURL
curl --request POST \
  --url 'https://api.infipost.asia/public/v1/integration-trigger/{id}' \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "methodName": "audioSearch",
  "data": {
    "q": "summer vibes",
    "type": "music"
  }
}'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

idstring · pathrequired

The integration ID

Body

methodNamestringrequired

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

dataobject

Key-value parameters for the tool

Response

Tool executed successfully

application/json
{
  "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"
    }
  ]
}
outputunion

The tool result, shape depends on the tool

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.