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

# List Analyses

<Info>
  Lista as <strong>análises</strong> da organização, com paginação por cursor. Veja o conceito
  em [Análise PCD](/public-api/br/conceitos/analise-pcd).
</Info>

## Visão Geral

* **Método:** `GET`
* **Path:** `/v0/analysis/`
* **OperationId:** `public_list_analyses_v0_analysis__get`
* **Autenticação:** header `x-api-key`

<OpenAPIPlayground openapi="/public-api/openapi.json" operationId="public_list_analyses_v0_analysis__get" />

### Filtros e paginação

Suporta `organization_id` e os parâmetros padrão de paginação/ordenação (`page`, `limit`,
`order_by`, `order_dir`). A resposta inclui o bloco `cursor` — veja
[Como usar §8](/public-api/br/como-usar#pt-8).

### Exemplo de requisição

```bash theme={null}
curl -X GET "https://public-api.salu.com.vc/dev/routes/v0/analysis/?page=0&limit=20" \
  -H "Accept: application/json" \
  -H "x-api-key: $SALU_PUBLIC_API_KEY"
```


## OpenAPI

````yaml GET /v0/analysis/
openapi: 3.1.0
info:
  title: Public API v0
  description: API publica da Salu para integracoes de SST.
  version: 0.1.0
servers:
  - url: https://public-api.salu.com.vc/dev/routes
    description: Development
  - url: https://public-api.salu.com.vc/prd/routes
    description: Production
security: []
paths:
  /v0/analysis/:
    get:
      tags:
        - Analysis
        - Analysis
      summary: Public List Analyses
      operationId: public_list_analyses_v0_analysis__get
      parameters:
        - name: is_active
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - enum:
                  - 'true'
                  - 'false'
                  - ''
                type: string
              - type: 'null'
            default: true
            title: Is Active
        - name: order_by
          in: query
          required: false
          schema:
            type: string
            default: name,request_date,status
            title: Order By
        - name: order_dir
          in: query
          required: false
          schema:
            type: string
            default: desc,desc,desc
            title: Order Dir
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            title: Limit
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/AnalysisStatusEnum'
              - type: 'null'
            title: Status
        - name: organization_id
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
              - type: 'null'
            title: Organization Id
        - name: employee_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Employee Id
        - name: gov_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Gov Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPublicApiAnalysisResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    AnalysisStatusEnum:
      type: string
      enum:
        - IN_ANALYSIS
        - INCOMPLETE
        - APPROVED
        - REPROVED
        - EXPIRED
      title: AnalysisStatusEnum
    ListPublicApiAnalysisResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/PublicApiAnalysisBaseResponse'
          type: array
          title: Data
        cursor:
          anyOf:
            - $ref: '#/components/schemas/PaginateCursor'
            - type: 'null'
      type: object
      required:
        - data
        - cursor
      title: ListPublicApiAnalysisResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicApiAnalysisBaseResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        gov_id:
          type: string
          title: Gov Id
        status:
          $ref: '#/components/schemas/AnalysisStatusEnum'
        request_date:
          type: string
          format: date-time
          title: Request Date
        validation_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Validation Date
        observation:
          anyOf:
            - type: string
            - type: 'null'
          title: Observation
        employee_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Employee Id
        organization:
          $ref: '#/components/schemas/SimpleOrganization'
        disabilities:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Disabilities
        expiration_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expiration Date
        expired:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Expired
        analysis_files:
          items:
            $ref: '#/components/schemas/PublicApiAnalysisFileResponse'
          type: array
          title: Analysis Files
          default: []
      type: object
      required:
        - id
        - name
        - gov_id
        - status
        - request_date
        - organization
      title: PublicApiAnalysisBaseResponse
    PaginateCursor:
      properties:
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total_pages:
          type: integer
          title: Total Pages
          readOnly: true
        next_page:
          type: boolean
          title: Next Page
          readOnly: true
      type: object
      required:
        - total
        - page
        - page_size
        - total_pages
        - next_page
      title: PaginateCursor
    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
    SimpleOrganization:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: SimpleOrganization
    PublicApiAnalysisFileResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        file_path:
          type: string
          title: File Path
        mimetype:
          type: string
          title: Mimetype
        document_type:
          $ref: '#/components/schemas/AnalysisDocumentTypeEnum'
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - name
        - file_path
        - mimetype
        - document_type
        - created_at
      title: PublicApiAnalysisFileResponse
    AnalysisDocumentTypeEnum:
      type: string
      enum:
        - DISABILITY_MEDICAL_REPORT
        - DISABILITY_CLASSIFICATION
        - MEDICAL_CERTIFICATE
      title: AnalysisDocumentTypeEnum
      description: Document types specifically for analysis workflows.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````