---
title: "Fetch Worker Relations of a given HrisProfile by external id"
method: GET
path: "/hris/worker_relations/profile/external/{profile_id}"
tags: ["workerRelations"]
---

# Fetch Worker Relations of a given HrisProfile by external id

`GET /hris/worker_relations/profile/external/{profile_id}`

## Request

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

Lists the parent and child worker relations of a profile that is identified by its external id, with external ids included alongside the Deel ids. Use it when your system holds the external id rather than the Deel id; to look the profile up by its Deel id, use GET /hris/worker_relations/profile/{hris_profile_oid} instead, which lists the same relations for a profile addressed by its Deel id.

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

## Path parameters

- `profile_id` string, required

## Response `200`

Successful operation

- WorkerRelationsGetWorkerRelationProfileByExternalIdResponse200
  - `data` HrisWorkerRelationsProfileExternalProfileIdGetResponsesContentApplicationJsonSchemaDataItems[]: 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` HrisWorkerRelationsProfileExternalProfileIdGetResponsesContentApplicationJsonSchemaDataItemsChildRelationshipsItems[]: 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
      - `external_id` string: The external ID of the child profile
      - `relation_id` string, uuid: The ID of the relation between the profiles
    - `parent_relationship` HrisWorkerRelationsProfileExternalProfileIdGetResponsesContentApplicationJsonSchemaDataItemsParentRelationship: 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
      - `profile_external_id` string: The external ID of the parent profile
      - `relation_external_id` string: The external ID of the relation

## Other responses

- `400`: Bad request - The provided profileId parameter is invalid or missing.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Not found - No HRIS profile exists for the provided externalId.
- `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)
