Skip to main content
POST
/
email
/
campaigns
/
{campaignId}
/
submit
Submit campaign
curl --request POST \
  --url https://www.dench.com/api/v1/email/campaigns/{campaignId}/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "approvalId": "<string>"
}
'
{
  "ok": true,
  "summary": {
    "campaignId": "ecmp_abc123",
    "status": "sending",
    "totalRecipients": 120,
    "queuedCount": 120,
    "sendingCount": 0,
    "sentCount": 0,
    "deliveredCount": 0,
    "openedCount": 0,
    "clickedCount": 0,
    "bouncedCount": 0,
    "complainedCount": 0,
    "failedCount": 0,
    "suppressedCount": 2,
    "unsubscribedCount": 0
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Path Parameters

campaignId
string
required

Body

application/json
approvalId
string

Approval request id when workspace policy requires human sign-off.

Response

Successful response

ok
boolean
required
summary
object
required