curl --request GET \
--url https://app.phonely.ai/api/agent-websites \
--header 'X-Authorization: <api-key>'{
"websites": [
{
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"url": "<string>",
"active": true,
"content": "<string>",
"contentMD": "<string>",
"lastUpdatedBy": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
]
}List, add, and delete agent website knowledge sources through the frontend API.
curl --request GET \
--url https://app.phonely.ai/api/agent-websites \
--header 'X-Authorization: <api-key>'{
"websites": [
{
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"url": "<string>",
"active": true,
"content": "<string>",
"contentMD": "<string>",
"lastUpdatedBy": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
]
}GET/api/agent-websitesX-Authorization: Your API key (required)uid (string, required): Your user IDagentId (string, required): The ID of the agent{
"websites": [
{
"id": "string",
"url": "string",
"active": boolean,
"lastUpdatedBy": "string",
"lastUpdatedAt": "string"
}
]
}
POST/api/agent-websitesX-Authorization: Your API key (required)Content-Type: application/json{
"uid": "string",
"agentId": "string",
"url": "string"
}
{
"websiteId": "string",
"message": "Website added successfully"
}
DELETE/api/agent-websitesX-Authorization: Your API key (required)uid (string, required): Your user IDagentId (string, required): The ID of the agentwebsiteId (string, required): The ID of the website to delete{
"message": "Website deleted successfully"
}
400 Bad Request: Invalid request parameters or invalid URL401 Unauthorized: Invalid or missing API key, or insufficient permissions404 Not Found: Website not found (for DELETE operations)500 Internal Server Error: Server errorcurl -X GET "https://app.phonely.ai/api/agent-websites?uid=user123&agentId=agent456" \
-H "X-Authorization: your-api-key"
curl -X POST https://app.phonely.ai/api/agent-websites \
-H "X-Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"uid": "user123",
"agentId": "agent456",
"url": "https://example.com"
}'
curl -X DELETE "https://app.phonely.ai/api/agent-websites?uid=user123&agentId=agent456&websiteId=web789" \
-H "X-Authorization: your-api-key"