> ## 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.

# Get Analysis

<Info>
  Returns an <strong>analysis</strong> by its identifier. Use it to track the `status` of a
  [PCD analysis](/public-api/en/concepts/pcd-analysis_en).
</Info>

## Overview

* **Method:** `GET`
* **Path:** `/v0/analysis/{analysis_id}`
* **OperationId:** `public_get_analysis_v0_analysis__analysis_id__get`
* **Authentication:** `x-api-key` header

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

### Parameters

| Parameter     | In   | Required | Meaning                         |
| ------------- | ---- | -------- | ------------------------------- |
| `analysis_id` | path | yes      | The analysis identifier (UUID). |

### Request example

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


## OpenAPI

````yaml GET /v0/analysis/{analysis_id}
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/{analysis_id}:
    get:
      tags:
        - Analysis
        - Analysis
      summary: Public Get Analysis
      operationId: public_get_analysis_v0_analysis__analysis_id__get
      parameters:
        - name: analysis_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Analysis Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiAnalysisResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PublicApiAnalysisResponse:
      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: PublicApiAnalysisResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AnalysisStatusEnum:
      type: string
      enum:
        - IN_ANALYSIS
        - INCOMPLETE
        - APPROVED
        - REPROVED
        - EXPIRED
      title: AnalysisStatusEnum
    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
    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
    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

````