Skip to content

Share Public File

POST
/public/v1/text/sessions/{session_id}/files
curl --request POST \
--url 'https://api.nuacem.dev/voice-gw/public/v1/text/sessions/example/files?name=example'

Share a file in the chat PDF, Word (.docx), Excel (.xlsx), CSV or text. The body is the file’s bytes. The file is checked, scanned for malware and read; programs, scripts and macro files are refused. Send the returned fileId with the next message (fileIds). A blocked file answers 201 with status: "blocked" and a message to show the visitor.

session_id
required
Session Id
string
/^[0-9a-f-]{36}$/
name
required
Name

The file’s name, with its extension

string
>= 1 characters <= 255 characters

The file’s name, with its extension

Successful Response

Media typeapplication/json
Response Share Public File Public V1 Text Sessions Session Id Files Post
object
key
additional properties
any

Example generated

{}

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": {}
}
]
}