{"id":18207598,"url":"https://github.com/mohakcodes/boni-agent-api","last_synced_at":"2026-02-14T13:33:58.212Z","repository":{"id":260175536,"uuid":"880521848","full_name":"mohakcodes/boni-agent-api","owner":"mohakcodes","description":"The boni-agent-api is designed to manage agents and track their associated calls. The API has two main sections: agent and calls, each with CRUD and analytical endpoints to handle data operations.","archived":false,"fork":false,"pushed_at":"2024-10-30T00:03:24.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T00:56:48.451Z","etag":null,"topics":["javascript","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"https://boni-agent-api.onrender.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohakcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-29T21:53:21.000Z","updated_at":"2024-10-30T00:03:27.000Z","dependencies_parsed_at":"2024-10-30T01:03:45.558Z","dependency_job_id":null,"html_url":"https://github.com/mohakcodes/boni-agent-api","commit_stats":null,"previous_names":["mohakcodes/boni-agent-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohakcodes/boni-agent-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohakcodes%2Fboni-agent-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohakcodes%2Fboni-agent-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohakcodes%2Fboni-agent-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohakcodes%2Fboni-agent-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohakcodes","download_url":"https://codeload.github.com/mohakcodes/boni-agent-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohakcodes%2Fboni-agent-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","mongodb","mongoose","nodejs"],"created_at":"2024-11-03T13:03:38.360Z","updated_at":"2026-02-14T13:33:58.196Z","avatar_url":"https://github.com/mohakcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Overview\nThe boni-agent-api is designed to manage agents and track their associated calls. The API has two main sections: agent and calls, each with CRUD and analytical endpoints to handle data operations.\n\n# Main Testing Endpoint\nGET `/calls/stats/from` \u003cbr\u003e\n\nPurpose: Retrieves call records within a specified time range, showing `totalcalls`, `connectedCalls` and `notConnectedCalls`. \u003cbr\u003e\n\nQuery Parameters:\n- `startTime` (required): The starting point of the time range (UNIX timestamp, 10 digits).\n- `endTime` (required): The ending point of the time range (UNIX timestamp, 10 digits).\n- `agentId` (optional): When provided, fetches statistics specifically for the agent with this ID.\n\n# Some Example Requests\nGET: `https://boni-agent-api.onrender.com/calls/stats/from?startTime=1600000000\u0026endTime=1735000000`\n#### Example Response:\n```json\n[\n    {\n        \"agent\": {\n            \"_id\": \"6721209b1a063fa6c037c827\",\n            \"name\": \"Agent2\",\n            \"email\": \"agent2@gmail.com\"\n        },\n        \"totalCalls\": 2,\n        \"connectedCalls\": 1,\n        \"notConnectedCalls\": 1\n    },\n    {\n        \"agent\": {\n            \"_id\": \"672120a61a063fa6c037c82b\",\n            \"name\": \"Agent3\",\n            \"email\": \"agent3@gmail.com\"\n        },\n        \"totalCalls\": 3,\n        \"connectedCalls\": 2,\n        \"notConnectedCalls\": 1\n    }\n]\n```\nGET: `https://boni-agent-api.onrender.com/calls/stats/from?startTime=1600000000\u0026endTime=1735000000\u0026agentId=6721209b1a063fa6c037c827`\n#### Example Response:\n```json\n{\n    \"agent\": {\n        \"_id\": \"6721209b1a063fa6c037c827\",\n        \"name\": \"Agent2\",\n        \"email\": \"agent2@gmail.com\"\n    },\n    \"totalCalls\": 2,\n    \"connectedCalls\": 1,\n    \"notConnectedCalls\": 1\n}\n```\n\n\n# All Agent Endpoints\n- GET `/agent` - Retrieve all agents.\n- GET `/agent/:id` - Retrieve a specific agent by ID.\n- POST `/agent` - Create a new agent.\n- PUT `/agent/:id` - Update agent information by ID.\n- DELETE `/agent/:id` - Delete an agent by ID.\n\n# All Call Endpoints\n- GET `/calls` - Retrieve all call records.\n- GET `/calls/:id` - Retrieve a specific call by ID.\n- POST `/calls` - Log a new call.\n- GET `/calls/agent/:agentId` - Retrieve all calls associated with a specific agent.\n- GET `/calls/stats/from` - Fetches call records for the given \"startTime to endTime\" timestamps in \"UNIX\" format (10 digits) along with connected / not connected details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohakcodes%2Fboni-agent-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohakcodes%2Fboni-agent-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohakcodes%2Fboni-agent-api/lists"}