Contacts
Operations related to contacts
Returns a list of contacts with pagination support.
Page number to retrieve.
Number of items per page.
Contact email to filter contacts by (partial match).
Contact name to filter contacts by (partial match).
Opportunity ID to filter contacts by.
Company ID to filter contacts by.
Unauthorized - missing or invalid API key
GET /api/v1/contacts 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",
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z",
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
]
}Creates a new contact.
First name of the contact
JohnLast name of the contact
DoeSalutation of the contact
Mr.Birthday of the contact
1990-01-15T00:00:00.000ZPhone number of the contact
+1-555-123-4567Gender identity of the contact
MalePronouns of the contact
he/himFax number of the contact
+1-555-123-4568LinkedIn URL of the contact
https://linkedin.com/in/johndoeAddress of the contact
123 Main StreetPostal code of the contact
12345City of the contact
New YorkState of the contact
NYCountry of the contact
United StatesCurrency preference of the contact
USDTitle/Position of the contact
Software EngineerLanguage preference of the contact
EnglishAssistant name of the contact
Jane SmithAssistant phone number
+1-555-123-4569Division of the contact
EngineeringDepartment of the contact
Software DevelopmentDescription of the contact
Senior software engineer with 5 years of experienceLead source of the contact
WebsiteLead record type
LeadReports to contact ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4dUnauthorized - missing or invalid API key
POST /api/v1/contacts HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 734
{
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z",
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}Get a contact by ID.
Contact ID to retrieve.
Unauthorized - missing or invalid API key
GET /api/v1/contacts/{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",
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z",
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}Updates an existing contact.
Contact ID to update.
First name of the contact
JohnLast name of the contact
DoeSalutation of the contact
Mr.Birthday of the contact
1990-01-15T00:00:00.000ZPhone number of the contact
+1-555-123-4567Gender identity of the contact
MalePronouns of the contact
he/himFax number of the contact
+1-555-123-4568LinkedIn URL of the contact
https://linkedin.com/in/johndoeAddress of the contact
123 Main StreetPostal code of the contact
12345City of the contact
New YorkState of the contact
NYCountry of the contact
United StatesCurrency preference of the contact
USDTitle/Position of the contact
Software EngineerLanguage preference of the contact
EnglishAssistant name of the contact
Jane SmithAssistant phone number
+1-555-123-4569Division of the contact
EngineeringDepartment of the contact
Software DevelopmentDescription of the contact
Senior software engineer with 5 years of experienceLead source of the contact
WebsiteLead record type
LeadReports to contact ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4dUnauthorized - missing or invalid API key
PUT /api/v1/contacts/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 734
{
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"firstName": "John",
"lastName": "Doe",
"salutation": "Mr.",
"birthday": "1990-01-15T00:00:00.000Z",
"email": "[email protected]",
"phone": "+1-555-123-4567",
"genderIdentity": "Male",
"pronouns": "he/him",
"fax": "+1-555-123-4568",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"address": "123 Main Street",
"postalCode": "12345",
"city": "New York",
"state": "NY",
"country": "United States",
"currency": "USD",
"titlePosition": "Software Engineer",
"language": "English",
"assistant": "Jane Smith",
"assistantPhone": "+1-555-123-4569",
"division": "Engineering",
"department": "Software Development",
"description": "Senior software engineer with 5 years of experience",
"leadSource": "Website",
"leadRecordType": "Lead",
"reportsTo": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"createdAt": "2024-01-15T10:00:00.000Z",
"updatedAt": "2024-01-15T10:00:00.000Z",
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}Deletes a contact by ID.
Contact ID to delete.
Unauthorized - missing or invalid API key
DELETE /api/v1/contacts/{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 contact ID.
Contact ID to get integrations from.
Unauthorized - missing or invalid API key
GET /api/v1/contacts/{id}/integrations 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",
"integrations": [
{
"integrationType": "crm",
"integrationName": "HubSpot",
"integrationId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
]
}
}Returns a list of companies associated with a contact.
Contact ID to get companies from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/contacts/{id}/companies 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",
"companyName": "Acme Corp",
"companyDomain": "acme.com"
}
]
}Creates a relationship between a contact and a company.
Contact ID.
Company ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4dUnauthorized - missing or invalid API key
POST /api/v1/contacts/{id}/companies HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"companyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}Returns a list of opportunities associated with a contact.
Contact ID to get opportunities from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/contacts/{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 contact and an opportunity.
Opportunity ID
5516cd47-2bd0-4f4f-adc2-22524e54ba4dUnauthorized - missing or invalid API key
POST /api/v1/contacts/{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 contact and a company.
Contact ID.
Company ID.
Unauthorized - missing or invalid API key
DELETE /api/v1/contacts/{id}/companies/{companyId} 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 contact and an opportunity.
Opportunity ID.
Unauthorized - missing or invalid API key
DELETE /api/v1/contacts/{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
}Última actualización
