Messaging API

Messaging API

  • Documentation
  • Swagger UI

Member messaging API

Create conversation

Creates a new conversation between the specified Team and Client and returns a conversation_id which helpful for to identify the conversation of an incoming message using the Receive Message event. and a client_id .

This endpoint requires the User token provided on login.

Swagger documentation

Expected Request

POST /api/member/conversation/create

Authorization: Bearer <TOKEN> # User token
{
  "team_id": 123,
  "contact": {
    "id": 123, // optional
    "name": "Foo bar",
    "phone_number": "+21698765432", //optional
    "email": "test@test.com" //optional
  }
}

Response

201 Created

{
  "conversation_id": 123,
  "contact_id": 543210
}

Send message

Sends a message in the previously created conversation, or one of the listed conversations, returning the message Id and the server timestamps.

This endpoint requires the User token provided on login.

Swagger documentation

Expected Request

POST /api/member/message

Authorization: Bearer <TOKEN> # User Token
{
  "conversation_id": 543210,
  "channel": {
    "id": 50
  },
  "content": {
    "text": "my message content"
  }
}

Response

201 Created

{
  "message_id": 543210,
  "timestamp": 1589895861640
}

Available channels

ChannelId
TWILIO1
MESSENGER2
LIVE_CHAT3
LINE4
TELEGRAM6
VIBER7
KIK8
TWITTER9
BOOKING10
BOWO11
RAINBOW12
CUSTOM14
WHATSAPP16
BOOKING_MAIL17
WECHAT18

Receive messages

There is two paradigms allows you to receive messages from Quicktext:

  • HTTP Webhook
  • WebSocket

Messaging history

  • List conversation messages

Conversations actions

You can Archive, Restore (move back to inbox) and Delete conversations using this endpoint:

Swagger documentation

Expected Request

PATCH /api/member/conversations

Authorization: Bearer <TOKEN> # User token
{
  "convIds": [ // Conversations IDs
    123456,
    654321
  ],
  "action": "archive" // "archive" | "restore" | "delete"
}

Response

200 OK

{
  "successfulIds": [
    123456,
    654321
  ],
  "failedIds": [],
  "action": "archive" // "archive" | "restore" | "delete"
}

Set bot status

You can set the bot status in a specified conversation using this endpoint:

Swagger documentation

Expected Request

PUT /api/member/bot/status

Authorization: Bearer <TOKEN> # User token
{
  "team_id": 123,
  "contact_id": 123,
  "status": true // `true` to enable the bot and `false` to disable it
}

Response

200 OK

Download conversation link

You can request the link to download a conversation using this endpoint:

Swagger documentation

Expected Request

GET /api/member/conversations/{convId}/download

Authorization: Bearer <TOKEN> # User token

Response

200 OK

{
  "link": "https://example.com/link/to/download/conversation.pdf"
}
Last updated on 2/9/2021
  • Create conversation
    • Expected Request
    • Response
  • Send message
    • Expected Request
    • Response
  • Available channels
  • Receive messages
  • Messaging history
  • Conversations actions
    • Expected Request
    • Response
  • Set bot status
    • Expected Request
    • Response
  • Download conversation link
    • Expected Request
    • Response
Copyright © 2026 Quicktext