Send human agent response

Sends a manual reply from a live agent. `sessionId` must be the contact's **current** session and that session must be in a human-handoff state (enable it first via the human-handoff endpoint). Targeting a stale, closed, or non-handoff session returns `400 {"error":{"message":"Human handoff is not enabled for this campaign","code":"BAD_REQUEST"}}` — despite the wording, the cause is the session, not a campaign-level setting.

Authentication

api-keystring

Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

Path parameters

campaignIdstringRequired

Request

This endpoint expects an object.
sessionIdstringRequired
messagestringRequired
agentIdstringOptional
attachmentslist of stringsOptional

Response

Response sent

Errors

400
Bad Request Error
500
Internal Server Error