Contacts

Operations related to contacts

Get all Contacts

get

Returns a list of contacts with pagination support.

Autorizaciones
Parámetros de consulta
pagenumberOpcional

Page number to retrieve.

limitnumberOpcional

Number of items per page.

emailstringOpcional

Contact email to filter contacts by (partial match).

namestringOpcional

Contact name to filter contacts by (partial match).

opportunityIdstringOpcional

Opportunity ID to filter contacts by.

companyIdstringOpcional

Company ID to filter contacts by.

Respuestas
200Éxito
application/json
get
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"
    }
  ]
}

Create Contact

post

Creates a new contact.

Autorizaciones
Cuerpo
firstNamestringOpcional

First name of the contact

Example: John
lastNamestringOpcional

Last name of the contact

Example: Doe
salutationstringOpcional

Salutation of the contact

Example: Mr.
birthdaystring · date-timeOpcional

Birthday of the contact

Example: 1990-01-15T00:00:00.000Z
emailstringRequerido

Email address of the contact

Example: [email protected]
phonestringOpcional

Phone number of the contact

Example: +1-555-123-4567
genderIdentitystringOpcional

Gender identity of the contact

Example: Male
pronounsstringOpcional

Pronouns of the contact

Example: he/him
faxstringOpcional

Fax number of the contact

Example: +1-555-123-4568
linkedinUrlstringOpcional

LinkedIn URL of the contact

Example: https://linkedin.com/in/johndoe
addressstringOpcional

Address of the contact

Example: 123 Main Street
postalCodestringOpcional

Postal code of the contact

Example: 12345
citystringOpcional

City of the contact

Example: New York
statestringOpcional

State of the contact

Example: NY
countrystringOpcional

Country of the contact

Example: United States
currencystringOpcional

Currency preference of the contact

Example: USD
titlePositionstringOpcional

Title/Position of the contact

Example: Software Engineer
languagestringOpcional

Language preference of the contact

Example: English
assistantstringOpcional

Assistant name of the contact

Example: Jane Smith
assistantPhonestringOpcional

Assistant phone number

Example: +1-555-123-4569
divisionstringOpcional

Division of the contact

Example: Engineering
departmentstringOpcional

Department of the contact

Example: Software Development
descriptionstringOpcional

Description of the contact

Example: Senior software engineer with 5 years of experience
leadSourcestringOpcional

Lead source of the contact

Example: Website
leadRecordTypestringOpcional

Lead record type

Example: Lead
reportsTostringOpcional

Reports to contact ID

Example: 5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Respuestas
201Éxito
application/json
post
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"
  }
}

Get Contact by ID

get

Get a contact by ID.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to retrieve.

Respuestas
200Éxito
application/json
get
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"
  }
}

Update Contact

put

Updates an existing contact.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to update.

Cuerpo
firstNamestringOpcional

First name of the contact

Example: John
lastNamestringOpcional

Last name of the contact

Example: Doe
salutationstringOpcional

Salutation of the contact

Example: Mr.
birthdaystring · date-timeOpcional

Birthday of the contact

Example: 1990-01-15T00:00:00.000Z
emailstringOpcional

Email address of the contact

Example: [email protected]
phonestringOpcional

Phone number of the contact

Example: +1-555-123-4567
genderIdentitystringOpcional

Gender identity of the contact

Example: Male
pronounsstringOpcional

Pronouns of the contact

Example: he/him
faxstringOpcional

Fax number of the contact

Example: +1-555-123-4568
linkedinUrlstringOpcional

LinkedIn URL of the contact

Example: https://linkedin.com/in/johndoe
addressstringOpcional

Address of the contact

Example: 123 Main Street
postalCodestringOpcional

Postal code of the contact

Example: 12345
citystringOpcional

City of the contact

Example: New York
statestringOpcional

State of the contact

Example: NY
countrystringOpcional

Country of the contact

Example: United States
currencystringOpcional

Currency preference of the contact

Example: USD
titlePositionstringOpcional

Title/Position of the contact

Example: Software Engineer
languagestringOpcional

Language preference of the contact

Example: English
assistantstringOpcional

Assistant name of the contact

Example: Jane Smith
assistantPhonestringOpcional

Assistant phone number

Example: +1-555-123-4569
divisionstringOpcional

Division of the contact

Example: Engineering
departmentstringOpcional

Department of the contact

Example: Software Development
descriptionstringOpcional

Description of the contact

Example: Senior software engineer with 5 years of experience
leadSourcestringOpcional

Lead source of the contact

Example: Website
leadRecordTypestringOpcional

Lead record type

Example: Lead
reportsTostringOpcional

Reports to contact ID

Example: 5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Respuestas
200Éxito
application/json
put
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"
  }
}

Delete Contact

delete

Deletes a contact by ID.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to delete.

Respuestas
200Éxito
application/json
delete
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
}

Get Contact Integrations

get

Returns a list of integrations for a given contact ID.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to get integrations from.

Respuestas
200Éxito
application/json
get
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"
      }
    ]
  }
}

Get Contact Companies

get

Returns a list of companies associated with a contact.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to get companies from.

Parámetros de consulta
pagenumberOpcional

Page number to retrieve.

limitnumberOpcional

Number of items per page.

Respuestas
200Éxito
application/json
get
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"
    }
  ]
}

Create Contact Company Relationship

post

Creates a relationship between a contact and a company.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID.

Cuerpo
companyIdstringRequerido

Company ID

Example: 5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Respuestas
201Éxito
application/json
post
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
}

Get Contact Opportunities

get

Returns a list of opportunities associated with a contact.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID to get opportunities from.

Parámetros de consulta
pagenumberOpcional

Page number to retrieve.

limitnumberOpcional

Number of items per page.

Respuestas
200Éxito
application/json
get
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"
    }
  ]
}

Create Contact Opportunity Relationship

post

Creates a relationship between a contact and an opportunity.

Autorizaciones
Parámetros de ruta
idstringRequerido
Cuerpo
opportunityIdstringRequerido

Opportunity ID

Example: 5516cd47-2bd0-4f4f-adc2-22524e54ba4d
Respuestas
201Éxito
application/json
post
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
}

Delete Contact Company Relationship

delete

Deletes a relationship between a contact and a company.

Autorizaciones
Parámetros de ruta
idstringRequerido

Contact ID.

companyIdstringRequerido

Company ID.

Respuestas
200Éxito
application/json
delete
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
}

Delete Contact Opportunity Relationship

delete

Deletes a relationship between a contact and an opportunity.

Autorizaciones
Parámetros de ruta
idstringRequerido
opportunityIdstringRequerido

Opportunity ID.

Respuestas
200Éxito
application/json
delete
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
}