API Documentation
Prospects
Agents
VoiceModels
Hive
HiveAgentLink
Actions
ActionAgentLink
Products
Conversations
ConversationProspectLink
Products
Create a New Product
Create a New Product
POST
/
v1
/
products
Copy
curl --request POST \
--url https://api.trata.ai/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true,
"defaultPrice": 123,
"currency": "AED",
"description": "High-quality gardening tools",
"name": "Garden Tool Set",
"shippable": false,
"features": [
"<string>"
],
"scheduleAppointment": false,
"props": "stainless steel",
"tags": "gardening",
"status": "active",
"agentIds": [
"<string>"
]
}'
Copy
{
"id": "pro.1731301754.OZSMSU1S",
"orgId": "org.1726902940.GZChqlpU",
"active": true,
"defaultPrice": 1299,
"currency": "USD",
"description": "Spicy Korean Chicken Wings",
"name": "Spicy Korean Chicken Wings",
"shippable": true,
"features": [],
"scheduleAppointment": false,
"props": {},
"status": "active",
"createdBy": "trata-system",
"createdAt": "2024-11-11T05:09:14.979287",
"updatedBy": "trata-system",
"updatedAt": "2024-11-11T05:09:14.979289"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Product created successfully
Product and services offered by the business
Copy
curl --request POST \
--url https://api.trata.ai/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true,
"defaultPrice": 123,
"currency": "AED",
"description": "High-quality gardening tools",
"name": "Garden Tool Set",
"shippable": false,
"features": [
"<string>"
],
"scheduleAppointment": false,
"props": "stainless steel",
"tags": "gardening",
"status": "active",
"agentIds": [
"<string>"
]
}'
Copy
{
"id": "pro.1731301754.OZSMSU1S",
"orgId": "org.1726902940.GZChqlpU",
"active": true,
"defaultPrice": 1299,
"currency": "USD",
"description": "Spicy Korean Chicken Wings",
"name": "Spicy Korean Chicken Wings",
"shippable": true,
"features": [],
"scheduleAppointment": false,
"props": {},
"status": "active",
"createdBy": "trata-system",
"createdAt": "2024-11-11T05:09:14.979287",
"updatedBy": "trata-system",
"updatedAt": "2024-11-11T05:09:14.979289"
}
Assistant
Responses are generated using AI and may contain mistakes.