Skip to content

Start Public Chat

POST
/public/v1/text/sessions
curl --request POST \
--url https://api.nuacem.dev/voice-gw/public/v1/text/sessions \
--header 'Content-Type: application/json' \
--header 'X-VoiceCX-Key: example' \
--data '{ "agentId": "example", "useCaseId": "example", "language": "example", "visitorId": "example", "userId": "example", "userHash": "example", "profile": { "additionalProperty": "example" } }'
X-VoiceCX-Key
required
X-Voicecx-Key
string
>= 10 characters <= 200 characters
origin
Any of:
string
Media typeapplication/json
PublicSessionRequest
object
agentId
Any of:
string
>= 1 characters <= 40 characters
useCaseId
Any of:
string
>= 1 characters <= 40 characters
language
Any of:
string
>= 2 characters <= 8 characters
visitorId
Any of:
string
userId
Any of:
string
<= 200 characters
userHash
Any of:
string
<= 128 characters
profile
Any of:
object
<= 10 properties
key
additional properties
string

Example generated

{
"agentId": "example",
"useCaseId": "example",
"language": "example",
"visitorId": "example",
"userId": "example",
"userHash": "example",
"profile": {
"additionalProperty": "example"
}
}

Successful Response

Media typeapplication/json
PublicSessionResponse
object
sessionId
required
Sessionid
string
token
required
Token
string
visitorId
required
Visitorid
string
language
required
Language
string
greeting
required
Any of:
string
expiresIn
required
Expiresin
integer
maxMessageChars
required
Maxmessagechars
integer
voiceNotes
Voicenotes
boolean
attachmentMode
Attachmentmode
string
default: always
replies
Replies
boolean
richMessages
Richmessages
boolean
replyDelivery
Replydelivery
string
default: stream

Example

{
"voiceNotes": false,
"attachmentMode": "always",
"replies": false,
"richMessages": false,
"replyDelivery": "stream"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}