# Decile Hub

> Read fund activity, portfolio companies, and CRM records, and manage deal pipelines in Decile Hub.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/decile-hub

## Actions

### Add a note to a person

Append a plain-text note to a person. The note is stored on the person and surfaced wherever person notes appear (including the prospect view if the person is a pipeline prospect's prospectable).

**Inputs**

- Person ID (`person_id`, number, required): Person ID
- Note (`note`, object, required): Note.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": {
      "author": {
        "first_name": "example",
        "id": 1,
        "last_name": "example"
      },
      "body": "example",
      "context": "example",
      "created_at": "example",
      "id": 1
    }
  }
}
```

### Adds a stage to a pipeline

Add a new stage at the end of a pipeline. Requires an account admin. To move it elsewhere, reorder the pipeline's stages afterwards.

**Inputs**

- Pipeline ID (`pipeline_id`, text, required): Pipeline id.
- Name (`record_name`, text, required): Display name for the stage. Must be unique within the pipeline.
- Color (`color`, text): Optional hex color for the stage header, e.g. "#22C55E".
- Semantic role (`semantic_role`, text): Optional. What this stage MEANS, for ranking and closing classification. Leave it unset unless the user has told you which one applies. Hub auto-tags the stage from its name shortly after creation, and a value you supply is treated as the GP's own assertion and is never re-derived. One of: `open`, `committed`, `closed`, `parked`, `newsletter`, `terminal`, `awaiting_signature` (Awaiting signature), `signed`.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "color": "example",
    "editable": false,
    "id": "example",
    "internal_id": "example",
    "name": "example",
    "position": 1,
    "prospect_count": 1,
    "prospect_validation_classes": [],
    "semantic_role": "open"
  }
}
```

### Creates a pipeline

Create a pipeline of type Fundraising, Dealflow, Connectors or Custom, or copy an existing pipeline's stages, actions and columns. Standard types come with their usual stages and email templates.

**Inputs**

- Name (`record_name`, text, required): Pipeline name.
- Type (`type`, text): Pipeline type. Omit when copying. One of: `investor`, `investment`, `connector`, `custom`.
- Copy from pipeline ID (`copy_from_pipeline_id`, text): Pipeline id or exact name to copy the structure from. Omit `type` when you pass this.
- Entity ID (`entity_id`, number): Optional fund or entity to file the pipeline under (`entity_id` from `list_pipelines`). Defaults to the account's first fund.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "allowed_prospect_types": [],
    "automation_paused": false,
    "hub_url": "example",
    "id": "example",
    "ingestion_email": "example",
    "name": "example",
    "stages": [],
    "total_prospect_count": 1
  }
}
```

### Deletes a pipeline

Permanently deletes a user-created pipeline with its stages, automations and prospects, as deleting it in Hub does. Cannot be undone; archive the pipeline to only hide it.

**Inputs**

- Pipeline ID (`pipeline_id`, text, required): Pipeline id or exact name (case-insensitive).

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": false
  }
}
```

### Get a single activity entry with its full entryable body

Get one activity entry with its full detail: audit change diffs, full email bodies and recipients, note bodies, AML/KYC status and chat summaries. The list leaves this detail out.

**Inputs**

- Activity entry ID (`activity_entry_id`, number, required): Activity entry id.

**Outputs**

- `data` (object): Single activity entry returned by GET /api/v1/activity_entries/{id}, including the full entryable body.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "created_at": "example",
    "entryable": {
      "action": "example",
      "aml_status": "example",
      "attachments": [],
      "body": "example",
      "changes": {},
      "data": {},
      "delivered_at": "example",
      "description": "example",
      "email_template": "example",
      "form_id": "example",
      "form_name": "example",
      "form_url": "example",
      "from": "example",
      "item_id": 1,
      "item_type": "example",
      "kyc_status": "example",
      "links_clicked": {},
      "opened_at": "example",
      "recipients": {},
      "subject": "example",
      "summary": "example",
      "to": "example",
      "type": "example"
    },
    "entryable_id": 1,
    "entryable_type": "example",
    "id": 1,
    "name": "example",
    "origin": "example",
    "subject_id": 1,
    "subject_type": "example",
    "user_id": 1
  }
}
```

### Get a single portfolio company by id

Get one portfolio company by its ID.

**Inputs**

- Portfolio company (`portfolio_company_id`, number, required): Portfolio company id.
- Fields (`fields`, text): Comma-separated top-level fields to return. Always returns at least `id` and `name`. Unknown fields are ignored.

**Outputs**

- `data` (object): A fund's stake in a single underlying organization.

**Example output**

```json
{
  "data": {
    "board_representation": {},
    "created_at": "example",
    "display_legal_name": "example",
    "entity_type": "example",
    "exit_strategy": {},
    "firm_admin_fund_details_id": 1,
    "id": 1,
    "initial_investment_date": "example",
    "investment_thesis": "example",
    "legal_name": "example",
    "name": "example",
    "organization_id": 1,
    "reserve_consumed": "example",
    "updated_at": "example"
  }
}
```

### Get pipeline metrics

Returns aggregate counts/values for a pipeline plus a 7-days-ago snapshot for week-over-week deltas. The caller is expected to compute deltas in its prose layer.

**Inputs**

- Pipeline ID (`pipeline_id`, text, required): Pipeline id.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "current_state": {
      "as_of": "example",
      "by_stage": {},
      "committed_amount": 1,
      "total_prospects": 1,
      "weighted_pipeline": 1
    },
    "snapshot_7d_ago": {
      "as_of": "example",
      "by_stage": {},
      "committed_amount": 1,
      "total_prospects": 1,
      "weighted_pipeline": 1
    }
  }
}
```

### Identify the authenticated API key

Show which user, account, permissions and pipelines this API key belongs to. Useful as a connection check.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "account": {
      "currency": "example",
      "id": 1,
      "name": "example",
      "subdomain": "example"
    },
    "account_user": {
      "accessible_pipeline_ids": [],
      "is_admin": false,
      "roles": {
        "account_organization_fund": false,
        "admin": false,
        "capital_call": false,
        "clean": false,
        "closing": false,
        "connector": false,
        "custom": false,
        "data_room": false,
        "directory": false,
        "event_attendance": false,
        "inbox": false,
        "investment": false,
        "investor": false,
        "portfolio": false,
        "recruiting": false,
        "website": false
      }
    },
    "token": {
      "cross_account": false,
      "default_account_id": "example",
      "id": 1,
      "kind": "example",
      "last_used_at": "example",
      "name": "example",
      "permissions": [],
      "transient": false
    },
    "user": {
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example"
    }
  }
}
```

### List activity feed entries for the current account

List the account's activity feed, newest first. Filter by subject, event type, actor, date range or form, and page through the results.

**Inputs**

- Subject type (`subject_type`, text): Filter to entries whose subject is this top-level entity class. Pair with `subject_id`. One of: `Person`, `Organization`, `PipelineProspect`, `AccountOrganizationFund`, `AccountOrganizationManagementCompany`, `AccountOrganizationGeneralPartnership`, `FirmAdmin::PortfolioCompany`, `FirmAdmin::CapitalAccount`, `Chat`, `User`.
- Subject ID (`subject_id`, number): Subject record id; pair with `subject_type`.
- Include associated (`include_associated`, true/false): When `subject_type=Organization`, also include entries for its People. Defaults `false`.
- Event (`event`, text): Curated event filter. Mutually exclusive with `entryable_type`. sending both returns 400. One of: `Item Created`, `Item Edited`, `Prospect Moved`, `All Emails`, `Email Sent`, `Email Received`, `Email Link Clicked`, `PACT Signed`, `Cornerstone Signed`, `Form Viewed`, and 12 more.
- Entryable type (`entryable_type`, text): Lower-level entryable class filter (e.g. `Log::ActivityEntries::Note`). Mutually exclusive with `event`.
- User ID (`record_user_id`, text): Actor user id. Pass the literal `automation` to match entries from system/automated events.
- Created after (`created_after`, text): ISO 8601 date or datetime; only entries created on or after this point. A datetime keeps its time and offset; a date alone starts at the beginning of that day.
- Created before (`created_before`, text): ISO 8601 date or datetime; only entries created on or before this point. A datetime keeps its time and offset; a date alone includes that whole day.
- Form (`form`, text): The form link (`https://.decilehub.com/form/`), its ``, or a `form_id`. Returns only that form's view, start, completion, and signature entries. Combines with `event` and the time bounds. An unknown form, another account's form, or a link to another firm's subdomain returns no entries.
- Order direction (`order_direction`, text): Sort direction on `(created_at, id)`. Defaults `desc`. One of: `asc`, `desc`.
- Page token (`page_token`, text): Opaque keyset cursor returned by a previous call as `pagination.next_page_token`.
- Per page (`per_page`, number): Page size. Capped at 100; defaults to 25. At most 100.
- Include (`include`, text): Comma-separated nested embeds. Currently supports `entryable` (returns `{type, action}`; FormActivity and SignatorySigned entries also return `form_name`, `form_id`, and `form_url`).
- Fields (`fields`, text): Comma-separated top-level fields to return. Always returns at least `id`. Unknown fields are ignored.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_page_token": "example"
    }
  }
}
```

### List investments for a portfolio company

List a portfolio company's investments (accounting-transaction-driven tranches), with each one's current mark, linked funding-round security and valuation source. For funds on the older portfolio system only.

**Inputs**

- Portfolio company (`portfolio_company_id`, number, required): Portfolio company id.
- As of date (`as_of_date`, date): ISO date used to resolve each tranche current mark. Valuations effective after this date are excluded. Defaults to today.
- Page token (`page_token`, text): Opaque keyset cursor returned by a previous call as `pagination.next_page_token`.
- Per page (`per_page`, number): Page size. Capped at 100; defaults to 25. At most 100.
- Fields (`fields`, text): Comma-separated top-level fields to return. Always returns at least `id`. Unknown fields are ignored.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_page_token": "example"
    }
  }
}
```

### List People

Gets a paginated list of People in your People Directory. The response will have a data array with the people and a pagination object with the total count, current page, and total pages.Pages are 0-indexed, so the first page is page 0.The People returned can be filtered and ordered. Order direction is ascending by default. The default response shape is unchanged from prior versions and embeds notes, organizations_with_titles, and referred_by. The optional include= parameter i

**Inputs**

- Include (`include`, text): Comma-separated list of nested resources to embed. Unknown values are ignored silently. Allowed values: notes, referred_by, organizations.
- Fields (`fields`, text): Comma-separated list of top-level fields to return. Unknown values are ignored silently. When `fields=` is supplied, the response is always narrowed; `id` and `name` are always present, and if no supplied keys match the whitelist the response collapses to just `{id, name}`.
- Custom data points (`custom_data_points`, text): Optional. Controls embedding of a custom_data_points field on each person. - Omit the param entirely to leave custom_data_points out of the response (default). - Pass `*` to embed every account-declared person_data_points key (subject to the allow-list). - Pass a comma-separated list (e.g. `key1,key2`) to narrow the embed to that subset. Unknown keys are silently dropped. - Pass an empty value to embed an explicit empty custom_data_points object. - The wildcard always wins, s
- First name (`first_name`, text): First name includes this string (case-insensitive)
- Middle name (`middle_name`, text): Middle name includes this string (case-insensitive)
- Last name (`last_name`, text): Last name includes this string (case-insensitive)
- Email (`email`, text): Email address includes this string (case-insensitive)
- Created before (`created_before`, text): Only people created on or before this date
- Created after (`created_after`, text): Only people created on or after this date
- Page (`page`, number): Page number (0-indexed)
- Order by (`order_by`, text): Field to order by: * `first_name` * `last_name` * `email` * `created_at`. One of: `first_name` (First name), `last_name` (Last name), `email`, `created_at` (Created at).
- Order direction (`order_direction`, text): Order direction. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "current_page": 1,
      "total_count": 1,
      "total_pages": 1
    }
  }
}
```

### List pipelines for the current account

List the account's active pipelines, with the primary investor pipeline first. Optionally show only investor pipelines.

**Inputs**

- Kind (`record_kind`, text): Optional pipeline-type filter. Unknown values return 422. One of: `recruiting`, `investor`, `investment`, `connector`, `closing`, `clean`, `custom`, `capital_call` (Capital call), `company_funding_round` (Company funding round), `account_organization_fund` (Account organization fund), and 8 more.

**Outputs**

- `data` (list): The response from Decile Hub.

**Example output**

```json
{
  "data": []
}
```

### List portfolio companies for the current account

List portfolio companies across every fund in the account, each as a fund's stake in one company. Filter by fund or organization, and page through the results.

**Inputs**

- Fund ID (`fund_id`, number): Filter to a single fund_detail id (`firm_admin_fund_details.id`).
- Organization ID (`organization_id`, number): Filter to portfolio companies for a specific organization id.
- Page token (`page_token`, text): Opaque keyset cursor returned by a previous call as `pagination.next_page_token`.
- Per page (`per_page`, number): Page size. Capped at 100; defaults to 25. At most 100.
- Fields (`fields`, text): Comma-separated top-level fields to return. Always returns at least `id` and `name`. Unknown fields are ignored.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_page_token": "example"
    }
  }
}
```

### List Tasks

Returns a paginated, account-scoped list of Tasks. Optional filters narrow by status, assignee, and origin. Pages are 0-indexed.

**Inputs**

- Status (`status`, text): Filter by lifecycle status. One of: `open`, `in_progress` (In progress), `completed`, `cancelled`.
- Assignee ID (`assignee_id`, number): Filter by assignee user id
- Origin (`origin`, text): Filter by task origin. One of: `agent_suspension` (Agent suspension), `user`, `system`.
- Page (`page`, number): Page number (0-indexed)

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "current_page": 1,
      "total_count": 1,
      "total_pages": 1
    }
  }
}
```

### List the accounts this API key can act in

List every account the key's user belongs to, with their roles in each, except accounts whose admins have blocked the user's keys from other accounts. The key's own default account is always listed.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Decile Hub.

**Example output**

```json
{
  "data": []
}
```

### List valuation history for a portfolio company

List a portfolio company's valuation events, newest first, a page at a time. For funds on the older portfolio system only.

**Inputs**

- Portfolio company (`portfolio_company_id`, number, required): Portfolio company id.
- As of date (`as_of_date`, date): Return valuations on or before this date.
- Page token (`page_token`, text): Opaque keyset cursor returned by a previous call as `pagination.next_page_token`.
- Per page (`per_page`, number): Page size. Capped at 100; defaults to 25. At most 100.
- Fields (`fields`, text): Comma-separated summary fields to return. Always returns at least `id`. Unknown fields are ignored.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_page_token": "example"
    }
  }
}
```

### Lists the stages of a pipeline

List every stage of a pipeline in board order, with the ID needed to rename a stage or filter prospects by stage. Stages managed by Decile Hub cannot be renamed.

**Inputs**

- Pipeline ID (`pipeline_id`, text, required): Pipeline id.

**Outputs**

- `data` (list): The response from Decile Hub.

**Example output**

```json
{
  "data": []
}
```

### Retrieves info for a specific pipeline

Get a pipeline's details and its stages. Forwarding an email to the pipeline's ingestion address adds or updates a prospect and attaches the email's files, such as a pitch deck.

**Inputs**

- Pipeline ID (`pipeline_id`, text, required): Pipeline id.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "allowed_prospect_types": [],
    "automation_paused": false,
    "hub_url": "example",
    "id": "example",
    "ingestion_email": "example",
    "name": "example",
    "stages": [],
    "total_prospect_count": 1
  }
}
```

### Show Person

Get one person by their person ID, including their notes, organizations with titles and who referred them. A pipeline prospect ID is not a person ID.

**Inputs**

- Person ID (`person_id`, number, required): Person ID. Not a pipeline prospect id.
- Include (`include`, text): Comma-separated list of nested resources to embed. Unknown values are ignored silently. Allowed values: notes, referred_by, organizations, capital_accounts. capital_accounts lists the capital accounts this person is a contact on, each with id, name, vehicle_type, partner_type, contact_status_type and fund.
- Fields (`fields`, text): Comma-separated list of top-level fields to return. Unknown values are ignored silently. When `fields=` is supplied, the response is always narrowed; `id` and `name` are always present, and if no supplied keys match the whitelist the response collapses to just `{id, name}`.
- Custom data points (`custom_data_points`, text): Optional. Controls embedding of a custom_data_points field on the person. - Omit the param entirely to leave custom_data_points out of the response (default). - Pass `*` to embed every account-declared person_data_points key (subject to the allow-list). - Pass a comma-separated list (e.g. `key1,key2`) to narrow the embed to that subset. Unknown keys are silently dropped. - Pass an empty value to embed an explicit empty custom_data_points object. - The wildcard always wins, so

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "country": "example",
        "state": "example",
        "street": "example",
        "zipcode": "example"
      },
      "created_at": "example",
      "data": {},
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "middle_name": "example",
      "notes": [],
      "organizations": [],
      "phone": "example",
      "tag_list": []
    }
  }
}
```

### Update Person by ID

Updates the existing person selected by account-scoped ID; changing the email does not create a record.

**Inputs**

- Person ID (`person_id`, text, required): Person ID
- Person (`person`, object, required): Person.

**Outputs**

- `data` (object): The response from Decile Hub.

**Example output**

```json
{
  "data": {}
}
```
