Skip to main content
curl --request POST \
  --url https://api.agents.timepay.ai/api/v1/blacklist/bulk/add \
  --header 'Authorization: Bearer <your_token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "number": "8249752556",
    "name": "Bob Smith"
  },
  {
    "number": "9920967932"
  }
]'
{
  "success": true,
  "message": "Numbers has been added to blacklist"
}

Headers

Authorization
string
required
Bearer token for authentication (e.g., Bearer <your_token>).

Body Parameters

The request body should be a non-empty array of objects.
Automatic Name Resolution: If you omit the name field or provide an empty string, the system will automatically search your organization’s latest logs for the most recent name associated with that phone number and use it for the blacklist entry.
[]
array[]
required
List of numbers to blacklist.
curl --request POST \
  --url https://api.agents.timepay.ai/api/v1/blacklist/bulk/add \
  --header 'Authorization: Bearer <your_token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "number": "8249752556",
    "name": "Bob Smith"
  },
  {
    "number": "9920967932"
  }
]'

Response

success
boolean
Indicates whether the request was successful.
message
string
A descriptive message about the result.
{
  "success": true,
  "message": "Numbers has been added to blacklist"
}