1. Inicio
  2. Documentos
  3. Moments
  4. SMS

SMS

Documentación API – Mercadeo Masivo
Mercadeo.Masivo.2024 Log out

Welcome to Mercadeo Masivo APIs

Select a channel from the left menu to explore our comprehensive API documentation, including SMS, Email, Voice, and more.

Get Started / Channels / Email

Send Email messages

Early access

99% of all use cases can be achieved by using this API method. Everything from sending a simple single message to a single destination, up to batch sending of personalized messages to the thousands of recipients with a single API request. Scheduling and every advanced feature you can think of is supported.

POST http://api.messaging-service.com/email/4/messages
Authorizations:
Scopes:
Request rate limit:
Time-based rate limit:
• 4000 requests per second
Learn more
Request Body Schema: application/json
messages required
Array of objects An array of message objects of a single message or multiple messages sent under one bulk ID.
Array [
sender
string Email address with optional sender name.
Note: This field is required if templateId is not present.
destinations required
Array of objects An array of destination objects for where messages are being sent. A valid destination is required.
Note: Maximum number of recipients is 1000 overall including to, cc and bcc field.
Array [
to required
Array of objects List of TO recipient email addresses.
destination *
stringEmail address of the recipient (e.g. [email protected])
messageId
stringUnique message ID.
placeholders
stringSpecific placeholder: {“name”: “John”}
cc
Array of objectsList of CC recipient email addresses. (Same schema as ‘to’)
bcc
Array of objectsList of BCC recipient email addresses. (Same schema as ‘to’)
]
replyTo
stringEmail address to which recipients of the email can reply.
preserveRecipients
boolean (Default: false)When true, all recipients in ‘to’ can see entire list.
content required
objectMessage content.
subject
stringMessage subject.
text
stringBody of the message.
html
stringHTML body. Overrides text if both present.
ampHtml
stringAMP HTML body format.
templateId
stringTemplate ID. Overrides html and text.
attachments
Array of objectsFile attachments (type, contentId).
inlineImages
Array of objectsAllows cid:FILENAME references. (type, contentId).
defaultPlaceholders
stringGeneral placeholders JSON.
headers
stringAdditional JSON headers.
options
object Message options (validityPeriod, webhooks, ips, storage).
]
options
objectOptions applicable to all messages (schedule, tracking, clientPriority).

Responses

bulkId
stringUnique request ID.
messages
Array of objectsList of message responses.
messageId
stringUnique message ID.
status
objectDelivery status details.
destination
stringRecipient address.
Note: Errors 400, 401, 403, 429, 500 follow the standard error schema returning errorCode, description, action, and violations.
Get Started / Channels / SMS / Outbound SMS

Send SMS message over query parameters

All message parameters of the message can be defined in the query string. Use this method only if Send SMS message is not an option for your use case!

GET http://api.messaging-service.com/sms/3/text/query
torequired
Array of stringsList of message recipients.
textrequired
stringContent of the message being sent.

…and other optional parameters (from, flash, languageCode, etc.)

Artículos

¿Cómo podemos ayudarte?