Answer a member's message

POST
/v1/messages

Send one member message; get back what Dexbi decided.

actionWhat your app does
replySend message to the member.
handoverSend message to the member and alert your staff with staffNote.
closeSend message, then close the thread.
noneNothing.

Send every message of one thread with the same conversation, and a messageId so a double-send never runs twice at once. Send your staff's messages in the thread too, with author: "staff": Dexbi keeps them as the team's words and answers none. In a ticket with reply: "smart", when your staff replied last, Dexbi answers the member's next message none with teamWaitSeconds: if no staff message comes in that time, send what the member wrote again with teamWaitOver: true and Dexbi answers it. Send the member's screenshots in images, as Discord links. Add fields to have Dexbi fill in your own labels, like a department or a product, next to its decision.

Authorization

apiKey
AuthorizationBearer <token>

A workspace API key (dexbi_…), created in the dashboard under Settings → API keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "conversation": "thread-8812",    "member": {      "id": "member-1042"    },    "message": "How do I get a refund?"  }'

Dexbi has an answer. Send message to the member.

{  "action": "reply",  "message": "You can ask for a refund within 14 days from your order page: **Account → Orders → Request refund**.",  "staffNote": null,  "title": "refund",  "teamWaitSeconds": null,  "conversation": "thread-8812",  "attribution": {    "text": "Powered by Dexbi",    "url": "https://dexbi.app",    "required": true  }}