Skip to main content
POST
/
chatbots
/
{id}
/
train
Start chatbot training
curl --request POST \
  --url https://api.smartlyq.com/v1/chatbots/{id}/train \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sources": [
    {}
  ]
}
'
{
  "success": true,
  "data": "<unknown>",
  "usage": {
    "units": 123,
    "cost": "<string>",
    "balance_remaining": "<string>"
  },
  "meta": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Path Parameters

id
string
required

Chatbot ID.

Body

application/json
sources
object[]

Response

Training accepted; poll train-status for completion

success
enum<boolean>
Available options:
true
data
any
usage
object
meta
object