cURL
curl --request POST \ --url https://app.usesend.com/api/v1/campaigns \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "from": "<string>", "subject": "<string>", "contactBookId": "<string>", "previewText": "<string>", "content": "<string>", "html": "<string>", "replyTo": "<string>", "cc": "<string>", "bcc": "<string>", "sendNow": true, "scheduledAt": "<string>", "batchSize": 50000 } '
{ "id": "<string>", "name": "<string>", "from": "<string>", "subject": "<string>", "previewText": "<string>", "contactBookId": "<string>", "html": "<string>", "content": "<string>", "status": "<string>", "scheduledAt": "2023-11-07T05:31:56Z", "batchSize": 123, "batchWindowMinutes": 123, "total": 123, "sent": 123, "delivered": 123, "opened": 123, "clicked": 123, "unsubscribed": 123, "bounced": 123, "hardBounced": 123, "complained": 123, "replyTo": [ "<string>" ], "cc": [ "<string>" ], "bcc": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
Timestamp in ISO 8601 format or natural language (e.g., 'tomorrow 9am', 'next monday 10:30')
1 <= x <= 100000
Create a campaign