Get Email Log
const url = 'https://api.contacta.mx/v1/log/1b9d6e34-634a-4762-8d5a-f9cb9165d432';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.contacta.mx/v1/log/1b9d6e34-634a-4762-8d5a-f9cb9165d432 \ --header 'Authorization: Bearer <token>'Retrieves the delivery log for a previously sent email by its UUID.
The UUID is returned in the data array when the email is queued
via POST /v1/send/email or POST /v1/send/template.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
1b9d6e34-634a-4762-8d5a-f9cb9165d432UUID of the queued email, as returned by the send endpoints
Responses
Section titled “Responses”Email log retrieved successfully
object
object
Internal user ID
Internal campaign ID
Raw status code
Date and time the email was queued for sending
Date and time delivery was confirmed by the mail server
Date and time the email was opened (null if not yet opened)
UUID that uniquely identifies this email send
Recipient email address
Recipient name
Message ID assigned by the mail relay
Custom variable A
Custom variable B
Custom variable C
Custom variable D
object
Human-readable delivery status
object
object
Example
{ "status": true, "message": "Succesfully export log email", "data": [ { "id": 1133602294, "usuario": 1, "campania": 121535, "estatus": 2, "fecha_envio": "2026-06-24 17:09:54", "fecha_confirmacion": "2026-06-24 17:09:55", "fecha_lectura": "2026-06-24 17:10:13", "token_mail": "1b9d6e34-634a-4762-8d5a-f9cb9165d432", "correo": "jane@smith.com", "nombre": "name", "MessageID": "Yk-ol0b4T3avXNaiWrsntA", "credito": null, "saldo_uno": null, "saldo_dos": null, "mora": null, "comodin_a": null, "comodin_b": null, "comodin_c": null, "comodin_d": null, "status": { "descripcion": "OK - OPENED EMAIL" }, "user": { "username": "demo", "name": "DEMO Account" }, "campaign": { "descripcion": "template-gateway-v1" } } ]}Bad request or missing required parameters
object
object
Example
{ "status": false, "message": "An http error occurred. If error persists, contact soporte@contacta.mx", "data": { "message": "Missing required parameters, please verify your request", "code": 400 }}Unauthorized — invalid or missing API token
object
object
Example
{ "status": false, "message": "An http error occurred. If error persists, contact soporte@contacta.mx", "data": { "message": "Your key auth is not valid, please check with your administrator", "code": 401 }}
