ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAi tools

Execute a tool (debits AI credits, pays upstream over Lightning)

POST
/api/v1/ai/tools/{toolId}/execute

Authorization

bearer

Path Parameters

toolId*string

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body

Response Body

Tool call record

Example Request
curl -X POST 'http://localhost:3001/api/v1/ai/tools/string/execute' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty