API
Run full audits for your clients from your own tools. Authentication, limits, webhooks, test keys and every endpoint.
The Agency API lets an agency start Full audits and read their reports from its own software. It is the same audit your dashboard runs, and every audit started through the API also appears in your ConnectMyTech account.
This is different from Your AI agent, which gives an assistant read access to one business's tracking data.
Getting a key
API access is set up for agency accounts. Once it is on, create keys on the Developers page of your account. Give each key a name and choose Live or Test.
- A live key starts with
cmt_live_. It runs real audits, which count toward your monthly allowance. - A test key starts with
cmt_test_. Every endpoint answers with the same fixed sample audit. Nothing runs and nothing counts. Build against it first.
A key is shown once. Store it as a secret, and revoke it on the Developers page if it leaks.
The full machine-readable description is at /api/v1/openapi.json, and an interactive explorer is at /developers/api.
Run ConnectMyTech's full AI Discoverability Audit for your clients from your own tools.
Each audit checks how visible a business is to AI assistants (ChatGPT, Gemini, Perplexity, Google AI Overviews): ten modules covering AI crawler access, structured data, content, E-E-A-T, page experience, NAP consistency, social profiles, answer-engine readiness and real-question citation tests, plus a written summary, prioritised recommendations and paste-ready answers.
Quick start
- Create an API key on the Developers page of your ConnectMyTech account. A live key starts with
cmt_live_and is shown once; store it as a secret. A test key (cmt_test_) answers every endpoint with a fixed sample audit (id00000000-0000-4000-8000-00000000c0de): nothing runs, nothing counts toward your limit. Build against it first. - Start an audit:
curl -X POST https://www.connectmy.tech/api/v1/audits \
-H "Authorization: Bearer $CMT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"website": "https://example.com", "business_name": "Example Realty", "external_id": "client-42"}'
- The response is
202with the auditidandstatus: "queued". An audit takes about 5 to 10 minutes. - Get the result by polling
GET /api/v1/audits/{id}(every 30 to 60 seconds is plenty) untilstatusiscompletedorfailed, or by passing awebhook_urland waiting for our call.
Every audit you start through the API also appears in your ConnectMyTech account, signed in as the account this API access belongs to. Report pages open only for that account.
Authentication
Send your key on every request as Authorization: Bearer <key> (or X-API-Key: <key>). Keys are tied to your agency account; ask us to revoke one and issue a new one if it leaks.
Limits
- 60 requests per minute per account, across all keys (
429 rate_limited). - 30 audits started per hour per account (
429 rate_limited), whatever the monthly limit. - Your plan includes a monthly audit allowance (calendar month, UTC). Past it, starting an audit returns
429 monthly_limit_reached.GET /api/v1/usageshows where you stand. - Polling and listing do not count toward the monthly allowance; only starting an audit does.
Idempotency
Pass your own external_id (for example your client or job id). Sending the same external_id again returns the audit already started for it (200) instead of running and counting a second one. If that audit failed, the same external_id starts a new one (a retry, which counts toward your monthly limit); the failed audit stays in your list as <external_id>#failed-<first 8 characters of its id>.
Webhooks
If you pass webhook_url (https only, with no username or password in it), we POST an audit.completed or audit.failed event to it when the audit ends. The event carries the id and the score, not the full report; fetch the report with GET /api/v1/audits/{id}. We try 3 times over about 15 seconds; a 2xx response counts as delivered. Polling always works, so treat the webhook as a prompt to fetch.
Each event has an id that stays the same across retries; ignore an id you have already handled. An audit that has not finished 30 minutes after it started is closed as failed and the audit.failed webhook is sent: as soon as you fetch it, or by our daily check at the latest.
Every webhook carries a cmt-signature header: t=<unix seconds>,v1=<hex HMAC-SHA256>. The HMAC key is your webhook signing secret (whsec_..., from ConnectMyTech) and the signed message is <t>.<raw request body>. Reject the request if the signature does not match or t is more than 5 minutes old.
// Node.js (Express: use express.raw({ type: "application/json" }) so the body is the raw bytes)
import { createHmac, timingSafeEqual } from "node:crypto"
function verify(rawBody, header, secret) {
const t = Number(header.match(/t=(\d+)/)?.[1])
const v1 = header.match(/v1=([a-f0-9]{64})/)?.[1]
if (!t || !v1 || Math.abs(Date.now() / 1000 - t) > 300) return false
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest()
const given = Buffer.from(v1, "hex")
return given.length === expected.length && timingSafeEqual(given, expected)
}
import hmac, hashlib, time, re
def verify(raw_body: bytes, header: str, secret: str) -> bool:
t = re.search(r"t=(\d+)", header); v1 = re.search(r"v1=([a-f0-9]{64})", header)
if not t or not v1 or abs(time.time() - int(t.group(1))) > 300:
return False
expected = hmac.new(secret.encode(), f"{t.group(1)}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1.group(1))
Reading a report
overall_score is 0 to 100. Modules a fetch could not check are status: "not_scored" and are left out of the overall score rather than counted as zero; findings we could not check are result: "not_checked". engine_version changes when our scoring changes, so only compare scores of two audits with the same engine_version.
Endpoints
Every endpoint lives under https://www.connectmy.tech. Use the www address: the bare domain redirects, which drops a request body.
Start a full audit
POST/api/v1/audits
Starts a full paid audit (all ten modules, AI write-up). Returns at once with status queued; the audit runs in the background for about 5 to 10 minutes. Counts toward your monthly limit.
Authentication: Authorization: Bearer <API key> (or X-API-Key: <API key>)
Body (JSON)
websitestringrequiredThe business's website.business_namestringRecommended: helps us find the right Google listing and profiles.gbpstringGoogle Business Profile URL. Found automatically when left out.linkedinstringFound automatically when left out.facebookstringFound automatically when left out.instagramstringFound automatically when left out.youtubestringFound automatically when left out.external_idstringYour own reference. Reusing it returns the existing audit instead of starting a new one.webhook_urlstringA public https URL we call when the audit ends. It must not contain a username or password.questionsarray of stringUp to 5 of your own questions to put to the AI engines, asked first and as written, alongside the questions we choose. Extra or malformed questions are ignored.
Responses
200An audit with this external_id already exists and has not failed; it is returned instead of starting another.202Audit started.400The request body is not valid.401Missing, unknown or revoked API key.403API access for this account is turned off.409Two requests with the same external_id arrived together; retry to get the existing audit.429Rate limited (60 requests a minute, or 30 audits started an hour), or the monthly audit limit is reached. Retry-After says when to try again; for the monthly limit it points at the start of next month (UTC).500Something failed on our side. Retry; contact us if it persists.503The audit could not be started. Nothing was counted; retry in a minute.
Example response, 200
{
"id": "3f1c2a9e-8b7d-4e21-9c55-0a1b2c3d4e5f",
"object": "audit",
"status": "queued",
"website": "https://example.com",
"business_name": "string",
"external_id": "string",
"created_at": "2026-10-07T14:20:00.000Z",
"completed_at": "2026-10-07T14:20:00.000Z",
"overall_score": 0,
"webhook": {
"url": "https://example.com",
"status": "pending"
},
"report": null
}List your audits
GET/api/v1/audits
Newest first, without reports. Page with before set to the previous page's next_before.
Authentication: Authorization: Bearer <API key> (or X-API-Key: <API key>)
Parameters
limitinteger, in querybeforestring, in queryOnly audits started before this time.
Responses
200A page of audits.401Missing, unknown or revoked API key.403API access for this account is turned off.429Too many requests (more than 60 a minute). Wait for Retry-After seconds.500Something failed on our side. Retry; contact us if it persists.
Example response, 200
{
"object": "list",
"data": [
{}
],
"has_more": true,
"next_before": "2026-10-07T14:20:00.000Z"
}Get an audit and its report
GET/api/v1/audits/{id}
Status while the audit runs; the full report once status is completed. Safe to poll every 30 to 60 seconds.
Authentication: Authorization: Bearer <API key> (or X-API-Key: <API key>)
Parameters
idstring, in pathrequired
Responses
200The audit.401Missing, unknown or revoked API key.403API access for this account is turned off.404No audit with this id for this account.429Too many requests (more than 60 a minute). Wait for Retry-After seconds.
Example response, 200
{
"id": "3f1c2a9e-8b7d-4e21-9c55-0a1b2c3d4e5f",
"object": "audit",
"status": "queued",
"website": "https://example.com",
"business_name": "string",
"external_id": "string",
"created_at": "2026-10-07T14:20:00.000Z",
"completed_at": "2026-10-07T14:20:00.000Z",
"overall_score": 0,
"webhook": {
"url": "https://example.com",
"status": "pending"
},
"report": {
"executive_summary": "string",
"key_findings": [],
"quick_tips": [],
"recommendations": [],
"group_summaries": [],
"scoring": {
"modules_scored": 7,
"modules_total": 9,
"modules_not_scored": 2
},
"modules": [],
"fixes": [],
"answer_engines": null,
"people_and_relationships": null,
"web_presence": null,
"google_business_profile": null,
"competitor_comparison": null,
"references": [],
"engine_version": "string"
}
}Download the report as a PDF
GET/api/v1/audits/{id}/pdf
The completed audit as a PDF under your own brand (name, logo and colour set on the Agency page of your account).
Authentication: Authorization: Bearer <API key> (or X-API-Key: <API key>)
Parameters
idstring, in pathrequired
Responses
200The PDF.401Missing, unknown or revoked API key.403API access for this account is turned off.404No audit with this id for this account.409The audit is not complete yet.429Too many requests (more than 60 a minute). Wait for Retry-After seconds.
This month's usage
GET/api/v1/usage
Authentication: Authorization: Bearer <API key> (or X-API-Key: <API key>)
Responses
200Usage for the current calendar month (UTC).401Missing, unknown or revoked API key.403API access for this account is turned off.429Too many requests (more than 60 a minute). Wait for Retry-After seconds.
Example response, 200
{
"object": "usage",
"period_start": "2026-10-01T00:00:00.000Z",
"audits_used": 12,
"audits_limit": 50,
"audits_remaining": 38
}Webhook event
POSTyour webhook_url
Sent to the webhook_url you passed when starting the audit. Verify the cmt-signature header before trusting it. Reply with any 2xx.
Authentication: Signed with the cmt-signature header
Parameters
cmt-signaturestring, in headerrequiredt=<unix seconds>,v1=<hex HMAC-SHA256 of '<t>.<raw body>' keyed with your webhook signing secret>
Body (JSON)
idstringrequiredSame on every retry of this event; use it to drop repeats.eventstringrequiredaudit_idstringrequiredexternal_idstring, nullablestatusstringrequiredoverall_scoreinteger, nullablesent_atstringrequired
Responses
200Received.
Example body
{
"id": "evt_9b2d7c1e-4f3a-4b8e-a1d2-5c6e7f8a9b0c",
"event": "audit.completed",
"audit_id": "3f1c2a9e-8b7d-4e21-9c55-0a1b2c3d4e5f",
"external_id": "client-42",
"status": "completed",
"overall_score": 74,
"sent_at": "2026-10-07T14:20:00.000Z"
}The whole description is at /api/v1/openapi.json. To try requests in the browser, open the interactive explorer.