Trialmile docs
API referenceCampaigns

Create

POST
/campaigns/blockedNumbers/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
Formatdate-time
campaignId*string
Length1 <= length

Response 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