API Endpoints
Complete reference for Wizlay API endpoints and their usage
Base URL
All API requests should be made to:
https://api.wizlay.com/v1
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Cluster API
POST /clusters
Process conversation messages through your cluster
Query Parameters
Parameter | Type | Description |
---|---|---|
id | string | Your cluster ID |
cURL Example
curl -X POST \ 'https://api.wizlay.com/v1/clusters?id=YOUR_CLUSTER_ID' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "content": { "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "How are you?" } ] } }'
Request Body
{
"content": {
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "How is the weather in London?"
}
]
}
}
Response
{
"content": {
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "How are you?"
},
{
"role": "assistant",
"content": "Base on the context the weather in London is 32 degree. Please answer this question: How is the weather in London"
}
]
}
}