Skip to main content
GET
https://dataapi.dncscrub.com
/
v1.5
/
TrustCall
/
GetAllLegalEntities
Get All Legal Entities
curl --request GET \
  --url https://dataapi.dncscrub.com/v1.5/TrustCall/GetAllLegalEntities \
  --header 'loginId: <loginid>'
[
  {
    "LegalEntityId": 123,
    "AcctId": "YOUR_ACCOUNT_ID",
    "IsDefault": true,
    "LegalName": "Acme Corporation",
    "Ein": "***6789",
    "PrimaryPhoneNumber": "5551234567",
    "StreetAddress": "123 Main Street",
    "City": "New York",
    "State": "NY",
    "Zip": "10001",
    "CountryCode": "US"
  },
  {
    "LegalEntityId": 456,
    "AcctId": "YOUR_ACCOUNT_ID",
    "IsDefault": false,
    "LegalName": "Acme Subsidiary LLC",
    "Ein": "***4321",
    "PrimaryPhoneNumber": "5559876543",
    "StreetAddress": "456 Oak Avenue",
    "City": "Los Angeles",
    "State": "CA",
    "Zip": "90001",
    "CountryCode": "US"
  }
]
Retrieve all legal entities associated with your account. Legal entities represent the business identities under which your phone numbers are registered.

Request

Headers

loginId
string
required
Your API Key (LoginId from your DNCScrub account)

Example Request

curl --location --request GET \
  'https://dataapi.dncscrub.com/v1.5/TrustCall/GetAllLegalEntities' \
  --header 'loginId: YOUR_API_KEY'
[
  {
    "LegalEntityId": 123,
    "AcctId": "YOUR_ACCOUNT_ID",
    "IsDefault": true,
    "LegalName": "Acme Corporation",
    "Ein": "***6789",
    "PrimaryPhoneNumber": "5551234567",
    "StreetAddress": "123 Main Street",
    "City": "New York",
    "State": "NY",
    "Zip": "10001",
    "CountryCode": "US"
  },
  {
    "LegalEntityId": 456,
    "AcctId": "YOUR_ACCOUNT_ID",
    "IsDefault": false,
    "LegalName": "Acme Subsidiary LLC",
    "Ein": "***4321",
    "PrimaryPhoneNumber": "5559876543",
    "StreetAddress": "456 Oak Avenue",
    "City": "Los Angeles",
    "State": "CA",
    "Zip": "90001",
    "CountryCode": "US"
  }
]

Response Fields

Unique identifier for the legal entity
AcctId
string
The account ID the legal entity belongs to
IsDefault
boolean
Whether this is the default legal entity for the account
The registered legal name of the business entity
Ein
string
Masked Employer Identification Number (EIN) showing only the last 4 digits (e.g., ***6789)
PrimaryPhoneNumber
string
Primary contact phone number for the legal entity
StreetAddress
string
Street address of the legal entity
City
string
City of the legal entity’s address
State
string
State or province code
Zip
string
ZIP or postal code
CountryCode
string
Two-letter country code (e.g., “US”)

Error Responses

StatusDescription
401 UnauthorizedInvalid or missing API key