Skip to main content
POST
Send test email and/or sms

Description

Send an email and/or sms to the email/phone sent in request’s body.

Validations

  • If campaign doesn’t have an email template yet and the request have an email it will return an error with 422 status code.
  • If campaign doesn’t have an sms template yet and the request have a phone it will return an error with 422 status code.

Response

No response with a 204 status.

Body

The body for the request is an object that contains the properties email and phone where:
  • email: Email where the test email will be sent. If not present it won’t sent any test email.
  • phone: Phone where the test sms will be sent. It should be a string with the phone in international format. If not present it won’t sent any test sms.

Authorizations

Authorization
string
header
required

Access token obtained from the m2m-token endpoint.

Headers

Authorization
string
required

Body

application/json

The body is of type object.

Response

Successful response