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

# GroundPersonasAPI mirrors erdo_ground_personas: ground the org's persona


> skills in measured page-events sessions. Returns what the pass did (or the gated no-op reason).




## OpenAPI

````yaml /api/openapi.json post /v1/persona-grounding
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/persona-grounding:
    post:
      summary: |
        GroundPersonasAPI mirrors erdo_ground_personas: ground the org's persona
      description: >
        skills in measured page-events sessions. Returns what the pass did (or
        the gated no-op reason).
      operationId: POST:mcp.GroundPersonasAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                window_days:
                  format: int64
                  type: integer
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  autonomy_mode:
                    title: >
                      AutonomyMode is the effective mode the gate resolved for
                      these updates.
                    type: string
                  clusters_found:
                    format: int64
                    type: integer
                  dataset_id:
                    type: string
                  k:
                    format: int64
                    type: integer
                  new_persona_proposal:
                    type: string
                  personas_updated:
                    description: >
                      autonomy gate — applied now under autopilot, or proposed
                      (awaiting approval / the 24h lapse) under propose/strict.
                    items:
                      type: string
                    title: >
                      PersonasUpdated lists personas whose grounding update was
                      submitted to the
                    type: array
                  ran:
                    type: boolean
                  reason:
                    type: string
                  total_sessions:
                    format: int64
                    type: integer
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````