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

# Undo what a reply wrote

> Desfazer on a reply that wrote to the week: supersedes every fact of that capture in one transaction. An added activity leaves the week; a rescheduled one gets back the schedule it replaced. `operationId` makes a retry return the first undo's result.



## OpenAPI

````yaml /openapi.json delete /v1/conversation/captures/{captureId}
openapi: 3.0.0
info:
  title: onosso
  version: 0.0.0
  description: >-
    The household's API: the week, the people and the sessions the web app reads
    and changes.
servers: []
security: []
tags:
  - name: Week
    description: The household's week, day by day.
  - name: People
    description: The people who make up the household.
  - name: Pets
    description: The pets of the house.
  - name: Invites
    description: Links that let someone join.
  - name: Sessions
    description: Where you are signed in.
  - name: Tokens
    description: Your personal API tokens.
  - name: Address
    description: Where the household lives.
  - name: Messages
    description: What each person receives from the product, and when.
  - name: Questions
    description: 'What needs a person: one queue, the same in the app and on WhatsApp.'
  - name: Shopping
    description: 'The household''s one list: places, items and marks.'
  - name: Conversation
    description: >-
      Each person's one conversation with the assistant, the same in the app and
      on WhatsApp.
  - name: MCP
    description: The house for an MCP client such as Claude Desktop, with a personal token.
paths:
  /v1/conversation/captures/{captureId}:
    delete:
      tags:
        - Conversation
      summary: Undo what a reply wrote
      description: >-
        Desfazer on a reply that wrote to the week: supersedes every fact of
        that capture in one transaction. An added activity leaves the week; a
        rescheduled one gets back the schedule it replaced. `operationId` makes
        a retry return the first undo's result.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: captureId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                operationId:
                  type: string
                  format: uuid
                at:
                  type: string
                  format: date-time
              required:
                - operationId
                - at
      responses:
        '200':
          description: The capture, undone.
          content:
            application/json:
              schema:
                type: object
                properties:
                  capture:
                    $ref: '#/components/schemas/ConversationCapture'
                required:
                  - capture
        '400':
          description: >-
            The request's shape is invalid (`agent.invalid-message`, with
            `details.field` and `details.fieldCode`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainError'
        '401':
          description: The session is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '403':
          description: The request came from another origin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: >-
            `agent.capture-not-found`: not a capture of one of the caller's own
            replies.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainError'
        '409':
          description: >-
            `agent.stale-capture`: a fact of the capture changed since, on any
            channel, or it was already undone; nothing was written.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '504':
          $ref: '#/components/responses/RequestTimeout'
      security:
        - session: []
components:
  schemas:
    ConversationCapture:
      type: object
      properties:
        id:
          type: string
          format: uuid
        occurrenceIds:
          type: array
          items:
            type: string
          description: >-
            The week items the capture put in the week, `<activityId>@<date>`,
            by date.
      required:
        - id
        - occurrenceIds
      description: >-
        What the reply wrote to the week, undone as one unit by DELETE
        /v1/conversation/captures/{captureId}. Absent when the reply wrote
        nothing.
    DomainError:
      type: object
      properties:
        code:
          type: string
        details:
          type: object
          additionalProperties:
            nullable: true
      required:
        - code
        - details
    Unauthorized:
      type: object
      properties:
        message:
          type: string
          enum:
            - Unauthorized
        statusCode:
          type: number
          enum:
            - 401
      required:
        - message
        - statusCode
    Forbidden:
      type: object
      properties:
        message:
          type: string
          enum:
            - Forbidden
        statusCode:
          type: number
          enum:
            - 403
      required:
        - message
        - statusCode
    Degraded:
      type: object
      properties:
        code:
          type: string
          enum:
            - request.timeout
            - service.unavailable
        correlationId:
          type: string
      required:
        - code
        - correlationId
  responses:
    ServiceUnavailable:
      description: A dependency is unavailable; retry after Retry-After seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Degraded'
    RequestTimeout:
      description: The request outlived its deadline.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Degraded'
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: __Secure-better-auth.session_token
      description: The session cookie set when you sign in to the web app.

````

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