Get Companies
curl --request GET \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"tags": [
"<string>"
],
"status": "preferred",
"notes": "<string>",
"ratingQuality": 123,
"ratingLeadTime": 123,
"ratingPricing": 123,
"website": "<string>",
"accountNumber": "<string>",
"vatTaxId": "<string>",
"registrationNumber": "<string>",
"portalUrl": "<string>",
"portalLogin": "<string>",
"portalPasswordSet": true,
"paymentTerms": "net_30",
"creditLimit": "<string>",
"minOrderAmount": "<string>",
"standardDiscountPct": "<string>",
"defaultLeadTimeDays": 123,
"primaryPerson": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
}Companies
Get Companies
GET
/
v1
/
workspaces
/
{workspaceId}
/
contacts
/
companies
/
{companyId}
Get Companies
curl --request GET \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"tags": [
"<string>"
],
"status": "preferred",
"notes": "<string>",
"ratingQuality": 123,
"ratingLeadTime": 123,
"ratingPricing": 123,
"website": "<string>",
"accountNumber": "<string>",
"vatTaxId": "<string>",
"registrationNumber": "<string>",
"portalUrl": "<string>",
"portalLogin": "<string>",
"portalPasswordSet": true,
"paymentTerms": "net_30",
"creditLimit": "<string>",
"minOrderAmount": "<string>",
"standardDiscountPct": "<string>",
"defaultLeadTimeDays": 123,
"primaryPerson": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
}Response
200 - application/json
Show child attributes
Show child attributes
Available options:
preferred, approved, pending_approval, inactive Available options:
net_30, net_60, due_on_receipt, deposit_50 Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I