Skip to main content
POST
/
api
/
companies
/
{company_id}
/
select-domain
Select company domain
curl --request POST \
  --url https://api.morphic.io/api/companies/{company_id}/select-domain \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "selected_domain": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "custom_fields": {},
  "domains": "<string>",
  "industry": "<string>",
  "company_size": "<string>",
  "employee_count": 1,
  "annual_revenue": 1,
  "phone": "<string>",
  "email": "jsmith@example.com",
  "website": "<string>",
  "address": "<string>",
  "city": "<string>",
  "state": "<string>",
  "country": "<string>",
  "postal_code": "<string>",
  "linkedin_url": "<string>",
  "facebook_url": "<string>",
  "instagram_url": "<string>",
  "twitter_url": "<string>",
  "twitter_handle": "<string>",
  "twitter_follower_count": 1,
  "description": "<string>",
  "notes": "<string>",
  "logo_url": "<string>",
  "connection_strength": "<string>",
  "status": "<string>",
  "categories": [
    "<string>"
  ],
  "team_ids": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "associated_deal_ids": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "metadata": {},
  "enrichment": {},
  "enrichment_provider": "<string>",
  "enrichment_last_updated": "2023-11-07T05:31:56Z",
  "enrichment_status": "<string>",
  "is_favorite": false
}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Path Parameters

company_id
string
required

Body

application/json
selected_domain
string
required

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string
required
Required string length: 1 - 255
account_id
string<uuid>
required
custom_fields
Custom Fields · object
required

Backward compatibility - returns metadata as custom_fields.

domains
industry
string | null
company_size
string | null
employee_count
integer | null
Required range: x >= 0
annual_revenue
number | null
Required range: x >= 0
phone
string | null
email
string<email> | null
website
string | null
address
string | null
city
string | null
state
string | null
country
string | null
postal_code
string | null
linkedin_url
string | null
facebook_url
string | null
instagram_url
string | null
twitter_url
string | null
twitter_handle
string | null
twitter_follower_count
integer | null
Required range: x >= 0
description
string | null
notes
string | null
logo_url
string | null
connection_strength
string | null

weak, medium, or strong

status
string | null

lead, qualified, engaged, opportunity, customer, inactive

categories
string[] | null
team_ids
ReferenceItem · object[] | null

Team members with id and name

associated_deal_ids
ReferenceItem · object[] | null

Associated deals with id and name

metadata
Metadata · object
enrichment
Enrichment · object
enrichment_provider
string | null
enrichment_last_updated
string<date-time> | null
enrichment_status
string | null
is_favorite
boolean
default:false

Whether this record is favorited by the current user