Create a CRM Company
Create a new company record in your Zeeg CRM with a workspace-unique domain and optional social profile links such as LinkedIn and Twitter.
curl --request POST \
--url https://api.zeeg.me/v2/crm/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"socials": {
"linkedin": "<string>",
"twitter": "<string>",
"facebook": "<string>",
"instagram": "<string>"
}
}
'import requests
url = "https://api.zeeg.me/v2/crm/companies"
payload = {
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"socials": {
"linkedin": "<string>",
"twitter": "<string>",
"facebook": "<string>",
"instagram": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp',
domain: 'acme.com',
description: 'A global provider of anvils and gadgets.',
websiteUrl: 'https://acme.com',
primaryLocation: 'Phoenix, AZ',
socials: {
linkedin: '<string>',
twitter: '<string>',
facebook: '<string>',
instagram: '<string>'
}
})
};
fetch('https://api.zeeg.me/v2/crm/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zeeg.me/v2/crm/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp',
'domain' => 'acme.com',
'description' => 'A global provider of anvils and gadgets.',
'websiteUrl' => 'https://acme.com',
'primaryLocation' => 'Phoenix, AZ',
'socials' => [
'linkedin' => '<string>',
'twitter' => '<string>',
'facebook' => '<string>',
'instagram' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zeeg.me/v2/crm/companies"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zeeg.me/v2/crm/companies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeeg.me/v2/crm/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"company": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"industries": [
"technology"
],
"socials": {
"linkedin": "https://linkedin.com/company/acme",
"twitter": null,
"facebook": null,
"instagram": null
},
"customAttributes": {},
"createdAt": "2025-01-15T09:00:00+00:00",
"updatedAt": "2025-06-01T12:00:00+00:00"
}
}{
"message": "Unauthenticated."
}{
"success": true,
"message": "<string>",
"status": 123
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field_name field is required."
]
}
}Domain uniqueness
domain must be unique within your workspace. Attempting to create a company with a domain that already exists will return an error. If you want to create-or-update in one call, use the Assert a CRM Company endpoint instead.
Social links
Pass social profile URLs as a nestedsocials object:
{
"name": "Acme Corp",
"socials": {
"linkedin": "https://linkedin.com/company/acme",
"twitter": "https://twitter.com/acme"
}
}
Authorizations
Body
Display name of the company.
"Acme Corp"
Primary domain. Must be unique within the workspace.
"acme.com"
Free-text description.
"A global provider of anvils and gadgets."
Company website URL.
"https://acme.com"
Primary location or address.
"Phoenix, AZ"
Response
Created
true
201
A CRM company record.
Hide child attributes
Hide child attributes
Unique identifier for the company record.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Display name of the company.
"Acme Corp"
Primary domain. Unique within the workspace. Used as the matching attribute for upsert.
"acme.com"
Free-text description of the company.
"A global provider of anvils and gadgets."
Company website URL.
"https://acme.com"
Primary location or address.
"Phoenix, AZ"
List of industry IDs assigned to the company.
["technology"]Key/value pairs for custom attributes defined on the companies object.
{}ISO 8601 timestamp when the record was created.
"2025-01-15T09:00:00+00:00"
ISO 8601 timestamp when the record was last updated.
"2025-06-01T12:00:00+00:00"
curl --request POST \
--url https://api.zeeg.me/v2/crm/companies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"socials": {
"linkedin": "<string>",
"twitter": "<string>",
"facebook": "<string>",
"instagram": "<string>"
}
}
'import requests
url = "https://api.zeeg.me/v2/crm/companies"
payload = {
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"socials": {
"linkedin": "<string>",
"twitter": "<string>",
"facebook": "<string>",
"instagram": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp',
domain: 'acme.com',
description: 'A global provider of anvils and gadgets.',
websiteUrl: 'https://acme.com',
primaryLocation: 'Phoenix, AZ',
socials: {
linkedin: '<string>',
twitter: '<string>',
facebook: '<string>',
instagram: '<string>'
}
})
};
fetch('https://api.zeeg.me/v2/crm/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zeeg.me/v2/crm/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp',
'domain' => 'acme.com',
'description' => 'A global provider of anvils and gadgets.',
'websiteUrl' => 'https://acme.com',
'primaryLocation' => 'Phoenix, AZ',
'socials' => [
'linkedin' => '<string>',
'twitter' => '<string>',
'facebook' => '<string>',
'instagram' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zeeg.me/v2/crm/companies"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zeeg.me/v2/crm/companies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zeeg.me/v2/crm/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"domain\": \"acme.com\",\n \"description\": \"A global provider of anvils and gadgets.\",\n \"websiteUrl\": \"https://acme.com\",\n \"primaryLocation\": \"Phoenix, AZ\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"company": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Acme Corp",
"domain": "acme.com",
"description": "A global provider of anvils and gadgets.",
"websiteUrl": "https://acme.com",
"primaryLocation": "Phoenix, AZ",
"industries": [
"technology"
],
"socials": {
"linkedin": "https://linkedin.com/company/acme",
"twitter": null,
"facebook": null,
"instagram": null
},
"customAttributes": {},
"createdAt": "2025-01-15T09:00:00+00:00",
"updatedAt": "2025-06-01T12:00:00+00:00"
}
}{
"message": "Unauthenticated."
}{
"success": true,
"message": "<string>",
"status": 123
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field_name field is required."
]
}
}