---
title: "Get a company by external id"
method: GET
path: "/v1/companies/externalId={externalId}"
tags: ["Companies"]
---

# Get a company by external id

`GET /v1/companies/externalId={externalId}`

## Request

- Base URL: `https://api.metal.ai`
- URL: `https://api.metal.ai/v1/companies/externalId={externalId}`
- Auth: API key in header `x-metal-client-id` and API key in header `x-metal-api-key`
- TypeScript: <https://skmtc.dev/metal/apis/metal-api/docs/v1/companies/externalId=:externalId/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a company using your own external identifier.

## Path parameters

- `externalId` string, required

## Response `200`

A company.

- object
  - `data` Company: A company record. Many attributes are populated by enrichment: Metal gathers candidate values from your documents, data providers, and the web, then ranks and reconciles them into the single value shown here. See the Enrichment and Reconciliation & ranking guides. The `enrichment` field exposes the discovered values and citations behind each reconciled attribute.
    - `id` string
    - `canonicalName` string
    - `alternativeNames` string[]
    - `website` string
    - `description` string
    - `shortDescription` string
    - `sector` string
    - `subsector` string
    - `industry` string
    - `location` Location
      - `city` string
      - `state` string
      - `country` string
    - `companyType` 'operating' | 'investor' | 'lender' | 'investment_bank' | 'advisor' | 'sponsor' | 'service_provider'
    - `origin` 'user' | 'crm' | 'agent' | 'screening'
    - `externalId` string
    - `externalReference` ExternalReference: A structured reference to a record in an external source system.
      - `source` string: The external system, e.g. a CRM provider.
      - `id` string: The record id in the external system.
    - `tags` string[]
    - `assignees` Reference[]
      - `id` string
      - `type` string: The referenced resource type, e.g. "user" or "team".
    - `custom` object: Organization-defined custom fields.
    - `employeeCount` integer: Enriched. Approximate headcount, used as a size proxy.
    - `ownershipStatus` string: Enriched. Ownership status, e.g. "private", "public", or "sponsor-owned".
    - `lastValuation` number: Enriched. Most recent known valuation.
    - `lastRoundDate` string, date: Enriched. Date of the most recent funding round.
    - `lastAmountRaised` number: Enriched. Amount raised in the most recent round.
    - `totalMoneyRaised` number: Enriched. Total capital raised to date.
    - `lastFinancials` object: Enriched. Most recent reported financials (such as revenue).
    - `enrichment` EnrichmentProvenance: Maps an enriched field name to the list of values Metal discovered for it. The resolved (top-ranked or pinned) value is reflected on the field itself; this object exposes the alternatives and their citations.
    - `lastEnrichedAt` string, date-time: When enrichment last completed and wrote values.
    - `lastEnrichmentStartedAt` string, date-time: When the most recent enrichment run began. If newer than `lastEnrichedAt`, a run is in progress.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Missing or invalid API key credentials.
- `404`: The resource does not exist in your organization.

---

[API](https://skmtc.dev/metal/apis/metal-api.md) - [All operations](https://skmtc.dev/metal/apis/metal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metal/apis/metal-api/revisions/afb7b675d5b2?raw)
