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

# List schemas

> List extraction schemas for the organization.

Extraction schemas (code name `Struct`) for the caller's organization. The product UI says **Schemas**.


## OpenAPI

````yaml GET /api/v2/structs/
openapi: 3.1.0
info:
  title: Abacus Docs API
  version: 1.0.0
  description: |
    REST + SSE surface for Abacus Docs on the same host as the web app
    (`https://abacusdocs.com`). Paths are `/api/v2/…`.

    Authenticate with an organisation API key (`sk-abacus-*`) as a Bearer
    token, or an Auth0 access token. Cross-tenant reads return **404**, not
    403. Page-based lists use `?page=` and `?page_size=`.

    Extraction, reprocess, schema tests, and chat turns spend credits.
    See the help centre Credits pages for rates.
  contact:
    name: Abacus Docs
    url: https://abacusdocs.com/contact
servers:
  - url: https://abacusdocs.com
    description: Production (Extract)
security: []
paths:
  /api/v2/structs/:
    get:
      tags:
        - v2/structs
      summary: List extraction schemas (Structs) for the current user's org
      description: >-
        Returns all non-archived schemas owned by the authenticated user's
        organization, ordered by most recently updated first. Cursor-paginated.
      operationId: v2_structs_list
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
          description: Opaque pagination cursor returned from a previous response.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedStructSummaryList'
          description: ''
      security:
        - extractApiKey: []
        - bearerAuth: []
        - cookieAuth: []
components:
  schemas:
    PaginatedStructSummaryList:
      type: object
      required:
        - results
      properties:
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?cursor=cD00ODY%3D"
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3
        results:
          type: array
          items:
            $ref: '#/components/schemas/StructSummary'
    StructSummary:
      type: object
      description: >-
        Minimal Struct projection for the list endpoint.


        Surfaces just enough state for the SPA's struct list: name, slug,
        status,

        field count of the working draft, whether the draft has unpublished
        changes,

        and version metadata (current version number + total version count).
      properties:
        id:
          type: integer
          readOnly: true
        slug:
          type: string
          maxLength: 200
          pattern: ^[-a-zA-Z0-9_]+$
        name:
          type: string
          maxLength: 200
        status:
          $ref: '#/components/schemas/StatusEnum'
        mode:
          allOf:
            - $ref: '#/components/schemas/ModeF53Enum'
          description: >-
            Mirror of schema_json['mode'] for filtering/display; schema_json is
            authoritative.


            * `form` - Form

            * `document` - Document
        black_hole_enabled:
          type: boolean
          description: >-
            Org-scoped black-hole participation flag (Decision 2). Only the
            current PUBLISHED, non-deprecated version participates in
            classification — enforced by
            documents.services.black_hole.black_hole_participants(), not here.
            The flag may be set on a draft; it becomes effective on first
            publish.
        field_count:
          type: integer
          readOnly: true
        has_unpublished_changes:
          type: boolean
          readOnly: true
        current_version_number:
          type:
            - integer
            - 'null'
          readOnly: true
        version_count:
          type: integer
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - current_version_number
        - field_count
        - has_unpublished_changes
        - id
        - name
        - slug
        - updated_at
        - version_count
    StatusEnum:
      enum:
        - draft
        - active
        - archived
      type: string
      description: |-
        * `draft` - Draft
        * `active` - Active
        * `archived` - Archived
    ModeF53Enum:
      enum:
        - form
        - document
      type: string
      description: |-
        * `form` - Form
        * `document` - Document
  securitySchemes:
    extractApiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        Organisation API key from Settings → API / `/api/keys/`. The secret is
        shown once. Send `Authorization: Bearer sk-abacus-…`. One active key
        per organisation. Ingest (`/api/v2/ingest/*`) refuses API keys — that
        surface is Auth0-only with `ingest:read` / `ingest:write` scopes.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Auth0 access token for a signed-in user. Send `Authorization: Bearer
        <token>`.

        The SPA and desktop agent use this. Prefer an organisation API key for

        server-to-server integrations.
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
      description: |
        Django session cookie from a browser login. Present so the web app can
        call `/api/v2` without a header. Do not rely on this for integrations.

````