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

# List Flags

> The team's flags, newest first; optionally scoped to one processor.



## OpenAPI

````yaml https://www.datalab.to/openapi.json get /api/v1/agent-studio/flags
openapi: 3.1.0
info:
  title: Datalab API
  version: 0.0.1
servers:
  - url: https://www.datalab.to
    description: Datalab API
security: []
paths:
  /api/v1/agent-studio/flags:
    get:
      tags:
        - agent-studio
      summary: List Flags
      description: The team's flags, newest first; optionally scoped to one processor.
      operationId: list_flags_api_v1_agent_studio_flags_get
      parameters:
        - name: processor_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by public processor id (slug).
            title: Processor Id
          description: Filter by public processor id (slug).
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(open|resolved)$
              - type: 'null'
            title: Status
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: wos-session
          in: cookie
          required: false
          schema:
            type: string
            title: Wos-Session
        - name: datalab_active_team
          in: cookie
          required: false
          schema:
            type: string
            title: Datalab Active Team
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    FlagListResponse:
      properties:
        flags:
          items:
            $ref: '#/components/schemas/FlagResponse'
          type: array
          title: Flags
        total:
          type: integer
          title: Total
      type: object
      required:
        - flags
        - total
      title: FlagListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FlagResponse:
      properties:
        id:
          type: integer
          title: Id
        run_id:
          type: integer
          title: Run Id
        processor_id:
          type: string
          title: Processor Id
          description: Public processor id (slug).
        locator:
          $ref: '#/components/schemas/Locator'
        note:
          type: string
          title: Note
        status:
          type: string
          enum:
            - open
            - resolved
          title: Status
        addressed_in_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Addressed In Version
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
      type: object
      required:
        - id
        - run_id
        - processor_id
        - locator
        - note
        - status
      title: FlagResponse
    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
    Locator:
      properties:
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
        doc_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Name
        surface:
          anyOf:
            - $ref: '#/components/schemas/LocatorSurface'
            - type: 'null'
        block_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Block Id
          description: 'Path-shaped block id, production convention: /page/{n}/{type}/{i}.'
        cell:
          anyOf:
            - $ref: '#/components/schemas/LocatorCell'
            - type: 'null'
        word_range:
          anyOf:
            - prefixItems:
                - type: integer
                - type: integer
              type: array
              maxItems: 2
              minItems: 2
            - type: 'null'
          title: Word Range
        bbox:
          anyOf:
            - prefixItems:
                - type: number
                - type: number
                - type: number
                - type: number
              type: array
              maxItems: 4
              minItems: 4
            - type: 'null'
          title: Bbox
        field_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Field Path
          description: JSON pointer into the extraction result, e.g. /analytes/3/value.
        check_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Check Id
        rule_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Rule Id
        segment:
          anyOf:
            - type: string
            - type: 'null'
          title: Segment
        turn:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Turn
      additionalProperties: false
      type: object
      title: Locator
      description: |-
        The canonical reference shape (frontend spec §3, backend plan A3).

        Anchor (run_id/doc_name) → source chain (surface → block_id →
        cell/word_range/bbox) → semantic axis (field_path | check_id | rule_id |
        segment) → trace turn. Everything is optional; axes co-occur (an
        extraction citation = field_path + surface + block_id).
    LocatorSurface:
      properties:
        kind:
          type: string
          enum:
            - page
            - sheet
          title: Kind
        label:
          type: string
          title: Label
          description: Display label, e.g. 'page 3', 'Sheet1'.
        number:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Number
          description: >-
            0-indexed surface number at the API boundary (display convention is
            1-based — that belongs in `label`).
      additionalProperties: false
      type: object
      required:
        - kind
        - label
      title: LocatorSurface
      description: 'Source surface: a page (pdf/image) or a sheet (spreadsheet).'
    LocatorCell:
      properties:
        row:
          type: integer
          minimum: 0
          title: Row
        col:
          type: integer
          minimum: 0
          title: Col
      additionalProperties: false
      type: object
      required:
        - row
        - col
      title: LocatorCell
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````