POST /newsletters/{jid}/messages

Send a message to a newsletter (admin only)

Path parameters

  • jid string Required
application/json

Body Required

  • text string Required

Responses

  • 200 application/json

    Message sent

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
POST /newsletters/{jid}/messages
curl \
 --request POST 'http://localhost:7001/newsletters/{jid}/messages' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"text":"string"}'
Request examples
{
  "text": "string"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Success",
  "data": {}
}
Response examples (400)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (401)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}