For the complete documentation index, see llms.txt. This page is also available as Markdown.

Platform Agents

List Platform Agents

get

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.

Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Responses
200

Successful Response

application/json

Response for GET /platform-agents catalog endpoint.

totalintegerRequired
get/api/v1/platform-agents
GET /api/v1/platform-agents HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Successful Response

{
  "agents": [
    {
      "name": "text",
      "description": "text",
      "requires_connector": "text",
      "input_schema": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "tools": [
        {
          "name": "text",
          "description": "text"
        }
      ]
    }
  ],
  "total": 1
}

Execute Platform Agent

post

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.

Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
agent_namestringRequired
Body

Request for POST /platform-agents/{name}/execute.

querystringRequired

The task or question to send to the agent

project_idinteger · nullableOptional

Project ID for connector-scoped execution. Omit for admin-level access.

Responses
200

Successful Response

application/json

Response for POST /platform-agents/{name}/execute.

successbooleanRequired
resultstring · nullableOptional
errorstring · nullableOptional
agent_namestringRequired
post/api/v1/platform-agents/{agent_name}/execute
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