> This page is for version API + Legacy Full.
> For other versions, use one of these documentation indexes:
> - API (default): https://docs.getthera.com/api/llms.txt
> - API + Legacy Read: https://docs.getthera.com/api-legacy-read/llms.txt
> - API + Legacy Full: https://docs.getthera.com/api-legacy-full/llms.txt

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

# Get Contractor Pro for Employee

GET https://api.getthera.com/companies/{companyId}/contractor-pro/{employeeUserId}

One contractor's Contractor Pro record, including whether it is currently active. Returns 404 if the contractor has never been given Contractor Pro.

Reference: https://docs.getthera.com/thera-api/workers/contractor-pro/get-contractor-pro-for-employee

## Authentication

- `X-Thera-API-Key` header (required) — API Key authentication via header

## Servers

- `https://api.getthera.com` (Production, default)
- `https://api.staging.getthera.com` (Staging)

## Request

### Path parameters

- `companyId` (string, required)
- `employeeUserId` (string, required)

## Response

### 200

- `employeeUserId` (string, required) — The contractor's user ID
- `companyId` (string, required) — The company ID
- `isActive` (boolean, required) — Whether Pro is currently active
- `employeeName` (string, optional) — The contractor's full name
- `createdAt` (string, optional) — When Pro was activated. Null when Pro is cancelled.
- `createdByUserId` (string, optional) — Admin who activated Pro. Null when Pro is cancelled.
- `lastBilledDate` (string, optional) — The last date this Pro subscription was billed. Format: YYYY-MM-DD
- `pastCancellations` (list of ContractorProCancellation, optional) — History of cancellations for audit

## Types

### ContractorProCancellation

Record of a Pro insurance cancellation event for audit trail

- `cancelledAt` (datetime, required) — When Pro was cancelled
- `cancelledByUserId` (string, required) — Who cancelled it (user ID or 'SYSTEM' for auto-cancellation)
- `reason` (string, required) — Why it was cancelled (e.g., 'No active contracts', 'Manual cancellation by admin')

## Examples

**Response**

```json
{
  "employeeUserId": "employeeUserId",
  "companyId": "companyId",
  "isActive": true,
  "employeeName": "employeeName",
  "createdAt": "createdAt",
  "createdByUserId": "createdByUserId",
  "lastBilledDate": "lastBilledDate",
  "pastCancellations": [
    {
      "cancelledAt": "2024-01-15T09:30:00Z",
      "cancelledByUserId": "cancelledByUserId",
      "reason": "reason"
    },
    {
      "cancelledAt": "2024-01-15T09:30:00Z",
      "cancelledByUserId": "cancelledByUserId",
      "reason": "reason"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.getthera.com/companies/companyId/contractor-pro/employeeUserId"

headers = {"X-Thera-API-Key": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.getthera.com/companies/companyId/contractor-pro/employeeUserId';
const options = {method: 'GET', headers: {'X-Thera-API-Key': '<apiKey>'}};

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.getthera.com/companies/companyId/contractor-pro/employeeUserId"

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

	req.Header.Add("X-Thera-API-Key", "<apiKey>")

	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.getthera.com/companies/companyId/contractor-pro/employeeUserId")

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

request = Net::HTTP::Get.new(url)
request["X-Thera-API-Key"] = '<apiKey>'

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.getthera.com/companies/companyId/contractor-pro/employeeUserId")
  .header("X-Thera-API-Key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.getthera.com/companies/companyId/contractor-pro/employeeUserId', [
  'headers' => [
    'X-Thera-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.getthera.com/companies/companyId/contractor-pro/employeeUserId");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Thera-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-Thera-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.getthera.com/companies/companyId/contractor-pro/employeeUserId")! 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()
```