> This page is for API, version 2026-01-01 (Stable) (default).
> For other versions, use one of these documentation indexes:
> - 2026-01-01 (Stable) (default): https://developer.deel.com/api/stable/llms.txt
> - Beta: https://developer.deel.com/api/beta/llms.txt
> - Deprecated: https://developer.deel.com/api/deprecated/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.deel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.deel.com/_mcp/server.

# List worker documents

GET https://api.letsdeel.com/rest/immigration/workers/{worker_id}/documents

Retrieves the current right to work document and the latest identity document of a worker, with their status, dates and download links. A worker token only sees its own documents. Use it to check whether a worker can work and when their documents expire. It is not tied to a case: when the worker has several cases, it returns the most recently added documents. The identity document has no id when its verification has no stored document, so it cannot be read with Get document.

 **Token scopes**: `immigration:read`, `worker:read`

 **Beta**: this version requires the `X-Beta: true` request header and its contract may change before it is promoted to stable. It is scheduled to become stable on 2027-03-02.

Reference: https://developer.deel.com/api/reference/endpoints/immigration/get-immigration-workers-by-worker-id-documents-v-2026-11-30

## Authentication

- `Authorization` header (bearer token, required) — ## Authentication The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail. ```curl curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` [Learn more about authentication](/api/authentication)
- `Authorization` header (bearer token, required) — Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

## Servers

- `https://api.letsdeel.com/rest` (Production, default)
- `https://api-staging.letsdeel.com/rest` (Demo)

## Request

### Path parameters

- `worker_id` (string, required) — The unique identifier of the worker.

### Headers

- `X-Beta` (enum, required, default: true) — Opts in to the beta version of this endpoint. Must be `true`.
  - Allowed values: `true`

## Response

### 200

Successful response with the documents of the worker.

- `data` (ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaData, required)

## Errors

### 400 Bad Request Error

Operation failed.

- `errors` (list of ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaErrorsItems, optional)

### 401 Unauthorized Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 403 Forbidden Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 404 Not Found Error

Operation failed.

- `request` (ApiErrorRequest, optional)
- `errors` (list of ApiError, optional)

### 500 Internal Server Error

Operation failed.

- `errors` (list of ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaErrorsItems, optional)

## Types

### ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaData

- `documents` (list of ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaDataDocumentsItems, required) — The right to work document and the identity document of the worker, when they exist.

### ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaErrorsItems

- `code` (string, optional) — The error code.
- `message` (string, optional) — Human-readable explanation of the error.

### ApiErrorRequest

- `method` (string, optional) — The HTTP method of the failed request
- `url` (string, optional) — The relative URL of the failed request
- `status` (double, optional) — The status code of the response
- `api_req_id` (string, optional) — The request ID of the failed request
- `docs` (string, optional) — A link to the official documentation for the requested endpoint resource
- `source` (string, optional) — The source handler which produced the returned error
- `code` (double, optional) — The code of the source handler which produced the returned error

### ApiError

- `message` (string, optional) — A description of the returned error
- `path` (string, optional) — The JSON path where input validation failed

### ImmigrationWorkersWorkerIdDocumentsGetResponsesContentApplicationJsonSchemaDataDocumentsItems

- `category`: `RIGHT_TO_WORK` (RIGHT_TO_WORK)
  - `country` (string, required, nullable) — The ISO 3166-1 alpha-2 code of the issuing country.
  - `document_type_name` (string, required, nullable) — Name of the visa, permit or ID the document grants, as Deel recorded it at approval. Null while in review, or when Deel recorded none.
  - `download_link` (list of string, required) — Short-lived download links to the files of the document.
  - `expiration_date` (string, required, nullable) — The date the document expires.
  - `has_expiration` (boolean, required) — Whether the document expires.
  - `id` (string, required) — The unique identifier of the document.
  - `issue_date` (string, required, nullable) — The date the document was issued.
  - `name` (string, required, nullable) — The name of the document.
  - `status` (enum, required) — Whether the document is active, expiring soon or expired.
    - Allowed values: `ACTIVE`, `EXPIRING`, `EXPIRED`
  - `type` (enum, required, nullable) — The kind of right to work document.
    - Allowed values: `WORK_PERMIT`, `RESIDENT_PERMIT`, `NATIONAL_ID`
- `category`: `IDENTITY` (IDENTITY)
  - `country` (string, required, nullable) — The ISO 3166-1 alpha-2 code of the issuing country.
  - `download_link` (list of string, required) — Short-lived download links to the files of the document.
  - `expiration_date` (string, required, nullable) — The date the document expires.
  - `issue_date` (string, required, nullable) — The date the document was issued.
  - `name` (string, required, nullable) — The name of the document.
  - `status` (enum, required) — Whether the document is active, expiring soon or expired.
    - Allowed values: `ACTIVE`, `EXPIRING`, `EXPIRED`
  - `type` (enum, required, nullable) — The kind of identity document.
    - Allowed values: `PASSPORT`, `ID_CARD`, `DRIVERS_LICENSE`, `RESIDENCE_PERMIT`, `VISA`, `OTHER`
  - `id` (string, optional) — The unique identifier of the document, to use with Get document. Omitted when the identity verification has no stored document, which then cannot be read with Get document.

## Examples

**Response**

```json
{
  "data": {
    "documents": [
      {
        "category": "RIGHT_TO_WORK",
        "country": "GB",
        "document_type_name": "Skilled Worker visa",
        "download_link": [
          "https://files.example.com/work-permit.pdf"
        ],
        "expiration_date": "2027-12-31",
        "has_expiration": true,
        "id": "8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e",
        "issue_date": "2025-01-15",
        "name": "Work permit",
        "status": "ACTIVE",
        "type": "WORK_PERMIT"
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents"

headers = {
    "X-Beta": "true",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents';
const options = {method: 'GET', headers: {'X-Beta': 'true', Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-Beta", "true")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Beta"] = 'true'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents")
  .header("X-Beta", "true")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Beta' => 'true',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Beta", "true");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Beta": "true",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.letsdeel.com/rest/immigration/workers/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b/documents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```