curl --request GET \
--url https://api.bland.ai/v1/blocked_numbers \
--header 'authorization: <authorization>'{
"data": {
"blocks": [
{
"id": 456,
"blocked_number": "+10000000000",
"is_global": false,
"inbound_number": "+19999999999",
"org_id": "1a2b3c4d-5e6f-7a8b-9c0d-ef1234567890",
"reason": null,
"is_active": true,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
],
"total_count": 1,
"filters": {
"inbound_number": "+19999999999",
"active_only": true
}
},
"errors": null
}
Retrieve block rules associated with your inbound numbers.
curl --request GET \
--url https://api.bland.ai/v1/blocked_numbers \
--header 'authorization: <authorization>'{
"data": {
"blocks": [
{
"id": 456,
"blocked_number": "+10000000000",
"is_global": false,
"inbound_number": "+19999999999",
"org_id": "1a2b3c4d-5e6f-7a8b-9c0d-ef1234567890",
"reason": null,
"is_active": true,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
],
"total_count": 1,
"filters": {
"inbound_number": "+19999999999",
"active_only": true
}
},
"errors": null
}
true. Set to false to include deleted or inactive rules.inbound_number, active_only).null on success, or a list of error objects if validation fails.{
"data": {
"blocks": [
{
"id": 456,
"blocked_number": "+10000000000",
"is_global": false,
"inbound_number": "+19999999999",
"org_id": "1a2b3c4d-5e6f-7a8b-9c0d-ef1234567890",
"reason": null,
"is_active": true,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
],
"total_count": 1,
"filters": {
"inbound_number": "+19999999999",
"active_only": true
}
},
"errors": null
}
Was this page helpful?