company

Get Active Lead Sources for a Company

Changed on

Use this endpoint to get a list of active lead sources for the current location. This will return the complete lead sources list available for the current location. Inactive lead sources won't be returned. StartIndex starts at 0. Default PageSize is 25. Pagination parameters are optional.

get/company-settings/leads/lead-sources

Request

  • Base URL
    https://api.acculynx.com/api/v2
  • URL
    https://api.acculynx.com/api/v2/company-settings/leads/lead-sources
  • Auth
    HTTP bearer

Query parameters

pageSizeinteger

How many items to be returned at a time.

recordStartIndexinteger

The zero-based index of the first record to return.

Response

OK

countinteger

The total number of items matching the current query.

pageSizeinteger

The requested or default page size.

pageStartIndexinteger

The requested or default index of the first element to return.

Example response

{
  "count": 10,
  "pageSize": 2,
  "pageStartIndex": 0,
  "items": [
    {
      "id": "be6f252d-5aa6-49e3-a2e2-470a67f88711",
      "name": "Lead source 1",
      "children": [
        {
          "id": "ba6f252d-5aa6-49e9-a2e2-470a67f88712",
          "name": "Lead child 1.1",
          "_link": "https://api.acculynx.com/api/v2/company-settings/leads/lead-sources/be6f252d-5aa6-49e3-a2e2-470a67f88711/children/ba6f252d-5aa6-49e9-a2e2-470a67f88712"
        }
      ],
      "_link": "https://api.acculynx.com/api/v2/company-settings/leads/lead-sources/be6f252d-5aa6-49e3-a2e2-470a67f88711"
    },
    {
      "id": "f29b31a2-607e-4550-ab0b-8ff48f532253",
      "name": "Lead source 2",
      "_link": "https://api.acculynx.com/api/v2/company-settings/leads/lead-sources/f29b31a2-607e-4550-ab0b-8ff48f532253"
    }
  ]
}

Changes

    • breaking

      for the query request parameter pageSize, default value 25 was removed

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status

    • info

      added subschema #2 to the // response property allOf list for the response status