Skip to main content
post/v1/agents/{agentId}/reply
Request example
Response
post/v1/agents/{agentId}/reply

Send a reply into an existing agent conversation from server-side code. Use this when you are not running @novu/framework on the bridge (for example with the Python, Go, PHP, .NET, or Java SDKs), or when another backend service needs to post into a live conversation.

The request body is a bag of optional actions. Provide at least one of reply, edit, resolve, signals, toolResults, toolApprovalRequest, addReactions, deleteMessages, typing, or error. Named examples in the OpenAPI spec cover the common shapes.

When a reply or edit is delivered, the response data contains messageId and platformThreadId. Side-effect-only requests return data: null.

For the TypeScript bridge API (ctx.reply, cards, signals), see Reply.

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

Path parameters

agentIdstringrequired#
Agent identifier (slug) for the agent that owns the conversation.

Example:"support-agent"

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
conversationIdstringrequired#
Conversation id to reply into. Obtained from the inbound agent event / bridge payload.

Example:"64f5a1c2e8b7a3d9f0c1b2a3"

integrationIdentifierstringrequired#
Channel integration identifier linked to the agent for this conversation (e.g. slack-support).

Example:"slack-support"

replyobject#
Outbound message content. Exactly one of markdown, card, or toolApprovalCard. Optional files attach to the message. Cannot be combined with edit.
toolApprovalRequestobject#
Tool-lifecycle ledger row for a gated tool call. Pair with reply.toolApprovalCard (or another reply shape) to deliver the approval UI.
editobject#
In-place edit of a previously posted agent message. Cannot be combined with reply, resolve, signals, toolResults, toolApprovalRequest, addReactions, or deleteMessages.
resolveobject#
Mark the conversation resolved. May be combined with a final reply.
signalsobject[]#
Side-effect signals executed during this turn: conversation metadata mutations, Novu workflow triggers, or human-in-the-loop interactions.
toolResultsobject[]#
Tool-call outcomes to persist in conversation history (typically before the assistant reply).
addReactionsobject[]#
Emoji reactions to add to existing platform messages.
deleteMessagesobject[]#
Delete previously posted platform messages. Removes the rendered message only — history is preserved.
typingenum<string> · object#
Per-turn typing/status control. Pass { status?: string } to set/update the status (omit status for "Thinking…"), or "stop" to clear it. Best-effort per platform.
Example:
errorboolean#
Bridge reports that the customer runtime failed this turn. Cannot be combined with other actions. Novu delivers generic user-facing error copy.

Example:true

Responses

application/json
OK. When a reply or edit is delivered, data contains the platform message identifiers. Side-effect-only requests (typing, reactions, deletes, signals without an outbound message) return data: null.
messageIdstringrequired#
Platform-native message id of the delivered or edited message (e.g. Slack ts, Teams activity id).

Example:"1712345678.123456"

platformThreadIdstringrequired#
Platform-native thread / conversation id where the message was delivered.

Example:"C0123456789"