Skip to main content
POST
Send a message to the accounting agent

Authorizations

Authorization
string
header
required

Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....

Body

application/json
text
string
required

The message text.

channel
enum<string>
required

Conversation boundary. Internal requires LAC staff.

Available options:
customer,
internal
customer_id
string

Target company. Optional for API keys.

context
object

Optional structured context attached to the message.

source
string
default:portal

Message source label.

submission_id
string

Optional idempotency token (letters, digits, ., _, :, -; max 160). Retrying a request with the same token returns the first result instead of sending the message again. Omitted: every request sends one message.

Response

Message accepted and dispatched.

event_id
string
message
object

One message in the conversation with the accounting agent.