List agents

GET/agent/list
RequiresBearerauthentication

Query parameters

tagsstringoptional
Returns  

Response fields

successbooleanoptional
messagestringoptional
agentsobject[]optional
idstringoptional
namestringoptional
descriptionstringoptional
promptsstring[]optional
toolsstring[]optional
workflowsstring[]optional
tagsstring[]optional
provideroneOfoptional
GETRequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X GET "https://experiment.app.pheno.ml/agent/list" \
  -H "Authorization: Bearer $PHENOML_TOKEN"
200 OKExample Response
{
  "success": true,
  "message": "Agents retrieved successfully",
  "agents": [
    {
      "id": "agent_123",
      "name": "Medical Assistant",
      "description": "An AI assistant for medical information processing",
      "prompts": [
        "prompt_123"
      ],
      "tags": [
        "medical",
        "fhir"
      ],
      "provider": [
        "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
      ]
    },
    {
      "id": "agent_456",
      "name": "Clinical Coding Assistant",
      "description": "Helps with ICD-10 and SNOMED coding",
      "prompts": [
        "prompt_456"
      ],
      "tags": [
        "coding"
      ],
      "provider": [
        "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
      ]
    }
  ]
}