Trigger a Tool
POST /integration-trigger/{id} — Infipost Public API
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 --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 · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Parameters
idstring · pathrequiredThe integration ID
Body
methodNamestringrequiredThe tool method name, as returned by the integration settings endpoint
dataobjectKey-value parameters for the tool
Response
Tool 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"
}
]
}outputunionThe tool result, shape depends on the tool
Channel disconnected due to expired token
Integration 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.