Create Segment
curl --request POST \
  --url http://{api_endpoint}/api/v1/v1/customercare/conversations/{conversation_id}/segments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "conversation_id": "<string>",
  "recorded_at": "2023-11-07T05:31:56Z",
  "period": "<string>",
  "source": "<string>",
  "segment_type": "start",
  "seq": 123,
  "text": "<string>",
  "confidence": 123,
  "language": "<string>",
  "tags": [
    "<string>"
  ]
}'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation_id
string
required
Required string length: 8 - 64

Body

application/json
recorded_at
string<date-time>
required
source
string
required
segment_type
enum<string>
required

Enum for types of segment

Available options:
start,
fragment,
end
conversation_id
string | null
Required string length: 8 - 64
period
string | null
seq
integer | null
text
string | null
confidence
number | null
language
string | null
tags
string[] | null

Response

Successful Response

The response is of type any.