---
title: "List data-object definitions"
---

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

# List data-object definitions

Path: CloudRaker Workspace API › Data Objects

`GET /objects/definitions`

Lists the org-level data-object definitions (the schemas that objects conform to: fields, types, groups, labels). Authorization: any authenticated org member (no role gate). Query: `archived` — pass `true` to include soft-archived definitions; omitted or `false` returns only active ones. Returns `{ definitions: [...] }`; each definition carries `_id`, `nameSingular`/`namePlural`, labels, `fields[]`, `fieldGroups[]`, and `version`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `archived` (`listObjectDefinitions.query.archived`; string, optional) — Pass `true` to include soft-archived definitions. Omitted or `false` returns only active ones.
  - one of `"true"`, `"false"`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/objects/definitions \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/objects/definitions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

### Python

```python
import requests

url = "https://api.cloudraker.com/objects/definitions"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

The definitions.

#### Example

```json
{
  "definitions": [
    {
      "_id": "def_contract",
      "nameSingular": "contract",
      "namePlural": "contracts",
      "labelSingular": "Contract",
      "labelPlural": "Contracts",
      "description": "string",
      "icon": "string",
      "color": "string",
      "labelFieldKey": "string",
      "fields": [
        {
          "property1": null,
          "property2": null
        }
      ],
      "fieldGroups": [
        {
          "property1": null,
          "property2": null
        }
      ],
      "version": 0,
      "archivedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string"
    }
  ]
}
```

- `definitions` (`listObjectDefinitions.response.200.definitions`; array<object>, required)
  - `_id` (`listObjectDefinitions.response.200.definitions._id`; string, required)
    - example `"def_contract"`
  - `nameSingular` (`listObjectDefinitions.response.200.definitions.nameSingular`; string, required)
    - example `"contract"`
  - `namePlural` (`listObjectDefinitions.response.200.definitions.namePlural`; string, required)
    - example `"contracts"`
  - `labelSingular` (`listObjectDefinitions.response.200.definitions.labelSingular`; string, required)
    - example `"Contract"`
  - `labelPlural` (`listObjectDefinitions.response.200.definitions.labelPlural`; string, required)
    - example `"Contracts"`
  - `description` (`listObjectDefinitions.response.200.definitions.description`; string, required)
  - `icon` (`listObjectDefinitions.response.200.definitions.icon`; string, required)
  - `color` (`listObjectDefinitions.response.200.definitions.color`; string | null, required)
  - `labelFieldKey` (`listObjectDefinitions.response.200.definitions.labelFieldKey`; string, required) — Field key whose value is the object’s display label.
  - `fields` (`listObjectDefinitions.response.200.definitions.fields`; array<map<unknown>>, required) — The type-discriminated field model (13 field types plus composites). Emitted permissively so the resource stays navigable.
  - `fieldGroups` (`listObjectDefinitions.response.200.definitions.fieldGroups`; array<map<unknown>>, required)
  - `version` (`listObjectDefinitions.response.200.definitions.version`; number, required) — Bumps only on a schema-affecting change.
  - `archivedAt` (`listObjectDefinitions.response.200.definitions.archivedAt`; any of, required)
    - any of: `string`, `null`
  - `createdAt` (`listObjectDefinitions.response.200.definitions.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`listObjectDefinitions.response.200.definitions.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdBy` (`listObjectDefinitions.response.200.definitions.createdBy`; string, required)


Source: https://docs.cloudraker.com/workspace/api/data-objects/list-object-definitions/index.md
