Subgroups

GET/subgroup/counts

Retrieve resource counts grouped by subgroup. Results include only groups the authenticated caller can access.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamOptionalRestrict results to an accessible Group ID.
subgroupIdQuery ParamOptionalRestrict results to a subgroup.
limitQuery ParamOptionalMaximum rows to return (1–1000).
offsetQuery ParamOptionalRows to skip; requires limit.

Example Response 200

Response
{
  "data": [
    {
      "groupId": "G1234567",
      "subgroupId": "S1234567",
      "endpoints": 3,
      "api_keys": 1,
      "brands": 1,
      "campaigns": 1,
      "phone_numbers": 2
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 20,
  "totalPages": 1
}

SDK Example

GET/subgroup

Retrieve subgroup records. Customer roles must pass at least one filter (id or groupId) — an unfiltered read-all is restricted to internal use.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idQuery ParamOptionalSpecific Subgroup ID.
groupIdQuery ParamOptionalFilter by parent Group ID.
searchQuery ParamOptionalWith groupId: free text finds part of the subgroup ID, name or company name. `field:` names subgroupId, subgroupName or subgroupCompanyName. Repeat the param to send several values; every value must match. Each value is free text, or `field:term` to search one field. Each term is 3 to 100 characters, with at most 5 values; a shorter term returns 400. Works with the scoping filters above.
pageQuery ParamOptionalPage number for pagination.
limitQuery ParamOptionalResults per page.

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c5e",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "subgroupName": "Marketing Team",
    "contactFirstName": "Jane",
    "contactLastName": "Smith",
    "subgroupCompanyName": "Acme Marketing Division",
    "status": "active",
    "carrierIdFamily": "Default",
    "carrierIdRegion": null,
    "createdAt": "2024-01-15T12:00:00.000Z",
    "updatedAt": "2024-01-15T12:00:00.000Z"
  }
]

SDK Example

GET/subgroup/ghl-location-lookup

Resolve the mapping between a GoHighLevel location and a Signal House subgroup, in either direction. Provide exactly one of ghlLocationId or subgroupId — passing both or neither returns 400. groupId is optional: customer roles default to their own accessible group(s) and are rejected (403) only if they explicitly name a group they don't belong to. A subgroupId or ghlLocationId that belongs to a different group than the caller's returns 404 — identical to a nonexistent one, so a cross-group id never reveals that it exists elsewhere. A subgroup with no linked GHL location returns 200 with ghlLocationId and ghlLocationName both null.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdQuery ParamOptionalRestrict the lookup to an accessible Group ID.
ghlLocationIdQuery ParamOptionalGHL location ID to resolve to its subgroup. Mutually exclusive with subgroupId.
subgroupIdQuery ParamOptionalSubgroup ID to resolve to its GHL location. Mutually exclusive with ghlLocationId.

Example Response 200

Response
{
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "subgroupName": "Marketing Team",
  "ghlLocationId": "abc123locid",
  "ghlLocationName": "Acme Marketing"
}

SDK Example

POST/subgroup

Create a new Subgroup.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
groupIdStringRequiredParent Group ID.
subgroupNameStringRequiredName of the subgroup.
subgroupCompanyNameStringOptionalAssociated company name.
contactFirstNameStringOptionalContact first name.
contactLastNameStringOptionalContact last name.
contactMiddleNameStringOptionalContact middle name.
addressLine1StringOptionalAddress line 1.
addressLine2StringOptionalAddress line 2.
cityStringOptionalCity.
stateStringOptionalState.
countryStringOptionalCountry.
postalCodeStringOptionalPostal code.
phoneStringOptionalPhone number.
carrierIdFamilyStringOptionalDeprecated. Accepted, stored and returned, with no effect on billing. One of "Default", "ATT", "TMobile", "Verizon", "USCellular", "GoogleVoice", "ClearSky", "Interop". Setting this field requires signalhouse_api, signalhouse_admin, signalhouse_user, api, admin, developer, or billing role.
carrierIdRegionString|nullOptionalDeprecated. Accepted, stored and returned, with no effect on billing. One of "PRClaro", "GuamDocomo", "GuamGTA", "GuamITE" or null, and only valid when carrierIdFamily is "ClearSky". Setting this field requires signalhouse_api, signalhouse_admin, signalhouse_user, api, admin, developer, or billing role.

Example Request

Request
{
  "groupId": "G1234567",
  "subgroupName": "Marketing Team"
}

Example Response 201

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c5e",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "subgroupName": "Marketing Team",
  "status": "active",
  "carrierIdFamily": "Default",
  "carrierIdRegion": null,
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}

SDK Example

PUT/subgroup/:id

Update an existing subgroup.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredSubgroup ID to update.
subgroupNameStringOptionalName of the subgroup.
subgroupCompanyNameStringOptionalAssociated company name.
contactFirstNameStringOptionalContact first name.
contactLastNameStringOptionalContact last name.
contactMiddleNameStringOptionalContact middle name.
addressLine1StringOptionalAddress line 1.
addressLine2StringOptionalAddress line 2.
cityStringOptionalCity.
stateStringOptionalState.
countryStringOptionalCountry.
postalCodeStringOptionalPostal code.
phoneStringOptionalPhone number.
statusStringOptionalSubgroup status — "active" or "inactive".
carrierIdFamilyStringOptionalDeprecated. Accepted, stored and returned, with no effect on billing. One of "Default", "ATT", "TMobile", "Verizon", "USCellular", "GoogleVoice", "ClearSky", "Interop". Setting this field requires signalhouse_api, signalhouse_admin, signalhouse_user, api, admin, developer, or billing role.
carrierIdRegionString|nullOptionalDeprecated. Accepted, stored and returned, with no effect on billing. One of "PRClaro", "GuamDocomo", "GuamGTA", "GuamITE" or null, and only valid when carrierIdFamily is "ClearSky". Setting this field requires signalhouse_api, signalhouse_admin, signalhouse_user, api, admin, developer, or billing role.
cnamAutoApplyBooleanOptionalCaller name (CNAM) auto-apply. When true, every eligible number in the subgroup shows its brand's registered name on outbound calls: its campaign's brand, else the default caller-ID brand below. Turning it on needs a verified brand in the subgroup. Requires signalhouse_api, signalhouse_admin, signalhouse_user, api, admin, or developer role.
cnamBrandIdString|nullOptionalDefault caller-ID brand for numbers with no campaign (e.g. voice-only numbers). Must be a verified brand in this subgroup. Chosen automatically when the subgroup has exactly one verified brand; required when turning cnamAutoApply on with two or more. Same roles as cnamAutoApply.

Example Request

Request
{
  "subgroupName": "Marketing Team Updated"
}

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c5e",
  "subgroupId": "S1234567",
  "subgroupName": "Marketing Team Updated",
  "status": "active",
  "carrierIdFamily": "Default",
  "carrierIdRegion": null,
  "updatedAt": "2024-01-16T14:00:00.000Z"
}

SDK Example

DELETE/subgroup/:id

Inactivate a subgroup (must not have active brands).

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
idURL ParamRequiredSubgroup ID to delete.

Example Response 200

Response
{
  "message": "Subgroup S1234567 inactivated successfully"
}

SDK Example