All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createCustomTool() | POST /api/v3/organizations/{organisation}/ai/custom-tools | Register Custom Edge Function Tool |
| deleteCustomTool() | DELETE /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Delete Custom Tool |
| getCustomTool() | GET /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Get Custom Tool |
| listCustomTools() | GET /api/v3/organizations/{organisation}/ai/custom-tools | List Custom Tools |
createCustomTool($organisation, $create_custom_tool_request): \QuantClient\Model\CreateCustomTool201ResponseRegister Custom Edge Function Tool
Registers a custom edge function as a tool that AI models can invoke. Provide edgeFunctionCode (JavaScript) and the API will deploy it to the CDN, compute the edge function URL, and register the tool. * * Edge Function Contract: * - Edge functions must accept POST requests with JSON payload * - Expected request format: { 'toolName': '...', 'input': {...}, 'orgId': '...' } * - Must return JSON response with either result or error field * * Idempotent Updates: * POSTing with the same name will update the existing tool — the edge function code is redeployed to the same UUID and the tool registration is updated. * * Async Tools: * Set isAsync: true for operations >5 seconds. The edge function should return { executionId: '...' } and the AI will poll for completion.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AICustomToolsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$create_custom_tool_request = new \QuantClient\Model\CreateCustomToolRequest(); // \QuantClient\Model\CreateCustomToolRequest
try {
$result = $apiInstance->createCustomTool($organisation, $create_custom_tool_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AICustomToolsApi->createCustomTool: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| create_custom_tool_request | \QuantClient\Model\CreateCustomToolRequest |
\QuantClient\Model\CreateCustomTool201Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteCustomTool($organisation, $tool_name): \QuantClient\Model\DeleteCustomTool200ResponseDelete Custom Tool
Deletes a custom tool registration and its deployed edge function.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AICustomToolsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$tool_name = 'tool_name_example'; // string | The tool name to delete
try {
$result = $apiInstance->deleteCustomTool($organisation, $tool_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AICustomToolsApi->deleteCustomTool: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| tool_name | string | The tool name to delete |
\QuantClient\Model\DeleteCustomTool200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCustomTool($organisation, $tool_name): \QuantClient\Model\GetCustomTool200ResponseGet Custom Tool
Retrieves a single registered custom tool by name.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AICustomToolsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$tool_name = 'tool_name_example'; // string | The tool name to retrieve
try {
$result = $apiInstance->getCustomTool($organisation, $tool_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AICustomToolsApi->getCustomTool: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| tool_name | string | The tool name to retrieve |
\QuantClient\Model\GetCustomTool200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listCustomTools($organisation): \QuantClient\Model\ListCustomTools200ResponseList Custom Tools
Lists all registered custom edge function tools for an organization.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AICustomToolsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
try {
$result = $apiInstance->listCustomTools($organisation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AICustomToolsApi->listCustomTools: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID |
\QuantClient\Model\ListCustomTools200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]