Create Agent Custom Tool
Reflects unpublished staged state - see GET /agents/{agent_id}/versions/latest for what's actually live.
Authorization
OAuth2AuthorizationCodeBearer In: header
Path Parameters
uuidQuery Parameters
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/stage/custom-tools" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": "string", "json_schema": {}, "webhook_url": "string", "webhook_secret": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "json_schema": {}, "webhook_url": "string", "timeout_ms": 0, "method": "GET", "headers": [ { "name": "string", "value": "string" } ], "query_params": [ { "name": "string", "source": "string" } ], "path_params": [ { "name": "string", "source": "string" } ], "body_source": "arguments", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "auth_placement": "bearer", "auth_param_name": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}{ "detail": "string", "code": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}