Retrieves the list of blocked phone numbers for a specific agent
GET/api/agent-block-listX-Authorization: Your API key (required)uid (string, required): Your user IDagentId (string, required): The ID of the agent whose block list you want to retrieve400 Bad Request: Invalid search params (missing uid or agentId)401 Unauthorized: Invalid or missing API key, or insufficient permissions500 Internal Server Error: Server errorPOST/api/agent-block-listX-Authorization: Your API key (required)Content-Type: application/jsonuid (string, required): Your user IDagentId (string, required): The ID of the agentnumbers (string[], required): Array of phone numbers to add to the block listmessage (string): Success messageadded (string[]): Array of phone numbers that were successfully addedfailed (array): Array of objects containing numbers that failed to be added and the reason
number (string): The phone number that failedreason (string): Reason for failure (e.g., “Invalid phone number format”, “Number already in block list”)400 Bad Request: Invalid request body or numbers parameter401 Unauthorized: Invalid or missing API key, or insufficient permissions500 Internal Server Error: Server errorDELETE/api/agent-block-listX-Authorization: Your API key (required)Content-Type: application/jsonuid (string, required): Your user IDagentId (string, required): The ID of the agentnumbers (string[], required): Array of phone numbers to remove from the block listmessage (string): Success messageremoved (string[]): Array of phone numbers that were successfully removedfailed (array): Array of objects containing numbers that failed to be removed and the reason
number (string): The phone number that failedreason (string): Reason for failure (e.g., “Number not found in block list”)400 Bad Request: Invalid request body or numbers parameter401 Unauthorized: Invalid or missing API key, or insufficient permissions500 Internal Server Error: Server error+1234567890)