Get company by ID
curl --request GET \
--url https://api.stardex.ai/v1/companies/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stardex.ai/v1/companies/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stardex.ai/v1/companies/{id}', 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.stardex.ai/v1/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stardex.ai/v1/companies/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stardex.ai/v1/companies/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "456e7890-e12b-34d5-a678-901234567890",
"name": "Acme Corp",
"domain": "acme.com",
"linkedin_url": "https://www.linkedin.com/company/acme",
"linkedin_id": 12345678,
"location": "San Francisco, CA",
"phone": "+1-555-0100",
"description": "Leading technology solutions provider specializing in enterprise SaaS.",
"is_client": true,
"do_not_contact": true,
"do_not_contact_metadata": {
"reason": "Active client — protect from sourcing",
"do_not_contact_added_by": "234e5678-e90a-12b3-c456-789012345678",
"date_added": "2024-06-01T09:00:00Z",
"last_updated_at": "2024-06-15T14:30:00Z",
"last_updated_by": "234e5678-e90a-12b3-c456-789012345678",
"expiration_date": "2024-09-15T00:00:00Z"
},
"created_at": "2024-01-05T10:00:00Z",
"date_of_last_engagement": "2024-06-15T14:30:00Z",
"client_status": {
"id": "789e0123-e45f-67a8-b901-234567890123",
"name": "Active"
},
"enriched_company": {
"id": "ec123456-7890-abcd-ef01-234567890abc",
"name": "Acme Corp",
"domain": "acme.com",
"linkedin_url": "https://www.linkedin.com/company/acme"
},
"owners": [
{
"id": "234e5678-e90a-12b3-c456-789012345678",
"first_name": "Jane",
"last_name": "Smith"
}
],
"custom_fields": [
{
"attribute_id": "e5f6a7b8-c9d0-1234-efab-567890123456",
"attribute_name": "Industry",
"data_type": "single-select",
"value": null,
"tag": {
"id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"name": "Technology"
},
"team_member": null
},
{
"attribute_id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
"attribute_name": "Account Owner",
"data_type": "multi-team-member",
"value": null,
"tag": null,
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
}
}
]
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Companies
Get company by ID
Retrieve detailed information about a specific company including client status, owners, enriched data, and custom field values. Custom fields are included by default; pass include= (empty) for base fields only.
GET
/
v1
/
companies
/
{id}
Get company by ID
curl --request GET \
--url https://api.stardex.ai/v1/companies/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stardex.ai/v1/companies/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stardex.ai/v1/companies/{id}', 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.stardex.ai/v1/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stardex.ai/v1/companies/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stardex.ai/v1/companies/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "456e7890-e12b-34d5-a678-901234567890",
"name": "Acme Corp",
"domain": "acme.com",
"linkedin_url": "https://www.linkedin.com/company/acme",
"linkedin_id": 12345678,
"location": "San Francisco, CA",
"phone": "+1-555-0100",
"description": "Leading technology solutions provider specializing in enterprise SaaS.",
"is_client": true,
"do_not_contact": true,
"do_not_contact_metadata": {
"reason": "Active client — protect from sourcing",
"do_not_contact_added_by": "234e5678-e90a-12b3-c456-789012345678",
"date_added": "2024-06-01T09:00:00Z",
"last_updated_at": "2024-06-15T14:30:00Z",
"last_updated_by": "234e5678-e90a-12b3-c456-789012345678",
"expiration_date": "2024-09-15T00:00:00Z"
},
"created_at": "2024-01-05T10:00:00Z",
"date_of_last_engagement": "2024-06-15T14:30:00Z",
"client_status": {
"id": "789e0123-e45f-67a8-b901-234567890123",
"name": "Active"
},
"enriched_company": {
"id": "ec123456-7890-abcd-ef01-234567890abc",
"name": "Acme Corp",
"domain": "acme.com",
"linkedin_url": "https://www.linkedin.com/company/acme"
},
"owners": [
{
"id": "234e5678-e90a-12b3-c456-789012345678",
"first_name": "Jane",
"last_name": "Smith"
}
],
"custom_fields": [
{
"attribute_id": "e5f6a7b8-c9d0-1234-efab-567890123456",
"attribute_name": "Industry",
"data_type": "single-select",
"value": null,
"tag": {
"id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"name": "Technology"
},
"team_member": null
},
{
"attribute_id": "a7b8c9d0-e1f2-3456-abcd-789012345678",
"attribute_name": "Account Owner",
"data_type": "multi-team-member",
"value": null,
"tag": null,
"team_member": {
"id": "234e5678-e90a-12b3-c456-789012345678",
"name": "Jane Smith"
}
}
]
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Authenticate with a Bearer token: API key, OAuth token, or session token.
Path Parameters
Company ID
Query Parameters
Comma-separated extra sections. Values: custom_fields. Default: custom_fields. Pass empty string for base fields only.
Was this page helpful?
⌘I