---
title: "Retrieves a next of kin entry for the candidate"
method: GET
path: "/candidate/{candidate_id}/next-of-kin/{next_of_kin_id}"
tags: ["Candidate Next Of Kin"]
---

# Retrieves a next of kin entry for the candidate

`GET /candidate/{candidate_id}/next-of-kin/{next_of_kin_id}`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/candidate/{candidate_id}/next-of-kin/{next_of_kin_id}`
- Auth: HTTP basic

## Response `200`

Candidate next of kin details for id will be returned

- NextOfKinResponseDef: next of kin details
  - `relationship` string, required
  - `name` string, required
  - `contact_number` string, required
  - `comment` string
  - `address` object: The next of kin address schema
    - `type` 'physical_address' | 'postal_address' | 'alternative_address', required
    - `address_line1` string, required
    - `address_line2` string
    - `city` string
    - `province` string
    - `country_code` string, required
    - `post_code` string, required
    - `co_ords` CoOrds: The geo-location information, co-ordinates
      - `longitude` number
      - `latitude` number
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `candidate_id` string, required

## Other responses

- `400`: Validation errors caused by missing or invalid header / path or payloads
- `401`: Failed to authenticate the user making the request
- `404`: Resource not found
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
