# List custom object records by query

> Returns a paginated list of custom object records that match a query expression.

POST

/custom-objects/{custom\_object\_api\_name}/records/query/

Returns a paginated list of custom object records that match a query expression.

#### Helpful resources

-   [Create and manage custom objects](https://developer.rippling.com/documentation/rest-api/guides/customobjects)
-   [Get started with custom objects](https://developer.rippling.com/documentation/rippling-platform/custom-objects/getting-started)
-   [Guide to data modeling with custom objects](https://help.rippling.com/article?articleId=919163979688)

### Required Scopes

-   custom-object-records.read
    
-   custom-object-records.read-write
    
-   custom-objects.read-write.owner
    

### Request

Path Parameters

**custom\_object\_api\_name** string required

The API name of the custom object.

-   application/json

**Body**

**search** string

Search record names or owners. Name search uses token/prefix matching, not arbitrary substring matching. Native exact record ID and external ID matching is also retained. ANDed with query before pagination. Whitespace is trimmed; omitting search or sending a blank string disables it. Some older Custom Objects do not support search and return HTTP 400; omit search to use filters. Owner matching uses a bounded worker search, so broad terms may not include every matching owner. Use an owner\_role query filter for an exact owner. Without order\_by, native search order applies. Repeat search, query, and order\_by unchanged when following a cursor.

**order\_by** string nullable

Order results by one readable field API name followed by optional asc (ascending) or desc (descending). Direction defaults to asc; multiple fields and nested paths are not supported. For example: name desc. Overrides search relevance order. Reference fields use the same ordering as the Custom Object grid. A record ID tie-breaker makes the order deterministic; traversal is not a snapshot of concurrently changing records. Omit order\_by to retain the existing default order. Reset cursor when criteria change. Explicit null clears saved sorting only when view\_api\_name is supplied.

**query** string

An optional RQL expression that filters custom object records. For example: owner\_role = "role-id" AND status\_\_c IN \["FINAL", "APPROVED"\].

**limit** integer

The maximum number of results to return.

**cursor** string

A cursor for pagination to fetch the next page of results.

## Responses

-   200
-   400
-   401
-   403
-   404

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**results** object\[\]

Array \[

**id** string required

Identifier field

**created\_at** string required

Record creation date

**updated\_at** string required

Record update date

**name** string required

The name of the custom object datarow

**external\_id** string

The external id of the custom object datarow

**created\_by** object

**id** string

The unique identifier of the role.

**display\_value** string

The display name of the role.

**image** string

The URL of the role's profile image.

**last\_modified\_by** object

**id** string

The unique identifier of the role.

**display\_value** string

The display name of the role.

**image** string

The URL of the role's profile image.

**owner\_role** object

**id** string

The unique identifier of the role.

**display\_value** string

The display name of the role.

**image** string

The URL of the role's profile image.

**system\_updated\_at** string

The timestamp when the record was last updated by the system.

**property name\*** object

\]

**cursor** string

```json
{
  "results": [
    {
      "id": "string",
      "created_at": "string",
      "updated_at": "string",
      "name": "string",
      "external_id": "string",
      "created_by": {
        "id": "string",
        "display_value": "string",
        "image": "string"
      },
      "last_modified_by": {
        "id": "string",
        "display_value": "string",
        "image": "string"
      },
      "owner_role": {
        "id": "string",
        "display_value": "string",
        "image": "string"
      },
      "system_updated_at": "string"
    }
  ],
  "cursor": "string"
}
```

Invalid query, search, order\_by, limit, or cursor; unsupported sort input; or search is unavailable for this Custom Object. Correct the input before retrying. When search is unavailable, omit search and use query filters. For sort input, use order\_by with one readable field API name and optional asc or desc; multiple ordering fields are unsupported.

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

-   Matches one or more of these formats:
    
    1.  **Format 1**
        
        **ok** boolean required
        
        Whether the request succeeded. Always false for an authentication error.
        
        **Possible values:** \[false\]
        
        **error** string required
        
        A human-readable explanation of why authentication failed.
        
    2.  **Format 2**
        
        **detail** string required
        
        A human-readable explanation of the authentication error.
        

**Format 1**

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

**Format 2**

```json
{
  "detail": "string"
}
```

The token lacks an accepted Custom Object record scope, access to this object, or the required record permissions. Request the applicable scope and object access before retrying. Saved view\_api\_name selection additionally requires Internal\_Testing, matching saved-view discovery.

The Custom Object does not exist or is inaccessible to this caller. Select an accessible object before retrying. When view\_api\_name is supplied, the saved view may not exist, may be inaccessible to this caller, or may belong to another Custom Object or company. Select an accessible view for this object before retrying.

Source: https://developer.rippling.com/documentation/rest-api/reference/list-by-query-custom-objects-custom-object-api-name-records

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
