Search tools, monitor types, plays, and docs
curl --request GET \
--url https://code.deepline.com/api/v2/search \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"kind": "tool",
"displayName": "<string>",
"description": "<string>"
}
],
"kinds": [
"<string>"
],
"search_ref": "<string>",
"count": 123,
"total": 123,
"offset": 123,
"limit": 123,
"next_offset": 123,
"total_is_exact": true,
"may_have_more": true,
"truncated": true,
"query": "<string>",
"categories": [
"<string>"
],
"search_terms": [
"<string>"
]
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Tools
Search tools, monitor types, plays, and docs
One ranked search across everything Deepline can run, deploy, or explain. Each result carries a kind: tool, monitor_type, prebuilt_play, custom_play, or doc. The workspace’s own (custom) plays are ranked with a small boost. Ranking uses a third-party AI relevance model, which is sent only each custom play’s name and description; play code, inputs, and run data are never shared with it.
GET
/
api
/
v2
/
search
Search tools, monitor types, plays, and docs
curl --request GET \
--url https://code.deepline.com/api/v2/search \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/search"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"kind": "tool",
"displayName": "<string>",
"description": "<string>"
}
],
"kinds": [
"<string>"
],
"search_ref": "<string>",
"count": 123,
"total": 123,
"offset": 123,
"limit": 123,
"next_offset": 123,
"total_is_exact": true,
"may_have_more": true,
"truncated": true,
"query": "<string>",
"categories": [
"<string>"
],
"search_terms": [
"<string>"
]
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authentication: workspace API key in
Authorization: Bearer <key>.
Errors
| Status | Meaning |
|---|---|
| 400 | The request conflicts with current state or a retained request identity. |
| 401 | The request conflicts with current state or a retained request identity. |
| 500 | The request conflicts with current state or a retained request identity. |