---
title: "Get anonymization fields"
method: GET
path: "/api/security_ai_assistant/anonymization_fields/_find"
tags: ["Security AI Assistant API"]
---

# Get anonymization fields

`GET /api/security_ai_assistant/anonymization_fields/_find`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/security_ai_assistant/anonymization_fields/_find</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get a list of all anonymization fields.

## Query parameters

- `fields` string[]
- `filter` string
- `sort_field` 'created_at' | 'anonymized' | 'allowed' | 'field' | 'updated_at'
- `sort_order` 'asc' | 'desc' — The order in which results are sorted.
- `page` integer
- `per_page` integer
- `all_data` boolean

## Response `200`

Indicates a successful call.

- object
  - `aggregations` object
    - `field_status` object
      - `buckets` object
        - `allowed` object
          - `doc_count` integer
        - `anonymized` object
          - `doc_count` integer
        - `denied` object
          - `doc_count` integer
  - `all` SecurityAIAssistantAPIAnonymizationFieldResponse[]
    - `allowed` boolean — Whether this field is allowed to be sent to the model.
    - `anonymized` boolean — Whether this field should be anonymized.
    - `createdAt` string — Timestamp of when the anonymization field was created.
    - `createdBy` string — Username of the person who created the anonymization field.
    - `field` string, required — Name of the anonymization field.
    - `id` string, nonempty, required — A string that does not contain only whitespace characters.
    - `namespace` string — Kibana space in which this anonymization field exists.
    - `timestamp` string, nonempty — A string that represents a timestamp in ISO 8601 format and does not contain only whitespace characters.
    - `updatedAt` string — Timestamp of the last update.
    - `updatedBy` string — Username of the person who last updated the field.
  - `data` SecurityAIAssistantAPIAnonymizationFieldResponse[], required
    - `allowed` boolean — Whether this field is allowed to be sent to the model.
    - `anonymized` boolean — Whether this field should be anonymized.
    - `createdAt` string — Timestamp of when the anonymization field was created.
    - `createdBy` string — Username of the person who created the anonymization field.
    - `field` string, required — Name of the anonymization field.
    - `id` string, nonempty, required — A string that does not contain only whitespace characters.
    - `namespace` string — Kibana space in which this anonymization field exists.
    - `timestamp` string, nonempty — A string that represents a timestamp in ISO 8601 format and does not contain only whitespace characters.
    - `updatedAt` string — Timestamp of the last update.
    - `updatedBy` string — Username of the person who last updated the field.
  - `page` integer, required
  - `perPage` integer, required
  - `total` integer, required

## Other responses

- `400` — Bad Request response.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
