Skip to content

Retrieve a spousal profile

Retrieve a user's spousal profile information.

This endpoint retrieves the latest version of the spousal profile for a specific user. It includes sensitive personal data.

Endpoint

MethodUrl
GET/v1.0/users/:user_id/spousal-profile

Path Parameters

user_id
string
required

The unique identifier of the user whose spousal profile is being retrieved.

Sample Request

Copied
1curl -X GET 'https://api.worklayer.com/v1.0/users/3b31f309-93ad-463a-ad1d-c39cac1c0a3d/spousal-profile' \
2-H 'Authorization: Bearer {token}'

Sample Response

Copied
1{
2 "id": "3b31f309-93ad-463a-ad1d-c39cac1c0a3d",
3 "version": 1,
4 "owner_user_id": "550e8400-e29b-41d4-a716-446655440000",
5 "create_time": "2024-01-01T00:00:00Z",
6 "update_time": "2024-01-01T00:00:00Z",
7 "occupation": "Teacher",
8 "personal_info": {
9 "first_name": "Jane",
10 "middle_initial": "M",
11 "last_name": "Doe",
12 "date_of_birth": "01/01/1991",
13 "personal_taxpayer_identification_number": "XXX-XX-6789"
14 }
15}

Errors

  • 404: the user does not yet have a spousal profile
  • 403: you're not allowed to retrieve the profile
Last updated on December 9, 2024