Reply to a client
POST
/v1/firms/{firmId}/conversations/{id}/messages
curl -X POST "https://api.staging.idealx.com/v1/firms/frm_01937a1b2c3d4e5f6a7b8c9d0e1f2a3b/conversations/cnv_01937f30a1b2c3d4e5f6a7b8c9d0e1f2/messages" \ -H "Authorization: Bearer $IDEALX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "body": "Hi Alex, your review is ready."}'const res = await fetch("https://api.staging.idealx.com/v1/firms/frm_01937a1b2c3d4e5f6a7b8c9d0e1f2a3b/conversations/cnv_01937f30a1b2c3d4e5f6a7b8c9d0e1f2/messages", { method: "POST", headers: { Authorization: `Bearer ${process.env.IDEALX_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ "body": "Hi Alex, your review is ready." }),});if (!res.ok) throw new Error((await res.json()).error.code);const data = await res.json();import osimport requests
res = requests.post( "https://api.staging.idealx.com/v1/firms/frm_01937a1b2c3d4e5f6a7b8c9d0e1f2a3b/conversations/cnv_01937f30a1b2c3d4e5f6a7b8c9d0e1f2/messages", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, json={ "body": "Hi Alex, your review is ready." }, timeout=30,)res.raise_for_status()data = res.json()Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”firmId
required
string
id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
body
required
string
attachments
Array<object>
PDF, image, Word, Excel, CSV or text; up to 4 MB
object
name
required
string
contentType
required
string
dataBase64
required
string
Example generated
{ "body": "example", "attachments": [ { "name": "example", "contentType": "example", "dataBase64": "example" } ]}Responses
Section titled “Responses”Sent
Media typeapplication/json
object
id
required
string
authorKind
required
string
authorName
required
string
body
required
string
attachments
required
Array<object>
object
fileId
required
string
name
required
string
size
required
number
contentType
required
string
createdAt
required
string
Example
{ "authorKind": "customer"}