curl --request POST \
--url https://api.tryhamsa.com/v1/voice-agents/collections \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Customer Support Tools",
"description": "Tools used for customer support operations"
}
'{
"success": true,
"message": "Collection created successfully",
"data": {
"id": "d949f13f-40d2-4e48-ac86-b66633070603",
"name": "Customer Support Tools",
"description": "Tools used for customer support operations",
"userId": "d949f13f-40d2-4e48-ac86-b66633070603",
"projectId": "d949f13f-40d2-4e48-ac86-b66633070603",
"webToolsCount": 5,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}Creates a new collection for organizing web tools.
curl --request POST \
--url https://api.tryhamsa.com/v1/voice-agents/collections \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Customer Support Tools",
"description": "Tools used for customer support operations"
}
'{
"success": true,
"message": "Collection created successfully",
"data": {
"id": "d949f13f-40d2-4e48-ac86-b66633070603",
"name": "Customer Support Tools",
"description": "Tools used for customer support operations",
"userId": "d949f13f-40d2-4e48-ac86-b66633070603",
"projectId": "d949f13f-40d2-4e48-ac86-b66633070603",
"webToolsCount": 5,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token
Was this page helpful?