Send email to users
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.eyJzdWIiOiIyMDE1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE3LCJleHAiOjE3NjYyMTg0MTcsImp0aSI6IjAxZGNkY2RkLWNhMmYtNDk4ZC1iZTk4LWQxNTYyYmFmYmFjNiJ9.66HWXsjkAdvgMuyRiTH4UajZO7kgsZhKitA1rcA7NOs
Host: example.org
Cookie:
Body
{
"by_id": [
2012,
2014
],
"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: 4630df88-26c2-4d6f-a206-d14067151ea4
x-runtime: 0.013218
content-length: 35
Body
{
"message": "Emails have been sent"
}