API referenceCampaigns
Create
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
phone*string
Match
^\+[1-9]\d{6,14}$reason*"under_18"
Value in
- "under_18"
until*string
Format
date-timecampaignId*string
Length
1 <= lengthResponse Body
application/json
curl -X POST "https://example.com/campaigns/blockedNumbers/create" \ -H "Content-Type: application/json" \ -d '{ "phone": "string", "reason": "under_18", "until": "2019-08-24T14:15:22Z", "campaignId": "string" }'null