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

# Search CrmOpportunities

> Search and list CrmOpportunity records with filtering, sorting, and pagination.

A CRM opportunity (CrmOpportunity) is a potential customer deal in a location's CRM board, assigned to one CRM stage and tracked from enquiry through an in-progress, won, or lost outcome; moving it to a stage can run that stage's configured automation.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
  The authenticated user must be a full unrestricted administrator or have the **`CrmOpportunity-List`** role.
</Note>

## Enums

<Accordion title="eCrmOpportunitySource">
  | Value | Name               |
  | ----- | ------------------ |
  | 1     | Web                |
  | 2     | Phone              |
  | 4     | Webinar            |
  | 5     | Referral           |
  | 6     | PrintAdvert        |
  | 7     | PurchasedList      |
  | 8     | WordOfMouth        |
  | 9     | DirectEmail        |
  | 10    | EmailMarketing     |
  | 11    | Broker             |
  | 12    | PropertyAgent      |
  | 13    | Facebook           |
  | 14    | Linkedin           |
  | 15    | Instagram          |
  | 16    | Twitter            |
  | 17    | HubbleHq           |
  | 18    | LiquidSpace        |
  | 19    | GoogleSearch       |
  | 20    | SpacePool          |
  | 21    | InstantOffices     |
  | 22    | OfficeFreedom      |
  | 23    | FlexiOffices       |
  | 24    | Workthere          |
  | 25    | Kontor             |
  | 26    | Valve              |
  | 98    | OtherSocialNetwork |
  | 99    | Other              |
</Accordion>

<Accordion title="eCrmOpportunityLossReason">
  | Value | Name              |
  | ----- | ----------------- |
  | 1     | Timing            |
  | 2     | Need              |
  | 3     | PoorQualification |
  | 4     | Price             |
  | 5     | Feature           |
  | 6     | LostMomentum      |
  | 7     | Competition       |
  | 8     | ContractTerm      |
  | 9     | Duplicate         |
  | 10    | Waitlist          |
  | 11    | NotReturningCalls |
  | 12    | LackOfFacilities  |
  | 13    | NoPetPolicy       |
  | 14    | NoRightFit        |
  | 15    | Location          |
  | 16    | Entrance          |
  | 17    | Errors            |
  | 18    | Archived          |
  | 19    | SearchOnHold      |
  | 20    | RelocationOnHold  |
  | 99    | Other             |
</Accordion>

<Accordion title="eCrmOpportunityStatus — Status values">
  | Value | Name       |
  | ----- | ---------- |
  | 1     | InProgress |
  | 2     | Won        |
  | 3     | Lost       |
</Accordion>

## Query Parameters

### Pagination & Sorting

<ParamField query="page" type="integer" default="1">
  The page number to retrieve.
</ParamField>

<ParamField query="size" type="integer" default="25">
  The number of records per page.
</ParamField>

<ParamField query="orderBy" type="string">
  The property name to sort results by (e.g. `Name`, `CreatedOn`).
</ParamField>

<ParamField query="dir" type="integer">
  Sort direction. `0` for ascending, `1` for descending.
</ParamField>

### Filters

<ParamField query="CrmOpportunity_Name" type="string">
  Filter by optional operator-facing label for this opportunity, useful when a customer has opportunities in multiple CRM boards..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn" type="integer">
  Filter by iD of the CRM stage that contains this opportunity and determines its location access; changing it moves the opportunity and runs that stage's arrival actions..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_Name" type="string">
  Filter by display value for CrmBoardColumn.Name..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Id" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Id..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Name" type="string">
  Filter by display value for CrmBoardColumn.CrmBoard.Name..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Business_Id" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Id..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Business_Name" type="string">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Name..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Business_Currency_Id" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Currency.Id..
</ParamField>

<ParamField query="CrmOpportunity_CrmBoardColumn_CrmBoard_Business_Currency_Code" type="string">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Currency.Code..
</ParamField>

<ParamField query="CrmOpportunity_Coworker" type="integer">
  Filter by iD of the customer this opportunity tracks; a customer is required by backend validation even though the relationship metadata is nullable..
</ParamField>

<ParamField query="CrmOpportunity_Coworker_FullName" type="string">
  Filter by display value for Coworker.FullName..
</ParamField>

<ParamField query="CrmOpportunity_Coworker_CoworkerType" type="string">
  Filter by display value for Coworker.CoworkerType..
</ParamField>

<ParamField query="CrmOpportunity_Coworker_CompanyName" type="string">
  Filter by display value for Coworker.CompanyName..
</ParamField>

<ParamField query="CrmOpportunity_Coworker_Email" type="string">
  Filter by display value for Coworker.Email..
</ParamField>

<ParamField query="CrmOpportunity_Team" type="integer">
  Filter by optional ID of the team associated with this opportunity..
</ParamField>

<ParamField query="CrmOpportunity_Team_Name" type="string">
  Filter by display value for Team.Name..
</ParamField>

<ParamField query="CrmOpportunity_Team_Description" type="string">
  Filter by display value for Team.Description..
</ParamField>

<ParamField query="CrmOpportunity_Team_ProfileWebsite" type="string">
  Filter by display value for Team.ProfileWebsite..
</ParamField>

<ParamField query="CrmOpportunity_OpportunityType" type="integer">
  Filter by optional ID of the opportunity type used to categorize this CRM opportunity..
</ParamField>

<ParamField query="CrmOpportunity_OpportunityType_Name" type="string">
  Filter by display value for OpportunityType.Name..
</ParamField>

<ParamField query="CrmOpportunity_Responsible" type="integer">
  Filter by optional ID of the staff user responsible for following up this opportunity..
</ParamField>

<ParamField query="CrmOpportunity_Responsible_FullName" type="string">
  Filter by display value for Responsible.FullName..
</ParamField>

<ParamField query="CrmOpportunity_Referrer" type="integer">
  Filter by optional ID of the customer who referred this opportunity..
</ParamField>

<ParamField query="CrmOpportunity_Agent" type="integer">
  Filter by optional ID of the customer record representing the referring agent or broker..
</ParamField>

<ParamField query="CrmOpportunity_Notes" type="string">
  Filter by optional internal notes about this opportunity and its follow-up..
</ParamField>

<ParamField query="CrmOpportunity_Completed" type="boolean">
  Filter by whether this opportunity is marked complete; use Status to record whether it was won or lost..
</ParamField>

<ParamField query="CrmOpportunity_DueDate" type="string">
  Filter by optional date and time by which this opportunity requires follow-up; the backend compares it against UTC for overdue CRM counts..
</ParamField>

<ParamField query="CrmOpportunity_Value" type="number">
  Filter by optional expected revenue amount if this opportunity is won, in the parent CRM board location's currency..
</ParamField>

<ParamField query="CrmOpportunity_Reminded" type="boolean">
  Filter by whether a follow-up reminder has already been sent for this opportunity; this internal state is not exposed to Admin Tool schemas..
</ParamField>

<ParamField query="CrmOpportunity_LeadSource" type="integer">
  Filter by optional acquisition source: Web, Phone, Webinar, Referral, PrintAdvert, PurchasedList, WordOfMouth, DirectEmail, EmailMarketing, Broker, PropertyAgent, Facebook, Linkedin, Instagram, Twitter, HubbleHq, LiquidSpace, GoogleSearch, SpacePool, InstantOffices, OfficeFreedom, FlexiOffices, Workthere, Kontor, Valve, OtherSocialNetwork, or Other..
</ParamField>

<ParamField query="CrmOpportunity_LossReason" type="integer">
  Filter by optional reason for a lost opportunity: Timing, Need, PoorQualification, Price, Feature, LostMomentum, Competition, ContractTerm, Duplicate, Waitlist, NotReturningCalls, LackOfFacilities, NoPetPolicy, NoRightFit, Location, Entrance, Errors, Archived, SearchOnHold, RelocationOnHold, or Other; use only when Status is Lost..
</ParamField>

<ParamField query="CrmOpportunity_Status" type="integer">
  Filter by lifecycle status: InProgress (1) is active, Won (2) records a successful outcome, and Lost (3) records an unsuccessful outcome; setting Won or Lost stamps the matching terminal timestamp if it is empty..
</ParamField>

<ParamField query="CrmOpportunity_WonOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Won; change Status rather than setting this date directly..
</ParamField>

<ParamField query="CrmOpportunity_LostOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Lost; change Status rather than setting this date directly..
</ParamField>

<ParamField query="CrmOpportunity_CrmUpdatedOn" type="string">
  Filter by read-only UTC timestamp automatically updated after CRM changes, including a stage move..
</ParamField>

<ParamField query="CrmOpportunity_Position" type="integer">
  Filter by requested relative display order among in-progress opportunities in the current stage; the server normalizes the stage order after create or update..
</ParamField>

<ParamField query="CrmOpportunity_UtmSource" type="string">
  Filter by optional UTM source attribution captured from the URL used to submit the originating contact or sign-up form..
</ParamField>

<ParamField query="CrmOpportunity_UtmMedium" type="string">
  Filter by optional UTM medium attribution captured from the URL used to submit the originating contact or sign-up form..
</ParamField>

<ParamField query="CrmOpportunity_UtmCampaign" type="string">
  Filter by optional UTM campaign attribution captured from the URL used to submit the originating contact or sign-up form..
</ParamField>

<ParamField query="CrmOpportunity_UtmContent" type="string">
  Filter by optional UTM content attribution captured from the URL used to submit the originating contact or sign-up form..
</ParamField>

<ParamField query="CrmOpportunity_UtmTerm" type="string">
  Filter by optional UTM search-term attribution captured from the URL used to submit the originating contact or sign-up form..
</ParamField>

### Range Filters

<ParamField query="from_CrmOpportunity_CrmBoardColumnCrmBoardId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Id. greater than or equal to this value.
</ParamField>

<ParamField query="to_CrmOpportunity_CrmBoardColumnCrmBoardId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Id. less than or equal to this value.
</ParamField>

<ParamField query="from_CrmOpportunity_CrmBoardColumnCrmBoardBusinessId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Id. greater than or equal to this value.
</ParamField>

<ParamField query="to_CrmOpportunity_CrmBoardColumnCrmBoardBusinessId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Id. less than or equal to this value.
</ParamField>

<ParamField query="from_CrmOpportunity_CrmBoardColumnCrmBoardBusinessCurrencyId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Currency.Id. greater than or equal to this value.
</ParamField>

<ParamField query="to_CrmOpportunity_CrmBoardColumnCrmBoardBusinessCurrencyId" type="integer">
  Filter by display value for CrmBoardColumn.CrmBoard.Business.Currency.Id. less than or equal to this value.
</ParamField>

<ParamField query="from_CrmOpportunity_DueDate" type="string">
  Filter by optional date and time by which this opportunity requires follow-up; the backend compares it against UTC for overdue CRM counts. greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_DueDate" type="string">
  Filter by optional date and time by which this opportunity requires follow-up; the backend compares it against UTC for overdue CRM counts. less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CrmOpportunity_Value" type="number">
  Filter by optional expected revenue amount if this opportunity is won, in the parent CRM board location's currency. greater than or equal to this value.
</ParamField>

<ParamField query="to_CrmOpportunity_Value" type="number">
  Filter by optional expected revenue amount if this opportunity is won, in the parent CRM board location's currency. less than or equal to this value.
</ParamField>

<ParamField query="from_CrmOpportunity_WonOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Won; change Status rather than setting this date directly. greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_WonOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Won; change Status rather than setting this date directly. less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CrmOpportunity_LostOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Lost; change Status rather than setting this date directly. greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_LostOn" type="string">
  Filter by read-only UTC timestamp set when Status first becomes Lost; change Status rather than setting this date directly. less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CrmOpportunity_CrmUpdatedOn" type="string">
  Filter by read-only UTC timestamp automatically updated after CRM changes, including a stage move. greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_CrmUpdatedOn" type="string">
  Filter by read-only UTC timestamp automatically updated after CRM changes, including a stage move. less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CrmOpportunity_Position" type="integer">
  Filter by requested relative display order among in-progress opportunities in the current stage; the server normalizes the stage order after create or update. greater than or equal to this value.
</ParamField>

<ParamField query="to_CrmOpportunity_Position" type="integer">
  Filter by requested relative display order among in-progress opportunities in the current stage; the server normalizes the stage order after create or update. less than or equal to this value.
</ParamField>

<ParamField query="from_CrmOpportunity_CreatedOn" type="string">
  Filter records created on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_CreatedOn" type="string">
  Filter records created on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CrmOpportunity_UpdatedOn" type="string">
  Filter records updated on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CrmOpportunity_UpdatedOn" type="string">
  Filter records updated on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

## Code Examples

### Simple listing

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/crm/crmopportunities?page=1&size=15&orderBy=CreatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/crm/crmopportunities?' + new URLSearchParams({
      page: 1,
      size: 15,
      orderBy: 'CreatedOn',
      dir: 1 // Ascending
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/crm/crmopportunities',
      params={
          'page': 1,
          'size': 15,
          'orderBy': 'CreatedOn',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

### Filtering by CreatedOn

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/crm/crmopportunities?CrmOpportunity_CreatedOn=example-value&orderBy=CreatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/crm/crmopportunities?' + new URLSearchParams({
      CrmOpportunity_CreatedOn: 'example-value',
      orderBy: 'CreatedOn',
      dir: 1
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/crm/crmopportunities',
      params={
          'CrmOpportunity_CreatedOn': 'example-value',
          'orderBy': 'CreatedOn',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

### Range filters

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/crm/crmopportunities?from_CrmOpportunity_UpdatedOn=2025-01-01T00:00&to_CrmOpportunity_UpdatedOn=2025-12-31T23:59&orderBy=UpdatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/crm/crmopportunities?' + new URLSearchParams({
      from_CrmOpportunity_UpdatedOn: '2025-01-01T00:00',
      to_CrmOpportunity_UpdatedOn: '2025-12-31T23:59',
      orderBy: 'UpdatedOn',
      dir: 1 // Descending
     }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/crm/crmopportunities',
      params={
          'from_CrmOpportunity_UpdatedOn': '2025-01-01T00:00',
          'to_CrmOpportunity_UpdatedOn': '2025-12-31T23:59',
          'orderBy': 'UpdatedOn',
          'dir': 1 // Descending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="Records" type="CrmOpportunity[]">
  The list of CrmOpportunity records matching the query. See the [Get one CrmOpportunity](/rest-api/crm/get-crmopportunities-by-id) endpoint for the full list of properties returned for each record.
</ResponseField>

<Warning>
  **Partial records** — The listing endpoint returns a summary representation of each CrmOpportunity. The following fields are **not populated** in the `Records[]` response: `TeamId`, `Notes`, `Reminded`, `LeadSource`, `LossReason`, `UtmSource`, `UtmMedium`, `UtmCampaign`, `UtmContent`, `UtmTerm`.

  To get all fields, fetch the full record using the [Get one CrmOpportunity](/rest-api/crm/get-crmopportunities-by-id) endpoint.

  **Important for updates:** When updating a record via `PUT`, always retrieve the full record with a `GET` request first, apply your changes to that complete data, and then send the updated record. Do not use data from a listing response as the base for a `PUT` request, as missing fields may be unintentionally cleared.
</Warning>

<ResponseField name="CurrentPage" type="integer">
  Current page number.
</ResponseField>

<ResponseField name="CurrentPageSize" type="integer">
  Number of records per page.
</ResponseField>

<ResponseField name="CurrentOrderField" type="string">
  The field used for sorting.
</ResponseField>

<ResponseField name="CurrentSortDirection" type="integer">
  The sort direction (`0` = ascending, `1` = descending).
</ResponseField>

<ResponseField name="FirstItem" type="integer">
  Index of the first item on the current page.
</ResponseField>

<ResponseField name="LastItem" type="integer">
  Index of the last item on the current page.
</ResponseField>

<ResponseField name="TotalItems" type="integer">
  Total number of matching records across all pages.
</ResponseField>

<ResponseField name="TotalPages" type="integer">
  Total number of pages.
</ResponseField>

<ResponseField name="HasNextPage" type="boolean">
  Whether there is a next page of results.
</ResponseField>

<ResponseField name="HasPreviousPage" type="boolean">
  Whether there is a previous page of results.
</ResponseField>

```json Example Response theme={null}
{
  "Records": [
    {
      "Name": null,
      "CrmBoardColumnId": 0,
      "CrmBoardColumnName": null,
      "CrmBoardColumnCrmBoardId": null,
      "CrmBoardColumnCrmBoardName": null,
      "CrmBoardColumnCrmBoardBusinessId": null,
      "CrmBoardColumnCrmBoardBusinessName": null,
      "CrmBoardColumnCrmBoardBusinessCurrencyId": null,
      "CrmBoardColumnCrmBoardBusinessCurrencyCode": null,
      "CoworkerId": null,
      "CoworkerFullName": null,
      "CoworkerCoworkerType": null,
      "CoworkerCompanyName": null,
      "CoworkerEmail": null,
      "TeamName": null,
      "TeamDescription": null,
      "TeamProfileWebsite": null,
      "OpportunityTypeId": null,
      "OpportunityTypeName": null,
      "ResponsibleId": null,
      "ResponsibleFullName": null,
      "ReferrerId": null,
      "AgentId": null,
      "Completed": false,
      "DueDate": null,
      "Value": null,
      "Status": 0,
      "WonOn": null,
      "LostOn": null,
      "CrmUpdatedOn": null,
      "Position": 0,
      "Id": 87654321,
      "UpdatedOn": "2025-01-15T10:30:00Z",
      "CreatedOn": "2025-01-10T08:00:00Z",
      "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "UpdatedBy": "admin@example.com",
      "IsNew": false,
      "SystemId": null,
      "ToStringText": "CrmOpportunity Example",
      "LocalizationDetails": null,
      "CustomFields": null
    }
  ],
  "CurrentPageSize": 15,
  "CurrentPage": 1,
  "CurrentOrderField": "CreatedOn",
  "CurrentSortDirection": 1,
  "FirstItem": 1,
  "HasNextPage": false,
  "HasPreviousPage": false,
  "LastItem": 1,
  "PageNumber": 1,
  "PageSize": 15,
  "TotalItems": 1,
  "TotalPages": 1
}
```
