List agent folders
curl --request GET \
--url https://guidinghand.ai/v1/agent_folders \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agent_folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agent_folders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "agent_folder",
"id": "fld_3kq9Zp1xV2",
"name": "EMEA",
"parent_id": "<string>",
"path": [
"Sales",
"EMEA"
],
"agents": 123,
"folders": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": {
"type": "user",
"email": "jane@acme.com"
}
}
],
"has_more": true
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Agent folders
List agent folders
Every folder of the org, flat, A–Z by path, so a folder comes right before what’s in it. Rebuild the tree from parent_id.
GET
/
v1
/
agent_folders
List agent folders
curl --request GET \
--url https://guidinghand.ai/v1/agent_folders \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agent_folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agent_folders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"object": "agent_folder",
"id": "fld_3kq9Zp1xV2",
"name": "EMEA",
"parent_id": "<string>",
"path": [
"Sales",
"EMEA"
],
"agents": 123,
"folders": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": {
"type": "user",
"email": "jane@acme.com"
}
}
],
"has_more": true
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}