Belirli bir aracın detaylı bilgilerini alın
/api/v1/tools/:toolIdBelirli bir aracın tüm konfigürasyon bilgilerini ve detaylarını getirir.
toolIdstring (gerekli)Detaylarını almak istediğiniz aracın ID'si
curl -X GET https://api.wespoke.ai/api/v1/tools/tool_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"data": {
"id": "tool_abc123",
"name": "CRM Sorgu",
"type": "API_REQUEST",
"description": "CRM API'sinden müşteri bilgisi çeker",
"config": {
"url": "https://api.crm.local/customers/{id}",
"method": "GET",
"headers": {
"Authorization": "Bearer {{secrets.CRM_API_KEY}}"
},
"query": {
"expand": "details"
}
},
"createdAt": "2024-01-14T09:00:00Z",
"updatedAt": "2024-01-15T09:00:00Z"
}
}{
"success": true,
"data": {
"id": "tool_def456",
"name": "Müşteri Bilgisi",
"type": "DATABASE_QUERY",
"description": "Veritabanından müşteri bilgisi getirir",
"config": {
"query": "SELECT * FROM customers WHERE phone = :phone",
"parameters": {
"phone": "{{caller_number}}"
}
},
"createdAt": "2024-01-10T12:30:00Z",
"updatedAt": "2024-01-10T12:30:00Z"
}
}idstringAracın benzersiz kimliği
namestringAracın adı
typestringAraç tipi
descriptionstringAracın açıklaması
configobjectAraç tipine özgü konfigürasyon (URL, method, headers, query, vb.)
createdAtstringOluşturulma tarihi (ISO 8601)
updatedAtstringSon güncellenme tarihi (ISO 8601)
{
"success": false,
"error": {
"code": "TOOL_NOT_FOUND",
"message": "Araç bulunamadı"
}
}