POST
/
api
/
bot-accounts
/
campaigns
Create Campaign
curl --request POST \
  --url https://api.example.com/api/bot-accounts/campaigns

Request Body

{
  "name": "CRM Leads",
  "keywords": ["best CRM", "CRM recommendation"],
  "replyTone": "casual_friendly",
  "replyPrompt": "Mention our product naturally",
  "botAccountId": "acc-def67890",
  "intervalSeconds": 300,
  "autoGenerate": true,
  "autoReply": false
}
FieldTypeRequiredDescription
namestringYesCampaign name
keywordsstring[]YesSearch queries
replyTonestringNoReply tone preset
replyPromptstringNoCustom reply instructions
botAccountIdstringNoAssigned bot account
intervalSecondsnumberNoSearch interval (default: 300)
autoGeneratebooleanNoAuto-generate drafts
autoReplybooleanNoFull autopilot mode

Response

{
  "campaign": {
    "id": "camp-abc12345",
    "name": "CRM Leads",
    "status": "stopped",
    ...
  }
}
A tweet filter rule is automatically created on twitterapi.io.