Skip to main content
POST
/
v1
/
email
curl --request POST \
  --url https://api.ckpnd.com:5001/v1/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": [
    {
      "email": "recipient@exampledomain.com"
    }
  ],
  "options": {
    "cc": [
      {
        "email": "cc@exampledomain.com"
      }
    ],
    "bcc": [
      {
        "email": "bcc@exampledomain.com"
      }
    ]
  },
  "from": {
    "email": "sender@yourdomain.com",
    "name": "John Doe"
  },
  "replyTo": {
    "email": "sender@yourdomain.com",
    "name": "John Doe"
  },
  "subject": "Hello World",
  "body": "<h1>Hello World</h1>",
  "attachments": [
    {
      "filename": "file1.gif",
      "path": "https://i1.wp.com/cms.babbel.news/wp-content/uploads/2015/05/HEAD02_FRA-20150703094705.gif"
    },
    {
      "filename": "file2.jpg",
      "path": "http://2.bp.blogspot.com/-DIEPOOz9uqI/UHomvta-AcI/AAAAAAAAAdI/_Nv0WyIXxhA/s1600/P1010411.JPG"
    }
  ]
}
'
{
  "message": "Messages sent!",
  "to": [
    {
      "email": "recipient@exampledomain.com",
      "msgid": "40f7f020-4c0c-11e9-870a-51bee176686d"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.opptima.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Usa tu API Key como Bearer token en el header Authorization.

Ejemplo: Authorization: Bearer YOUR_API_KEY

Obtén tu API Key en la página de Settings.

Body

application/json
to
object[]
required

Array de destinatarios

from
object
required

Dirección del remitente. El dominio debe estar verificado en tu cuenta

replyTo
object
required

Dirección de respuesta

subject
string
required

Asunto del correo

Example:

"Hello World"

options
object

Opciones de CC y BCC

body
string

Contenido HTML o texto plano del mensaje (no requerido si usas template_id)

Example:

"<h1>Hello World</h1>"

template_id
string

ID de la plantilla a usar (encuentra el ID en tu página de plantillas)

Example:

"42eqy7oaigql"

variables
object

Variables para reemplazar en la plantilla. Evita caracteres especiales en los nombres

Example:
{
"variable1": "random variable 1",
"variable2": "random variable 2"
}
attachments
object[]

Array de archivos adjuntos

Response

Mensaje enviado exitosamente

message
string
Example:

"Messages sent!"

to
object[]