Share Public File
POST
/public/v1/text/sessions/{session_id}/files
const url = 'https://api.nuacem.dev/voice-gw/public/v1/text/sessions/example/files?name=example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
Session Id
string
Query Parameters
Section titled “Query Parameters”name
required
Name
The file’s name, with its extension
string
The file’s name, with its extension
Responses
Section titled “Responses”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>
ValidationErrorobject
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": {} } ]}