Create an Auto Messages campaign
Changed onRate limit: 5 requests per second
The campaign starts running as soon as it is created: it begins matching fans the moment this request is answered. There is no way to stage one — use the status endpoint to pause it.
An empty audience_filters targets every fan that fires the trigger. Campaigns here are trigger-driven and send one message per fan event, so this is the ordinary shape of a welcome campaign rather than a broadcast.
audience_filters[].options.lists[].name is accepted and never published back: a name is required for each fan list, while the read endpoints carry identifiers alone.
This endpoint is not idempotent. A request that times out may still have created a running campaign. Before retrying, list the account campaigns and look for one already there; a duplicate can be stopped with the status endpoint. Listing the campaigns needs auto_messages.view in addition to auto_messages.edit.
Required permission: auto_messages.edit
Request
- Base URLhttps://omapi.onlymonster.ai
- AuthAPI key in header x-om-auth-token
Path parameters
OnlyMonster account whose campaigns are read.
Request body
Example request
{
"messages": [
{
"tagged_platform_account_ids": [
"1"
]
}
]
}Response
One Auto Messages campaign of the account.
Example response
{
"id": "4312",
"account_id": "12345",
"action": "send_message",
"created_by": {
"id": "42"
},
"messages": [
{
"price_gross": 9.99,
"attachments": [
{
"id": "1289402"
}
],
"tagged_platform_account_ids": [
"67890"
]
}
]
}Changes
- warning
added the new
MIMIC_CAMPAIGN_FILTER_NOT_ALLOWEDenum value to theresponse property for the response status - warning
added the new
verified_accountenum value to the//response property for the response status - info
added
subschema #5to the/request propertyanyOflist
- warning
- info
endpoint added
- info