PestPro Smart CRM Service Records API
Service record documentation for completed services
Service record documentation for completed services
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pestprocrm-com:pestprocrm-com-service-records-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PestPro Smart CRM Service Records API
version: 1.0.0
description: 'PestPro Smart CRM REST API for pest control business management.
## Authentication
All API endpoints require authentication using either:
1. **Bearer Token** (Firebase Auth): Include the Firebase ID token in the Authorization header
```
Authorization: Bearer
```
2. **API Key**: Include your API key in the X-API-Key header
```
X-API-Key: pk_live_xxxxx
```
## Rate Limiting
API requests are rate limited to 100 requests per minute per user.
## Response Format
All responses follow a consistent format:
```json
{
"data": { ... },
"meta": {
"pagination": { "page": 1, "limit": 25, "total": 100, "totalPages": 4 },
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
},
"errors": null
}
```
## Pagination
List endpoints support pagination via query parameters:
- `page`: Page number (default: 1)
- `limit`: Items per page (default: 25, max: 100)
## Filtering & Sorting
- `fields`: Comma-separated list of fields to return
- `sort`: Field to sort by
- `order`: Sort order (asc or desc)
- `q` or `search`: Text search query'
contact:
name: PestPro Smart CRM Support
email: support@pestprocrm.com
license:
name: Proprietary
url: https://www.pestprocrm.com/terms
servers:
- url: /api/v1
description: API v1
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Service Records
description: Service record documentation for completed services
paths:
/service-records/{id}:
get:
summary: Get service record
description: Returns a single service record by ID
tags:
- Service Records
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Service record ID
- $ref: '#/components/parameters/fieldsParam'
responses:
'200':
description: Service record details
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ServiceRecord'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: getServiceRecordsById
x-operation-id-source: derived
put:
summary: Update service record
description: Updates an existing service record. Only provided fields are updated.
tags:
- Service Records
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceRecordCreate'
responses:
'200':
description: Service record updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ServiceRecord'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: putServiceRecordsById
x-operation-id-source: derived
delete:
summary: Delete service record
description: Permanently deletes a service record
tags:
- Service Records
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Service record deleted
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
deleted:
type: boolean
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: deleteServiceRecordsById
x-operation-id-source: derived
/service-records:
get:
summary: List service records
description: Returns a paginated list of service records. Supports filtering, searching, sorting, and field selection.
tags:
- Service Records
security:
- bearerAuth: []
- apiKey: []
parameters:
- $ref: '#/components/parameters/pageParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/sortParam'
- $ref: '#/components/parameters/orderParam'
- $ref: '#/components/parameters/fieldsParam'
- $ref: '#/components/parameters/searchParam'
- $ref: '#/components/parameters/startDateParam'
- $ref: '#/components/parameters/endDateParam'
- name: serviceType
in: query
schema:
type: string
enum:
- initial
- follow-up
- maintenance
- emergency
- name: pestType
in: query
schema:
type: string
- name: customerId
in: query
schema:
type: string
- name: completedBy
in: query
schema:
type: string
responses:
'200':
description: List of service records
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ServiceRecord'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: getServiceRecords
x-operation-id-source: derived
post:
summary: Create service record
description: Creates a new service record documenting a completed service
tags:
- Service Records
security:
- bearerAuth: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceRecordCreate'
responses:
'201':
description: Service record created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ServiceRecord'
meta:
$ref: '#/components/schemas/Meta'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: postServiceRecords
x-operation-id-source: derived
components:
responses:
BadRequest:
description: Invalid request
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
example:
data: null
meta:
requestId: req_abc123
timestamp: '2024-01-15T10:30:00Z'
errors:
- message: Authentication required
NotFound:
description: Resource not found
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
parameters:
orderParam:
name: order
in: query
description: Sort order
schema:
type: string
enum:
- asc
- desc
default: desc
limitParam:
name: limit
in: query
description: Items per page
schema:
type: integer
default: 25
minimum: 1
maximum: 100
pageParam:
name: page
in: query
description: Page number
schema:
type: integer
default: 1
minimum: 1
sortParam:
name: sort
in: query
description: Field to sort by
schema:
type: string
startDateParam:
name: startDate
in: query
description: Start date filter (YYYY-MM-DD)
schema:
type: string
format: date
fieldsParam:
name: fields
in: query
description: Comma-separated list of fields to return
schema:
type: string
searchParam:
name: q
in: query
description: Search query
schema:
type: string
endDateParam:
name: endDate
in: query
description: End date filter (YYYY-MM-DD)
schema:
type: string
format: date
schemas:
Meta:
type: object
properties:
pagination:
$ref: '#/components/schemas/Pagination'
requestId:
type: string
description: Unique request identifier
timestamp:
type: string
format: date-time
description: Response timestamp
AreaServiced:
type: object
properties:
location:
type: string
enum:
- interior
- exterior
- attic
- crawlspace
- yard
- garage
- basement
description: Area location
notes:
type: string
description: Notes about this area
required:
- location
ChemicalDose:
type: object
description: A product added at the visit (waterChemistry verticals).
properties:
product:
type: string
description: Product name as the operator calls it
maxLength: 80
amount:
type: number
description: Amount added
unit:
type: string
enum:
- oz
- fl oz
- lb
- g
- kg
- ml
- L
- qt
- pt
- gal
- tab
- cup
required:
- product
- amount
- unit
WaterReadings:
type: object
description: Pool water test at the visit (waterChemistry verticals). Numbers as read from the kit; ppm and mg/l are the same value.
properties:
freeChlorine:
type: number
description: Free chlorine, ppm / mg/l
ph:
type: number
description: pH
totalAlkalinity:
type: number
description: Total alkalinity, ppm / mg/l
cyanuricAcid:
type: number
description: Cyanuric acid (stabiliser), ppm / mg/l
calciumHardness:
type: number
description: Calcium hardness, ppm / mg/l
salt:
type: number
description: Salt, ppm / mg/l
waterTemp:
type: number
description: Water temperature
waterTempUnit:
type: string
enum:
- F
- C
description: Stamped by the server from the operator country
Error:
type: object
properties:
message:
type: string
description: Error message
details:
type: object
description: Additional error details
required:
- message
Pagination:
type: object
properties:
page:
type: integer
description: Current page number
limit:
type: integer
description: Items per page
total:
type: integer
description: Total items
totalPages:
type: integer
description: Total pages
hasNextPage:
type: boolean
description: Has more pages
hasPrevPage:
type: boolean
description: Has previous page
ServiceRecord:
type: object
properties:
id:
type: string
description: Unique service record ID
customerId:
type: string
description: Customer ID
customerName:
type: string
description: Customer name
appointmentId:
type: string
description: Associated appointment ID
propertyId:
type: string
description: Property ID
address:
type: string
description: Service address
serviceType:
type: string
enum:
- initial
- follow-up
- maintenance
- emergency
description: Type of service
pestType:
type: string
enum:
- termites
- rodents
- ants
- cockroaches
- mosquitoes
- wildlife
- bed-bugs
- spiders
- wasps
- fleas
- ticks
- other
description: Type of pest treated
productsUsed:
type: array
items:
$ref: '#/components/schemas/ProductUsed'
description: Products applied during service
areasServiced:
type: array
items:
$ref: '#/components/schemas/AreaServiced'
description: Areas serviced
findings:
type: string
description: Description of what was found during inspection
recommendations:
type: string
description: Follow-up suggestions and recommendations
photos:
type: array
items:
type: string
description: Photo URLs (before/after via Cloudinary)
waterReadings:
$ref: '#/components/schemas/WaterReadings'
chemicalDoses:
type: array
items:
$ref: '#/components/schemas/ChemicalDose'
description: Products added at the visit (pool verticals)
weatherConditions:
$ref: '#/components/schemas/WeatherConditions'
completedBy:
type: string
description: Technician ID who completed the service
completedAt:
type: string
format: date-time
description: When the service was completed
duration:
type: integer
description: Duration in minutes
customerSignature:
type: string
description: Customer signature (base64 or URL)
createdAt:
type: string
format: date-time
description: Created timestamp
updatedAt:
type: string
format: date-time
description: Updated timestamp
required:
- id
- customerId
- serviceType
- pestType
ServiceRecordCreate:
type: object
properties:
customerId:
type: string
description: Customer ID
appointmentId:
type: string
description: Associated appointment ID
propertyId:
type: string
description: Property ID
address:
type: string
description: Service address (defaults to customer address)
serviceType:
type: string
enum:
- initial
- follow-up
- maintenance
- emergency
description: Type of service
pestType:
type: string
enum:
- termites
- rodents
- ants
- cockroaches
- mosquitoes
- wildlife
- bed-bugs
- spiders
- wasps
- fleas
- ticks
- other
description: Type of pest treated
productsUsed:
type: array
items:
$ref: '#/components/schemas/ProductUsed'
description: Products applied during service
areasServiced:
type: array
items:
$ref: '#/components/schemas/AreaServiced'
description: Areas serviced
findings:
type: string
description: Description of what was found during inspection
recommendations:
type: string
description: Follow-up suggestions and recommendations
photos:
type: array
items:
type: string
description: Photo URLs (before/after via Cloudinary)
waterReadings:
$ref: '#/components/schemas/WaterReadings'
chemicalDoses:
type: array
items:
$ref: '#/components/schemas/ChemicalDose'
description: Products added at the visit (pool verticals)
weatherConditions:
$ref: '#/components/schemas/WeatherConditions'
completedBy:
type: string
description: Technician ID (defaults to authenticated user)
completedAt:
type: string
format: date-time
description: When the service was completed (defaults to now)
duration:
type: integer
description: Duration in minutes
customerSignature:
type: string
description: Customer signature (base64 or URL)
required:
- customerId
- serviceType
- pestType
WeatherConditions:
type: object
properties:
temp:
type: number
description: Temperature in Fahrenheit
humidity:
type: number
description: Humidity percentage
wind:
type: string
description: Wind conditions
ProductUsed:
type: object
properties:
productName:
type: string
description: Name of the product used
EPA_registration:
type: string
description: EPA registration number
amount:
type: number
description: Amount of product used
unit:
type: string
description: Unit of measurement (oz, ml, gal, etc.)
applicationMethod:
type: string
description: Method of application (spray, bait, dust, etc.)
required:
- productName
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Firebase ID token
apiKey:
type: apiKey
in: header
name: X-API-Key
description: API key for programmatic access