---
title: "Get SFTP batch session final results (paginated)"
method: GET
path: "/api/v1/claims/sftp/result/{session_id}"
tags: ["Open API", "Claims SFTP Input Method"]
---

# Get SFTP batch session final results (paginated)

`GET /api/v1/claims/sftp/result/{session_id}`

## Request

- Base URL: `https://developer.claimmind.life` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.claimmind.life/api/v1/claims/sftp/result/{session_id}`
- Auth: none declared. Required headers: `X-API-Key`

Get paginated results for a finished SFTP batch session.

    **Use Case:** Retrieve final outcomes for all claims in batch after processing completes.

    **Authentication:** API Key (X-API-Key header)
    **Required Scope:** `claims:read`

    **Pagination:**
    - page: Page number (default: 1, min: 1)
    - limit: Items per page (default: 10, min: 1, max: 100)

    **When to Call:**
    - After status endpoint returns status: "COMPLETED" or "FAILED"
    - For batch reconciliation and audit trails
    - To retrieve detailed results for each claim in the batch
    - Optionally filter by batch_id to get results for a specific batch

    **Response Structure:**
    - session_id: Batch identifier
    - status: Final status (COMPLETED or FAILED)
    - pagination: Pagination metadata
      - page: Current page number
      - limit: Items per page
      - total: Total number of results
      - total_pages: Total number of pages
    - results: Array of individual claim results
      - claim_id: Unique claim identifier
      - external_claim_id: Your reference ID (if provided)
      - status: COMPLETED | FAILED | AWAITING_INFO
      - result: Processing outcomes (OCR, coding, validation)

    **Webhook Alternative:**
    Configure webhook to receive batch.completed event with results automatically.

    **Example Response:**
    ```json
    {
        "session_id": "sftp-session-20260122-001",
        "status": "COMPLETED",
        "pagination": {
            "page": 1,
            "limit": 10,
            "total": 15,
            "total_pages": 2
        },
        "results": [
            {
                "claim_id": "CLM-001",
                "external_claim_id": "HOSP-2026-001",
                "status": "COMPLETED",
                "result": {
                    "patient": {"nama": "John Doe"},
                    "diagnosis": {"primary_code": "A09"},
                    "total_charges": 5000000,
                    "validation_status": "PASSED"
                }
            }
        ]
    }
    ```

    **Error Responses:**
    - 400: Session still processing - call /status first
    - 401: Invalid API key
    - 403: API key lacks claims:read scope
    - 404: Session ID not found
    - 500: Server error retrieving results

    **Integration Tips:**
    - Only call when status is COMPLETED or FAILED
    - Store results locally for audit and reconciliation
    - Use external_claim_id to correlate with your SIMRS
    - Process errors array for failed claims to retry submission
    - Results are retained for 30 days

## Path parameters

- `session_id` string, required

## Query parameters

- `page` integer: Page number
- `limit` integer: Items per page (max 100)
- `batch_id` integer: Optional batch ID to filter results for a specific batch

## Headers

- `X-API-Key` string, required

## Response `200`

Batch results retrieved successfully

- PaginatedSftpSessionResultResponse: Paginated response for SFTP session results.
  - `session_id` string, required
  - `status` string, required
  - `pagination` PaginationMeta, required: Pagination metadata.
    - `page` integer, required
    - `limit` integer, required
    - `total` integer, required
    - `total_pages` integer, required
  - `results` ClaimResultDTO[], required
    - `claim_id` string, required
    - `external_claim_id` string, nullable
    - `status` string, required
    - `result` object, nullable

## Other responses

- `400`: Session still processing
- `403`: Insufficient permissions
- `404`: Session not found
- `422`: Validation Error

---

[API](https://skmtc.dev/claimmind/apis/claimmind-open-api-service.md) - [All operations](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/revisions/ee8bfbeadb8a?raw)
