Platform Agents
List all platform agents with their tool schemas.
Returns the catalog of all registered platform agents including their descriptions, connector requirements, input schemas, and internal tools.
This endpoint is called by ncp agents list CLI command.
Returns: Catalog of platform agents.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Response for GET /platform-agents catalog endpoint.
GET /api/v1/platform-agents HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
{
"agents": [
{
"name": "text",
"description": "text",
"requires_connector": "text",
"input_schema": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"tools": [
{
"name": "text",
"description": "text"
}
]
}
],
"total": 1
}Execute a platform agent with a query and return the result.
Runs the specified platform agent to completion using AgentExecutor, with proper project context and connector filtering.
This endpoint is called by the SDK's platform.agent().execute() proxy.
Args: agent_name: Name of the platform agent to execute. payload: Query and optional project_id. username: Authenticated username from API key. db: Database session.
Returns: Execution result with the agent's response.
Raises: HTTPException: If agent not found or connector not available.
Enter your JWT token (without 'Bearer ' prefix)
Request for POST /platform-agents/{name}/execute.
The task or question to send to the agent
Project ID for connector-scoped execution. Omit for admin-level access.
Successful Response
Response for POST /platform-agents/{name}/execute.
Validation Error
POST /api/v1/platform-agents/{agent_name}/execute HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"query": "text",
"project_id": 1
}{
"success": true,
"result": "text",
"error": "text",
"agent_name": "text"
}Last updated
