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

# List samples

> List the calling organization's samples, the public cohort, or both. Cursor-paginated newest-first; `all` always emits mine first and de-duplicates owned public samples in favor of the mine representation. Credit-free.



## OpenAPI

````yaml GET /samples
openapi: 3.1.0
info:
  title: Strand AI Platform API
  version: v1
  description: >-
    REST surface for uploading WSIs, submitting Lattice inference jobs, and
    streaming results. All endpoints require an API key or Strand AI OAuth
    access token in the `Authorization: Bearer` header.
servers:
  - url: https://app.strandai.com/api/v1
    description: Production
security:
  - ApiKey: []
  - OAuth2: []
paths:
  /samples:
    get:
      summary: List samples
      description: >-
        List the calling organization's samples, the public cohort, or both.
        Cursor-paginated newest-first; `all` always emits mine first and
        de-duplicates owned public samples in favor of the mine representation.
        Credit-free.
      parameters:
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - mine
              - public
              - all
            default: mine
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 48
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            minLength: 1
          description: Opaque cursor returned as `nextCursor`; not bound to page size.
        - name: tag
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 50
            pattern: ^[^,\u0000-\u001F\u007F]+$
          description: >-
            Exact tag filter, normalized by trimming and lowercasing. Control
            characters and commas are rejected.
      responses:
        '200':
          description: A scoped sample page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SampleList'
        '400':
          description: Invalid query or cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SampleList:
      type: object
      additionalProperties: false
      required:
        - items
        - nextCursor
      properties:
        items:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/MineSampleListItem'
              - $ref: '#/components/schemas/PublicSampleListItem'
            discriminator:
              propertyName: ownership
              mapping:
                mine:
                  $ref: '#/components/schemas/MineSampleListItem'
                public:
                  $ref: '#/components/schemas/PublicSampleListItem'
        nextCursor:
          type: string
          nullable: true
          description: Opaque cursor for the next item, or null when exhausted.
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        required:
          type: integer
          nullable: true
        retryAfterSeconds:
          type: integer
          nullable: true
    MineSampleListItem:
      type: object
      additionalProperties: false
      required:
        - ownership
        - id
        - name
        - filename
        - status
        - fileSize
        - tags
        - createdAt
      properties:
        ownership:
          type: string
          enum:
            - mine
        id:
          type: string
          format: uuid
          description: Organization-authorized sample id.
        name:
          type: string
          nullable: true
        filename:
          type: string
        status:
          type: string
        fileSize:
          type: string
          description: Decimal string for a 64-bit byte count.
        tags:
          type: array
          items:
            type: string
        createdAt:
          type: string
          format: date-time
          nullable: true
    PublicSampleListItem:
      type: object
      additionalProperties: false
      required:
        - ownership
        - id
        - title
        - thumbnailUrl
        - tags
        - metadata
      properties:
        ownership:
          type: string
          enum:
            - public
        id:
          type: string
          format: uuid
          description: Safe public share UUID. Never an internal sample id.
        title:
          type: string
        thumbnailUrl:
          type: string
          description: Authenticated v1 public thumbnail route.
        tags:
          type: array
          items:
            type: string
          description: Sorted public-visible tags only.
        metadata:
          type: object
          additionalProperties: true
          description: Public-visible sample attributes only.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk-strand-XXXXXXXXXXXXXXXXXXXXXXXX
    OAuth2:
      type: oauth2
      description: >-
        Strand AI authorization-code flow with S256 PKCE, explicit organization
        consent, and RFC 8707 resource binding.
      flows:
        authorizationCode:
          authorizationUrl: https://auth.strandai.com/oauth2/auth
          tokenUrl: https://auth.strandai.com/oauth2/token
          scopes:
            samples:read: Read slide metadata and estimates
            samples:write: Upload and change slides
            jobs:read: Read run status
            jobs:write: Start, export, or cancel runs
            results:read: Read and download results
            credits:spend: Reserve and spend organization credits

````