Unlock SaaS Diagnostic API
The Diagnostic API from Unlock SaaS, for diagnostic.
The Diagnostic API from Unlock SaaS, for diagnostic.
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/unlocksaas-com:unlocksaas-com-diagnostic-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: UnlockSaaS Diagnostic API
version: 1.0.0
summary: Deep AI-powered diagnosis of live SaaS landing pages, plus the open dataset of indie-SaaS funnel and pricing teardowns.
description: 'UnlockSaaS is the Brunson-framework post-launch pre-revenue diagnostic for indie SaaS founders. This API exposes two public surfaces: 1. POST /api/diagnostic – submit a live product URL plus the user''s email and receive a Brunson-labeled diagnosis (Wrong Person, Weak Offer, or Weak Belief) plus a structured teardown id that resolves to the rendered result page. 2. GET /dataset/indie-saas-teardowns.json – the full open dataset of indie-SaaS funnel teardowns, pricing teardowns, head-to-head comparisons, alternatives, and category roundups. CC-BY-4.0 with attribution required. Both endpoints are unauthenticated. The diagnostic endpoint runs MX-deliverability gating on the email and enforces a one-free- report-per-email quota – subsequent calls with the same email return the existing diagnosis id with `already_used: true`. Discovery: this spec is referenced by https://unlocksaas.com/.well-known/ai-plugin.json (ChatGPT Custom GPT Actions), and the live MCP server at /api/mcp (declared by https://unlocksaas.com/.well-known/mcp.json) exposes a parallel tool catalog for MCP-native clients.'
contact:
name: Maryan
email: maryan@unlocksaas.com
url: https://unlocksaas.com/contact
license:
name: 'API: proprietary; Dataset: CC-BY-4.0'
url: https://unlocksaas.com/dataset
termsOfService: https://unlocksaas.com/terms
servers:
- url: https://unlocksaas.com
description: Production
tags:
- name: Diagnostic
paths:
/api/diagnostic:
post:
operationId: runDiagnostic
summary: Diagnose a live SaaS landing page
description: 'Submits a live product URL plus the user''s email and returns a Brunson-framework labeled diagnosis. The full structured teardown (scorecard, headline rewrites, 30-day plan, competitor list, strengths) is persisted server-side and rendered at /diagnostic/result?id={returned id}. REQUIRED: ask the user for their real email before calling this operation. The API runs MX-deliverability verification and rejects typo''d domains with HTTP 400. Do not invent placeholder emails – every submission creates a real lead and triggers the Soap Opera follow-up sequence. Latency: synchronous, typically 30–60 seconds (the engine reads the page and runs a deep Claude analysis end-to-end). The route''s maxDuration is 90 s. Quota: one free diagnosis per email. Subsequent calls with the same email return the previous diagnosis id with `already_used: true` and `previous_url` set to the originally diagnosed URL – present this honestly to the user instead of claiming a new diagnosis was run.'
tags:
- Diagnostic
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DiagnosticRequest'
examples:
minimal:
summary: Minimal valid submission
value:
email: founder@example.com
productUrl: https://example.com
source: chatgpt-plugin
withSurvey:
summary: Full submission with Brunson Survey answers
value:
email: founder@example.com
productUrl: https://example.com
source: chatgpt-plugin
survey:
time_since_launch: 30_to_90
recent_revenue: zero
biggest_attempt: paid_ads
responses:
'200':
description: Diagnostic accepted. Returns the lead id. The full structured teardown is renderable at /diagnostic/result?id={id}.
content:
application/json:
schema:
$ref: '#/components/schemas/DiagnosticResponse'
examples:
fresh:
summary: First diagnosis for this email
value:
id: f1a3c2d4-5e6f-7890-1234-56789abcdef0
repeat:
summary: Repeat email – quota gate hit
value:
id: f1a3c2d4-5e6f-7890-1234-56789abcdef0
already_used: true
previous_url: https://example.com
'400':
description: Validation failure – invalid email, undeliverable domain, malformed URL, or invalid JSON body.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected engine failure. The lead is captured but the result cannot be rendered. Direct the user to email maryan@unlocksaas.com.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
BrunsonSurvey:
type: object
required:
- time_since_launch
- recent_revenue
- biggest_attempt
properties:
time_since_launch:
type: string
enum:
- under_30
- 30_to_90
- 90_plus
description: Days since the product first went live. under_30 = less than 30 days; 30_to_90 = 30 to 90 days; 90_plus = more than 90 days.
recent_revenue:
type: string
enum:
- zero
- under_100
- 100_to_1k
- over_1k
description: Revenue earned in the last 30 days (USD). zero = no revenue; under_100 = $1–$99; 100_to_1k = $100–$999; over_1k = $1,000 or more.
biggest_attempt:
type: string
enum:
- more_building
- seo_content
- paid_ads
- customer_conversations
- nothing_yet
description: The single biggest go-to-market lever the founder has tried so far. more_building = kept iterating on the product; seo_content = blog posts / programmatic SEO; paid_ads = paid acquisition; customer_conclusions = etc.
DiagnosticResponse:
type: object
required:
- id
properties:
id:
type: string
format: uuid
description: The diagnostic_leads.id.
ErrorResponse:
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
DiagnosticRequest:
type: object
required:
- email
- productUrl
properties:
email:
type: string
format: email
description: The user's real email. The diagnosis id is bound to this address and the follow-up sequence is delivered here. MX deliverability is checked server-side; typo'd domains 400.
examples:
- founder@example.com
productUrl:
type: string
format: uri
description: The live SaaS landing-page URL to diagnose. Must be a real https URL the engine can fetch within 8 s. The alias `url` is also accepted for backward compatibility.
examples:
- https://example.com
url:
type: string
format: uri
description: Alias for productUrl (legacy v1 callers). Prefer productUrl.
source:
type: string
description: Free-text attribution tag. Set to 'chatgpt-plugin' when calling from a ChatGPT Custom GPT so the lead is attributed to the GPT channel.
examples:
- chatgpt-plugin
referrer:
type: string
description: Optional referrer URL. Used to attribute the lead source when source is not provided.
survey:
$ref: '#/components/schemas/BrunsonSurvey'
description: Optional Brunson Survey Funnel answers (DCS Secret 15). Improves the bucket assignment that drives downstream segmentation. Safe to omit.
additionalProperties: false