---
title: "Get by Master ID"
description: "Get all entities linked to a specific Master ID"
---

> Documentation Index
> Fetch the complete documentation index at: https://staging.caretlegal.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Application Connector Framework (ACF) API › Entity Mappings

`GET /{masterId}`

Get all entities linked to a specific Master ID

## Authentication

- `ApiKeyAuth`, apiKey, in header, header `x-acf-api-key`

## Path parameters

- `masterId` (`getByMasterId.path.masterId`; string, required) — Master ID to lookup
  - format `uuid`

## Header parameters

- `x-organization-id` (`getByMasterId.header.x-organization-id`; string, required) — Organization UUID
  - format `uuid`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.caretlegal.net/acf/<masterId>' \
  --header 'x-acf-api-key: <x-acf-api-key>' \
  --header 'x-organization-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08'
```

### TypeScript

```typescript
const url = 'https://api.caretlegal.net/acf/<masterId>';
const options = {
  method: 'GET',
  headers: {
    'x-organization-id': '497f6eca-6276-4993-bfeb-53cbbbba6f08',
    'x-acf-api-key': '<x-acf-api-key>'
  }
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.caretlegal.net/acf/<masterId>"

headers = {
    "x-organization-id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "x-acf-api-key": "<x-acf-api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Linked entities found

#### Example

```json
{
  "success": true,
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "masterId": "773333e0-2d32-466f-b4b2-e6afdbf6dd5e",
      "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
      "connectorName": "stripe",
      "entityName": "customer",
      "entityId": "cus_abc123",
      "connectorEntityHash": "string",
      "senderObjectHash": {
        "property1": "string",
        "property2": "string"
      },
      "connectorEntityDetails": {},
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `success` (`getByMasterId.response.200.success`; boolean, optional)
- `data` (`getByMasterId.response.200.data`; array<object>, optional)
  - `id` (`getByMasterId.response.200.data.id`; string, required) — Internal ACF record ID
    - format `uuid`
  - `masterId` (`getByMasterId.response.200.data.masterId`; string, required) — Master ID linking entities across systems
    - format `uuid`
  - `connectorName` (`getByMasterId.response.200.data.connectorName`; string, required) — External system name (e.g., netsuite, stripe, zendesk)
    - example `"stripe"`
  - `entityName` (`getByMasterId.response.200.data.entityName`; string, required) — Type of entity (e.g., customer, invoice)
    - example `"customer"`
  - `entityId` (`getByMasterId.response.200.data.entityId`; string, required) — External system's ID for this entity
    - example `"cus_abc123"`
  - `organizationId` (`getByMasterId.response.200.data.organizationId`; string, optional) — Organization this record belongs to
    - format `uuid`
  - `connectorEntityHash` (`getByMasterId.response.200.data.connectorEntityHash`; string, optional) — MD5 hash for deduplication
  - `senderObjectHash` (`getByMasterId.response.200.data.senderObjectHash`; map<string>, optional) — Tracks which systems have processed this record
  - `connectorEntityDetails` (`getByMasterId.response.200.data.connectorEntityDetails`; object, optional) — Additional metadata from the connector
  - `createdAt` (`getByMasterId.response.200.data.createdAt`; string, optional)
    - format `date-time`
  - `updatedAt` (`getByMasterId.response.200.data.updatedAt`; string, optional)
    - format `date-time`

### 401

Authentication required

#### Example

```json
{
  "success": false,
  "error": "string"
}
```

- `success` (`getByMasterId.response.401.success`; boolean, optional)
  - example `false`
- `error` (`getByMasterId.response.401.error`; string, optional) — Error message

### 404

Master ID not found

#### Example

```json
{
  "success": false,
  "error": "string"
}
```

- `success` (`getByMasterId.response.404.success`; boolean, optional)
  - example `false`
- `error` (`getByMasterId.response.404.error`; string, optional) — Error message


Source: https://staging.caretlegal.net/docs/reference/acf/Entity-Mappings/getByMasterId/index.md
