POST /conversations

Create new conversation

application/json

Body

  • name string Required
  • bot_id string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • id string
      • name string Required
      • bot_id string Required
      • created_at integer(int64)

        Unix timestamp in seconds

  • 422 application/json

    Request validation failure.

    Hide response attributes Show response attributes object
    • message string
    • errors object

      Additional properties are allowed.

      Hide errors attribute Show errors attribute object
      • bot_id array[string]
POST /conversations
curl \
 --request POST 'https://ask71.tech/api/v1/conversations' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string","bot_id":"string"}'
Request examples
{
  "name": "string",
  "bot_id": "string"
}
Response examples (200)
{
  "data": {
    "id": "string",
    "name": "string",
    "bot_id": "string",
    "created_at": 42
  }
}
Response examples (422)
{
  "errors": {
    "bot_id": [
      "The selected bot id is invalid."
    ]
  },
  "message": "The selected bot id is invalid."
}