Companies
Operations related to companies
Returns a list of companies with pagination support.
Page number to retrieve.
Number of items per page.
Company name to filter companies by (partial match).
Company domain to filter companies by (partial match).
Opportunity ID to filter companies by opportunity relationship.
Unauthorized - missing or invalid API key
GET /api/v1/companies HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": [
{
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z"
}
]
}
Creates a new company.
Name of the company
Acme Corporation
Company domain
acme.com
Company description
Leading provider of innovative solutions
Company industry
Technology
Company phone number
+1-555-123-4567
Company currency
USD
Company address
123 Main Street
Postal code
12345
City
New York
Number of employees
150
Company source
Website
Annual revenue
1000000
Company status
Active
Foundation year
2020
Sell rating (0-100)
85
LinkedIn URL
https://linkedin.com/company/acme-corp
Parent company ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Unauthorized - missing or invalid API key
POST /api/v1/companies HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 493
{
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z"
}
}
Get a company by ID.
Company ID to retrieve.
Unauthorized - missing or invalid API key
GET /api/v1/companies/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z"
}
}
Updates an existing company.
Company ID to update.
Name of the company
Acme Corporation
Company domain
acme.com
Company description
Leading provider of innovative solutions
Company industry
Technology
Company phone number
+1-555-123-4567
Company currency
USD
Company address
123 Main Street
Postal code
12345
City
New York
Number of employees
150
Company source
Website
Annual revenue
1000000
Company status
Active
Foundation year
2020
Sell rating (0-100)
85
LinkedIn URL
https://linkedin.com/company/acme-corp
Parent company ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Unauthorized - missing or invalid API key
PUT /api/v1/companies/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 493
{
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "Acme Corporation",
"domain": "acme.com",
"description": "Leading provider of innovative solutions",
"industry": "Technology",
"phone": "+1-555-123-4567",
"email": "[email protected]",
"currency": "USD",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"nEmployees": 150,
"source": "Website",
"annualRevenue": 1000000,
"status": "Active",
"foundationYear": 2020,
"sellRating": 85,
"linkedinUrl": "https://linkedin.com/company/acme-corp",
"parentCompanyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z"
}
}
Deletes a company by ID.
Company ID to delete.
Unauthorized - missing or invalid API key
DELETE /api/v1/companies/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}
Returns a list of integrations for a given company ID.
Company ID to get integrations from.
Unauthorized - missing or invalid API key
GET /api/v1/companies/{id}/integrations HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"companyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"integrations": [
{
"integrationType": "crm",
"integrationName": "HubSpot",
"integrationId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
]
}
}
Returns a list of contacts associated with a company.
Company ID to get contacts from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/companies/{id}/contacts HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": [
{
"contactId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"contactFirstName": "John",
"contactLastName": "Doe",
"contactEmail": "[email protected]",
"contactTitlePosition": "Software Engineer"
}
]
}
Creates a relationship between a company and a contact.
Company ID.
Contact ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Unauthorized - missing or invalid API key
POST /api/v1/companies/{id}/contacts HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"contactId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}
Returns a list of opportunities associated with a company.
Company ID to get opportunities from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/companies/{id}/opportunities HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": [
{
"opportunityId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"opportunityName": "Q1 Sales Deal",
"opportunityAmount": 50000,
"opportunityStatus": "Open"
}
]
}
Creates a relationship between a company and an opportunity.
Company ID.
Opportunity ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Unauthorized - missing or invalid API key
POST /api/v1/companies/{id}/opportunities HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"opportunityId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}
Deletes a relationship between a company and a contact.
Company ID.
Contact ID.
Unauthorized - missing or invalid API key
DELETE /api/v1/companies/{id}/contacts/{contactId} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}
Deletes a relationship between a company and an opportunity.
Opportunity ID.
Unauthorized - missing or invalid API key
DELETE /api/v1/companies/{id}/opportunities/{opportunityId} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}