Smarfle Customers API
The Customers API from Smarfle — 2 operation(s) for customers.
The Customers API from Smarfle — 2 operation(s) for customers.
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/smarfle-com:smarfle-com-customers-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: Smarfle Customers API
version: 1.0.0
description: 'Read and write your Smarfle customers, jobs, invoices and services, and subscribe to webhooks. Create an API key in Smarfle: Company Settings, Integrations, API. Every key belongs to one business and only ever sees that business''s data. Reads are free; each successful write (POST, PATCH, DELETE) is billed at $0.003 from your Smarfle wallet. Webhooks are free and instant.'
contact:
name: Smarfle support
url: https://www.smarfle.com/contact
email: founder@smarfle.com
termsOfService: https://www.smarfle.com/terms
servers:
- url: https://www.smarfle.com/api/v1
security:
- bearerAuth: []
tags:
- name: Customers
paths:
/customers:
get:
tags:
- Customers
operationId: listCustomers
summary: List customers, newest first
parameters:
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/cursor'
- $ref: '#/components/parameters/created_since'
- $ref: '#/components/parameters/updated_since'
- name: email
in: query
required: false
description: Exact email.
schema:
type: string
- name: phone
in: query
required: false
description: Exact phone as stored.
schema:
type: string
- name: status
in: query
required: false
description: lead, active, inactive or archived.
schema:
type: string
enum:
- lead
- active
- inactive
- archived
- name: q
in: query
required: false
description: Name, email, phone or company contains (up to 60 characters).
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- object
- data
- has_more
- next_cursor
properties:
object:
const: list
data:
type: array
items:
$ref: '#/components/schemas/Customer'
has_more:
type: boolean
next_cursor:
type:
- string
- 'null'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Customers
operationId: createCustomer
summary: Add a customer (write key)
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomerCreate'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
/customers/{id}:
get:
tags:
- Customers
operationId: getCustomer
summary: Get a customer
parameters:
- name: id
in: path
required: true
description: The customer id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
patch:
tags:
- Customers
operationId: updateCustomer
summary: Change a customer (write key).
parameters:
- name: id
in: path
required: true
description: The customer id.
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CustomerUpdate'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Customer'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
webhooks:
client.created:
post:
summary: client.created
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: client.created
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
client.updated:
post:
summary: client.updated
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: client.updated
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
work_order.created:
post:
summary: work_order.created
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: work_order.created
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
work_order.status_changed:
post:
summary: work_order.status_changed
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: work_order.status_changed
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
invoice.created:
post:
summary: invoice.created
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: invoice.created
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
invoice.sent:
post:
summary: invoice.sent
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: invoice.sent
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
invoice.paid:
post:
summary: invoice.paid
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: invoice.paid
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
estimate.created:
post:
summary: estimate.created
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: estimate.created
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
estimate.sent:
post:
summary: estimate.sent
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: estimate.sent
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
estimate.accepted:
post:
summary: estimate.accepted
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: estimate.accepted
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
estimate.rejected:
post:
summary: estimate.rejected
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: estimate.rejected
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
estimate.converted:
post:
summary: estimate.converted
requestBody:
content:
application/json:
schema:
type: object
properties:
event:
const: estimate.converted
timestamp:
type: string
format: date-time
data:
type: object
responses:
'200':
description: Return any 2xx within 10 seconds.
tags:
- Customers
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
existing_id:
type: string
Customer:
type: object
properties:
id:
type: string
format: uuid
object:
const: customer
first_name:
type:
- string
- 'null'
last_name:
type:
- string
- 'null'
company_name:
type:
- string
- 'null'
email:
type:
- string
- 'null'
phone:
type:
- string
- 'null'
status:
type: string
enum:
- lead
- active
- inactive
- archived
address:
type: object
properties:
street:
type:
- string
- 'null'
unit:
type:
- string
- 'null'
city:
type:
- string
- 'null'
state:
type:
- string
- 'null'
zip:
type:
- string
- 'null'
notes:
type:
- string
- 'null'
tags:
type: array
items:
type: string
created_at:
type: string
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
CustomerCreate:
type: object
required:
- first_name
additionalProperties: false
properties:
first_name:
type: string
minLength: 1
maxLength: 80
last_name:
type: string
maxLength: 80
company_name:
type: string
maxLength: 120
email:
type: string
format: email
phone:
type: string
maxLength: 30
status:
type: string
enum:
- lead
- active
- inactive
- archived
default: active
notes:
type: string
maxLength: 5000
address_street:
type: string
maxLength: 200
address_unit:
type: string
maxLength: 50
address_city:
type: string
maxLength: 100
address_state:
type: string
maxLength: 50
address_zip:
type: string
maxLength: 20
CustomerUpdate:
type: object
additionalProperties: false
properties:
first_name:
type: string
minLength: 1
maxLength: 80
last_name:
type: string
maxLength: 80
company_name:
type: string
maxLength: 120
email:
type: string
phone:
type: string
maxLength: 30
status:
type: string
enum:
- lead
- active
- inactive
- archived
notes:
type: string
maxLength: 5000
address_street:
type: string
maxLength: 200
address_unit:
type: string
maxLength: 50
address_city:
type: string
maxLength: 100
address_state:
type: string
maxLength: 50
address_zip:
type: string
maxLength: 20
parameters:
cursor:
name: cursor
in: query
required: false
description: next_cursor from the previous page.
schema:
type: string
created_since:
name: created_since
in: query
required: false
description: Created at or after (ISO 8601).
schema:
type: string
format: date-time
updated_since:
name: updated_since
in: query
required: false
description: Changed at or after (ISO 8601).
schema:
type: string
format: date-time
limit:
name: limit
in: query
required: false
description: 1 to 100, default 25.
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
PlanRequired:
description: The trial or plan has ended, or the plan has no API.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Conflict:
description: A customer with this email already exists (error.existing_id).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InvalidRequest:
description: The request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: More than 120 calls a minute for this key (or 600 for the business). Retry after a minute.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No record with this id in this business.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, invalid or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer smk_...'
externalDocs:
description: Guide
url: https://www.smarfle.com/docs/api