Site Qwality Partner API
Manage client accounts as an agency or MSP partner
Manage client accounts as an agency or MSP partner
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/siteqwality-com:siteqwality-com-partner-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: Siteqwality Com Partner API
version: 0.1.0
contact:
name: Site Qwality Support
url: https://siteqwality.com
email: support@siteqwality.com
license:
name: Proprietary
description: 'Operations tagged Partner across 2 of this provider''s published API definitions: siteqwality-com-openapi-openapi.json, siteqwality-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.siteqwality.com
description: Production
tags:
- name: Partner
description: Manage client accounts as an agency or MSP partner
paths:
/partner/accounts:
get:
tags:
- Partner
summary: List the calling partner's managed client accounts
description: 'Unpaged, deliberately. The partner SKU is sold per client and the largest
tier discussed is 50, so a partner''s whole client list is one small page;
adding a pager would be inventing a problem. If a partner ever holds
hundreds of clients this becomes a paged endpoint, with `total` carried the
way `GET /monitors` carries it.
Each row''s monitor counts come from the same three tables and the same
state-aware predicates `GET /monitors/totals` uses, in one query for the
whole list rather than one per client.'
operationId: list_partner_clients
responses:
'200':
description: The partner's live client accounts
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerClientListResponse'
'401':
description: Missing or invalid authentication
'403':
description: Caller is not an admin, or the account is not in the partner program
'500':
description: Internal server error
security:
- bearer_auth: []
post:
tags:
- Partner
summary: Create a managed client account under the calling partner
description: 'The client is a perfectly ordinary account with a parent pointer: it has
its own monitors, its own status pages, its own quotas and its own
notification routing, and the partner works in it through the
`X-SQ-Account` header. Three things make it not-ordinary, all decided here
rather than inside the shared provisioning seam:
* **No Stripe customer.** The partner is billed on one subscription; a
client is never billed directly, so it never gets a customer object to
leak or reconcile.
* **No welcome email.** The contact never asked us for an account. A
"welcome to Site Qwality" email out of nowhere is the partner''s
relationship to manage, not ours.
* **A Stytch organization with no member and no session.** Nobody is
signing in yet. The organization exists up front so the partner''s later
invite has somewhere to land, and the local user row (the client''s first
Super Admin) carries a NULL `stytch_member_id` until then.'
operationId: create_partner_client
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePartnerClientRequest'
required: true
responses:
'200':
description: Client account created
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerClientSummary'
'400':
description: Invalid request body
'401':
description: Missing or invalid authentication
'402':
description: No client slot left on the partner plan
'403':
description: Caller is not an admin, or the account is not in the partner program
'409':
description: That contact address already belongs to one of your clients, or to another Site Qwality account
'500':
description: Internal server error
security:
- bearer_auth: []
servers:
- url: https://api.siteqwality.com
description: Production
/partner/accounts/{client_account_id}:
delete:
tags:
- Partner
summary: Soft-delete one of the caller's client accounts
description: 'Marks the client account deleted and nothing else. That single flag is what
every downstream consequence keys on, and each one is what removing a client
should mean:
* the client''s own users lose access,
* the client''s checks stop running,
* the client can no longer be opened with `X-SQ-Account`, and
* the client slot is freed immediately, so you can add a replacement.
The client''s data is retained per the retention policy. **This is not an
erasure endpoint.** Suspension history is left intact.'
operationId: delete_partner_client
parameters:
- name: client_account_id
in: path
description: Client account identifier
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Client account removed
'401':
description: Missing or invalid authentication
'403':
description: Caller is not an admin, or the account is not in the partner program
'404':
description: No live client account of yours with that id
'500':
description: Internal server error
security:
- bearer_auth: []
servers:
- url: https://api.siteqwality.com
description: Production
/partner/accounts/{client_account_id}/plan:
put:
tags:
- Partner
summary: Set one of the caller's client accounts to a named entitlement bundle
description: 'A partner picks a bundle, never individual packs: the wholesale rate is flat
per client, so what a client gets is one of the two compositions that rate
was priced against.
The bundle becomes ordinary subscription rows on the client account, so
quota metering, paid feature unlocks and every other downstream consequence
behave exactly as they do for a direct customer.
**Idempotent, and that is the intended way to use it.** Setting the bundle a
client is already on grants nothing, cancels nothing, and does not move a
billing anniversary, so a console that re-asserts state on every save is
safe.
Changing a client''s bundle moves that client between the wholesale lines on
your own subscription, prorated for the remainder of the current period.'
operationId: set_partner_client_plan
parameters:
- name: client_account_id
in: path
description: Client account identifier
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetPartnerClientPlanRequest'
required: true
responses:
'200':
description: Bundle applied
content:
application/json:
schema:
$ref: '#/components/schemas/SetPartnerClientPlanResponse'
'401':
description: Missing or invalid authentication
'403':
description: Caller is not an admin, or the account is not in the partner program
'404':
description: No live client account of yours with that id
'422':
description: Unknown bundle name, or no bundle in the body
'500':
description: Internal server error
security:
- bearer_auth: []
servers:
- url: https://api.siteqwality.com
description: Production
/partner/accounts/{client_account_id}/usage:
get:
tags:
- Partner
summary: Per-product usage counters for one of the caller's client accounts
description: 'Resolved through exactly the path `/billing/usage` uses, against the
CLIENT''s account id: `account_usage_periods` derives the window each
product is metered in, and `reported_usage` reads each product''s counter
from its own window (status pages as the live page count). Nothing here may
shortcut to a single period string. A client can be anchored on a different
day per product, and reporting one period is what made the 2026-08-02
hard-stop incident invisible for a month.
A client provisioned but not yet given an entitlement bundle has no paid
packs, so every product resolves to the calendar month and only status
pages and the products it has actually used carry a row.'
operationId: get_partner_client_usage
parameters:
- name: client_account_id
in: path
description: Client account identifier
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The client's per-product usage
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerClientUsageResponse'
'401':
description: Missing or invalid authentication
'403':
description: Caller is not an admin, or the account is not in the partner program
'404':
description: No live client account of yours with that id
'500':
description: Internal server error
security:
- bearer_auth: []
servers:
- url: https://api.siteqwality.com
description: Production
components:
schemas:
PartnerClientSummary:
type: object
description: One managed client account, as the console lists it and as create answers.
required:
- account_id
- created_at
- suspended
- monitors
properties:
account_id:
type: string
format: uuid
description: 'The client''s account id. This is the value the partner sends as
`X-SQ-Account` to open the client in the ordinary dashboard.'
display_name:
type:
- string
- 'null'
contact_email:
type:
- string
- 'null'
description: 'The client''s longest-standing Super Admin''s address. Nullable; see
`DbPartnerChildAccount::contact_email`.'
created_at:
type: string
format: date-time
suspended:
type: boolean
description: 'Convenience mirror of `suspended_at.is_some()`, so a client list can
render the badge without parsing a timestamp.'
suspended_at:
type:
- string
- 'null'
format: date-time
monitors:
$ref: '#/components/schemas/PartnerClientMonitorTotals'
PartnerBundle:
type: string
description: 'The named entitlement presets a partner may set on a client account.
Presets rather than free choice of packs: the partner pays a flat
wholesale rate per client, so what a client gets has to be one of the two
things that rate was priced against. A partner who needs something else
buys it retail on the client account or talks to us.'
enum:
- client_standard
- client_pro
SetPartnerClientPlanResponse:
type: object
description: Response for `PUT /partner/accounts/{id}/plan`.
required:
- account_id
- bundle
- packs
- granted
- cancelled
properties:
account_id:
type: string
format: uuid
bundle:
$ref: '#/components/schemas/PartnerBundle'
packs:
type: array
items:
$ref: '#/components/schemas/PartnerBundlePackSummary'
description: The packs the bundle grants, with the catalog ids they resolved to.
granted:
type: integer
description: 'How many partner-sourced entitlement rows this call created. Zero when
the client was already on the bundle, which is what makes the endpoint
safe to call repeatedly.'
minimum: 0
cancelled:
type: integer
description: 'How many partner-sourced entitlement rows this call canceled, i.e.
what the previous bundle had that this one does not. Rows sourced from
Stripe or from a staff grant are never counted here because they are
never touched.'
minimum: 0
PartnerBundlePackSummary:
type: object
description: One pack the client holds after the bundle was applied.
required:
- pack_id
- product
- name
properties:
pack_id:
type: string
format: uuid
product:
$ref: '#/components/schemas/PricingProduct'
name:
type: string
PricingProduct:
type: string
enum:
- uptime
- synthetic
- telemetry
- telemetry_logs
- telemetry_traces
- telemetry_metrics
- incidents
- sms
- status_pages
- rum_observe
- rum_analyze
- session_replay
- partner
- enterprise
CreatePartnerClientRequest:
type: object
description: Body for `POST /partner/accounts`.
required:
- display_name
- contact_email
properties:
display_name:
type: string
description: 'The partner''s label for this client, e.g. "Acme Corp". Not shown to the
client and not client-editable: it is how the partner console lists
them, and it names the client''s Stytch organization.'
contact_email:
type: string
description: 'The client''s real contact address. It becomes the child account''s first
Super Admin and the address its default notification group alerts, so
an outage on the client''s site reaches the client rather than the
partner.
Must be distinct across the partner''s client accounts. See
`Database::partner_client_account_id_by_contact_email` for why that is
a pricing rule and not a data-hygiene preference.'
contact_name:
type:
- string
- 'null'
description: The contact's name, when the partner knows it. Absent is normal.
PartnerClientProductUsage:
type: object
description: 'One product''s counters for one client.
Field-for-field the shape `/billing/usage` returns, on purpose: a partner
reading a client''s usage here and that client reading their own usage in
the dashboard must not see two different numbers or two different units.'
required:
- product
- current_usage
- quota_limit
- hard_stopped
- unit
- period
properties:
product:
type: string
current_usage:
type: integer
format: int64
description: 'Usage in the product''s CUSTOMER-FACING unit (see `unit`), not the raw
tracking unit: synthetic is metered in seconds and reported in minutes.'
quota_limit:
type: integer
format: int64
hard_stopped:
type: boolean
unit:
type: string
period:
type: string
description: The period THIS product is metered in.
SetPartnerClientPlanRequest:
type: object
description: Body for `PUT /partner/accounts/{id}/plan`.
required:
- bundle
properties:
bundle:
$ref: '#/components/schemas/PartnerBundle'
PartnerClientListResponse:
type: object
description: Response for `GET /partner/accounts`.
required:
- clients
properties:
clients:
type: array
items:
$ref: '#/components/schemas/PartnerClientSummary'
description: 'Live clients only, newest first. A soft-deleted client is absent, which
matches the `X-SQ-Account` switch refusing to open one.'
PartnerClientMonitorTotals:
type: object
description: 'Monitor counts for one client, in the same state-aware sense
`GET /monitors/totals` uses: a paused monitor counts in `total` and
`paused` and in neither `online` nor `down`.'
required:
- total
- online
- down
- paused
properties:
total:
type: integer
format: int32
online:
type: integer
format: int32
down:
type: integer
format: int32
paused:
type: integer
format: int32
PartnerClientUsageResponse:
type: object
description: 'Response for `GET /partner/accounts/{id}/usage`.
Deliberately carries NO top-level period. `/billing/usage` still has one
for backwards compatibility, and it is a lie whenever an account is
anchored on a different day per product: reporting one is what made the
2026-08-02 hard-stop incident invisible for a month. A new endpoint gets to
start correct.'
required:
- account_id
- products
properties:
account_id:
type: string
format: uuid
products:
type: array
items:
$ref: '#/components/schemas/PartnerClientProductUsage'
description: 'Every product, including the ones with no counter row yet, is NOT
guaranteed here: this lists the counter rows that exist, exactly as
`/billing/usage` does. A product a client has never used has no row.'
securitySchemes:
bearer_auth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'Generate an API key in account settings and pass it as `Authorization: Bearer <KEY>`.'
x-refined-from:
- siteqwality-com-openapi-openapi.json
- siteqwality-com-openapi.json