---
type: api
title: Check attachment staleness
description: Checks staleness for the latest version of all conversation attachments against their origin snapshot.<br/><br/>[Required authorization] Route required privileges: agentBuilder:read.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-get-agent-builder-conversations-conversation-id-attachments-stale
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-get-agent-builder-conversations-conversation-id-attachments-stale
products:
  - Kibana
---

# Check attachment staleness

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/agent_builder/conversations/{conversation_id}/attachments/stale`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v0/authentication#basicauth)

#### Path Parameters

- `conversation_id` (string · max: 256)
  The unique identifier of the conversation.

## Description

Checks staleness for the latest version of all conversation attachments against their origin snapshot.<br/><br/>[Required authorization] Route required privileges: agentBuilder:read.

## Response

Indicates a successful response

## Code Examples

#### Console

```console
GET /api/agent_builder/conversations/{conversation_id}/attachments/stale
```

#### curl

```curl
curl -X GET "https://{kibana_url}/api/agent_builder/conversations/{conversation_id}/attachments/stale"
```

## Response Examples

#### Check stale attachments response

Mixed conversation: attachments without a stale source return only id and is_stale. When a staleness check fails for one attachment, is_stale is false and an error explains why. When an origin-backed attachment is out of date, the response includes type, origin, and resolved data (here a simple text body) for resync.

```json
{
  "attachments": [
    {
      "id": "att-text-meeting-notes",
      "is_stale": false
    },
    {
      "id": "att-lens-active-users",
      "is_stale": false
    },
    {
      "error": "Origin could not be resolved",
      "id": "att-query-attachment",
      "is_stale": false
    },
    {
      "data": "This is the content of my text attachment",
      "hidden": false,
      "id": "att-text-runbook",
      "is_stale": true,
      "origin": "document:hr-onboarding-v2",
      "type": "text"
    }
  ]
}
```

