v1
latestOpenAPI 3.0.12026-07-226992320.0 KBIntegration Tools
Execute Tool
Executes a tool against its configured third-party API using the supplied placeholder values. Auth credentials are resolved automatically; specify authId to select specific credentials when multiple exist. Returns the raw response from the external API including status code, headers, and body.
post/v1/integrations/{integrationId}/tools/{toolId}/execute
Path parameters
integrationIdstring required
Unique identifier of the integration to which the tool belongs.
toolIdstring required
Unique identifier of the tool to execute.
Request body
Example request
{
"placeholders": {
"customerId": "7654321"
},
"authId": "auth_P3kNz7Yv1Qm9"
}Response
OK
Example response
{
"toolId": "tool_X9pLm2Wq8Rt3",
"integrationId": "intg_AuUKK371Spr5",
"url": "https://my-store.myshopify.com/admin/api/2024-01/customers/7654321.json",
"method": "GET",
"statusCode": 200,
"success": true,
"responseBody": {
"customer_name": "Michael",
"account_id": "ACC-001"
},
"responseHeaders": {
"Content-Type": "application/json; charset=utf-8"
},
"errorMessage": "404 Not Found: {\"errors\": \"Customer not found\"}",
"durationMs": 342,
"executedAt": "2024-04-20T10:00:00.000Z"
}