Source: https://atomicwork-preview.docs-staging.pageloop.ai/api-reference/customobjects/getapi-v-1-custom-objects-by-id-id-relationships

# Get only the relationship fields of a custom object

GET `https://{tenant}.atomicwork.com/api/v1/custom-objects/by-id/{id}/relationships`

Returns the same `CustomObjectDetailsDto` shape as `getCustomObject`, but
`customData` is restricted to relationship reference keys only — scalar,
dropdown, date, and other non-relationship fields are omitted. Each
`objectType.sections[*].fieldIds` list is filtered to retain only the
field IDs that correspond to relationship field definitions; empty
sections are preserved so the UI gets a stable section layout.

Useful when a caller needs to display a CO's links to other entities
without paying the cost of resolving the full custom\_data payload.

## Authorization

#### X-Api-Key (header, string, required)

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### id (path, integer, required)

Workspace ID (numeric). Find yours under Settings → Workspace.

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X GET 'https://{tenant}.atomicwork.com/api/v1/custom-objects/by-id/{id}/relationships' \
  -H 'X-Api-Key: <api-key>'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/custom-objects/by-id/{id}/relationships', {
  method: 'GET',
  headers: {
    'X-Api-Key': '<api-key>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.get(
    'https://{tenant}.atomicwork.com/api/v1/custom-objects/by-id/{id}/relationships',
    headers={'X-Api-Key': '<api-key>'}
)
data = res.json()
```
