Back

API Documentation

Go to App

Sendbar API

The Sendbar API allows you to programmatically manage email templates, send campaigns, track engagement, and manage contacts. All API access requires authentication via API key.

Base URL

https://api.sendbar.io

Quick Example

Here's a quick example of how to send an email campaign using the API:

# Create a campaign
curl -X POST https://api.sendbar.io/api/campaigns \
  -H "X-Api-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Welcome Campaign",
    "templateId": "template_123",
    "subject": "Welcome to our service!",
    "recipientData": [
      {
        "email": "user@example.com",
        "variables": {
          "firstName": "John",
          "companyName": "Acme Inc"
        }
      }
    ]
  }'

# Send the campaign
curl -X POST https://api.sendbar.io/api/campaigns/{campaignId}/send \
  -H "X-Api-Key: your_api_key"

API Access

API access is available on all paid plans (Starter, Professional, and Enterprise). Trial accounts do not have API access. Upgrade your plan to use the API.