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

# Deletion receipt

> What the cell deleted for a deleted space, with the hash of the receipt.



## OpenAPI

````yaml openapi/en/control.json GET /v1/spaces/{space_id}/deletion-receipt
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/spaces/{space_id}/deletion-receipt:
    get:
      summary: Deletion receipt
      description: >-
        A deleted space and what its cell deleted: `status` is `deleting` until
        the cell reports, then `deleted`, with the receipt and its SHA-256. A
        space that is not deleted answers 404. Needs the admin or security role.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: deletion_receipt_v1_spaces__space_id__deletion_receipt_get
      parameters:
        - in: path
          name: space_id
          required: true
          schema:
            format: uuid
            title: Space Id
            type: string
          example: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a24
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceDeletionOut'
              example:
                space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a24
                deleted_at: '2026-09-24T15:02:00Z'
                status: deleted
                receipt:
                  space_id: 0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a24
                  cell_id: cell-1
                  db_name: s_0192f0a03d4e7f508b617c8d9e0f1a24
                  dropped_at: '2026-09-24T15:02:07Z'
                  dek_versions_destroyed:
                    - 1
                  objects_deleted: 184
                  backups_deleted: 7
                  secrets_deleted: 2
                  instance_snapshot_expiry: '2026-10-29T15:02:07Z'
                  receipt_hash: >-
                    444231a958691293872e18e8de0fad4d0e2de2fec1c66cad1b2e56503f64db37
                  received_at: '2026-09-24T15:02:09Z'
          description: The deleted space, with the receipt once the cell reported.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    SpaceDeletionOut:
      additionalProperties: false
      properties:
        deleted_at:
          format: date-time
          title: Deleted At
          type: string
          description: When an admin deleted the space.
        receipt:
          anyOf:
            - $ref: '#/components/schemas/DeletionReceiptOut'
            - type: 'null'
          description: What the cell deleted; null while `status` is `deleting`.
        space_id:
          format: uuid
          title: Space Id
          type: string
        status:
          description: >-
            `deleting` until the cell reports what it deleted; then `deleted`,
            with the receipt.
          enum:
            - deleting
            - deleted
          title: Status
          type: string
      required:
        - space_id
        - deleted_at
        - status
      title: SpaceDeletionOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    DeletionReceiptOut:
      additionalProperties: false
      description: >-
        What the cell deleted, as it reported it. The data keys are destroyed,
        so any copy of the space's

        data that still exists (the database server's own snapshots, until
        `instance_snapshot_expiry`) can

        no longer be read.
      properties:
        backups_deleted:
          description: Nightly dumps of the space's database deleted.
          title: Backups Deleted
          type: integer
        cell_id:
          title: Cell Id
          type: string
          description: The cell that deleted the space.
        db_name:
          description: The space's database, dropped.
          title: Db Name
          type: string
        dek_versions_destroyed:
          description: Versions of the space's data keys destroyed.
          items:
            type: integer
          title: Dek Versions Destroyed
          type: array
        dropped_at:
          format: date-time
          title: Dropped At
          type: string
          description: When the space's database was dropped.
        instance_snapshot_expiry:
          description: >-
            When the last automatic snapshot of the database server that may
            hold the space's encrypted data expires.
          format: date-time
          title: Instance Snapshot Expiry
          type: string
        objects_deleted:
          description: >-
            Stored objects deleted: raw payloads, media, imports, exports, event
            archives and audit anchors.
          title: Objects Deleted
          type: integer
        receipt_hash:
          description: SHA-256 of the receipt's canonical JSON, in hexadecimal.
          title: Receipt Hash
          type: string
        received_at:
          format: date-time
          title: Received At
          type: string
          description: When the control plane stored the receipt.
        secrets_deleted:
          description: Secret versions deleted (webhook and export credentials).
          title: Secrets Deleted
          type: integer
        space_id:
          format: uuid
          title: Space Id
          type: string
      required:
        - space_id
        - cell_id
        - db_name
        - dropped_at
        - dek_versions_destroyed
        - objects_deleted
        - backups_deleted
        - secrets_deleted
        - instance_snapshot_expiry
        - receipt_hash
        - received_at
      title: DeletionReceiptOut
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````