For the complete documentation index, see llms.txt. This page is also available as Markdown.

Companies

List Companies

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 Company 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 - any top-level field of the Company object returned by this endpoint. Defaults to the API's natural order if omitted.

sortDirstring · enumOptional

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

Possible values:
Responses
200

List of companies

application/json
totalRowsnumberOptional
pagenumberOptional
perPagenumberOptional
get/companies
GET /v2/companies 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",
      "name": "Bobs Plumbing",
      "email": "bob@bobsplumbing.com",
      "phoneNumber": "5551234567"
    }
  ]
}

Create Company

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

The unique ID of the Company. Ignord when creating & updating companies

namestring · nullableOptional

The Name of the Company.

emailstring · nullableOptional

The email address of this Company

phoneNumberstring · nullableOptional

The phone number of this Company

phoneNumberExtstring · nullableOptional

The phone number extension of this Company

addressstring · nullableOptional

The address of this Company

citystring · nullableOptional

The city of this Company

statestring · nullableOptional

The state of this Company

zipstring · nullableOptional

The zip or postal code of this Company

leadSourcestring · nullableOptional

The lead source of this Company

tagsstring[]Optional

Tags associated with this Company

Responses
200

Details about the new Company

application/json
idstringOptional

The unique ID of the Company. Ignord when creating & updating companies

namestring · nullableOptional

The Name of the Company.

emailstring · nullableOptional

The email address of this Company

phoneNumberstring · nullableOptional

The phone number of this Company

phoneNumberExtstring · nullableOptional

The phone number extension of this Company

addressstring · nullableOptional

The address of this Company

citystring · nullableOptional

The city of this Company

statestring · nullableOptional

The state of this Company

zipstring · nullableOptional

The zip or postal code of this Company

leadSourcestring · nullableOptional

The lead source of this Company

tagsstring[]Optional

Tags associated with this Company

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

{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "name": "Bobs Plumbing",
  "email": "bob@bobsplumbing.com",
  "phoneNumber": "5551234567"
}
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "name": "Bobs Plumbing",
  "email": "bob@bobsplumbing.com",
  "phoneNumber": "5551234567"
}

Retrieve Company

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

ID of the Company

Responses
200

Details about the company

application/json
idstringOptional

The unique ID of the Company. Ignord when creating & updating companies

namestring · nullableOptional

The Name of the Company.

emailstring · nullableOptional

The email address of this Company

phoneNumberstring · nullableOptional

The phone number of this Company

phoneNumberExtstring · nullableOptional

The phone number extension of this Company

addressstring · nullableOptional

The address of this Company

citystring · nullableOptional

The city of this Company

statestring · nullableOptional

The state of this Company

zipstring · nullableOptional

The zip or postal code of this Company

leadSourcestring · nullableOptional

The lead source of this Company

tagsstring[]Optional

Tags associated with this Company

get/companies/{id}
GET /v2/companies/{id} HTTP/1.1
Host: openapi.paintscout.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "name": "Bobs Plumbing",
  "email": "bob@bobsplumbing.com",
  "phoneNumber": "5551234567"
}

Update Company

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

ID of the Company

Body
idstringOptional

The unique ID of the Company. Ignord when creating & updating companies

namestring · nullableOptional

The Name of the Company.

emailstring · nullableOptional

The email address of this Company

phoneNumberstring · nullableOptional

The phone number of this Company

phoneNumberExtstring · nullableOptional

The phone number extension of this Company

addressstring · nullableOptional

The address of this Company

citystring · nullableOptional

The city of this Company

statestring · nullableOptional

The state of this Company

zipstring · nullableOptional

The zip or postal code of this Company

leadSourcestring · nullableOptional

The lead source of this Company

tagsstring[]Optional

Tags associated with this Company

Responses
200

The updated company

application/json
idstringOptional

The unique ID of the Company. Ignord when creating & updating companies

namestring · nullableOptional

The Name of the Company.

emailstring · nullableOptional

The email address of this Company

phoneNumberstring · nullableOptional

The phone number of this Company

phoneNumberExtstring · nullableOptional

The phone number extension of this Company

addressstring · nullableOptional

The address of this Company

citystring · nullableOptional

The city of this Company

statestring · nullableOptional

The state of this Company

zipstring · nullableOptional

The zip or postal code of this Company

leadSourcestring · nullableOptional

The lead source of this Company

tagsstring[]Optional

Tags associated with this Company

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

{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "name": "Bobs Plumbing",
  "email": "bob@bobsplumbing.com",
  "phoneNumber": "5551234567"
}
{
  "id": "abcd1234-abcd-1234-abcd-abcd1234abcd",
  "name": "Bobs Plumbing",
  "email": "bob@bobsplumbing.com",
  "phoneNumber": "5551234567"
}

Delete Company

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

ID of the Company

Responses
204

No Content

No content

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

No content

Last updated

Was this helpful?