> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user adoption metrics

> Returns how users personalize their agents, read from the latest
daily adoption snapshot (`metadata.data_freshness`). Each user who
created memories over the last 30 days is classified from their own
memory counts:

- **Power users**: 5 or more instructions, or 20 or more memories.
- **Regular users**: at least 1 instruction, or 5 or more memories.
- **Basic users**: everyone else.

The window is fixed at 30 days; the endpoint takes no parameters.
Before the first snapshot, every value is zero and
`metadata.data_freshness` is `null`.

Requires `ai-insights-v2:analytics` (`read`). Rate limit: 100
requests per minute.




## OpenAPI

````yaml /api-reference/ai-insights-v2/swagger.yml get /v1/analytics/adoption
openapi: 3.0.3
info:
  version: 1.0.0
  title: AI Insights API
  description: |
    Public REST API for the Prisme.ai AI Insights workspace - analyzed
    conversations, analysis triggering and status, evaluation criteria,
    message feedback, organization analytics, LLM consumption, memory
    analytics, and the agent relationship graph.

    **Organization scope.** Every endpoint reads and writes the data of the
    caller's organization, taken from the session (or from the org API key).
    No parameter lets a caller target another organization.

    **Permissions.** Each endpoint checks an organization IAM permission
    `ai-insights-v2:<resource>` with the action `read` or `write`
    (`manage` grants both). The resources are `conversations`, `feedback`,
    `analytics`, and `queue`; each operation states the one it requires.
    Platform admins and workspace admins are always allowed.

    **Rate limits.** Limits are counted per caller (user, or org API key)
    and per endpoint, over a sliding window. Depending on the endpoint, an
    exceeded limit returns one of two 429 bodies; both are documented on
    each operation.
  contact:
    name: Prisme.ai
    url: https://prisme.ai
servers:
  - url: https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks
    description: Prisme.ai workspace webhooks
    variables:
      host:
        default: api.studio.prisme.ai
        description: API host (override for self-hosted or sandbox)
security:
  - BearerAuth: []
  - OrgApiKeyAuth: []
tags:
  - name: Insights
    description: Per-conversation analysis results and analysis status.
  - name: Agents
    description: >-
      Analysis triggering, evaluation criteria, conversations, and users of one
      agent.
  - name: Feedback
    description: Like / dislike feedback on agent messages.
  - name: Analytics
    description: Organization-wide usage, quality, latency, and adoption metrics.
  - name: Consumption
    description: LLM requests, tokens, cost, and carbon footprint, per user and over time.
  - name: Queue
    description: State of the conversation analysis queue.
  - name: Memories
    description: Analytics built from the memories users accumulate with agents.
  - name: Graph
    description: >-
      Agent relationship graph - tools, categories, delegations, similarity, and
      clusters.
paths:
  /v1/analytics/adoption:
    get:
      tags:
        - Analytics
      summary: Get user adoption metrics
      description: |
        Returns how users personalize their agents, read from the latest
        daily adoption snapshot (`metadata.data_freshness`). Each user who
        created memories over the last 30 days is classified from their own
        memory counts:

        - **Power users**: 5 or more instructions, or 20 or more memories.
        - **Regular users**: at least 1 instruction, or 5 or more memories.
        - **Basic users**: everyone else.

        The window is fixed at 30 days; the endpoint takes no parameters.
        Before the first snapshot, every value is zero and
        `metadata.data_freshness` is `null`.

        Requires `ai-insights-v2:analytics` (`read`). Rate limit: 100
        requests per minute.
      operationId: getAdoptionAnalytics
      responses:
        '200':
          description: Adoption metrics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdoptionAnalytics'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    AdoptionAnalytics:
      type: object
      properties:
        adoption:
          type: object
          properties:
            total_users:
              type: integer
              description: Distinct users who created memories over the last 30 days.
            tiers:
              type: object
              properties:
                power_users:
                  $ref: '#/components/schemas/AdoptionTier'
                regular_users:
                  $ref: '#/components/schemas/AdoptionTier'
                basic_users:
                  $ref: '#/components/schemas/AdoptionTier'
            personalization:
              type: object
              properties:
                total_instructions:
                  type: integer
                total_preferences:
                  type: integer
                total_memories:
                  type: integer
                avg_per_user:
                  type: number
                  description: Memories per user.
                type_breakdown:
                  type: object
                  properties:
                    fact:
                      type: integer
                    preference:
                      type: integer
                    instruction:
                      type: integer
                    relationship:
                      type: integer
            quality:
              type: object
              properties:
                avg_evaluation_score:
                  type: number
                  description: Average evaluation score (0-100).
                resolution_rate:
                  type: number
                  description: Share of resolved conversations, as a ratio (0-1).
                sentiment:
                  type: object
                  properties:
                    positive:
                      type: integer
                    neutral:
                      type: integer
                    negative:
                      type: integer
                feedback_like_rate:
                  type: number
                  description: Share of likes, as a ratio (0-1).
            common_patterns:
              type: array
              description: Largest memory topics containing instructions.
              items:
                type: object
                properties:
                  pattern:
                    type: string
                  instruction_count:
                    type: integer
                  user_count:
                    type: integer
                    nullable: true
            recommendations:
              type: array
              items:
                type: object
                properties:
                  priority:
                    type: string
                    enum:
                      - high
                      - medium
                  target:
                    type: string
                  action:
                    type: string
                  metric:
                    type: string
                  value:
                    type: number
            trends:
              type: object
              description: Change over the last 15 days.
              properties:
                users_change:
                  type: number
                  description: Percentage change in users.
                memories_change:
                  type: number
                  description: Percentage change in memories.
                quality_change:
                  type: number
                  description: Change in average evaluation score, in points.
            metadata:
              type: object
              properties:
                orgSlug:
                  type: string
                period:
                  type: string
                  enum:
                    - 30d
                data_freshness:
                  type: string
                  format: date-time
                  nullable: true
                  description: When the snapshot was computed.
                generated_at:
                  type: string
                  format: date-time
    AdoptionTier:
      type: object
      properties:
        count:
          type: integer
        percentage:
          type: number
          description: Share of users, in percent (0-100).
        user_ids:
          type: array
          items:
            type: string
        description:
          type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            Error code (e.g. `FORBIDDEN`), or error message on some validation
            errors.
        message:
          type: string
          description: Human-readable message.
    RuntimeError:
      type: object
      description: Error raised by the Prisme.ai runtime before the endpoint logic runs.
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    Unauthenticated:
      description: Missing or invalid credentials, or no organization context.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: UNAUTHORIZED
            message: Authentication required
    Forbidden:
      description: The caller lacks the permission required by the endpoint.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: FORBIDDEN
            message: 'Access denied: missing permission ''ai-insights-v2:analytics:read'''
    TooManyRequests:
      description: >-
        Rate limit exceeded. Retry after the number of seconds given in the
        `Retry-After` header.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RuntimeError'
          example:
            error: TooManyRequests
            message: Too many requests for 'Insights'
            details:
              name: Insights
              ok: false
              retryAfter: 42.5
              limit: 100
              window: 60
              remaining: 0
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        User-bound credential carrying an identity: either a session JWT
        or a user access token (`at:*`) generated from the user settings UI.
        Send as `Authorization: Bearer <token>`. The organization and the
        permissions applied are those of this user.
    OrgApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key
      description: |
        Organization API key (`iak_{orgSlug}_{uuid}`), managed from the
        AI Governance UI. It is not tied to a user: its access is defined by
        the permissions attached to it, and all keys of an organization share
        the same rate-limit counters. Endpoints that describe "your own"
        data, such as `GET /v1/users/{user_id}`, need a user credential.
        Send as `x-prismeai-api-key: iak_...`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.