For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Contacts

List Contacts

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · int32 · min: 1Optional

Page number to fetch, 1-indexed. Defaults to 1.

perPageinteger · int32 · min: 1 · max: 100Optional

Number of results per page (1-100). Defaults to the API's standard page size if omitted.

querystringOptional

Lucene-style filter query (e.g. status:active AND createdAt:[2024-01-01 TO *]). Field names match the Contact object's own fields. This syntax is part of an in-flight migration (see docs/design/lucene-migration-json-filter-spec.md) and may change.

sortstringOptional

Field name to sort by. One of id, firstName, lastName, secondaryFirstName, secondaryLastName, company, email, alternateEmail, phoneNumber, phoneNumberExt, alternatePhoneNumber, alternatePhoneNumberExt, preferredContactMethod, address, city, state, zip, leadSource, source.provider, source.id, timestamp.created, timestamp.updated. createdAt and updatedAt are accepted for timestamp.created and timestamp.updated. A :asc or :desc suffix (e.g. timestamp.updated:desc) sets the direction, and a leading - (e.g. -timestamp.updated) means descending. Either one overrides sortDir, and the suffix wins over the prefix. Any other field returns a 400. Defaults to timestamp.updated.

sortDirstring · enumOptional

Sort direction: asc or desc. Only takes effect when sort is set.

Possible values:
Responses
200

List of contacts

application/json
totalRowsnumberOptional
pagenumberOptional
perPagenumberOptional
get/contacts
GET /v2/contacts HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "totalRows": 1,
  "page": 1,
  "perPage": 1,
  "rows": [
    {
      "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
      "firstName": "Bob",
      "lastName": "Johnson",
      "company": "Johnson Construction",
      "email": "bob@johnsonconstruction.com",
      "phoneNumber": "5551234567"
    }
  ]
}

Create Contact

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringOptional

The unique ID of the Contact. Ignored when creating & updating contacts

firstNamestring · nullableOptional

The First Name of the Contact.

lastNamestring · nullableOptional

The Last Name of the Contact

secondaryFirstNamestring · nullableOptional

The secondary First Name of the Contact

secondaryLastNamestring · nullableOptional

The secondary Last Name of the Contact

companystring · nullableOptional

The name of the Company this Contact is associated with

emailstring · nullableOptional

The email address of this Contact

alternateEmailstring · nullableOptional

The alternate email address of this Contact

phoneNumberstring · nullableOptional

The phone number of this Contact

phoneNumberExtstring · nullableOptional

The phone number extension of this Contact

alternatePhoneNumberstring · nullableOptional

The alternate phone number of this Contact

alternatePhoneNumberExtstring · nullableOptional

The alternate phone number extension of this Contact

preferredContactMethodstring · nullableOptional

The preferred contact method for this Contact

addressstring · nullableOptional

The address of this Contact

citystring · nullableOptional

The city of this Contact

statestring · nullableOptional

The state of this Contact

zipstring · nullableOptional

The zip or postal code of this Contact

leadSourcestring · nullableOptional

The lead source of this Contact

notestring · nullableOptional

A note about this Contact

tagsstring[]Optional

Tags associated with this Contact

Responses
200

Details about the new Contact

application/json
idstringOptional

The unique ID of the Contact. Ignored when creating & updating contacts

firstNamestring · nullableOptional

The First Name of the Contact.

lastNamestring · nullableOptional

The Last Name of the Contact

secondaryFirstNamestring · nullableOptional

The secondary First Name of the Contact

secondaryLastNamestring · nullableOptional

The secondary Last Name of the Contact

companystring · nullableOptional

The name of the Company this Contact is associated with

emailstring · nullableOptional

The email address of this Contact

alternateEmailstring · nullableOptional

The alternate email address of this Contact

phoneNumberstring · nullableOptional

The phone number of this Contact

phoneNumberExtstring · nullableOptional

The phone number extension of this Contact

alternatePhoneNumberstring · nullableOptional

The alternate phone number of this Contact

alternatePhoneNumberExtstring · nullableOptional

The alternate phone number extension of this Contact

preferredContactMethodstring · nullableOptional

The preferred contact method for this Contact

addressstring · nullableOptional

The address of this Contact

citystring · nullableOptional

The city of this Contact

statestring · nullableOptional

The state of this Contact

zipstring · nullableOptional

The zip or postal code of this Contact

leadSourcestring · nullableOptional

The lead source of this Contact

notestring · nullableOptional

A note about this Contact

tagsstring[]Optional

Tags associated with this Contact

post/contacts
POST /v2/contacts HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 182

{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "firstName": "Bob",
  "lastName": "Johnson",
  "company": "Johnson Construction",
  "email": "bob@johnsonconstruction.com",
  "phoneNumber": "5551234567"
}
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "firstName": "Bob",
  "lastName": "Johnson",
  "company": "Johnson Construction",
  "email": "bob@johnsonconstruction.com",
  "phoneNumber": "5551234567"
}

Retrieve Contact

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Contact

Responses
200

Details about the contact

application/json
idstringOptional

The unique ID of the Contact. Ignored when creating & updating contacts

firstNamestring · nullableOptional

The First Name of the Contact.

lastNamestring · nullableOptional

The Last Name of the Contact

secondaryFirstNamestring · nullableOptional

The secondary First Name of the Contact

secondaryLastNamestring · nullableOptional

The secondary Last Name of the Contact

companystring · nullableOptional

The name of the Company this Contact is associated with

emailstring · nullableOptional

The email address of this Contact

alternateEmailstring · nullableOptional

The alternate email address of this Contact

phoneNumberstring · nullableOptional

The phone number of this Contact

phoneNumberExtstring · nullableOptional

The phone number extension of this Contact

alternatePhoneNumberstring · nullableOptional

The alternate phone number of this Contact

alternatePhoneNumberExtstring · nullableOptional

The alternate phone number extension of this Contact

preferredContactMethodstring · nullableOptional

The preferred contact method for this Contact

addressstring · nullableOptional

The address of this Contact

citystring · nullableOptional

The city of this Contact

statestring · nullableOptional

The state of this Contact

zipstring · nullableOptional

The zip or postal code of this Contact

leadSourcestring · nullableOptional

The lead source of this Contact

notestring · nullableOptional

A note about this Contact

tagsstring[]Optional

Tags associated with this Contact

get/contacts/{id}
GET /v2/contacts/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "firstName": "Bob",
  "lastName": "Johnson",
  "company": "Johnson Construction",
  "email": "bob@johnsonconstruction.com",
  "phoneNumber": "5551234567"
}

Update Contact

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Contact

Body
idstringOptional

The unique ID of the Contact. Ignored when creating & updating contacts

firstNamestring · nullableOptional

The First Name of the Contact.

lastNamestring · nullableOptional

The Last Name of the Contact

secondaryFirstNamestring · nullableOptional

The secondary First Name of the Contact

secondaryLastNamestring · nullableOptional

The secondary Last Name of the Contact

companystring · nullableOptional

The name of the Company this Contact is associated with

emailstring · nullableOptional

The email address of this Contact

alternateEmailstring · nullableOptional

The alternate email address of this Contact

phoneNumberstring · nullableOptional

The phone number of this Contact

phoneNumberExtstring · nullableOptional

The phone number extension of this Contact

alternatePhoneNumberstring · nullableOptional

The alternate phone number of this Contact

alternatePhoneNumberExtstring · nullableOptional

The alternate phone number extension of this Contact

preferredContactMethodstring · nullableOptional

The preferred contact method for this Contact

addressstring · nullableOptional

The address of this Contact

citystring · nullableOptional

The city of this Contact

statestring · nullableOptional

The state of this Contact

zipstring · nullableOptional

The zip or postal code of this Contact

leadSourcestring · nullableOptional

The lead source of this Contact

notestring · nullableOptional

A note about this Contact

tagsstring[]Optional

Tags associated with this Contact

Responses
200

The updated contact

application/json
idstringOptional

The unique ID of the Contact. Ignored when creating & updating contacts

firstNamestring · nullableOptional

The First Name of the Contact.

lastNamestring · nullableOptional

The Last Name of the Contact

secondaryFirstNamestring · nullableOptional

The secondary First Name of the Contact

secondaryLastNamestring · nullableOptional

The secondary Last Name of the Contact

companystring · nullableOptional

The name of the Company this Contact is associated with

emailstring · nullableOptional

The email address of this Contact

alternateEmailstring · nullableOptional

The alternate email address of this Contact

phoneNumberstring · nullableOptional

The phone number of this Contact

phoneNumberExtstring · nullableOptional

The phone number extension of this Contact

alternatePhoneNumberstring · nullableOptional

The alternate phone number of this Contact

alternatePhoneNumberExtstring · nullableOptional

The alternate phone number extension of this Contact

preferredContactMethodstring · nullableOptional

The preferred contact method for this Contact

addressstring · nullableOptional

The address of this Contact

citystring · nullableOptional

The city of this Contact

statestring · nullableOptional

The state of this Contact

zipstring · nullableOptional

The zip or postal code of this Contact

leadSourcestring · nullableOptional

The lead source of this Contact

notestring · nullableOptional

A note about this Contact

tagsstring[]Optional

Tags associated with this Contact

put/contacts/{id}
PUT /v2/contacts/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 182

{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "firstName": "Bob",
  "lastName": "Johnson",
  "company": "Johnson Construction",
  "email": "bob@johnsonconstruction.com",
  "phoneNumber": "5551234567"
}
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "firstName": "Bob",
  "lastName": "Johnson",
  "company": "Johnson Construction",
  "email": "bob@johnsonconstruction.com",
  "phoneNumber": "5551234567"
}

Delete Contact

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of the Contact

Responses
204

No Content

No content

delete/contacts/{id}
DELETE /v2/contacts/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?