v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
DNC

Mass Approve/Unapprove DNC numbers

Use the Mass Approve/Unapprove DNC numbers API endpoint if you want to approve/unapprove multiple Do Not Call (DNC) entries at once. You should add the following fields to the request body:

Request Body

  • create_missing (boolean): Set to true to create missing DNC entries.

  • dnc (array): An array of objects containing the following parameters for each DNC entry:

    • phone (string): The phone number for the DNC entry.

    • country_iso (string): The country ISO code for the phone number.

    • approved (integer): The approval status for the DNC entry.

    • permanent (integer): The permanence status for the DNC entry.

post/dnc/mass

Request body

create_missingboolean

Example request

{
  "create_missing": true,
  "dnc": []
}

Response

Successful operation

Example response

{
  "dnc": [
    {
      "approved": "0",
      "approved_by_user_id": null,
      "campaign_lead_id": null,
      "first_name": null,
      "id": "1",
      "last_name": null,
      "lead_id": null,
      "lead_phone": null,
      "lead_phone2": null,
      "permanent": "0",
      "phone": "******32123",
      "phone_normalized": null,
      "phone_normalized2": null,
      "username": null
    }
  ]
}