> ## Documentation Index
> Fetch the complete documentation index at: https://docs.officehours.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Functions and subfunctions

> How functions and subfunctions fit together, and which values the API accepts.

Office Hours tags every role in an expert's work history with two values.

* A **function** is the broad area, like `ENGINEERING`, `SALES`, or `MARKETING`. There are 14.
* A **subfunction** is the specialty within it, like `MACHINE_LEARNING`, `BUSINESS_DEVELOPMENT`, or `GROWTH_MARKETING`. There are about 65.

Each role carries both, so a subfunction is always more specific than its function. A role tagged `DATA_SCIENCE` also carries a function, usually `TECH` or `ENGINEERING`.

## Which one the API accepts

The `functions` parameter takes **subfunction** values. It's named `functions` because that's how most people describe what they're looking for, but it matches on subfunction so results stay precise.

```http theme={null}
GET /v0/surveys/feasibility?functions=MACHINE_LEARNING&functions=DATA_SCIENCE
```

> [!NOTE]
>
> A value that only exists as a function returns a `400`. To cover a whole function, pass every subfunction under it.
> The table below lists them.

## Mapping

Each function and the subfunctions that usually sit under it. Treat this as a guide, not a strict hierarchy. We tag each role from its job title, so a subfunction can sometimes appear under a different function than the one listed here.

| Top-level function | Subfunctions |
| - | - |
| `ENGINEERING` | `ENGINEERING`, `SOFTWARE`, `HARDWARE`, `DATA_ENGINEERING`, `DEVOPS`, `ELECTRICAL`, `MECHANICAL`, `CHEMICAL`, `INDUSTRIAL`, `MACHINE_LEARNING`, `ARTIFICIAL_INTELLIGENCE`, `QUALITY_ASSURANCE` |
| `TECH` | `TECH`, `INFORMATION_TECHNOLOGY`, `NETWORK`, `SECURITY`, `DATA_SCIENCE` |
| `PRODUCT` | `PRODUCT`, `PRODUCT_MANAGEMENT` |
| `DESIGN` | `DESIGN`, `GRAPHIC_DESIGN`, `PRODUCT_DESIGN`, `BRAND_DESIGN` |
| `SALES` | `SALES`, `BUSINESS_DEVELOPMENT`, `ACCOUNT_MANAGEMENT`, `GTM`, `PARTNERSHIPS` |
| `MARKETING` | `MARKETING`, `CONTENT_MARKETING`, `PRODUCT_MARKETING`, `GROWTH_MARKETING`, `BRAND_MARKETING`, `SOCIAL_MEDIA` |
| `CUSTOMER_SERVICE` | `CUSTOMER_SERVICE`, `CUSTOMER_SUCCESS`, `CUSTOMER_SUPPORT` |
| `OPERATIONS` | `OPERATIONS`, `PROJECT_MANAGEMENT`, `PROCUREMENT`, `STRATEGY_OPERATIONS`, `SUPPLY_CHAIN_OPERATIONS`, `REVENUE_OPERATIONS` |
| `FINANCE` | `FINANCE`, `ACCOUNTING`, `INVESTMENT`, `TREASURY`, `TAX` |
| `HUMAN_RESOURCES` | `HUMAN_RESOURCES`, `RECRUITING`, `LEARNING_DEVELOPMENT`, `PEOPLE_OPERATIONS`, `TOTAL_REWARDS`, `HR_OPERATIONS` |
| `MEDICAL` | `MEDICAL`, `NURSING`, `PHARMACY`, `PHYSICIAN`, `NON_PHYSICIAN_PRACTITIONER`, `THERAPY` |
| `EDUCATION` | `EDUCATION`, `TEACHER`, `PROFESSOR` |
| `LEGAL` | `LEGAL` |
| `UNCATEGORIZED` | `UNCATEGORIZED`, `RESEARCH` |

## Picking values

* **Use the most specific subfunction that fits.** `PRODUCT_MARKETING` returns a much tighter group than `MARKETING`.
* **Pass several subfunctions to widen.** Multiple values match any of them, so `functions=MACHINE_LEARNING&functions=DATA_SCIENCE` returns experts tagged with either.
* **Add other filters to narrow.** A subfunction alone usually returns a broad pool. Combine it with `seniorities`, `roles`, `industries`, or geography.

## Caveats

* `RESEARCH` doesn't fit any one function, so it sits under `UNCATEGORIZED`. It spans academic research, market research, and R\&D, so expect a mixed group.
* `GTM` sits between `SALES` and `MARKETING`. It's listed under `SALES` because that's where it appears most, but it overlaps with marketing too.
* `ARTIFICIAL_INTELLIGENCE` and `MACHINE_LEARNING` overlap a lot. Pass both if you want full coverage.
* Some subfunctions share a name with their function, like `ENGINEERING`, `SALES`, and `DESIGN`. Passing that name matches only roles tagged with that exact subfunction. It doesn't expand to the whole function.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.