---
title: ApiResponse
updated_at: '2026-10-27T22:44:23+01:00'
created_at: '2026-09-25T10:30:20+02:00'
symbol:
  kind: interface
  name: ApiResponse
  signatures:
    - interface ApiResponse
  members:
    - name: status
      kind: property
      signature: 'readonly status: string'
    - name: description
      kind: property
      signature: 'readonly description?: string'
    - name: schema
      kind: property
      signature: 'readonly schema?: [[reference/api/ui/reference/SchemaNode|SchemaNode]]'
    - name: example
      kind: property
      signature: 'readonly example?: unknown'
    - name: contentType
      kind: property
      signature: 'readonly contentType?: string'
      description: >-
        The body's media type: `text/markdown`, `image/png`. Without one, a
        schema or example means JSON.
    - name: empty
      kind: property
      signature: 'readonly empty: boolean'
      description: >-
        From `empty: true`: a response with no body. 204, 205, and 304 responses
        never have one.
    - name: headers
      kind: property
      signature: 'readonly headers: readonly readonly [string, string][]'
      description: 'Example response headers, in order: `Location`, `Set-Cookie`.'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/themes/api-docs/src/lib/api.ts#L63
description: ''
---

# ApiResponse
