Connect a GitHub repository to a website.
Connect a GitHub repository to a website.
POST
https://app.softsolz.uk/api/v1/services/seo/sites/{site_id}/code/reposRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
site_idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
connection_idstringGitHub connection id.
repo_full_namestringowner/name.
default_branchstringBranch to audit and target, default main.
visibilitystringprivate, 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" }}