SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
seo

Audit the repository code for search and AI readability.

Reads the branch and runs the checks; no model is involved. Poll GET /code/audits/{audit_id} until status is completed, then read the findings and write fixes or narratives.

POSThttps://app.softsolz.uk/api/v1/services/seo/sites/{site_id}/code/repos/{repo_id}/audits

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

site_idstringrequired
repo_idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Idempotency-Keystring

Optional idempotency key for safe retries.

Body Params

branchstring

Branch to read, default the repository default branch.

Response

Response Body

idstringAudit id. Use it as audit_id.
site_idstringWebsite audited.
repo_idstringRepository audited.
statusstringqueued, reading, auditing, completed or failed.
commit_shastring | nullCommit the audit read.
branchstring | nullBranch the audit read.
frameworkstring | nullFramework detected.
files_scannedintegerFiles read.
pages_scannedintegerPages checked.
passed_countintegerChecks that passed.
failed_countintegerChecks that failed.
scoreinteger | null0 to 100 health score.
summary_markdownstring | nullShort summary, Markdown.
error_messagestring | nullWhy the audit failed, when it did.
created_atstringWhen it was requested.
updated_atstringLast status change.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.seo.startCodeAudit('<site_id>', '<repo_id>', {});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 202

{
"data": {
"id": "string",
"site_id": "string",
"repo_id": "string",
"status": "string",
"commit_sha": "string",
"branch": "string",
"framework": "string",
"files_scanned": 0,
"pages_scanned": 0,
"passed_count": 0,
"failed_count": 0,
"score": 0,
"summary_markdown": "string",
"error_message": "string",
"created_at": "string",
"updated_at": "string"
}
}