Ejento APIs
V1
  • V2
  • V1
  1. Agent APIs
Ejento APIs
V1
  • V2
  • V1
  • Overview
  • Endpoints
    • Chat APIs
      • Run Chat
      • Create Custom Instructions
      • Add Comment Feedback
      • Add Upvote Feedback
      • Add Downvote Feedback
      • Get Chat Thread
      • Get Thought Process
      • Get Supporting Content
      • Get All Agent Threads
    • Agent APIs
      • Get Recent Agents
        GET
      • Add to Recent Agents
        POST
      • Delete Recent Agent
        DELETE
      • Get Starred Agents
        GET
      • Delete Starred Agents
        DELETE
      • Get Agents by Team or User Team
        GET
      • Create a Review for an Agent
        POST
      • Get Agent Reviews
        GET
      • Update an Agent Review
        PUT
      • Delete an Agent Review
        DELETE
      • Create Agent Chat
        POST
      • Get Agent Ratings
        GET
      • Toggle Rating
        PUT
      • Create Agent Alias
        POST
      • Get All Agent Alias
        GET
      • Update Agent Alias
        PUT
      • Get Agent Access Level
        GET
      • Update Agent Access Level
        PUT
      • Get All Agents by Project
        GET
      • Get Agent Types
        GET
      • Update Agent Type
        PUT
      • Get User Agent or User Agent Permission
        GET
    • Project APIs
      • Create New Project
      • Get All Projects
      • Get Project Details by ID
      • Edit Project By ID
      • Delete Project By ID
      • Add Recent Project
      • Get Recent Projects
      • Fetch Project Details
      • Add User to Project
      • Remove User from Project
      • Get User Projects For Team
    • Document APIs
      • Get Document By ID
      • Edit Document By ID
      • Delete Document By ID
    • Corpus APIs
      • Get All Corpus
      • Create Corpus
      • Get Corpus by ID
      • Edit Corpus
      • Delete Corpus
      • Get Corpus Permissions
      • Create Corpus Permissions
      • Delete Corpus Permissions
      • Get Corpus Permission By User
      • Create Document In Corpus
      • Get All Documents From Corpus
      • Delete All Documents
      • Check Duplicate Documents
    • Evaluation APIs
      • Create Evaluation Test
      • Get All Evaluation Tests for an Agent
      • Update Evaluation Test
      • Get One Evaluation Test
      • Update Evaluation Status
      • Get Evaluation Dataset for an Agent
      • Get All Evaluation Datasets for an Agent
      • Create Evaluation Dataset
      • Update Evaluation Dataset
      • Delete Evaluation Dataset
      • Get Agent Queries
      • Get Dataset Queries
    • SharePoint APIs
      • Get SharePoint items by full path
      • Get a SharePoint item by its ID
      • Create a new SharePoint item
      • Edit SharePoint item
      • Delete a SharePoint item
    • User APIs
      • Get All Users
      • Get User By ID
      • Edit User By ID
      • Delete User by ID
      • Create User Permission
      • Get User Permission by ID
      • Edit User Permission by ID
      • Delete User Permission by ID
      • Batch Delete Users
    • Analytics APIs
      • Get Tokens by Date
      • Get Tokens by Segment
      • Get User Tokens
      • Get Agent Tokens
      • Get Team Tokens
      • Get Query Count by Date
      • Get Query Count by Segment
      • Get Total Count
      • Get Daily Chat Engagement
      • Get Weekly Chat Engagement
      • Get Monthly Chat Engagement
      • Get User Engagement
      • Get Daily Chatlog Tokens
      • Get Weekly Chatlog Tokens
      • Get Monthly Chatlog Tokens
      • Get Agent Engagement
      • Get Engagement by Team
      • Get Engagement by User
      • Get Recently Active Agents
      • Get Recent Users
    • Notification APIs
      • Send Notification To User
      • Read Notification By ID
  1. Agent APIs

Get All Agents by Project

GET
/agent/project/{project_id}
Agent APIs
Retrieve all agents associated with a specific project, with or without pagination. You can optionally pass a query parameter page to paginate the results.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/agent/project/'
Response Response Example
{
    "success": true,
    "message": "status code 200: Agent Project Data fetched successfully",
    "data": [
        {
            "id": 5,
            "user": {
                "id": 3,
                "email": "user@example.com",
                "first_name": "string",
                "last_name": "string",
                "organization": 1
            },
            "agent_type": {
                "id": 1,
                "name": "testAgent",
                "description": "i am testing"
            },
            "instructions": [
                {
                    "id": 3,
                    "instruction": "",
                    "is_deleted": false,
                    "created_by": "user@example.com"
                }
            ],
            "agent_name": "testingagent",
            "industry_area": "",
            "domain": "",
            "sample_q1": "",
            "sample_q2": "",
            "sample_q3": "",
            "prefix_prompt": "",
            "alias": null,
            "is_active": true,
            "is_deleted": false,
            "created_by": "user@example.com",
            "created_on": "2024-09-04T20:03:41.336685Z",
            "agent_image": "/build/static/media/defaultBotImg5.79df49b2aed351d3cdcc.jpg",
            "access": "Only me",
            "status": "Live",
            "project": 1,
            "llm_config": 1,
            "cloned_from": null
        }
    ]
}

Request

Path Params
project_id
integer 
required
ID of the project to fetch agents for
Query Params
page
integer 
optional
Page number for pagination

Responses

🟢200OK
application/json
Agent Project Data fetched successfully
Body
optional
One of
success
boolean 
optional
Example:
true
message
string 
optional
Example:
status code 200: Agent Project Data fetched successfully
data
array [object {22}] 
optional
Previous
Update Agent Access Level
Next
Get Agent Types