Skip to main content
POST
/
campaigns
/
{id}
/
send
Send or schedule campaign
curl --request POST \
  --url https://api.mailrify.com/campaigns/{id}/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "scheduledFor": "2023-11-07T05:31:56Z"
}
'

Authorizations

Authorization
string
header
required

API Key authentication. Secret keys (sk_*) are required for all endpoints except /v1/track. Public keys (pk_*) only work with the /v1/track endpoint for client-side event tracking. The project is automatically derived from the key.

Path Parameters

id
string
required

Body

application/json
scheduledFor
string<date-time> | null

ISO 8601 timestamp for when to send the campaign. Omit or set to null for immediate send.

Response

200

Campaign scheduled/sending