Code API
Base URL: https://api.theonecode.app
Authentication
Most endpoints require a valid session cookie or integration key. Endpoints marked Public require no authentication.
Endpoints Summary
135 endpoints discovered across 3 function app(s).
| Method | Route | Auth |
|---|---|---|
GET | /api/access-dashboard | Session |
POST | /api/auth/hub-sso | Session |
POST | /api/auth/logout | Session |
GET | /api/auth/me | Session |
GET | /api/auth/portal-sso | Session |
GET | /api/backups | Session |
DELETE | /api/backups/{backupId} | Session |
GET | /api/backups/{backupId} | Session |
GET | /api/backups/{backupId}/contents | Session |
GET | /api/backups/{backupId}/download | Session |
GET | /api/backups/{backupId}/issues | Session |
GET | /api/backups/{backupId}/issues/{issueId} | Session |
GET | /api/backups/{backupId}/pulls | Session |
GET | /api/backups/{backupId}/pulls/{prId} | Session |
POST | /api/backups/{backupId}/restore | Session |
POST | /api/backups/{backupId}/verify | Session |
GET | /api/backups/health | Session |
GET | /api/backups/stats | Session |
POST | /api/bus/events | Integration Key |
GET | /api/compliance/evidence/{controlId} | Session |
POST | /api/compliance/generate/{framework} | Session |
GET | /api/compliance/posture | Session |
GET | /api/compliance/reports | Session |
GET | /api/compliance/reports/{reportId} | Session |
GET | /api/docs?repo_id=X | Session |
DELETE | /api/docs/{id} | Session |
GET | /api/docs/{id} | Session |
GET | /api/docs/{id}/export | Session |
POST | /api/docs/{id}/refresh | Session |
POST | /api/docs/{id}/share | Session |
POST | /api/docs/generate | Session |
POST | /api/docs/handoff | Session |
GET | /api/docs/handoff/{id} | Session |
GET | /api/escrow | Session |
GET | /api/escrow/{escrowId} | Session |
PATCH | /api/escrow/{escrowId} | Session |
POST | /api/escrow/{escrowId}/release | Session |
POST | /api/escrow/{escrowId}/verify | Session |
GET | /api/healthz | Session |
POST | /api/integrations/ai-studio/invoke | Integration Key |
POST | /api/integrations/ai-studio/register | Integration Key |
GET | /api/integrations/ai-studio/status | Integration Key |
GET | /api/integrations/cmdb/status | Integration Key |
POST | /api/integrations/cmdb/sync | Integration Key |
POST | /api/integrations/crm/create-opportunity | Integration Key |
POST | /api/integrations/psa/create-finding-ticket | Integration Key |
POST | /api/integrations/psa/create-migration-project | Integration Key |
GET | /api/integrations/psa/linked-tickets | Integration Key |
GET | /api/integrations/security/findings | Session |
POST | /api/integrations/security/report | Session |
GET | /api/integrations/settings | Integration Key |
PUT | /api/integrations/settings | Integration Key |
GET | /api/jobs/{jobId} | Session |
GET | /api/migration/dashboard | Session |
GET | /api/optimization/dashboard | Session |
GET | /api/optimization/remediation-plan | Session |
GET | /api/orgs | Session |
DELETE | /api/orgs/{orgId} | Session |
GET | /api/orgs/{orgId} | Session |
PATCH | /api/orgs/{orgId} | Session |
POST | /api/orgs/{orgId}/access-audit | Session |
GET | /api/orgs/{orgId}/access-audits | Session |
GET | /api/orgs/{orgId}/access-audits/{auditId} | Session |
GET | /api/orgs/{orgId}/access-audits/latest | Session |
POST | /api/orgs/{orgId}/scan-secrets | Session |
GET | /api/orgs/{orgId}/secrets | Session |
POST | /api/orgs/{orgId}/sync | Session |
GET | /api/orgs/callback | Session |
POST | /api/orgs/connect | Session |
POST | /api/orgs/connect/complete | Session |
POST | /api/permissions/register | Session |
GET | /api/portal/backup-status | Integration Key |
GET | /api/portal/compliance | Integration Key |
GET | /api/portal/reports | Integration Key |
GET | /api/portal/repos | Integration Key |
GET | /api/portfolio/by-client | Session |
GET | /api/portfolio/profiles | Session |
GET | /api/portfolio/profiles/{id} | Session |
PATCH | /api/portfolio/profiles/{id} | Session |
GET | /api/portfolio/summary | Session |
POST | /api/regulatory/classify-all | Session |
GET | /api/regulatory/gaps | Session |
GET | /api/regulatory/map | Session |
GET | /api/remediation | Session |
POST | /api/remediation | Session |
PATCH | /api/remediation/{trackerId} | Session |
POST | /api/remediation/{trackerId}/create-ticket | Session |
GET | /api/remediation/summary | Session |
GET | /api/reports | Session |
GET | /api/reports/{reportId} | Session |
POST | /api/reports/application-review | Session |
POST | /api/reports/schedule | Session |
GET | /api/reports/schedules | Session |
GET | /api/reports/trends/{repoId} | Session |
GET | /api/repos | Session |
GET | /api/repos/{id}/timeline | Session |
GET | /api/repos/{repoId} | Session |
PATCH | /api/repos/{repoId} | Session |
POST | /api/repos/{repoId}/analyze-debt | Session |
POST | /api/repos/{repoId}/analyze-migration | Session |
POST | /api/repos/{repoId}/backup | Session |
GET | /api/repos/{repoId}/backups | Session |
POST | /api/repos/{repoId}/classify-regulatory | Session |
GET | /api/repos/{repoId}/dead-check | Session |
GET | /api/repos/{repoId}/debt-report | Session |
GET | /api/repos/{repoId}/dependencies | Session |
DELETE | /api/repos/{repoId}/escrow | Session |
GET | /api/repos/{repoId}/escrow | Session |
POST | /api/repos/{repoId}/escrow | Session |
GET | /api/repos/{repoId}/migration-report | Session |
POST | /api/repos/{repoId}/scan-secrets | Session |
GET | /api/repos/{repoId}/secrets | Session |
GET | /api/restore-jobs/{jobId} | Session |
GET | /api/sbom/{repoId} | Session |
GET | /api/sbom/{repoId}/vulnerabilities | Session |
POST | /api/sbom/generate | Session |
GET | /api/sbom/summary | Session |
PATCH | /api/secrets/{secretId}/remediate | Session |
GET | /api/secrets/dashboard | Session |
GET | /api/security/dashboard | Session |
GET | /api/security/dependencies | Session |
GET | /api/security/findings | Session |
POST | /api/security/pentest/execute | API Key |
GET | /api/security/pentests | API Key |
GET | /api/security/posture | Session |
GET | /api/security/posture?date=YYYY-MM-DD | Session |
GET | /api/security/reports/summary | Session |
GET | /api/security/scans | Session |
POST | /api/security/scans | Session |
GET | /api/security/vulnerabilities | Session |
PUT | /api/security/vulnerabilities | Session |
GET | /api/shared/docs/{token} | Session |
POST | /api/webhooks/ado | Session |
POST | /api/webhooks/github | Session |
POST | /api/webhooks/gitlab | Session |
Endpoint Details
Access Dashboard
/api/access-dashboardList or retrieve access dashboard
Auth: Session
Auth
/api/auth/hub-ssoCreate hub sso
Auth: Session
/api/auth/logoutCreate logout
Auth: Session
/api/auth/meList or retrieve me
Auth: Session
/api/auth/portal-ssoList or retrieve portal sso
Auth: Session
Backups
/api/backupsList or retrieve backups
Auth: Session
/api/backups/{backupId}Delete backups
Auth: Session
/api/backups/{backupId}List or retrieve backups
Auth: Session
/api/backups/{backupId}/contentsList or retrieve contents
Auth: Session
/api/backups/{backupId}/downloadList or retrieve download
Auth: Session
/api/backups/{backupId}/issuesList or retrieve issues
Auth: Session
/api/backups/{backupId}/issues/{issueId}List or retrieve issues
Auth: Session
/api/backups/{backupId}/pullsList or retrieve pulls
Auth: Session
/api/backups/{backupId}/pulls/{prId}List or retrieve pulls
Auth: Session
/api/backups/{backupId}/restoreCreate restore
Auth: Session
/api/backups/{backupId}/verifyCreate verify
Auth: Session
/api/backups/healthList or retrieve health
Auth: Session
/api/backups/statsList or retrieve stats
Auth: Session
Bus
/api/bus/eventsCreate events
Auth: Integration Key
Compliance
/api/compliance/evidence/{controlId}List or retrieve evidence
Auth: Session
/api/compliance/generate/{framework}Create generate
Auth: Session
/api/compliance/postureList or retrieve posture
Auth: Session
/api/compliance/reportsList or retrieve reports
Auth: Session
/api/compliance/reports/{reportId}List or retrieve reports
Auth: Session
Docs?Repo_id=X
/api/docs?repo_id=XList or retrieve docs?repo_id=X
Auth: Session
Docs
/api/docs/{id}Delete docs
Auth: Session
/api/docs/{id}List or retrieve docs
Auth: Session
/api/docs/{id}/exportList or retrieve export
Auth: Session
/api/docs/{id}/refreshCreate refresh
Auth: Session
/api/docs/{id}/shareCreate share
Auth: Session
/api/docs/generateCreate generate
Auth: Session
/api/docs/handoffCreate handoff
Auth: Session
/api/docs/handoff/{id}List or retrieve handoff
Auth: Session
Escrow
/api/escrowList or retrieve escrow
Auth: Session
/api/escrow/{escrowId}List or retrieve escrow
Auth: Session
/api/escrow/{escrowId}Update escrow
Auth: Session
/api/escrow/{escrowId}/releaseCreate release
Auth: Session
/api/escrow/{escrowId}/verifyCreate verify
Auth: Session
Healthz
/api/healthzList or retrieve healthz
Auth: Session
Integrations
/api/integrations/ai-studio/invokeCreate invoke
Auth: Integration Key
/api/integrations/ai-studio/registerCreate register
Auth: Integration Key
/api/integrations/ai-studio/statusList or retrieve status
Auth: Integration Key
/api/integrations/cmdb/statusList or retrieve status
Auth: Integration Key
/api/integrations/cmdb/syncCreate sync
Auth: Integration Key
/api/integrations/crm/create-opportunityCreate create opportunity
Auth: Integration Key
/api/integrations/psa/create-finding-ticketCreate create finding ticket
Auth: Integration Key
/api/integrations/psa/create-migration-projectCreate create migration project
Auth: Integration Key
/api/integrations/psa/linked-ticketsList or retrieve linked tickets
Auth: Integration Key
/api/integrations/security/findingsList or retrieve findings
Auth: Session
/api/integrations/security/reportCreate report
Auth: Session
/api/integrations/settingsList or retrieve settings
Auth: Integration Key
/api/integrations/settingsUpdate settings
Auth: Integration Key
Jobs
/api/jobs/{jobId}List or retrieve jobs
Auth: Session
Migration
/api/migration/dashboardList or retrieve dashboard
Auth: Session
Optimization
/api/optimization/dashboardList or retrieve dashboard
Auth: Session
/api/optimization/remediation-planList or retrieve remediation plan
Auth: Session
Orgs
/api/orgsList or retrieve orgs
Auth: Session
/api/orgs/{orgId}Delete orgs
Auth: Session
/api/orgs/{orgId}List or retrieve orgs
Auth: Session
/api/orgs/{orgId}Update orgs
Auth: Session
/api/orgs/{orgId}/access-auditCreate access audit
Auth: Session
/api/orgs/{orgId}/access-auditsList or retrieve access audits
Auth: Session
/api/orgs/{orgId}/access-audits/{auditId}List or retrieve access audits
Auth: Session
/api/orgs/{orgId}/access-audits/latestList or retrieve latest
Auth: Session
/api/orgs/{orgId}/scan-secretsCreate scan secrets
Auth: Session
/api/orgs/{orgId}/secretsList or retrieve secrets
Auth: Session
/api/orgs/{orgId}/syncCreate sync
Auth: Session
/api/orgs/callbackList or retrieve callback
Auth: Session
/api/orgs/connectCreate connect
Auth: Session
/api/orgs/connect/completeCreate complete
Auth: Session
Permissions
/api/permissions/registerCreate register
Auth: Session
Portal
/api/portal/backup-statusList or retrieve backup status
Auth: Integration Key
/api/portal/complianceList or retrieve compliance
Auth: Integration Key
/api/portal/reportsList or retrieve reports
Auth: Integration Key
/api/portal/reposList or retrieve repos
Auth: Integration Key
Portfolio
/api/portfolio/by-clientList or retrieve by client
Auth: Session
/api/portfolio/profilesList or retrieve profiles
Auth: Session
/api/portfolio/profiles/{id}List or retrieve profiles
Auth: Session
/api/portfolio/profiles/{id}Update profiles
Auth: Session
/api/portfolio/summaryList or retrieve summary
Auth: Session
Regulatory
/api/regulatory/classify-allCreate classify all
Auth: Session
/api/regulatory/gapsList or retrieve gaps
Auth: Session
/api/regulatory/mapList or retrieve map
Auth: Session
Remediation
/api/remediationList or retrieve remediation
Auth: Session
/api/remediationCreate remediation
Auth: Session
/api/remediation/{trackerId}Update remediation
Auth: Session
/api/remediation/{trackerId}/create-ticketCreate create ticket
Auth: Session
/api/remediation/summaryList or retrieve summary
Auth: Session
Reports
/api/reportsList or retrieve reports
Auth: Session
/api/reports/{reportId}List or retrieve reports
Auth: Session
/api/reports/application-reviewCreate application review
Auth: Session
/api/reports/scheduleCreate schedule
Auth: Session
/api/reports/schedulesList or retrieve schedules
Auth: Session
/api/reports/trends/{repoId}List or retrieve trends
Auth: Session
Repos
/api/reposList or retrieve repos
Auth: Session
/api/repos/{id}/timelineList or retrieve timeline
Auth: Session
/api/repos/{repoId}List or retrieve repos
Auth: Session
/api/repos/{repoId}Update repos
Auth: Session
/api/repos/{repoId}/analyze-debtCreate analyze debt
Auth: Session
/api/repos/{repoId}/analyze-migrationCreate analyze migration
Auth: Session
/api/repos/{repoId}/backupCreate backup
Auth: Session
/api/repos/{repoId}/backupsList or retrieve backups
Auth: Session
/api/repos/{repoId}/classify-regulatoryCreate classify regulatory
Auth: Session
/api/repos/{repoId}/dead-checkList or retrieve dead check
Auth: Session
/api/repos/{repoId}/debt-reportList or retrieve debt report
Auth: Session
/api/repos/{repoId}/dependenciesList or retrieve dependencies
Auth: Session
/api/repos/{repoId}/escrowDelete escrow
Auth: Session
/api/repos/{repoId}/escrowList or retrieve escrow
Auth: Session
/api/repos/{repoId}/escrowCreate escrow
Auth: Session
/api/repos/{repoId}/migration-reportList or retrieve migration report
Auth: Session
/api/repos/{repoId}/scan-secretsCreate scan secrets
Auth: Session
/api/repos/{repoId}/secretsList or retrieve secrets
Auth: Session
Restore Jobs
/api/restore-jobs/{jobId}List or retrieve restore jobs
Auth: Session
Sbom
/api/sbom/{repoId}List or retrieve sbom
Auth: Session
/api/sbom/{repoId}/vulnerabilitiesList or retrieve vulnerabilities
Auth: Session
/api/sbom/generateCreate generate
Auth: Session
/api/sbom/summaryList or retrieve summary
Auth: Session
Secrets
/api/secrets/{secretId}/remediateUpdate remediate
Auth: Session
/api/secrets/dashboardList or retrieve dashboard
Auth: Session
Security
/api/security/dashboardList or retrieve dashboard
Auth: Session
/api/security/dependenciesList or retrieve dependencies
Auth: Session
/api/security/findingsList or retrieve findings
Auth: Session
/api/security/pentest/executeCreate execute
Auth: API Key
/api/security/pentestsList or retrieve pentests
Auth: API Key
/api/security/postureList or retrieve posture
Auth: Session
/api/security/posture?date=YYYY-MM-DDList or retrieve posture?date=YYYY MM DD
Auth: Session
/api/security/reports/summaryList or retrieve summary
Auth: Session
/api/security/scansList or retrieve scans
Auth: Session
/api/security/scansCreate scans
Auth: Session
/api/security/vulnerabilitiesList or retrieve vulnerabilities
Auth: Session
/api/security/vulnerabilitiesUpdate vulnerabilities
Auth: Session
Shared
/api/shared/docs/{token}List or retrieve docs
Auth: Session
Webhooks
/api/webhooks/adoCreate ado
Auth: Session
/api/webhooks/githubCreate github
Auth: Session
/api/webhooks/gitlabCreate gitlab
Auth: Session
This reference is auto-generated from source code. Run npx tsx scripts/generate-api-docs.ts from the ops-center repo to refresh.