Skip to navigation

List a Company's Locations

View as Markdown

Returns current physical addresses with their role-period associations, ordered HQ-first, primary-next, most-recent-first (updated_at DESC). Reads directly from the base tables so fresh writes surface immediately (bypassing the mv_entity_addresses materialized view). Set includeInactive=true as a signed-in user or with read credentials to include inactive/historical rows.

Path parameters

entityIdstringRequiredformat: "uuid"
Canonical entity UUID

Query parameters

includeInactivebooleanOptionalDefaults to false
Include inactive rows

Response headers

X-RateLimit-Limitinteger

Requests allowed per client IP in the current rate-limit window.

X-RateLimit-Remaininginteger

Requests left before the tightest applicable rate-limit bucket rejects.

X-RateLimit-Resetinteger

Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.

Response

OK
addressinteger or nullOptional
Legacy address row identifier
addressLine1string or nullOptional
Canonical street address line.
addressLine2string or nullOptional
Canonical suite, floor, or secondary address line.
associationlist of objectsOptional

Role-period associations for this physical address

cityobject or nullOptional
City reference
countryobject or nullOptional
Country reference
countryAbbrevstring or nullOptional
createdAtdatetime or nullOptional
fullAddressstring or nullOptional

Single-line formatted address

idinteger or nullOptional

Id of this listed row’s first association; PATCH and DELETE address one association by its association[].id, so a row holding several roles needs one call each

latitudedouble or nullOptional
longitudedouble or nullOptional
postalCodestring or nullOptional
Canonical postal or ZIP code.
stateobject or nullOptional
State or region reference
stateAbbrevstring or nullOptional
Canonical state or region abbreviation.
streetstring or nullOptional
updatedAtdatetime or nullOptional
isCurrentboolean or nullOptionalDeprecated

Deprecated aggregate compatibility flag; true when any association is current

isHqboolean or nullOptionalDeprecated

Deprecated legacy flag marking the current legal/registered seat (domicile), not the operating HQ. Use enrichment.headquartersAddressId matched to enrichment.address[].id for the operating headquarters.

isPrimaryboolean or nullOptionalDeprecated
Deprecated legacy flag marking the primary display address

Errors

400
Bad Request Error
404
Not Found Error
406
Not Acceptable Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error