Smarfle Webhooks API
The Webhooks API from Smarfle — 2 operation(s) for webhooks.
The Webhooks API from Smarfle — 2 operation(s) for webhooks.
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-webhooks-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 Webhooks 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: Webhooks
paths:
/webhooks:
get:
tags:
- Webhooks
operationId: listWebhooks
summary: List webhook subscriptions made through the API
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/Webhook'
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:
- Webhooks
operationId: createWebhook
summary: Subscribe a URL to events (write key)
description: 'The answer includes the signing secret once. Each delivery is a POST with X-Webhook-Signature: hex HMAC-SHA256 of the raw body with that secret, and X-Webhook-Timestamp.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreate'
responses:
'201':
description: Created. The Location header is the subscription's DELETE address.
headers:
Location:
description: https://www.smarfle.com/api/v1/webhooks/{id}
schema:
type: string
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Webhook'
- type: object
properties:
secret:
type: string
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanRequired'
'429':
$ref: '#/components/responses/RateLimited'
/webhooks/{id}:
delete:
tags:
- Webhooks
operationId: deleteWebhook
summary: Unsubscribe (write key)
parameters:
- name: id
in: path
required: true
description: The webhook id.
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
object:
const: webhook
deleted:
const: true
'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'
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
Webhook:
type: object
properties:
id:
type: string
format: uuid
object:
const: webhook
url:
type: string
description:
type:
- string
- 'null'
events:
type: array
items:
type: string
enum:
- client.created
- client.updated
- work_order.created
- work_order.status_changed
- invoice.created
- invoice.sent
- invoice.paid
- estimate.created
- estimate.sent
- estimate.accepted
- estimate.rejected
- estimate.converted
active:
type: boolean
created_at:
type: string
format: date-time
WebhookCreate:
type: object
required:
- url
- events
additionalProperties: false
properties:
url:
type: string
description: A public https address.
events:
type: array
minItems: 1
items:
type: string
enum:
- client.created
- client.updated
- work_order.created
- work_order.status_changed
- invoice.created
- invoice.sent
- invoice.paid
- estimate.created
- estimate.sent
- estimate.accepted
- estimate.rejected
- estimate.converted
description:
type: string
maxLength: 100
responses:
PlanRequired:
description: The trial or plan has ended, or the plan has no API.
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