Get active contract
Scope: team:employees.read https://api.alladdin.com/api/v2/employees/{employeeId}/contract
Returns all fields of the employee's active contract. Use this as the first step before updating a contract field: fetch the current data here, then send ALL fields back to the PUT endpoint modifying only what you want to change. Field names in this response match exactly the field names expected by the PUT endpoint.
Parameters
Path parameters
employeeId string required
Employee ID
Request
import requests
url = "https://api.alladdin.com/api/v2/employees/{employeeId}/contract"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{}Success responses
200 Active contract data application/json object
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Employee or active contract not found application/json 429 Rate limit exceeded application/json
