Run integration execution
- POST
- /workspaces
- /:workspace
- /integrations
- /:hash_id
- /execs
Run a one-shot execution on the integration. type is required and selects the payload: MCP runs the mcp operation on the MCP server of the integration and returns the response in the execution log as JSON.
Examples
Example: MCP list tools request
curl -X POST "https://api.buddy.works/workspaces/:workspace/integrations/:hash_id/execs" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "MCP",
"mcp": {
"operation": "LIST_TOOLS"
}
}'Example: MCP tool call request
curl -X POST "https://api.buddy.works/workspaces/:workspace/integrations/:hash_id/execs" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "MCP",
"mcp": {
"operation": "CALL_TOOL",
"tool": "search_issues",
"arguments": {
"query": "is:open label:bug"
}
}
}'EXAMPLE RESPONSE
{
"url": "https://api.buddy.works/workspaces/my-workspace/integrations/eXaMpLeHaSh/execs/0f7c2d51-4a8e-4f0b-9d7e-3c1b2a6e5f90",
"log_url": "https://api.buddy.works/workspaces/my-workspace/integrations/eXaMpLeHaSh/execs/0f7c2d51-4a8e-4f0b-9d7e-3c1b2a6e5f90/log",
"execution_id": "0f7c2d51-4a8e-4f0b-9d7e-3c1b2a6e5f90",
"integration": "eXaMpLeHaSh",
"type": "MCP",
"invoker": {
"url": "https://api.buddy.works/workspaces/my-workspace/members/1",
"id": 1,
"name": "John Doe"
},
"command": "{\"operation\":\"LIST_TOOLS\"}",
"started_at": "2026-05-28T08:00:09.820Z",
"status": "INPROGRESS"
}STATUS
200 Execution accepted and started; row carries `status: RUNNING` until poll endpoints flip to terminal