PestPro Smart CRM Export API
The Export API from PestPro Smart CRM — 3 operation(s) for export.
The Export API from PestPro Smart CRM — 3 operation(s) for export.
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-export-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 Export 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: Export
paths:
/export/{jobId}/download:
get:
summary: Download completed export
description: 'Downloads the completed export file. Only available when job status is "completed".
Returns the file with appropriate Content-Type and Content-Disposition headers.'
tags:
- Export
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: jobId
in: path
required: true
schema:
type: string
description: Export job ID
responses:
'200':
description: Export file download
content:
application/json:
schema:
type: object
description: JSON export (when format is json)
application/zip:
schema:
type: string
format: binary
description: ZIP archive containing CSV files (when format is csv)
headers:
Content-Disposition:
schema:
type: string
description: Attachment with filename
Content-Length:
schema:
type: integer
description: File size in bytes
'400':
description: Export not ready for download
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: Export job not found
'410':
description: Export has expired and is no longer available
operationId: getExportByJobIdDownload
x-operation-id-source: derived
/export/{jobId}:
get:
summary: Get export job status
description: Returns the current status and details of an export job
tags:
- Export
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: jobId
in: path
required: true
schema:
type: string
description: Export job ID
responses:
'200':
description: Export job details
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
jobId:
type: string
status:
type: string
enum:
- pending
- processing
- completed
- failed
progress:
type: integer
description: Progress percentage (0-100)
categories:
type: array
items:
type: string
format:
type: string
totalRecords:
type: integer
processedRecords:
type: integer
fileSize:
type: integer
description: File size in bytes (when completed)
fileName:
type: string
description: File name (when completed)
downloadUrl:
type: string
description: Download URL (when completed)
error:
type: string
description: Error message (if failed)
createdAt:
type: string
format: date-time
completedAt:
type: string
format: date-time
expiresAt:
type: string
format: date-time
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: Export job not found
operationId: getExportByJobId
x-operation-id-source: derived
/export:
get:
summary: List export jobs
description: Returns a list of recent export jobs for the authenticated user
tags:
- Export
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: limit
in: query
schema:
type: integer
default: 10
maximum: 50
description: Maximum number of jobs to return
responses:
'200':
description: List of export jobs
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ExportJob'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: getExport
x-operation-id-source: derived
post:
summary: Request data export
description: 'Creates a new data export job. The export will be processed asynchronously.
Use the returned jobId to check status and download when ready.'
tags:
- Export
security:
- bearerAuth: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
categories:
type: array
items:
type: string
enum:
- all
- customers
- serviceRecords
- payments
- smsLogs
- chemicalLogs
- properties
description: Data categories to export. Use "all" for complete export.
default:
- all
format:
type: string
enum:
- json
- csv
description: Export format. CSV creates a zip file with multiple files.
default: json
responses:
'202':
description: Export job created and processing
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
jobId:
type: string
description: Unique export job identifier
status:
type: string
enum:
- pending
- processing
- completed
- failed
statusUrl:
type: string
description: URL to check job status
downloadUrl:
type: string
description: URL to download completed export
categories:
type: array
items:
type: string
format:
type: string
createdAt:
type: string
format: date-time
meta:
$ref: '#/components/schemas/Meta'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: postExport
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
schemas:
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
Error:
type: object
properties:
message:
type: string
description: Error message
details:
type: object
description: Additional error details
required:
- message
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
ExportJob:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
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