Users

Send email to users

POST email

Endpoint

POST /api/v1/users/email

Parameters

Name Description
by_id required Users ids to send emails
subject required Email's subject
body required Email's body

Request

Route

POST /api/v1/users/email

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTQzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDgxLCJleHAiOjE3NjM1NDI0ODEsImp0aSI6ImE0ZjBmMWFjLTZkYWItNGIzMS05MzY2LTNmOTZkMjJlZmVjZSJ9.2FK1YBSEptMizVao-WeWI4g6Op2e9yN9zeC66oUi0YE
Host: example.org
Cookie: 

Body

{
  "by_id": [
    1940,
    1942
  ],
  "subject": "Test subject",
  "body": "Test body"
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"b97d43c32ff3ce9e1ef1dce937fd191e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3ede1862-b75f-4492-a8ad-d0a27cc4a426
x-runtime: 0.029434
content-length: 35

Body

{
  "message": "Emails have been sent"
}