Manage an agent block list through the frontend API using API-key authentication.
Manage blocked phone numbers for an agent. This endpoint allows you to retrieve, add, and remove phone numbers from an agent’s block list.Documentation Index
Fetch the complete documentation index at: https://docs.phonely.ai/llms.txt
Use this file to discover all available pages before exploring further.
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)