---
title: "List of worker relations"
method: GET
path: "/hris/worker_relations/profile/{hrisProfileOid}"
tags: ["workerRelations"]
---

# List of worker relations

`GET /hris/worker_relations/profile/{hrisProfileOid}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/hris/worker_relations/profile/{hrisProfileOid}`
- Auth: HTTP bearer

Returns all worker relations associated with the HrisProfile, including both parent and child relationships.

 **Token scopes**: `profile:read`

## Path parameters

- `hrisProfileOid` string, uuid, required

## Response `200`

Successful operation

- WorkerRelationsGetWorkerRelationProfileResponse200
  - `data` HrisWorkerRelationsProfileHrisProfileOidGetResponsesContentApplicationJsonSchemaDataItems[]: An array containing the Worker Relations of the profile. It includes either the parent or child relations.
    - `id` string, uuid: The ID of the relation type
    - `name` string: The name of the relation type
    - `is_parent` boolean: Whether this relation is the parent or not
    - `is_default` boolean: Whether this relation is default or not
    - `child_relationships` HrisWorkerRelationsProfileHrisProfileOidGetResponsesContentApplicationJsonSchemaDataItemsChildRelationshipsItems[]: An array containing the information about the child profiles in the relation.
      - `last_name` string: The last name of the child profile
      - `first_name` string: The first name of the child profile
      - `profile_id` string, uuid: The ID of the child profile
      - `relation_id` string, uuid: The ID of the relation between the profiles
    - `parent_relationship` HrisWorkerRelationsProfileHrisProfileOidGetResponsesContentApplicationJsonSchemaDataItemsParentRelationship, nullable: An object that has information about the parent profile in the relation.
      - `last_name` string: The last name of the parent profile
      - `first_name` string: The first name of the parent profile
      - `profile_id` string, uuid: The ID of the parent profile
      - `relation_id` string, uuid: The ID of the relation between the profiles

## Other responses

- `400`: Operation failed.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
