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.eyJzdWIiOiIxOTY0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzU4MDEyNTE2LCJleHAiOjE3NjA2MDQ1MTYsImp0aSI6ImJiMDMwZWI1LTk0MGMtNGE0OC1hMjNlLTJkZDRjNmE1N2RkYSJ9.FPL9sKHThr_nUrhJHN4CZqRpoeCaJO6PgEPxo9MQh2c
Host: example.org
Cookie: 

Body

{
  "by_id": [
    1961,
    1963
  ],
  "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: aa6a089e-96b2-4389-9b41-ffb1d5303941
x-runtime: 0.023555
content-length: 35

Body

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