> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# List objects of a definition in a space

GET https://api.cloudraker.com/spaces/{spaceId}/objects/{definitionId}

Lists the objects (records) of a definition within a space. Authorization: requires `space:read` on `:spaceId` — a caller who lacks it gets **404** (leak-guard, not 403). Query params: `filter` — a JSON array of filter entries (`{ fieldKey, subField?, operand, value }`, 14 operands); `sort` — a JSON array of sort entries (`{ fieldKey, direction: asc|desc }`); `view` — a saved-view id whose stored filters/sorts are applied instead, **mutually exclusive with `filter`/`sort`** (400 `invalid_request`); `limit` (1–200, default 50) and `offset` (default 0) for pagination. Default sort is `createdAt` desc. Unknown/archived field or a `$`-injection in filter/sort → 422; an unknown/wrong-scope `view` → 404 `view_not_found`. Returns `{ objects, nextOffset }` — `nextOffset` is the offset of the next page or `null` when exhausted; each object carries inline `data`, `fieldMeta`, (when AI-imported) `provenance`/`review`, and (when produced by an action run) an `origin` `{ actionRunId?, playbookRunId? }`.

Reference: https://docs.cloudraker.com/workspace/api/data-objects/list-objects

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Path parameters

- `spaceId` (string, required)
- `definitionId` (string, required)

### Query parameters

- `filter` (string, optional) — Ad-hoc filter: a JSON array of `{ fieldKey, subField?, operand, value }` entries.
- `sort` (string, optional) — Ad-hoc sort: a JSON array of `{ fieldKey, direction }` entries.
- `view` (string, optional) — A saved-view id whose stored filters and sorts are applied instead. Mutually exclusive with `filter` and `sort`.
- `limit` (integer, optional, default: 50) — Page size, 1–200.
- `offset` (integer, optional, default: 0) — Row offset.

## Response

### 200

A page of objects.

- `objects` (list of object, required)
  - `_id` (string, required)
  - `spaceId` (string, required)
  - `definitionId` (string, required)
  - `definitionVersion` (double, required)
  - `data` (map from string to any, required) — Field values keyed by field key.
  - `fieldMeta` (map from string to object, required)
    - `modifiedBy` (string, required)
    - `modifiedAt` (datetime, required)
    - `source` (string, optional)
    - `locked` (boolean, optional) — A locked field refuses writes with 409.
  - `createdAt` (datetime, required)
  - `updatedAt` (datetime, required)
  - `createdBy` (string, required)
  - `updatedBy` (string, required)
  - `deletedAt` (datetime, required, nullable)
  - `provenance` (map from string to list of map from string to any, optional) — Per-field grounding: field key → citation pointers, imported verbatim from the extraction feed.
  - `review` (map from string to object, optional) — Per-field review state. An approved or rejected field is locked against edits.
    - `status` (enum, required)
      - Allowed values: `pending`, `approved`, `rejected`
    - `by` (string, required)
    - `at` (datetime, required)
    - `note` (string, optional)
  - `origin` (object, optional) — Set on create, never patchable.
    - `actionRunId` (string, optional)
    - `playbookRunId` (string, optional) — Set only when a playbook dispatched the run; callers cannot claim it.
- `nextOffset` (double, required, nullable) — Offset of the next page, or null when the list is exhausted.

## Examples

**Response**

```json
{
  "objects": [
    {
      "_id": "string",
      "spaceId": "string",
      "definitionId": "string",
      "definitionVersion": 1.1,
      "data": {},
      "fieldMeta": {},
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z",
      "createdBy": "string",
      "updatedBy": "string",
      "deletedAt": "2024-01-15T09:30:00Z",
      "provenance": {},
      "review": {},
      "origin": {
        "actionRunId": "string",
        "playbookRunId": "string"
      }
    }
  ],
  "nextOffset": 1.1
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/spaces/spaceId/objects/definitionId"

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

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

print(response.json())
```

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/spaces/spaceId/objects/definitionId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/spaces/spaceId/objects/definitionId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/spaces/spaceId/objects/definitionId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/spaces/spaceId/objects/definitionId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/spaces/spaceId/objects/definitionId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/spaces/spaceId/objects/definitionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```