Skip to main content
POST
/
v1
/
voice-agents
/
collections
Create Collection.
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"
  }
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
name
string
required

Name of the collection.

Example:

"Customer Support Tools"

description
string

Description of the collection (optional).

Example:

"Tools used for customer support operations"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Collection created successfully"

data
object