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

# Retrieve an EOR hire intent

GET https://api.letsdeel.com/rest/intents/eor-hires/{contract_id}

Read where an EOR hire stands and what comes next, without learning the order of calls yourself. The intent returns the hire’s status, whom it waits on, the next action with its public call, body schema and deel-cli command, what is due now, being verified or due later and by when, and every step. A step with no public endpoint yet is a REDIRECT into the Deel app, or MANUAL with written instructions.

 **Token scopes**: `contracts: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-02-02.

Reference: https://developer.deel.com/api/reference/endpoints/eor/retrieve-eor-hire-intent-v-2026-11-02

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

- `contract_id` (string, required) — Public id of the EOR contract (the client contract returned by POST /rest/eor)

### Headers

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

## Response

### 200

The EOR hire intent

- `data` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaData, required) — The EOR hire intent, in the Deel Intent Standard envelope

## Errors

### 400 Bad Request Error

Invalid contract id (code INVALID_CONTRACT_ID), or an employment country without an intent (code EOR_HIRE_COUNTRY_NOT_SUPPORTED)

- `fix` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaFix, required) — What to do to fix it
- `code` (string, required) — Machine-readable failure code
- `type` (enum, required) — Kind of failure: VALIDATION (the request is wrong), STATE (not allowed for this hire now), CONFLICT, NOT_FOUND, PERMISSION, RATE_LIMIT, UPSTREAM (a Deel service failed, retry) or INTERNAL
  - Allowed values: `VALIDATION`, `STATE`, `CONFLICT`, `NOT_FOUND`, `PERMISSION`, `RATE_LIMIT`, `UPSTREAM`, `INTERNAL`
- `message` (string, required) — Human-readable description

### 401 Unauthorized Error

Operation failed.

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

### 403 Forbidden Error

The token is missing the contracts:read scope (code INSUFFICIENT_SCOPES), or the contract is in your organization but your user cannot view it (code CONTRACT_ACCESS_DENIED)

- `fix` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaFix, required) — What to do to fix it
- `code` (string, required) — Machine-readable failure code
- `type` (enum, required) — Kind of failure: VALIDATION (the request is wrong), STATE (not allowed for this hire now), CONFLICT, NOT_FOUND, PERMISSION, RATE_LIMIT, UPSTREAM (a Deel service failed, retry) or INTERNAL
  - Allowed values: `VALIDATION`, `STATE`, `CONFLICT`, `NOT_FOUND`, `PERMISSION`, `RATE_LIMIT`, `UPSTREAM`, `INTERNAL`
- `message` (string, required) — Human-readable description

### 404 Not Found Error

The contract is not found, is not an EOR contract or is in another organization (code CONTRACT_NOT_FOUND), or the intent is not available to your organization yet

- `fix` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaFix, required) — What to do to fix it
- `code` (string, required) — Machine-readable failure code: CONTRACT_NOT_FOUND, or NOT_FOUND when the intent is not available to the organization
- `type` (enum, required) — Kind of failure: VALIDATION (the request is wrong), STATE (not allowed for this hire now), CONFLICT, NOT_FOUND, PERMISSION, RATE_LIMIT, UPSTREAM (a Deel service failed, retry) or INTERNAL
  - Allowed values: `VALIDATION`, `STATE`, `CONFLICT`, `NOT_FOUND`, `PERMISSION`, `RATE_LIMIT`, `UPSTREAM`, `INTERNAL`
- `message` (string, required) — Human-readable description

### 500 Internal Server Error

Operation failed.

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

### 502 Bad Gateway Error

Deel could not read the hire status (code INTERNAL_ERROR). Retry later.

- `fix` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaFix, required) — What to do to fix it
- `code` (string, required) — Machine-readable failure code
- `type` (enum, required) — Kind of failure: VALIDATION (the request is wrong), STATE (not allowed for this hire now), CONFLICT, NOT_FOUND, PERMISSION, RATE_LIMIT, UPSTREAM (a Deel service failed, retry) or INTERNAL
  - Allowed values: `VALIDATION`, `STATE`, `CONFLICT`, `NOT_FOUND`, `PERMISSION`, `RATE_LIMIT`, `UPSTREAM`, `INTERNAL`
- `message` (string, required) — Human-readable description

## Types

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaData

The EOR hire intent, in the Deel Intent Standard envelope

- `id` (string, required) — The intent’s own id, prefixed int_
- `type` (enum, required) — Intent type
  - Allowed values: `EOR_HIRE`
- `wait` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataWait, required, nullable) — Whom the hire waits on besides you. Null when nobody else holds an open step, or the hire is finished.
- `steps` (list of IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItems, required) — Every step of the hire, in order
- `status` (enum, required) — REQUIRES_ACTION: your client or worker owes something. PROCESSING: only Deel does. SUCCEEDED: the hire is onboarded. CANCELED: rejected or cancelled.
  - Allowed values: `REQUIRES_ACTION`, `PROCESSING`, `SUCCEEDED`, `CANCELED`
- `details` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataDetails, required) — Facts of the EOR hire
- `subject` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataSubject, required) — What the intent is about
- `next_actions` (list of IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItems, required) — The step to do now: the first due step your client or worker owns. Empty when they owe nothing now.
- `requirements` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataRequirements, required) — What is still owed, keyed by step key, in the shape of Stripe Connect requirements

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaFix

What to do to fix it

- `hint` (string, required) — What to change or do
- `action` (string, required, nullable) — Key of the intent action to send again. Null when no action fixes it.

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

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataWait

Whom the hire waits on besides you. Null when nobody else holds an open step, or the hire is finished.

- `on` (list of IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataWaitOnItems, required) — Who must act for the hire to move, client first
- `event` (enum, required) — The webhook event that fires when the hire moves
  - Allowed values: `intent.updated`
- `reason` (enum, required, nullable) — DEEL_REVIEW while Deel owes a step. Null while the hire waits only on the client or the worker.
  - Allowed values: `DEEL_REVIEW`

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItems

One step of the hire. A step this hire does not have is left out.

- `key` (string, required) — Stable step identifier, also used in requirements and next_actions
- `actor` (enum, required) — Who owns the step
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`
- `group` (string, required) — The stage the step belongs to. Steps of one group may run in parallel.
- `label` (string, required) — Human-readable step name
- `action` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsAction, required, nullable) — How the step is done. Null for Deel’s own steps. How a step is done. CALL: make `call`. REDIRECT: no public endpoint yet; `call` returns a one-time link that opens the step in the Deel app for `redirect.opens_for`. MANUAL: no endpoint and no link; a person follows `manual.instructions`.
- `status` (enum, required) — UPCOMING: not due yet. DUE: owed now. IN_REVIEW: handed in and being checked, or Deel’s own open step. DONE. SKIPPED: not needed for this hire. REJECTED: sent back, owed again.
  - Allowed values: `UPCOMING`, `DUE`, `IN_REVIEW`, `DONE`, `SKIPPED`, `REJECTED`
- `deadline` (string, required, nullable) — When EOR expects the step done. Null when EOR sets no deadline for it.
- `completed_at` (string, required, nullable) — When the step was completed. Null until then.
- `parallel_with` (string, required, nullable) — The group that runs alongside this one. Null when the next group waits for this one.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataDetails

Facts of the EOR hire

- `country` (string, required) — Employment country the recipe applies to
- `hire_status` (enum, required) — Coarse position of the hire
  - Allowed values: `QUOTE_PENDING`, `AWAITING_CLIENT_SIGNATURE`, `ONBOARDING`, `AWAITING_COUNTERSIGN`, `COUNTERSIGNED`, `ONBOARDED`, `REJECTED`, `CANCELLED`
- `contract_status` (string, required) — Raw contract status, as the contract endpoints return it

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataSubject

What the intent is about

- `contract_id` (string, required) — The hire’s client contract id

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItems

How a step is done. CALL: make `call`. REDIRECT: no public endpoint yet; `call` returns a one-time link that opens the step in the Deel app for `redirect.opens_for`. MANUAL: no endpoint and no link; a person follows `manual.instructions`.

- `cli` (string, required, nullable) — Equivalent deel-cli command. Null when there is none.
- `key` (string, required) — Step the action completes
- `call` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsCall, required, nullable) — The public call: for CALL, the call that does the step; for REDIRECT, the call that returns the one-time link. Null for MANUAL. The hire’s contract id is filled in; other placeholders such as \{legal\_entity\_id} stay for the caller to fill.
- `type` (enum, required) — CALL, REDIRECT or MANUAL
  - Allowed values: `CALL`, `REDIRECT`, `MANUAL`
- `actor` (enum, required) — Who performs the action
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`
- `description` (string, required) — What to do, in plain words
- `manual` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsManual, optional) — Set when type is MANUAL.
- `redirect` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsRedirect, optional) — Set when type is REDIRECT.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataRequirements

What is still owed, keyed by step key, in the shape of Stripe Connect requirements

- `errors` (list of IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataRequirementsErrorsItems, required) — Rejected items with the reason.
- `currently_due` (list of string, required) — Steps the client or worker owes now
- `eventually_due` (list of string, required) — Steps the client or worker will owe in a later group
- `current_deadline` (string, required, nullable) — The earliest deadline among currently_due. Null when none of them has a deadline.
- `pending_verification` (list of string, required) — Steps handed in and being checked, or Deel’s own open work

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataWaitOnItems

- `name` (string, required, nullable) — Who, by name. Null for now.
- `party` (enum, required) — The party
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`
- `since` (string, required, nullable) — When the wait on this party started. Null for now.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsAction

How the step is done. Null for Deel’s own steps. How a step is done. CALL: make `call`. REDIRECT: no public endpoint yet; `call` returns a one-time link that opens the step in the Deel app for `redirect.opens_for`. MANUAL: no endpoint and no link; a person follows `manual.instructions`.

- `cli` (string, required, nullable) — Equivalent deel-cli command. Null when there is none.
- `key` (string, required) — Step the action completes
- `call` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionCall, required, nullable) — The public call: for CALL, the call that does the step; for REDIRECT, the call that returns the one-time link. Null for MANUAL. The hire’s contract id is filled in; other placeholders such as \{legal\_entity\_id} stay for the caller to fill.
- `type` (enum, required) — CALL, REDIRECT or MANUAL
  - Allowed values: `CALL`, `REDIRECT`, `MANUAL`
- `actor` (enum, required) — Who performs the action
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`
- `description` (string, required) — What to do, in plain words
- `manual` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionManual, optional) — Set when type is MANUAL.
- `redirect` (IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionRedirect, optional) — Set when type is REDIRECT.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsCall

The public call: for CALL, the call that does the step; for REDIRECT, the call that returns the one-time link. Null for MANUAL. The hire’s contract id is filled in; other placeholders such as \{legal\_entity\_id} stay for the caller to fill.

- `auth` (enum, required) — Who the call runs as: the organization (organization token) or the worker (worker token from POST /rest/workers/session, which needs an organization PAT with the admin:worker scope; an OAuth2 token cannot get one)
  - Allowed values: `ORGANIZATION`, `WORKER`
- `path` (string, required) — Path of the call
- `method` (enum, required) — HTTP method
  - Allowed values: `GET`, `POST`, `PUT`, `PATCH`
- `body_schema` (map from string to any, required, nullable) — JSON Schema of the request body. Null for a call without a body, or a body that another Deel API defines.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsManual

Set when type is MANUAL.

- `completion` (enum, required) — OBSERVED: Deel sees the step done on its own. ACKNOWLEDGED: post the action to say it is done.
  - Allowed values: `OBSERVED`, `ACKNOWLEDGED`
- `instructions` (string, required) — What a person does

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataNextActionsItemsRedirect

Set when type is REDIRECT.

- `note` (string, required) — How to get the link and what the person does there
- `opens_for` (enum, required) — Who follows the link
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataRequirementsErrorsItems

- `code` (string, required) — Machine-readable reason
- `reason` (string, required) — Human-readable reason
- `requirement` (string, required, nullable) — Step key.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionCall

The public call: for CALL, the call that does the step; for REDIRECT, the call that returns the one-time link. Null for MANUAL. The hire’s contract id is filled in; other placeholders such as \{legal\_entity\_id} stay for the caller to fill.

- `auth` (enum, required) — Who the call runs as: the organization (organization token) or the worker (worker token from POST /rest/workers/session, which needs an organization PAT with the admin:worker scope; an OAuth2 token cannot get one)
  - Allowed values: `ORGANIZATION`, `WORKER`
- `path` (string, required) — Path of the call
- `method` (enum, required) — HTTP method
  - Allowed values: `GET`, `POST`, `PUT`, `PATCH`
- `body_schema` (map from string to any, required, nullable) — JSON Schema of the request body. Null for a call without a body, or a body that another Deel API defines.

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionManual

Set when type is MANUAL.

- `completion` (enum, required) — OBSERVED: Deel sees the step done on its own. ACKNOWLEDGED: post the action to say it is done.
  - Allowed values: `OBSERVED`, `ACKNOWLEDGED`
- `instructions` (string, required) — What a person does

### IntentsEorHiresContractIdGetResponsesContentApplicationJsonSchemaDataStepsItemsActionRedirect

Set when type is REDIRECT.

- `note` (string, required) — How to get the link and what the person does there
- `opens_for` (enum, required) — Who follows the link
  - Allowed values: `CLIENT`, `WORKER`, `DEEL`

## Examples

**Response**

```json
{
  "data": {
    "id": "int_MzhqODR4Zw",
    "type": "EOR_HIRE",
    "wait": {
      "on": [
        {
          "name": null,
          "party": "DEEL",
          "since": null
        }
      ],
      "event": "intent.updated",
      "reason": "DEEL_REVIEW"
    },
    "steps": [
      {
        "key": "verify_your_identity",
        "actor": "WORKER",
        "group": "worker_onboarding",
        "label": "Worker verifies their identity",
        "action": {
          "cli": "deel contracts sign --contract-id 38j84xg",
          "key": "sign_quote",
          "call": {
            "auth": "ORGANIZATION",
            "path": "/rest/intents/eor-hires/38j84xg/actions/sign-quote",
            "method": "POST",
            "body_schema": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "description": "Request payload",
                  "example": {
                    "client_signature": "Jane Doe"
                  },
                  "properties": {
                    "client_signature": {
                      "description": "Full name the client types to sign the quote",
                      "example": "Jane Doe",
                      "maxLength": 255,
                      "minLength": 2,
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_signature"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "data"
              ],
              "type": "object"
            }
          },
          "type": "CALL",
          "actor": "CLIENT",
          "description": "Sign the EOR agreement for this hire as the client."
        },
        "status": "DUE",
        "deadline": "2026-10-29T00:00:00.000Z",
        "completed_at": "2026-10-01T10:15:30.000Z",
        "parallel_with": "employee_agreement"
      }
    ],
    "status": "REQUIRES_ACTION",
    "details": {
      "country": "DE",
      "hire_status": "ONBOARDING",
      "contract_status": "waiting_for_employee_sign"
    },
    "subject": {
      "contract_id": "38j84xg"
    },
    "next_actions": [
      {
        "cli": "deel contracts sign --contract-id 38j84xg",
        "key": "sign_quote",
        "call": {
          "auth": "ORGANIZATION",
          "path": "/rest/intents/eor-hires/38j84xg/actions/sign-quote",
          "method": "POST",
          "body_schema": {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "description": "Request payload",
                "example": {
                  "client_signature": "Jane Doe"
                },
                "properties": {
                  "client_signature": {
                    "description": "Full name the client types to sign the quote",
                    "example": "Jane Doe",
                    "maxLength": 255,
                    "minLength": 2,
                    "type": "string"
                  }
                },
                "required": [
                  "client_signature"
                ],
                "type": "object"
              }
            },
            "required": [
              "data"
            ],
            "type": "object"
          }
        },
        "type": "CALL",
        "actor": "WORKER",
        "description": "Sign the EOR agreement for this hire as the client.",
        "manual": {
          "completion": "OBSERVED",
          "instructions": "An organization admin accepts Deel’s terms of service in the Deel app."
        },
        "redirect": {
          "note": "The worker finishes the step in the Deel worker app.",
          "opens_for": "WORKER"
        }
      }
    ],
    "requirements": {
      "errors": [],
      "currently_due": [
        "verify_your_identity",
        "pay_deposit"
      ],
      "eventually_due": [
        "sign_employment_agreement"
      ],
      "current_deadline": "2026-10-28T00:00:00.000Z",
      "pending_verification": [
        "payroll_and_compliance_info",
        "deel_review"
      ]
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.letsdeel.com/rest/intents/eor-hires/38j84xg"

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

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

print(response.json())
```

```javascript
const url = 'https://api.letsdeel.com/rest/intents/eor-hires/38j84xg';
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/intents/eor-hires/38j84xg"

	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/intents/eor-hires/38j84xg")

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/intents/eor-hires/38j84xg")
  .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/intents/eor-hires/38j84xg', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Beta' => 'true',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.letsdeel.com/rest/intents/eor-hires/38j84xg");
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/intents/eor-hires/38j84xg")! 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()
```