Pharmacy
Messaging
Messages Conversations Messages

Send Message

Send a message in a conversation

Overview

  • Method: POST
  • Path: /pharmacy/messaging/messages/conversations/<conversationId>/messages
  • Tags: pharmacy

Parameters

conversationId (path)

  • Type: string
  • Required: Yes
  • Description: conversationId parameter

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
bodystringYesminLength: 1, maxLength: 5000
idstringYes

Responses

200

Successful response

Content Type: application/json

{
  "id": "string",
  "conversationId": "string",
  "createdAt": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/pharmacy/messaging/messages/conversations/<conversationId>/messages \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'