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

# Discover workforce facts before WFM configuration

> Count-checked, read-only canonical Queue and membership inventory. Source, Person and semantic sections explicitly report denied or unavailable evidence. Summary returns totals and decisions; queue/person views return bounded detail pages after the same complete internal enumeration. No configuration is created.



## OpenAPI

````yaml /api-reference/workforce/openapi.json get /api/v1/workforce/discovery
openapi: 3.1.0
info:
  title: Atlas workforce API
  version: 2026-10-preview
  description: >-
    Authenticated workforce staffing-to-draft operations. Released together with
    matching MCP operations. Deploy the reviewed native guard migrations before
    enabling this feature.
servers:
  - url: /
security:
  - AtlasIntegrationBearer: []
paths:
  /api/v1/workforce/discovery:
    get:
      summary: Discover workforce facts before WFM configuration
      description: >-
        Count-checked, read-only canonical Queue and membership inventory.
        Source, Person and semantic sections explicitly report denied or
        unavailable evidence. Summary returns totals and decisions; queue/person
        views return bounded detail pages after the same complete internal
        enumeration. No configuration is created.
      operationId: discover_workforce
      parameters:
        - name: X-Workspace-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: Workspace selector within saved grants and current native authority.
        - name: from
          in: query
          required: true
          schema:
            type: string
            format: date-time
          description: Inclusive observation start.
        - name: to
          in: query
          required: true
          schema:
            type: string
            format: date-time
          description: Exclusive observation end; maximum 31 elapsed days after from.
        - name: as_of
          in: query
          required: true
          schema:
            type: string
            format: date-time
          description: Effective instant for dated identity and membership.
        - name: view
          in: query
          schema:
            type: string
            enum:
              - summary
              - queues
              - people
            default: summary
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: search
          in: query
          schema:
            type: string
            maxLength: 120
          description: >-
            Case-insensitive Queue or Person name filter after count-checking
            the complete authorized inventory.
      responses:
        '200':
          description: Versioned discovery facts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkforceDiscovery'
        '400':
          description: Malformed transport input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid bearer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Saved grant or current authority denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid window or page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Incomplete source or unavailable read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkforceDiscovery:
      type: object
      required:
        - contractVersion
        - workspaceId
        - observedAt
        - asOf
        - window
        - view
        - timezone
        - sections
        - totals
        - queues
        - people
        - questions
        - page
      properties:
        contractVersion:
          const: 1
        workspaceId:
          type: string
        observedAt:
          type: string
          format: date-time
        asOf:
          type: string
          format: date-time
        window:
          type: object
          properties:
            from:
              type: string
              format: date-time
            to:
              type: string
              format: date-time
        view:
          enum:
            - summary
            - queues
            - people
        timezone:
          $ref: '#/components/schemas/DiscoveryFact'
        sections:
          type: object
          additionalProperties:
            type: object
            properties:
              state:
                type: string
              count:
                type:
                  - integer
                  - 'null'
              complete:
                type: boolean
              reason:
                type:
                  - string
                  - 'null'
        totals:
          type: object
          properties:
            queues:
              type:
                - integer
                - 'null'
            queueMemberships:
              type:
                - integer
                - 'null'
            agentSlots:
              type:
                - integer
                - 'null'
            resolvedPeople:
              type:
                - integer
                - 'null'
        queues:
          type: array
          description: >-
            Each Queue includes providerSupervisors as a dated provider fact. It
            reports the current supervisor count when verified and does not
            grant an Atlas role.
          items:
            type: object
            additionalProperties: true
        people:
          type: array
          items:
            type: object
            additionalProperties: true
        questions:
          type: array
          items:
            type: object
            additionalProperties: true
        page:
          type: object
          properties:
            offset:
              type: integer
            limit:
              type: integer
            total:
              type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
    DiscoveryFact:
      type: object
      required:
        - state
        - meaning
        - unit
        - value
        - source
        - effectiveAt
        - observedAt
        - complete
        - decisionBlocking
        - evidence
      properties:
        state:
          enum:
            - observed
            - authored
            - imported
            - inferred
            - missing
            - conflicting
            - stale
            - denied
            - unavailable
            - not_applicable
        meaning:
          type: string
        unit:
          type:
            - string
            - 'null'
        value: {}
        source:
          type:
            - string
            - 'null'
        effectiveAt:
          type:
            - string
            - 'null'
        observedAt:
          type:
            - string
            - 'null'
        complete:
          type: boolean
        decisionBlocking:
          type: boolean
        evidence:
          type: array
          items:
            type: string
  securitySchemes:
    AtlasIntegrationBearer:
      type: http
      scheme: bearer
      bearerFormat: atlas_mcp_
      description: >-
        Existing Atlas integration connection with explicit api:connect plus
        appropriate native domain grants. atlas_ingest_ and browser cookies are
        not accepted.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.