---
title: "Download an evidence file by ID"
method: GET
path: "/dispute/disputes/{disputeId}/evidences/{evidenceId}"
tags: ["Disputes"]
---

# Download an evidence file by ID

`GET /dispute/disputes/{disputeId}/evidences/{evidenceId}`

## Request

- Base URL: `https://api.staging.payrails.io`
- URL: `https://api.staging.payrails.io/dispute/disputes/{disputeId}/evidences/{evidenceId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/payrails/apis/payrails-api-reference/docs/dispute/disputes/:disputeId/evidences/:evidenceId/get.ts> (a function with typed inputs; its response is checked against the schema)

Download an evidence file from a given ID.

## Path parameters

- `disputeId` string, uuid, required
- `evidenceId` string, uuid, required

## Response `200`

Evidence found, and all details are included.

- object
  - `id` string, uuid, required: Unique identifier of the Dispute in Payrails.
  - `createdAt` string, date-time, required: Date and time when the Dispute was created in Payrails.
  - `updatedAt` string, date-time, required: Date and time when the Dispute was last updated in Payrails.
  - `displayTitle` string: Display title of the evidence, usually the file name.
  - `status` 'Active' | 'Inactive' | 'Unknown': Status of the dispute evidence.
  - `provenance` 'Merchant' | 'Payrails' | 'Unknown': Provenance of the dispute evidence.
  - `contentType` string: MIME type of the evidence content.
  - `contentLength` integer: Size of the evidence content in bytes.
  - `payload` object: Inline JSON payload for inline-context evidences. Present only for evidences created from `inlineContexts`; omitted for file-backed evidence.
  - `workspaceId` string, uuid: Workspace ID that the Dispute belongs to.
  - `labels` string[]: Labels assigned to this evidence for the dispute, used to categorise the document during representment.
  - `links` object
    - `download` union
      - string
      - object: Link related information.
        - `href` string, required
        - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE': HTTP method that should be used to call the `href`.

## Other responses

- `400`: Bad Request.
- `401`: Unauthorized.
- `403`: Insufficient Scope.
- `404`: Not Found.
- `429`: Too Many Requests.

---

[API](https://skmtc.dev/payrails/apis/payrails-api-reference.md) - [All operations](https://skmtc.dev/payrails/apis/payrails-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/payrails/apis/payrails-api-reference/revisions/9dd2f0158582?raw)
