Skip to main content
POST
/
api
/
public
/
campaigns
curl --request POST \
  --url https://astrasend-mocha.vercel.app/api/public/campaigns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "June promo",
  "message": "Hi {{first_name}}, 20% off. Reply STOP to opt out.",
  "list_id": "8f3c",
  "number_id": "1a2b",
  "follow_ups": [
    {
      "message": "Last day!",
      "delay_minutes": 1440
    }
  ]
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Your API key (as_live_…), created under Settings → API keys.

Body

application/json
name
string
required
message
string
required
list_id
string
required
number_id
string

Sending number (or pool_id).

pool_id
string
send_rate
integer
default:1
Required range: 1 <= x <= 5
destination_url
string
follow_ups
object[]
Maximum array length: 3
suppression_list_ids
string[]

Response

Success

ok
boolean
Example:

true