Skip to main content
SONZAI
Api

Interests

Get agent interests

GET
/agents/{agentId}/interests
AuthorizationBearer <token>

API key issued to a Sonzai project. Format: Bearer sk_....

In: header

Path Parameters

agentId*string

Agent UUID or URL-encoded agent name

Query Parameters

user_id?string

Optional user ID to scope interests

instance_id?string

Optional instance ID for scoping

Response Body

application/json

application/problem+json

curl -X GET "https://loading/api/v1/agents/string/interests"
{
  "$schema": "/api/v1/schemas/InterestsResponse.json",
  "interests": [
    {
      "agent_id": "string",
      "category": "string",
      "confidence": 0.1,
      "created_at": "2019-08-24T14:15:22Z",
      "engagement_level": 0.1,
      "last_mentioned_at": "2019-08-24T14:15:22Z",
      "mention_count": 0,
      "research_findings": "string",
      "research_status": "string",
      "topic": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "user_id": "string"
    }
  ]
}
{
  "$schema": "/api/v1/schemas/ErrorModel.json",
  "detail": "Property foo is required but is missing.",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}