POST /v1/send-triggeredSend a triggered email to one or more recipients, personalized with merge tags.
API reference fetch('https://api.bluefox.email/v1/send-triggered', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
emails: ['user@example.com'],
triggeredId: 'EMAIL_ID',
data: { plan: 'pro', name: 'Jamie' }
})
})
POST /v1/send-transactionalOne-to-one emails such as invoices, password resets, and receipts, with attachments.
API reference fetch('https://api.bluefox.email/v1/send-transactional', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
email: 'user@example.com',
transactionalId: 'EMAIL_ID',
data: { invoiceNumber: 'INV-3021' }
})
})
POST /v1/contacts/{projectId}Create contacts from your backend or CRM. Custom properties power segments, personalization, and automation triggers.
API reference fetch('https://api.bluefox.email/v1/contacts/PROJECT_ID', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
email: 'user@example.com',
name: 'Jamie',
data: { plan: 'pro', lifecycleStage: 'expansion' }
})
})
PATCH /v1/subscriber-lists/{listId}/{email}Pause, unsubscribe, or reactivate a recipient on a subscriber list.
API reference fetch('https://api.bluefox.email/v1/subscriber-lists/LIST_ID/user@example.com', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
status: 'paused',
pausedUntil: '2026-12-01T00:00:00Z'
})
})