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

# Recently written-back items

> What agents have already saved here, newest first — the check to make before saving
something that may already exist. For content search use the knowledge search endpoints with
``metadata: {"writeback": "mcp"}``.

<Snippet file="api/writeback/recent-writebacks.mdx" />


## OpenAPI

````yaml GET /v1/writeback/recent
openapi: 3.1.0
info:
  title: Adapter API
  description: Connect and sync data from any SaaS tool.
  version: 0.1.0
servers:
  - url: https://api.adapter.com
security:
  - ApiKeyAuth: []
tags:
  - name: connections
    description: Manage OAuth connections to data sources.
paths:
  /v1/writeback/recent:
    get:
      tags:
        - writeback
      summary: Recently written-back items
      description: >-
        What agents have already saved here, newest first — the check to make
        before saving

        something that may already exist. For content search use the knowledge
        search endpoints with

        ``metadata: {"writeback": "mcp"}``.
      operationId: recent_writebacks
      parameters:
        - name: agent
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only this agent's items (name or slug).
            title: Agent
          description: Only this agent's items (name or slug).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecentWritebacksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RecentWritebacksResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/RememberedItem'
          type: array
          title: Items
      type: object
      required:
        - items
      title: RecentWritebacksResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RememberedItem:
      properties:
        external_id:
          type: string
          title: External Id
        title:
          type: string
          title: Title
        kind:
          type: string
          title: Kind
        agent:
          type: string
          title: Agent
        stored_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Stored At
        timestamp:
          anyOf:
            - type: string
            - type: 'null'
          title: Timestamp
        preview:
          type: string
          title: Preview
          default: ''
        tags:
          items:
            type: string
          type: array
          title: Tags
        related_urns:
          items:
            type: string
          type: array
          title: Related Urns
      type: object
      required:
        - external_id
        - title
        - kind
        - agent
      title: RememberedItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: Pass your `pk_live_...` API key as a Bearer token.

````