cURL
curl --request POST \ --url https://api.xpander.ai/v1/toolkits/{toolkit_id}/tools/{tool_id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "body_params": {}, "query_params": {}, "path_params": {}, "headers": {} } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Invokes a specific tool in a toolkit
name
success
error
curl -X POST -H "x-api-key: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "parameters": { "channel": "#announcements", "message": "Deployment completed successfully" } }' \ https://api.xpander.ai/v1/toolkits/<toolkit-id>/tools/send_message
{ "result": { "message_ts": "1234567890.123456", "channel": "C1234567890", "text": "Deployment completed successfully" }, "status": "success", "execution_time": 0.87 }
{ "result": null, "status": "error", "execution_time": 0.23, "error": "Channel not found: #invalid-channel" }
API Key for authentication
Successful Response
Was this page helpful?
Contact support