Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: PromptSwing public commerce Assess API
version: 1.0.0
description: 'Endpoints an agent can call with no client, no account and no authorisation: check a site you have just built before publishing it anywhere, search products across hosted PromptSwing stores, and price an order from one of them. Nothing here creates an account, holds a basket, takes a payment, or keeps anything you send.'
contact:
url: https://www.promptswing.com/contact
servers:
- url: https://api.promptswing.com
description: Production
tags:
- name: Assess
paths:
/api/assess:
post:
operationId: assessSite
summary: Check a site you just built, before you publish it anywhere
description: 'Send the files of a site you have built and get back what happens when it goes live: which of the documented signal calls are absent, whether the checkout has policy links, whether contrast pairs fall below the floor, and whether prices are written into the page rather than read from a catalogue.
**Free. No account, no authorisation, no payment.**
Nothing is fetched — you send the files, we never retrieve a site. Nothing is published, nothing is provisioned, and **nothing you send is kept**: the files are read to answer this and are stored nowhere, not in a corpus and not as a sample.
**It is not an opinion on whether the site is good.** PromptSwing does not look at that, and a check that could not run is reported as not-run rather than as a pass. No model composes the verdict.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AssessRequest'
responses:
'200':
description: Findings, each marked ok, missing or not_run.
content:
application/json:
schema:
$ref: '#/components/schemas/AssessResult'
'400':
description: No files were sent.
'413':
description: More than 60 files or 800KB. Nothing was assessed — a partial answer presented as a whole one is not an answer.
'429':
description: Too many assessments from one address this hour. Nothing was assessed.
tags:
- Assess
components:
schemas:
AssessRequest:
type: object
required:
- files
properties:
files:
type: array
maxItems: 60
items:
type: object
required:
- path
- content
properties:
path:
type: string
content:
type: string
AssessResult:
type: object
properties:
looked_at:
type: integer
findings:
type: array
items:
type: object
properties:
check:
type: string
verdict:
type: string
enum:
- ok
- missing
- not_run
detail:
type: string
see:
type: string
summary:
type: string
not_a_quality_verdict:
type: string
retained:
type: boolean
description: Always false. Your files are not stored.
hosting:
type: object
description: Where a site like this could be hosted and what it costs. A statement, not a finding — it does not change with the results.