Create P2P campaign
documentedCreate a new P2P texting campaign
POST /v1/p2p_campaigns/Peer To Peer Textingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.callhub.io/v1/p2p_campaigns/" \
-X POST \
-H "Authorization: Token {{CALLHUB_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$title}}", "script": "{{$script}}", "phonebook_id": "{{$phonebook_id}}", "from_number": "{{$from_number}}", "start_at": "{{$start_at}}", "timezone": "{{$timezone}}"}'