---
title: "Fetch a single record with optional child records"
method: GET
path: "/api/{objectName}/{recordId}/{childObjectName}"
tags: ["Records Management"]
---

# Fetch a single record with optional child records

`GET /api/{objectName}/{recordId}/{childObjectName}`

## Request

- Base URL: `https://api.reallysimplesystems.com`
- URL: `https://api.reallysimplesystems.com/api/{objectName}/{recordId}/{childObjectName}`
- Auth: HTTP bearer

Retrieves a specific record by its ID. Optionally, fetches related child records for the specified parent record.

## Query parameters

- `limit` integer: The number of child records per page. Defaults to 20.
- `page` integer: The page number to retrieve child records. Defaults to the first page.
- `order` object: A JSON object specifying the fields to order child records by and their direction (`asc` or `desc`). Each key is a field name, and the value is the sort direction. Example: `{"name": "asc", "created_at": "desc"}`. Field names are case-insensitive.
- `q` object: A JSON object specifying filters for child records. Example: `?q={“name”: “Test”}` or `?q={“name”: “Test”, “sector”: “Design”}`.

## Response `200`

Successful response containing the parent record or a paginated list of child records.

- object
  - `data` object
    - `metadata` object
      - `url` string
      - `list_url` string
      - `parent` string, nullable
      - `object_type` string
      - `record_type` string
    - `record` object
      - `id` integer
      - `name` string
      - `created_at` string
      - `updated_at` string
    - `children` object
      - `contacts` object
        - `object_type` string
        - `record_type` string
        - `url` string
        - `total_count` integer
      - `activities` object
        - `object_type` string
        - `record_type` string
        - `url` string
        - `total_count` integer

## Other responses

- `400`: An invalid query parameter or filter format is submitted.
- `404`: The specified parent or child object could not be found.
- `500`: An unexpected error occurred.

---

[API](https://skmtc.dev/reallysimplesystems/apis/crm-api-documentation.md) · [All operations](https://skmtc.dev/reallysimplesystems/apis/crm-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/reallysimplesystems/apis/crm-api-documentation/revisions/eb046f87bd56?raw)
