# Get started with the Data API

> Call the Data API to view or manage custom objects, fields, and records.

## Overview

Data APIs contain endpoints to view and manage data in the Rippling data model (also called the employee graph). This data can then be used throughout Rippling to power automations, inform analytics, and define policies.

To bring data from other systems into the Rippling data model, use Pipelines. See [Get started with Pipelines](https://developer.rippling.com/documentation/rippling-platform/pipelines/getting-started).

| API endpoint | Required scopes | Schema | Notes / Requirements |
| --- | --- | --- | --- |
| [GET List custom fields](https://developer.rippling.com/documentation/rest-api/reference/list-custom-fields) | -   `custom-fields.read` | -   `CustomField`<br>-   `RedactedFields` |  |
| [GET List custom objects](https://developer.rippling.com/documentation/rest-api/reference/list-custom-objects) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObject` |  |
| [GET Retrieve a specific custom object](https://developer.rippling.com/documentation/rest-api/reference/get-custom-objects) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObject` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [POST Create a new custom object](https://developer.rippling.com/documentation/rest-api/reference/create-custom-objects) | -   `custom-objects.read-write.owner` | -   `CustomObject` |  |
| [PATCH Update a custom object](https://developer.rippling.com/documentation/rest-api/reference/update-custom-objects) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObject` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [DELETE Delete a custom object](https://developer.rippling.com/documentation/rest-api/reference/delete-custom-objects) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` |  | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [GET List custom object records](https://developer.rippling.com/documentation/rest-api/reference/list-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read`<br>-   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [GET Retrieve a specific custom object record](https://developer.rippling.com/documentation/rest-api/reference/get-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read`<br>-   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `codr_id` from GET List custom object records (`id`). |
| [POST Create a new custom object record](https://developer.rippling.com/documentation/rest-api/reference/create-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [POST List custom object records by query](https://developer.rippling.com/documentation/rest-api/reference/list-by-query-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read`<br>-   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [PATCH Update a custom object record](https://developer.rippling.com/documentation/rest-api/reference/update-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `codr_id` from GET List custom object records (`id`). |
| [DELETE Delete a custom object record](https://developer.rippling.com/documentation/rest-api/reference/delete-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` |  | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `codr_id` from GET List custom object records (`id`). |
| [GET Retrieve a specific custom object record by its external\_id](https://developer.rippling.com/documentation/rest-api/reference/get-custom-objects-custom-object-api-name-records-by-external-id) | -   `custom-object-records.read`<br>-   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `external_id` from GET List custom object records (`external_id`). |
| [POST Bulk Create custom object records](https://developer.rippling.com/documentation/rest-api/reference/bulk-create-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [PATCH Bulk Update custom object records](https://developer.rippling.com/documentation/rest-api/reference/bulk-update-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectDataRow` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [POST Bulk delete custom object records](https://developer.rippling.com/documentation/rest-api/reference/bulk-delete-custom-objects-custom-object-api-name-records) | -   `custom-object-records.read-write`<br>-   `custom-objects.read-write.owner` |  | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [GET List custom object fields](https://developer.rippling.com/documentation/rest-api/reference/list-custom-objects-custom-object-api-name-fields) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectField` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [GET Retrieve a specific custom object field](https://developer.rippling.com/documentation/rest-api/reference/get-custom-objects-custom-object-api-name-fields) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectField` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `field_api_name` from GET List custom object fields (`api_name`). |
| [POST Create a new custom object field](https://developer.rippling.com/documentation/rest-api/reference/create-custom-objects-custom-object-api-name-fields) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectField` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`). |
| [PATCH Update a custom object field](https://developer.rippling.com/documentation/rest-api/reference/update-custom-objects-custom-object-api-name-fields) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `CustomObjectField` | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `field_api_name` from GET List custom object fields (`api_name`). |
| [DELETE Delete a custom object field](https://developer.rippling.com/documentation/rest-api/reference/delete-custom-objects-custom-object-api-name-fields) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` |  | -   Requires `custom_object_api_name` from GET List custom objects (`api_name`).<br>-   Requires `field_api_name` from GET List custom object fields (`api_name`). |
| [GET List object categories](https://developer.rippling.com/documentation/rest-api/reference/list-object-categories) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `ObjectCategory` |  |
| [GET Retrieve a specific object category](https://developer.rippling.com/documentation/rest-api/reference/get-object-categories) | -   `custom-objects.read`<br>-   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `ObjectCategory` | -   Requires object category `id` from GET List object categories (`id`). |
| [POST Create a new object category](https://developer.rippling.com/documentation/rest-api/reference/create-object-categories) | -   `custom-objects.read-write.owner` | -   `ObjectCategory` |  |
| [PATCH Update an object category](https://developer.rippling.com/documentation/rest-api/reference/update-object-categories) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` | -   `ObjectCategory` | -   Requires object category `id` from GET List object categories (`id`). |
| [DELETE Delete an object category](https://developer.rippling.com/documentation/rest-api/reference/delete-object-categories) | -   `custom-objects.read-write`<br>-   `custom-objects.read-write.owner` |  | -   Requires object category `id` from GET List object categories (`id`). |

* * *

## Permissions & scopes

Rippling's V2 API uses a permissions-based access model. The data returned by an endpoint depends on:

-   The permission profile of the user who creates the API token. This includes the **permission scope** (e.g., _“The entire company”_ vs. _“Direct reports only”_) and **employment data access level** (e.g., _“View and edit all sensitive data”_ vs. _“View all basic personal”_).
-   The scopes selected when the token is created.

The **Required Scopes** for each endpoint are listed in the API reference documentation.

#### Example

![Data Getting Started](https://developer.rippling.com/assets/images/gettingstartedguide2-7b37a3b054c1a404fb1af488fb2a1a49.png)

For more information on managing access using API tokens and permission profiles, see [API Tokens and Permissions](https://developer.rippling.com/documentation/rest-api/essentials/api-tokens).

* * *

## Call the API

To call a Data API endpoint:

1.  Verify the user’s permission profile and ensure they have the permissions required to access the desired data.

> **Note:**
> If the user’s permissions are limited (for example, _“Basic personal data for direct reports only”_):
>
> -   Some scopes will not be available when creating the API token.
> -   The API response will return limited data.

2.  Create an API token in the [Developer app](https://app.rippling.com/api-tokens/tokens) with the required scopes.
3.  Call the endpoint using the generated token.

Some endpoints require a specific resource ID (for example, a `worker_id`). In these cases, call the corresponding list endpoint first to fetch the ID (e.g. call GET List workers before calling GET Retrieve a specific worker).

### Example: GET List custom fields

_Request:_

```bash
curl -L -X GET 'https://rest.ripplingapis.com/custom-fields' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED'
```

_Response:_

```json
{
  "results": [
    {
      "id": "66a7d17398f2ee7f0d2aa787",
      "created_at": "2024-07-29T17:29:21.584000+00:00",
      "updated_at": "2024-07-29T17:29:21.588000+00:00",
      "name": "Color",
      "description": null,
      "required": false,
      "type": "TEXT"
    },
    {
      "id": "67327d73417c02d7c10fb626",
      "created_at": "2024-11-11T21:56:02.098000+00:00",
      "updated_at": "2024-11-11T21:56:02.101000+00:00",
      "name": "Choice Field 2",
      "description": null,
      "required": false,
      "type": "RADIO"
    },
  ],
  "next_link": null
}
```

Source: https://developer.rippling.com/documentation/rest-api/guides/data-getting-started

> 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.
