SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
seo

Connect a GitHub repository to a website.

Connect a GitHub repository to a website.

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

Recent Requests

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

Path Params

site_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

connection_idstring

GitHub connection id.

repo_full_namestring

owner/name.

default_branchstring

Branch to audit and target, default main.

visibilitystring

private, tenant or shared. Send tenant so a plain API key keeps seeing it.

Response

Response Body

idstringConnected repository id. Use it as repo_id.
site_idstringWebsite the repository belongs to.
connection_idstring | nullGitHub connection used to read and write it.
providerstringAlways github today.
repo_full_namestringowner/name on GitHub.
default_branchstringBranch audits read and pull requests target.
frameworkstring | nullFramework detected by the last audit.
last_audit_atstring | nullWhen the repository was last audited.
visibilitystringprivate, tenant or shared.
created_atstringWhen it was connected.
latestobject | nullMost recent audit summary for this repository, or null.

Request

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

Credentials

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

Response · 201

{
"data": {
"id": "string",
"site_id": "string",
"connection_id": "string",
"provider": "string",
"repo_full_name": "string",
"default_branch": "string",
"framework": "string",
"last_audit_at": "string",
"visibility": "string",
"created_at": "string",
"latest": "string"
}
}