# Ortto

> Report customer data and audience membership alongside the account’s custom field schema.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/ortto

## Actions

### List audiences

Read one page of audience definitions and membership counts.

**Inputs**

- Limit (`limit`, number): Audience page size; the documented maximum is 40. From 1 to 40.
- Offset (`offset`, number): Zero-based audience offset. At least 0.
- Search term (`search_term`, text): Search audience names.

**Outputs**

- `data` (list): The response from Ortto.

**Example output**

```json
{
  "data": [
    {
      "id": "audience_1",
      "members": 1,
      "name": "Newsletter subscribers",
      "ready": true,
      "subscribers": 1
    }
  ]
}
```

### List custom person fields

Read the custom person field schema available in the connected customer data platform.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Ortto.

**Example output**

```json
{
  "data": {
    "fields": [
      {
        "field": {
          "display_type": "text",
          "id": "str:cm:plan",
          "liquid_name": "people.custom.plan",
          "name": "Plan"
        },
        "tracked_value": false
      }
    ]
  }
}
```

### List people

Read one page of people with email and name fields. Continue with next_offset and cursor_id.

**Inputs**

- Limit (`limit`, number): Maximum people per page. From 1 to 500.
- Offset (`offset`, number): Next offset from the previous response. At least 0.
- Cursor ID (`cursor_id`, text): Cursor ID from the previous page; preserve it while paginating.
- Q (`q`, text): Search text for people.

**Outputs**

- `data` (object): The response from Ortto.

**Example output**

```json
{
  "data": {
    "contacts": [
      {
        "fields": {
          "str::email": "reader@example.com",
          "str::first": "Example",
          "str::last": "Reader"
        },
        "id": "person_1"
      }
    ],
    "cursor_id": "cursor_1",
    "has_more": false,
    "meta": {
      "total_contacts": 1,
      "total_matches": 1,
      "total_subscribers": 1
    },
    "next_offset": 1,
    "offset": 0
  }
}
```
