Authentication
Include your API key in the Authorization header on every request.
Authorization: Bearer YOUR_API_KEY
Get your API key from Dashboard → Settings → API Keys.
Quick Example
// Send an email campaign
const response = await fetch('https://api.uzicookie.com/v1/emails/send', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
from: 'hello@yourcompany.com',
to: ['subscriber@example.com'],
subject: 'Your order #12345 has shipped',
html: '<h1>Good news!</h1><p>Your order is on the way.</p>',
tags: ['transactional', 'shipping'],
}),
});
const data = await response.json();
console.log(data.message_id); // msg_abc123API Endpoints
POST
/v1/emails/sendPOST
/v1/campaigns/createGET
/v1/campaigns/{id}/statsPOST
/v1/contacts/importGET
/v1/contacts/listDELETE
/v1/contacts/{id}POST
/v1/automations/createGET
/v1/templates/listNeed help? Our developer support team is available Monday–Friday. Email api@uzicookie.com or visit our community forum.