> 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

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

# Get Profiles Assigned to Policy

GET https://api.letsdeel.com/rest/time-offs/policy/{policy_id}/assignments

Use this after resolving a policy_id via Get All Policies to see which workers are covered by a specific time-off policy — for example, to verify coverage before running payroll, audit compliance, or reconcile assignments following a policy change. Paginate through large populations with page_size and the next cursor.

 **Token scopes**: `time-off:read`

Reference: https://developer.deel.com/api/reference/endpoints/time-off/get-profiles-assigned-to-policy-v-2026-09-09

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

- `policy_id` (string, required) — Policy UID, as returned by the Get Policies for Organization endpoint

### Query parameters

- `page_size` (integer, optional) — Items per page (max 100)
- `next` (string, optional) — Pagination cursor

## Response

### 200

Paginated list of profiles assigned to the policy.

- `data` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaDataItems, required) — Profiles currently assigned to the policy
- `has_next_page` (boolean, required) — Indicates if there are more results available beyond the current page
- `next` (string, optional, nullable) — Opaque cursor to fetch the next page of results. Null when there are no more results

## Errors

### 400 Bad Request Error

Bad request (invalid policy ID format or page_size).

- `errors` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required)

### 401 Unauthorized Error

Unauthorized (missing or invalid token).

- `errors` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required)

### 403 Forbidden Error

Forbidden (insufficient permissions).

- `errors` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required)

### 404 Not Found Error

Not found (policy not found for this organization).

- `errors` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required)

### 500 Internal Server Error

Server error.

- `errors` (list of TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems, required)

## Types

### TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaDataItems

- `name` (string, required) — Full name of the assigned worker
- `email` (string, required) — Personal email address of the assigned worker
- `country` (string, required, nullable) — ISO 3166-1 alpha-2 country code of the assigned worker's employment. Null if not set
- `worker_type` (enum, required) — Type of worker relationship the assigned profile has with the organization
  - Allowed values: `milestones_contractor`, `payg_contractor`, `time_based_contractor`, `eor`, `direct_employee`, `hris_direct_employee`, `peo`, `hris_placeholder`, `hris_direct_contractor`
- `hris_profile_id` (string, required, nullable) — HRIS profile UID of the assigned worker. Null if the assigned profile has no linked HRIS profile
- `state` (string, optional, nullable) — State or region code of the assigned worker's employment, if applicable
- `work_email` (string, optional, nullable) — Work email address of the assigned worker, if set

### TimeOffsPolicyPolicyIdAssignmentsGetResponsesContentApplicationJsonSchemaErrorsItems

- `code` (string, required)
- `message` (string, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "country": "US",
      "worker_type": "hris_direct_employee",
      "hris_profile_id": "f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b",
      "state": "CA",
      "work_email": "jane.doe@company.com"
    }
  ],
  "has_next_page": true,
  "next": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.letsdeel.com/rest/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments"

querystring = {"next":"eyJpZCI6IjEyMyJ9","page_size":"20"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript
const url = 'https://api.letsdeel.com/rest/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20';
const options = {method: 'GET', headers: {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/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20"

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

	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/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20")

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

request = Net::HTTP::Get.new(url)
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/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20")
  .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/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.letsdeel.com/rest/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.letsdeel.com/rest/time-offs/policy/f7b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b/assignments?next=eyJpZCI6IjEyMyJ9&page_size=20")! 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()
```