---
title: "List documents to review and sign"
url: "https://developer.incode.com/api-reference/document-signature-documents/"
section: "api-reference"
group: "Electronic signature"
version: "v1.1"
status: "live"
endpoint: "GET /omni/document-signature/documents"
---
# List documents to review and sign

`GET /omni/document-signature/documents`

Base URL: `https://demo-api.incodesmile.com` — Incode demo environment

Returns the session's documents in order with their hash and signature timestamp, a presigned URL of the original and, once signed, a presigned URL of the signed PDF. MARKDOWN documents also carry their text inline. With a session token the session is the caller's; with an executive or admin token pass interviewId, and the response also carries the signature (type, typed name or image URL, time) once signed.

## Path & query parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `interviewId` | query | string |  |  |
| `api-version` | header | string | yes | Default: `1.0` |

## Responses

### 200

OK

Response body (`application/json`):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `documents` | array[DocumentSignatureDocumentDto] |  |  |
| `documents.documentId` | string |  |  |
| `documents.order` | integer (int32) |  | 1-based position in which the documents are shown |
| `documents.name` | string |  |  |
| `documents.format` | string |  | Enum: `PDF`, `MARKDOWN` |
| `documents.sha256` | string |  | Lowercase hex SHA-256 of the original bytes, also printed on the signature page |
| `documents.sizeBytes` | integer (int64) |  |  |
| `documents.signedAt` | integer (int64) |  | Epoch millis of the signature, null until signed |
| `documents.signatureId` | string |  | Shared by every document signed in the same call |
| `documents.content` | string |  | Markdown text, only for MARKDOWN documents |
| `documents.url` | string |  | Presigned URL of the original, valid one hour |
| `documents.signedUrl` | string |  | Presigned URL of the signed PDF: original plus signature page for PDF, the signature page alone for MARKDOWN. Null until signed. |
| `signature` | DocumentSignatureSignatureDto |  |  |
| `signature.signatureId` | string |  |  |
| `signature.signedAt` | integer (int64) |  |  |
| `signature.signatureType` | string |  | DRAWN or TYPED Enum: `DRAWN`, `TYPED` |
| `signature.typedName` | string |  | Name the user typed; null for a drawn signature |
| `signature.signatureImageUrl` | string |  | Presigned URL of the drawn signature image, valid one hour; null for a typed signature |

## Code samples

Generated from this endpoint's method, path, and the conventional Incode headers. The base URL is the Incode demo environment; replace `<YOUR_API_KEY>` with a key for your region.

### cURL

```bash
curl -X GET https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "X-Incode-Hardware-Id: <YOUR_INCODE_HARDWARE_ID>" \
  -H "api-version: 1.0"
```

### Node

```js
const res = await fetch("https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E", {
  method: "GET",
  headers: {
      "x-api-key": "<YOUR_API_KEY>",
      "X-Incode-Hardware-Id": "<YOUR_INCODE_HARDWARE_ID>",
      "api-version": "1.0",
  },
});
const data = await res.json();
```

### Python

```python
import requests

headers = {
    "x-api-key": "<YOUR_API_KEY>",
    "X-Incode-Hardware-Id": "<YOUR_INCODE_HARDWARE_ID>",
    "api-version": "1.0",
}
res = requests.get("https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E", headers=headers)
data = res.json()
```

### Java

```java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E"))
    .header("x-api-key", "<YOUR_API_KEY>")
    .header("X-Incode-Hardware-Id", "<YOUR_INCODE_HARDWARE_ID>")
    .header("api-version", "1.0")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse<String> res = HttpClient.newHttpClient()
    .send(req, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```
require "net/http"
require "json"

uri = URI("https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E")
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "<YOUR_API_KEY>"
req["X-Incode-Hardware-Id"] = "<YOUR_INCODE_HARDWARE_ID>"
req["api-version"] = "1.0"

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)
```

### PHP

```
$ch = curl_init("https://demo-api.incodesmile.com/omni/document-signature/documents?interviewId=%3CinterviewId%3E");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "x-api-key: <YOUR_API_KEY>",
    "X-Incode-Hardware-Id: <YOUR_INCODE_HARDWARE_ID>",
    "api-version: 1.0",
]);

$data = json_decode(curl_exec($ch), true);
curl_close($ch);
```

### Example response

```json
{
  "documents": [
    {
      "documentId": "string",
      "order": 0,
      "name": "string",
      "format": "PDF",
      "sha256": "string",
      "sizeBytes": 0,
      "signedAt": 0,
      "signatureId": "string",
      "content": "string",
      "url": "string",
      "signedUrl": "string"
    }
  ],
  "signature": {
    "signatureId": "string",
    "signedAt": 0,
    "signatureType": "DRAWN",
    "typedName": "string",
    "signatureImageUrl": "string"
  }
}
```
