Skip to content

API Reference

Shoehorn Admin API

v1.0.0

Administrative endpoints for tenant settings, API keys, policies, features, scorecards, role bundles, database management, and system info.

Base URL: https://shoehorn.example.com/api/v1

/

Settings

GET/admin/settings#

Get tenant settings

Responses

  • 200Current tenant settings
PUT/admin/settings#

Update tenant settings

Request bodyrequired

Content-Type: application/json

Free-form JSON object (no fixed schema).

Responses

  • 200Settings updated

API Keys

GET/admin/api-keys#

List API keys

Responses

  • 200API keys (tokens are masked)
    Schema (application/json)
    object
    1 property
    keysarray<APIKey>
    8 properties
    idstring<uuid>
    namestring
    prefixstring

    First 8 chars of token (shp_svc_)

    scopesarray<string>
    last_usedstring<date-time>
    expires_atstring<date-time>
    created_atstring<date-time>
    revokedboolean
POST/admin/api-keys#

Generate API key

Request bodyrequired

Content-Type: application/json

object
3 properties
namestring*
scopesarray<string>*
expires_atstring<date-time>

Responses

  • 201API key generated (token shown only once)
    Schema (application/json)
    object
    4 properties
    idstring
    namestring
    tokenstring

    Full token (shp_svc_...) - shown only at creation

    scopesarray<string>
POST/admin/api-keys/{id}/revoke#

Revoke API key

Path parameters

  • idstringrequired

Responses

  • 200API key revoked

Policies

GET/admin/policies#

List platform policies

Returns pre-seeded platform policies (config-only, not user-created).

Responses

  • 200Platform policies
PUT/admin/policies/{id}#

Update platform policy

Changes one of the two configurable policies, governance-auto-actions or api-key-expiration. The id is the policy key or a stored row's id. Every other policy is always on and cannot be changed.

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

object
2 properties
enabledboolean
enforcementstring

Stored but never acted on. Setting it changes nothing.

Responses

  • 200Policy updated
  • 404No such policy. Also returned for the policies removed in 0.7.0: required-entity-docs, entity-metadata-validation, stale-entity-cleanup.
  • 409The policy exists but is always on and cannot be changed. The error carries the code POLICY_ALWAYS_ON.

Features

GET/admin/features#

List feature flags

Responses

  • 200All feature flags
POST/admin/features#

Create feature flag

Request bodyrequired

Content-Type: application/json

object
4 properties
keystring*
namestring*
descriptionstring
enabledboolean

Default: false

Responses

  • 201Feature flag created
PUT/admin/features/{key}#

Update feature flag

Path parameters

  • keystringrequired

Responses

  • 200Flag updated
DELETE/admin/features/{key}#

Delete feature flag

Path parameters

  • keystringrequired

Responses

  • 204Flag deleted
POST/admin/features/{key}/tenants/{tenantId}#

Set tenant feature override

Path parameters

  • keystringrequired
  • tenantIdstringrequired

Responses

  • 200Override set
DELETE/admin/features/{key}/tenants/{tenantId}#

Remove tenant feature override

Path parameters

  • keystringrequired
  • tenantIdstringrequired

Responses

  • 204Override removed

Scorecards

GET/admin/scorecards/categories#

List scorecard categories

Responses

  • 200Scorecard categories
POST/admin/scorecards/categories#

Create scorecard category

Request bodyrequired

Content-Type: application/json

object
3 properties
namestring*
descriptionstring
weightnumber*

Responses

  • 201Category created
PUT/admin/scorecards/categories/{id}#

Update scorecard category

Path parameters

  • idstringrequired

Responses

  • 200Category updated
DELETE/admin/scorecards/categories/{id}#

Delete scorecard category

Path parameters

  • idstringrequired

Responses

  • 204Category deleted
GET/admin/scorecards/rules#

List scorecard rules

Responses

  • 200Global scorecard rules
POST/admin/scorecards/rules#

Create scorecard rule

Responses

  • 201Rule created
PUT/admin/scorecards/rules/{id}#

Update scorecard rule

Path parameters

  • idstringrequired

Responses

  • 200Rule updated
DELETE/admin/scorecards/rules/{id}#

Delete scorecard rule

Path parameters

  • idstringrequired

Responses

  • 204Rule deleted
GET/admin/scorecards/grading#

Get grading configuration

Responses

  • 200Grading thresholds
PUT/admin/scorecards/grading#

Update grading configuration

Responses

  • 200Grading config updated

Role Bundles

GET/admin/role-bundles#

List role bundles

Responses

  • 200All role bundles
POST/admin/role-bundles#

Create role bundle

Responses

  • 201Bundle created
GET/admin/role-bundles/{bundleId}#

Get role bundle

Path parameters

  • bundleIdstringrequired

Responses

  • 200Bundle details
PUT/admin/role-bundles/{bundleId}#

Update role bundle

Path parameters

  • bundleIdstringrequired

Responses

  • 200Bundle updated
DELETE/admin/role-bundles/{bundleId}#

Delete role bundle

Path parameters

  • bundleIdstringrequired

Responses

  • 204Bundle deleted

Roles

GET/roles#

List all roles

Responses

  • 200Available roles
POST/roles/users/{userId}/roles#

Assign role to user

Path parameters

  • userIdstringrequired

Responses

  • 201Role assigned
DELETE/roles/users/{userId}/roles#

Remove role from user

Path parameters

  • userIdstringrequired

Responses

  • 204Role removed

Database

GET/database/info#

Get database info

Responses

  • 200Database version, size, connection stats
GET/database/connections#

Get database connections

Responses

  • 200Active database connections
GET/database/backups#

List database backups

Responses

  • 200Available backups
POST/database/backup#

Create database backup

Responses

  • 201Backup initiated

System

GET/system#

Get system services info

Responses

  • 200Status of all microservices

License

GET/license#

Get license status

Returns the active license for the calling tenant. Beta tenants also get `beta_ends_at`, `beta_grace_ends_at`, and `is_read_only` populated when applicable.

Responses

  • 200Current license info
    Schema (application/json)
    LicenseStatus
    17 properties
    editionstring*
    "free""beta""standard""airgapped"
    typestring
    "selfhosted""saas""partner"
    clustersinteger

    Per-license cluster-limit override (0 = use tier default)

    licenseestring
    issued_atstring<date-time>
    expires_atstring<date-time>nullable
    activated_atstring<date-time>nullable
    key_prefixstring
    resource_limitsobject*
    2 properties
    clustersinteger*

    0 = unlimited

    nodesinteger*

    0 = unlimited

    resource_usagearray<object>
    4 properties
    resourcestring
    "clusters""nodes"
    usedinteger
    limitinteger

    0 = unlimited

    percentinteger
    warningsarray<object>
    3 properties
    typestring
    "expired""expiring_soon""resource_high""resource_exceeded"
    messagestring
    levelstring
    "warning""error"
    is_expiredboolean*
    is_validboolean*
    has_licenseboolean*
    beta_ends_atstring<date-time>nullable

    For Beta licenses: when the 6-month free period ends. Floored at 2026-11-10 for legacy Beta licenses so existing customers don't flip read-only the day per-cluster pricing took over.

    beta_grace_ends_atstring<date-time>nullable

    For Beta licenses: when the 30-day post-end grace expires. Set only after the first license-status read past beta_ends_at has marked the grace start. After this timestamp the auto-disconnect job runs.

    is_read_onlyboolean*

    True while a Beta tenant is inside the 30-day grace window. UI mutations return 423 BETA_ENDED_READ_ONLY. Catalog reads and agent traffic stay live; license activation also keeps working so the tenant can switch to Standard without restoring writes first.

POST/license/activate#

Activate license

Responses

  • 200License activated
POST/license/deactivate#

Deactivate license

Responses

  • 200License deactivated
GET/license/pending-clusters#

List pending cluster registrations

Agents that registered a cluster past the tenant's licensed cluster count park here. Returns an empty array when nothing is pending.

Responses

  • 200Pending registrations
    Schema (application/json)
    array<PendingClusterRegistration>
    5 properties
    cluster_idstring*
    namestring*
    first_attempted_atstring<date-time>*
    last_attempted_atstring<date-time>*
    attemptsinteger*
DELETE/license/pending-clusters/{cluster_id}#

Dismiss a pending cluster registration

Removes the row from the pending list. Bookkeeping only: this does not grant capacity and does not stop the agent. To raise capacity, request a new signed license. To stop the agent from re-parking, remove it from the cluster.

Path parameters

  • cluster_idstringrequired

Responses

  • 204Rejected
  • 404No pending registration for that cluster_id

Activity

GET/admin/activity#

List recent administrative activity

Returns the most recent audit-log entries for the caller's tenant (role changes, API-key actions, license and workflow events). Read-only.

Query parameters

  • limitinteger

    Maximum entries to return (clamped to 100).

Responses

  • 200Recent activity, newest first
    Schema (application/json)
    object
    1 property
    itemsarray<ActivityItem>
    7 properties
    eventTypestring

    Audit event type, e.g. role.updated

    actorstring
    actorTypestring
    actionstring
    statusstring
    "success""failure""partial"
    errorMessagestring
    createdAtstring<date-time>

Shoehorn Analytics API

v1.0.0

Aggregate statistics across the catalog, search usage, ownership, lifecycle, and language breakdowns.

Base URL: https://shoehorn.example.com/api/v1

/

Statistics

GET/stats#

Get catalog statistics

Responses

  • 200Aggregate catalog metrics
    Schema (application/json)
    object
    4 properties
    total_entitiesinteger
    by_typeobject
    by_lifecycleobject
    by_tierobject
GET/stats/entity-types#

Get entity type breakdown

Responses

  • 200Count by entity type
GET/stats/languages#

Get programming language distribution

Responses

  • 200Language statistics
GET/stats/lifecycle#

Get lifecycle stage distribution

Responses

  • 200Count by lifecycle stage
GET/stats/teams#

Get team ownership statistics

Responses

  • 200Entities per team
GET/stats/unowned#

Get unowned entities

Responses

  • 200Entities without an owner

Search analytics

GET/analytics/search/{period}#

Get search analytics by period

Path parameters

  • period"7d" | "30d" | "90d"required

Responses

  • 200Search analytics for period

Shoehorn Authentication API

v1.0.0

Authentication status for CLI and programmatic clients.

Base URL: https://shoehorn.example.com/api/v1

/

Authentication

GET/auth/cli/status#

Get authentication status

Returns the current authentication state for CLI sessions.

Responses

  • 200Authentication status
    Schema (application/json)
    object
    3 properties
    authenticatedboolean
    userobject
    3 properties
    emailstring
    namestring
    tenant_idstring
    expires_atstring<date-time>

Shoehorn Documentation API

v1.0.0

Per-service documentation discovered from repositories.

Base URL: https://shoehorn.example.com/api/v1

/

Documentation

GET/docs#

List documentation entries

Responses

  • 200Documentation entries discovered from repositories
GET/docs/{id}#

Get documentation content

Path parameters

  • idstringrequired

Responses

  • 200Documentation content

Shoehorn Entities API

v1.0.0

Entity CRUD operations, status, changelog, workloads, scorecards, and governance.

Base URL: https://shoehorn.example.com/api/v1

/

Entities

GET/entities#

List entities

Returns a paginated list of catalog entities.

Query parameters

  • limitinteger
  • cursorstring
  • type"service" | "library" | "api" | "website" | "tool" | "infrastructure" | "platform" | "mobile-app" | "data-pipeline" | "ml-model" | "documentation"
  • lifecycle"experimental" | "development" | "production" | "deprecated"
  • ownerstring
  • tier"tier1" | "tier2" | "tier3" | "tier4"

Responses

  • 200Paginated list of entities
    Schema (application/json)
    object
    2 properties
    entitiesarray<Entity>
    13 properties
    idstring<uuid>
    service_idstring

    Human-readable identifier

    namestring
    typestring
    lifecyclestring
    ownerstring
    descriptionstring
    tierstring
    tagsarray<string>
    linksarray<Link>
    3 properties
    titlestring
    urlstring<uri>
    iconstring
    sourcestring
    "kubernetes""manifest""api""github""manual"
    created_atstring<date-time>
    updated_atstring<date-time>
    paginationPagination
    4 properties
    totalinteger
    pageinteger
    pageSizeinteger
    nextCursorstring
GET/entities/{id}#

Get entity by ID

Path parameters

  • idstringrequired

Responses

  • 200Entity details
    Schema (application/json)
    Entity
    13 properties
    idstring<uuid>
    service_idstring

    Human-readable identifier

    namestring
    typestring
    lifecyclestring
    ownerstring
    descriptionstring
    tierstring
    tagsarray<string>
    linksarray<Link>
    3 properties
    titlestring
    urlstring<uri>
    iconstring
    sourcestring
    "kubernetes""manifest""api""github""manual"
    created_atstring<date-time>
    updated_atstring<date-time>
  • 404Entity not found
PUT/entities/{id}#

Update entity

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

EntityUpdate
6 properties
namestring
descriptionstring
ownerstring
lifecyclestring
tierstring
tagsarray<string>

Responses

  • 200Updated entity
DELETE/entities/{id}#

Delete entity

Path parameters

  • idstringrequired

Responses

  • 204Entity deleted
GET/entities/{id}/readme#

Get entity README

Path parameters

  • idstringrequired

Responses

  • 200README content
    Schema (application/json)
    object
    2 properties
    contentstring
    formatstring
    "markdown""html"
GET/entities/{id}/manifest#

Get entity manifest

Path parameters

  • idstringrequired

Responses

  • 200Entity manifest YAML
GET/entities/{id}/changelog#

Get entity changelog

Path parameters

  • idstringrequired

Responses

  • 200Changelog entries
    Schema (application/json)
    object
    1 property
    entriesarray<ChangelogEntry>
    7 properties
    idstring
    timestampstring<date-time>
    actionstring
    fieldstring
    old_valuestring
    new_valuestring
    actorstring
GET/entities/{id}/status#

Get entity status

Path parameters

  • idstringrequired

Responses

  • 200Entity health and status
GET/entities/{id}/deployments#

Get entity deployments

Path parameters

  • idstringrequired

Responses

  • 200Deployment history
GET/entities/{id}/resources#

Get entity resources

Returns associated cloud and infrastructure resources for an entity.

Path parameters

  • idstringrequired

Responses

  • 200Associated resources
GET/entities/{id}/k8s/workloads#

Get entity K8s workloads

Path parameters

  • idstringrequired

Responses

  • 200Kubernetes workload instances
    Schema (application/json)
    object
    1 property
    instancesarray<WorkloadInstance>
    8 properties
    cluster_idstring
    namespacestring
    namestring
    kindstring
    "Deployment""StatefulSet""DaemonSet""CronJob""Job"
    replicasinteger
    ready_replicasinteger
    imagestring
    last_seenstring<date-time>
GET/entities/{id}/quick-actions#

Get entity quick actions

Path parameters

  • idstringrequired

Responses

  • 200Available quick actions
GET/entities/{id}/scorecard#

Get entity scorecard

Path parameters

  • idstringrequired

Responses

  • 200Scorecard results with grade and category scores
GET/entities/{id}/governance/actions#

Get governance actions for entity

Path parameters

  • idstringrequired

Responses

  • 200Governance actions targeting this entity
GET/entities/{id}/zombies#

Get zombie workloads for entity

Path parameters

  • idstringrequired

Responses

  • 200Zombie (unowned) workloads associated with entity
GET/entities/{id}/activity#

Get entity activity feed

Path parameters

  • idstringrequired

Responses

  • 200Activity timeline
GET/entities/{id}/incidents#

Get entity incidents

Path parameters

  • idstringrequired

Responses

  • 200Incidents associated with entity
GET/entities/{id}/oncall#

Get entity on-call schedule

Path parameters

  • idstringrequired

Responses

  • 200On-call information
GET/entities/{id}/relations#

Get entity relations

Path parameters

  • idstringrequired

Responses

  • 200Entity dependency and relationship graph
GET/entities/{id}/topology#

Get entity service topology

Path parameters

  • idstringrequired

Responses

  • 200Network topology for entity
GET/entities/{id}/docs#

Get entity documentation

Path parameters

  • idstringrequired

Responses

  • 200Documentation entries for entity
GET/entities/summary#

Get entities summary statistics

Responses

  • 200Summary counts by type, lifecycle, tier

Shoehorn Forge API

v1.0.0

Workflow engine for scaffolding, automation, and self-service actions. Molds are templates; runs are workflow executions.

Base URL: https://shoehorn.example.com/api/v1

/

Molds

GET/forge/molds#

List molds

Returns available workflow templates.

Query parameters

  • categorystring
  • publishedboolean

Responses

  • 200List of molds
POST/forge/molds#

Create mold

Request bodyrequired

Content-Type: application/json

CreateMoldRequest
8 properties
namestring*
slugstring*
descriptionstring
categorystring
iconstring
parametersarray<MoldParameter>
7 properties
namestring*
typestring*
"string""number""boolean""select""multi-select"
labelstring
descriptionstring
requiredboolean

Default: false

defaultany
optionsarray<string>

Options for select/multi-select types

actionsarray<MoldAction>
3 properties
namestring*
typestring*
"github-action""api-call""script""approval"
configobject
requires_approvalboolean

Default: false

Responses

  • 201Mold created
GET/forge/molds/{slug}#

Get mold by slug

Path parameters

  • slugstringrequired

Responses

  • 200Mold details including actions and parameters
PUT/forge/molds/{slug}#

Update mold

Path parameters

  • slugstringrequired

Request bodyrequired

Content-Type: application/json

UpdateMoldRequest
6 properties
namestring
descriptionstring
categorystring
parametersarray<MoldParameter>
7 properties
namestring*
typestring*
"string""number""boolean""select""multi-select"
labelstring
descriptionstring
requiredboolean

Default: false

defaultany
optionsarray<string>

Options for select/multi-select types

actionsarray<MoldAction>
3 properties
namestring*
typestring*
"github-action""api-call""script""approval"
configobject
requires_approvalboolean

Responses

  • 200Mold updated
DELETE/forge/molds/{slug}#

Delete mold

Path parameters

  • slugstringrequired

Responses

  • 204Mold deleted
POST/forge/molds/{slug}/publish#

Publish mold

Makes the mold visible to all users.

Path parameters

  • slugstringrequired

Responses

  • 200Mold published
POST/forge/molds/{slug}/unpublish#

Unpublish mold

Path parameters

  • slugstringrequired

Responses

  • 200Mold unpublished

Runs

GET/forge/runs#

List workflow runs

Query parameters

  • mold_slugstring
  • status"pending" | "running" | "completed" | "failed" | "cancelled" | "awaiting_approval"
  • limitinteger
  • cursorstring

Responses

  • 200Paginated workflow runs
POST/forge/runs#

Execute a workflow

Creates and starts a new workflow run from a mold.

Request bodyrequired

Content-Type: application/json

object
2 properties
mold_slugstring*
parametersobject*

User-provided parameter values

Responses

  • 201Run created and started
GET/forge/runs/{runId}#

Get run details

Path parameters

  • runIdstringrequired

Responses

  • 200Run details with step statuses
POST/forge/runs/{runId}/cancel#

Cancel a running workflow

Path parameters

  • runIdstringrequired

Responses

  • 200Run cancelled
POST/forge/runs/{runId}/approve#

Approve a pending workflow

Approves a workflow that is in awaiting_approval state.

Path parameters

  • runIdstringrequired

Responses

  • 200Run approved and resumed
POST/forge/runs/{runId}/reject#

Reject a pending workflow

Path parameters

  • runIdstringrequired

Responses

  • 200Run rejected
GET/forge/runs/{runId}/logs#

Get run execution logs

Path parameters

  • runIdstringrequired

Responses

  • 200Execution logs

Forge Stats

GET/forge/stats#

Get forge statistics

Responses

  • 200Workflow execution statistics

Shoehorn Governance API

v1.0.0

Governance actions, dashboard metrics, and documentation health.

Base URL: https://shoehorn.example.com/api/v1

/

Governance

GET/governance/dashboard#

Get governance dashboard

Returns aggregate metrics for governance actions across all entities.

Responses

  • 200Dashboard metrics
    Schema (application/json)
    object
    3 properties
    total_actionsinteger
    by_statusobject
    5 properties
    openinteger
    in_progressinteger
    resolvedinteger
    dismissedinteger
    wont_fixinteger
    by_priorityobject
    4 properties
    criticalinteger
    highinteger
    mediuminteger
    lowinteger
GET/governance/documentation#

Get documentation health

Returns documentation coverage and freshness metrics.

Responses

  • 200Documentation health metrics

Governance Actions

GET/governance/actions#

List governance actions

Query parameters

  • status"open" | "in_progress" | "resolved" | "dismissed" | "wont_fix"
  • priority"critical" | "high" | "medium" | "low"
  • typestring
  • entity_idstring
  • assigned_tostring
  • overdueboolean

    Only overdue actions when true.

  • closedboolean

    Only closed actions (resolved, dismissed, wont_fix) when true. Can't be combined with a filter that only matches active actions.

  • actionableboolean

    Only open and in_progress actions when true.

  • limitinteger
  • cursorstring

Responses

  • 200Paginated governance actions
    Schema (application/json)
    object
    2 properties
    actionsarray<GovernanceAction>
    14 properties
    idstring<uuid>
    titlestring
    descriptionstring
    typestring
    statusstring
    "open""in_progress""resolved""dismissed""wont_fix"
    prioritystring
    "critical""high""medium""low"
    entity_idstring
    entity_namestring
    assigned_tostring
    created_bystring
    due_datestring<date>
    resolution_notesstring
    created_atstring<date-time>
    updated_atstring<date-time>
    paginationobject
    2 properties
    totalinteger
    nextCursorstring
POST/governance/actions#

Create governance action

Request bodyrequired

Content-Type: application/json

CreateActionRequest
7 properties
titlestring*
descriptionstring
typestring*
prioritystring*
"critical""high""medium""low"
entity_idstring
assigned_tostring
due_datestring<date>

Responses

  • 201Action created
POST/governance/actions/bulk#

Bulk update governance action status

Transition many actions to a single status in one request. Actions already in a final state are skipped.

Request bodyrequired

Content-Type: application/json

object
2 properties
idsarray<string>*
statusstring*
"open""in_progress""resolved""dismissed""wont_fix"

Responses

  • 200Bulk update result
    Schema (application/json)
    object
    2 properties
    requestedinteger
    updatedinteger
GET/governance/actions/{id}#

Get governance action

Path parameters

  • idstringrequired

Responses

  • 200Action details
PATCH/governance/actions/{id}#

Update governance action

Update status, priority, assignee, or add notes.

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

UpdateActionRequest
5 properties
statusstring
"open""in_progress""resolved""dismissed""wont_fix"
prioritystring
"critical""high""medium""low"
assigned_tostring
resolution_notesstring
due_datestring<date>

Responses

  • 200Action updated
DELETE/governance/actions/{id}#

Delete governance action (soft delete)

Path parameters

  • idstringrequired

Responses

  • 204Action deleted

Shoehorn Groups API

v1.0.0

Identity provider groups and their role mappings. Group membership comes from the IdP; role mappings live in Shoehorn.

Base URL: https://shoehorn.example.com/api/v1

/

Groups

GET/groups#

List IdP groups

Returns all identity provider groups known to the system.

Responses

  • 200IdP groups
    Schema (application/json)
    object
    1 property
    groupsarray<Group>
    4 properties
    namestring
    providerstring
    "zitadel""okta""entra-id""keycloak"
    member_countinteger
    rolesarray<string>
GET/groups/{groupName}/roles#

Get group role mappings

Returns roles assigned to a specific IdP group.

Path parameters

  • groupNamestringrequired

Responses

  • 200Roles mapped to this group
    Schema (application/json)
    object
    1 property
    rolesarray<string>
POST/groups/{groupName}/roles#

Assign role to group

Maps a role to an IdP group. All users in the group receive this role.

Path parameters

  • groupNamestringrequired

Request bodyrequired

Content-Type: application/json

object
1 property
rolestring*

Responses

  • 201Role assigned to group
DELETE/groups/{groupName}/roles/{roleName}#

Remove role from group

Path parameters

  • groupNamestringrequired
  • roleNamestringrequired

Responses

  • 204Role removed from group

Shoehorn Indexing API

v1.0.0

Search-index health and reindex status.

Base URL: https://shoehorn.example.com/api/v1

/

Indexing

GET/indexing/status#

Get search indexing status

Responses

  • 200Current indexing status and queue size

Shoehorn Integrations API

v1.0.0

Integration management, webhooks, and sync operations.

Base URL: https://shoehorn.example.com/api/v1

/

Integrations

GET/integrations#

List integrations

Responses

  • 200List of configured integrations
    Schema (application/json)
    object
    1 property
    integrationsarray<Integration>
    7 properties
    idstring<uuid>
    namestring
    typestring
    "github""gitlab""pagerduty""opsgenie""datadog""custom"
    statusstring
    "active""inactive""error"
    configobject
    last_syncstring<date-time>
    created_atstring<date-time>
POST/integrations#

Create integration

Request bodyrequired

Content-Type: application/json

CreateIntegrationRequest
3 properties
namestring*
typestring*
configobject*

Responses

  • 201Integration created
GET/integrations/configs#

List integration configurations

Returns user-created integration configurations (as opposed to system integrations).

Responses

  • 200Integration configurations
    Schema (application/json)
    object
    1 property
    configsarray<Integration>
    7 properties
    idstring<uuid>
    namestring
    typestring
    "github""gitlab""pagerduty""opsgenie""datadog""custom"
    statusstring
    "active""inactive""error"
    configobject
    last_syncstring<date-time>
    created_atstring<date-time>
GET/integrations/{id}#

Get integration details

Path parameters

  • idstringrequired

Responses

  • 200Integration details
PUT/integrations/{id}#

Update integration

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

UpdateIntegrationRequest
3 properties
namestring
configobject
statusstring

Responses

  • 200Integration updated
DELETE/integrations/{id}#

Delete integration

Path parameters

  • idstringrequired

Responses

  • 204Integration deleted
POST/integrations/{id}/sync#

Trigger manual sync

Forces an immediate data pull from the integration source.

Path parameters

  • idstringrequired

Responses

  • 200Sync initiated

Webhooks

GET/integrations/{id}/webhooks#

List webhooks for integration

Path parameters

  • idstringrequired

Responses

  • 200Webhooks configured for this integration
POST/integrations/{id}/webhooks#

Create webhook

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

CreateWebhookRequest
3 properties
urlstring<uri>*
eventsarray<string>*
secretstring

Responses

  • 201Webhook created
PUT/integrations/webhooks/{webhookId}#

Update webhook

Path parameters

  • webhookIdstringrequired

Request bodyrequired

Content-Type: application/json

UpdateWebhookRequest
3 properties
urlstring<uri>
eventsarray<string>
activeboolean

Responses

  • 200Webhook updated
DELETE/integrations/webhooks/{webhookId}#

Delete webhook

Path parameters

  • webhookIdstringrequired

Responses

  • 204Webhook deleted
POST/integrations/github/webhook#

GitHub webhook receiver

Endpoint that receives GitHub webhook events. Verified using the webhook secret signature (X-Hub-Signature-256 header).

Responses

  • 200Event processed

Shoehorn Kubernetes API

v1.0.0

K8s agent registration, workload push, and heartbeat. (Network flow push is deprecated.)

Base URL: https://shoehorn.example.com/api/v1

/

K8s Agents

GET/k8s/agents#

List registered K8s agents

Responses

  • 200List of registered agents
    Schema (application/json)
    object
    1 property
    agentsarray<Agent>
    10 properties
    cluster_idstring
    display_namestring
    environmentstring
    regionstring
    statusstring
    "active""stale""offline"
    last_heartbeatstring<date-time>
    agent_versionstring
    node_countinteger
    workload_countinteger
    created_atstring<date-time>
POST/k8s/agents/register#

Register a new K8s agent

Registers a cluster and returns an agent token for push operations.

Request bodyrequired

Content-Type: application/json

object
4 properties
cluster_idstring*
display_namestring*
environmentstring
regionstring

Responses

  • 201Agent registered
    Schema (application/json)
    object
    2 properties
    cluster_idstring
    tokenstring

    Bearer token for push API

GET/k8s/agents/{cluster_id}#

Get agent details

Path parameters

  • cluster_idstringrequired

Responses

  • 200Agent details
DELETE/k8s/agents/{cluster_id}#

Delete agent and all associated data

Path parameters

  • cluster_idstringrequired

Responses

  • 204Agent deleted
  • 403Not allowed to delete this agent
  • 404No agent with that cluster id in your tenant
POST/k8s/agents/{cluster_id}/rotate#

Rotate agent token

Generates a new token and invalidates the previous one.

Path parameters

  • cluster_idstringrequired

Responses

  • 200New token generated
    Schema (application/json)
    object
    1 property
    tokenstring
POST/k8s/agents/{cluster_id}/revoke#

Revoke agent token

Revokes the agent token without deleting the agent record.

Path parameters

  • cluster_idstringrequired

Responses

  • 200Token revoked

K8s Agent Push

POST/k8s/agents/push#

Push workload data from agent

Called by the K8s agent to push discovered workloads. Authenticated via agent bearer token (not session auth).

Request bodyrequired

Content-Type: application/json

object
2 properties
cluster_idstring*
workloadsarray<Workload>*
9 properties
namestring
namespacestring
kindstring
"Deployment""StatefulSet""DaemonSet""CronJob""Job"
labelsobject
annotationsobject
replicasinteger
ready_replicasinteger
imagesarray<string>
conditionsarray<object>
3 properties
typestring
statusstring
reasonstring

Responses

  • 200Workloads received
POST/k8s/agents/heartbeat#

Agent heartbeat

Called periodically by the agent to indicate it is alive.

Request bodyrequired

Content-Type: application/json

object
4 properties
cluster_idstring*
agent_versionstring
node_countinteger
pod_countinteger

Responses

  • 200Heartbeat acknowledged
POST/k8s/agents/{clusterId}/network-flows#

Push network flow data

**Deprecated.** The network observer that pushed these flows is retired in favor of platform-side relation inference. Already-deployed observers may still call this, so it stays until a future major version. Responses carry a `Deprecation: true` header (RFC 8594).

Path parameters

  • clusterIdstringrequired

Request bodyrequired

Content-Type: application/json

object
1 property
flowsarray<object>
5 properties
sourcestring
destinationstring
portinteger
protocolstring
bytes_sentinteger

Responses

  • 200Network flows received

Shoehorn Manifests API

v1.0.0

Create, validate, analyze, and convert catalog manifests (`.shoehorn/manifest.yml`).

Base URL: https://shoehorn.example.com/api/v1

/

Manifests

GET/manifests#

List manifests

Responses

  • 200All manifests
POST/manifests#

Create manifest

Request bodyrequired

Content-Type: application/json

ManifestInput
2 properties
contentstring*

YAML manifest content

formatstring
"shoehorn""backstage"

Default: "shoehorn"

Responses

  • 201Manifest created
GET/manifests/{id}#

Get manifest

Path parameters

  • idstringrequired

Responses

  • 200Manifest details
PUT/manifests/{id}#

Update manifest

Path parameters

  • idstringrequired

Responses

  • 200Manifest updated
DELETE/manifests/{id}#

Delete manifest

Path parameters

  • idstringrequired

Responses

  • 204Manifest deleted
POST/manifests/validate#

Validate manifest

Validates a manifest YAML against the schema without creating it.

Request bodyrequired

Content-Type: application/json

ManifestInput
2 properties
contentstring*

YAML manifest content

formatstring
"shoehorn""backstage"

Default: "shoehorn"

Responses

  • 200Validation results
    Schema (application/json)
    object
    2 properties
    validboolean
    errorsarray<object>
    2 properties
    fieldstring
    messagestring
POST/manifests/analyze#

Analyze manifest quality

Returns quality score and improvement suggestions.

Request bodyrequired

Content-Type: application/json

ManifestInput
2 properties
contentstring*

YAML manifest content

formatstring
"shoehorn""backstage"

Default: "shoehorn"

Responses

  • 200Quality analysis
POST/manifests/convert#

Convert Backstage catalog-info.yaml

Converts a Backstage catalog-info.yaml to Shoehorn manifest format.

Request bodyrequired

Content-Type: application/json

object
1 property
contentstring

Raw YAML content

Responses

  • 200Converted manifest

Shoehorn Marketplace API

v1.0.0

Addon marketplace browsing, installation, configuration, and runtime management. Addons extend Shoehorn with custom integrations, widgets, and backend logic.

Base URL: https://shoehorn.example.com/api/v1

/

Marketplace

GET/marketplace#

List marketplace catalog

Returns available addons in the marketplace, optionally filtered by kind.

Query parameters

  • kind"addon" | "widget" | "integration"

    Filter by addon kind

  • categorystring
  • searchstring

Responses

  • 200Marketplace catalog
    Schema (application/json)
    object
    1 property
    itemsarray<MarketplaceItem>
    9 properties
    slugstring
    namestring
    descriptionstring
    versionstring
    authorstring
    categorystring
    tierstring
    "free""pro""enterprise"
    iconstring
    installedboolean
GET/marketplace/installed#

List installed addons

Returns all addons currently installed in this tenant.

Responses

  • 200Installed addons
    Schema (application/json)
    object
    1 property
    addonsarray<InstalledAddon>
    7 properties
    slugstring
    namestring
    versionstring
    enabledboolean
    statusstring
    "running""stopped""error"
    installed_atstring<date-time>
    configobject
POST/marketplace/install#

Install addon

Installs an addon from the marketplace by slug.

Request bodyrequired

Content-Type: application/json

object
1 property
slugstring*

Addon slug from marketplace

Responses

  • 201Addon installed
  • 409Addon already installed
DELETE/marketplace/{slug}/uninstall#

Uninstall addon

Removes an installed addon and its configuration.

Path parameters

  • slugstringrequired

Responses

  • 204Addon uninstalled
  • 404Addon not found
POST/marketplace/{slug}/enable#

Enable addon

Re-enables a previously disabled addon.

Path parameters

  • slugstringrequired

Responses

  • 200Addon enabled
POST/marketplace/{slug}/disable#

Disable addon

Disables an addon without uninstalling it. Configuration is preserved.

Path parameters

  • slugstringrequired

Responses

  • 200Addon disabled
POST/marketplace/import-manifest#

Import addon manifest

Publishes an addon manifest to the marketplace. Used by addon developers.

Request bodyrequired

Content-Type: application/json

AddonManifest
4 properties
schemaVersioninteger*
1
kindstring*
"addon"
metadataobject*
7 properties
slugstring*
namestring*
versionstring*
descriptionstring*
authorobject*
categorystring*
tierstring*
addonobject*
6 properties
tierstring*
"declarative""scripted""full"
runtimestring*
"quickjs"
permissionsobject*
syncobject
configobject
frontendobject

Responses

  • 201Manifest imported
  • 422Manifest validation failed
POST/marketplace/{slug}/bundle#

Upload addon bundle

Uploads backend and/or frontend bundles for a published addon. Uses multipart form upload with `backend` and `frontend` file fields.

Path parameters

  • slugstringrequired

Request bodyrequired

Content-Type: multipart/form-data

object
2 properties
backendstring<binary>

Backend JS bundle (QuickJS IIFE)

frontendstring<binary>

Frontend JS bundle (ESM)

Responses

  • 200Bundle uploaded

Addon Runtime

GET/addons/{slug}/status#

Get addon runtime status

Returns the runtime status of an installed addon.

Path parameters

  • slugstringrequired

Responses

  • 200Addon status
    Schema (application/json)
    AddonStatus
    7 properties
    slugstring
    enabledboolean
    statusstring
    "running""stopped""error"
    last_syncstring<date-time>
    last_errorstring
    items_syncedinteger
    uptime_secondsinteger
GET/addons/{slug}/logs#

Get addon logs

Returns recent log entries from the addon runtime.

Path parameters

  • slugstringrequired

Query parameters

  • limitinteger

Responses

  • 200Addon logs
    Schema (application/json)
    object
    1 property
    logsarray<LogEntry>
    4 properties
    timestampstring<date-time>
    levelstring
    "debug""info""warn""error"
    messagestring
    fieldsobject
GET/addons/{slug}/{path}#

Call addon route (GET)

Proxies a GET request to the addon's handleRoute() function.

Path parameters

  • slugstringrequired
  • pathstringrequired

Responses

  • 200Addon response
POST/addons/{slug}/{path}#

Call addon route (POST)

Proxies a POST request to the addon's handleRoute() function.

Path parameters

  • slugstringrequired
  • pathstringrequired

Request body

Content-Type: application/json

Free-form JSON object (no fixed schema).

Responses

  • 200Addon response

Shoehorn Metrics API

v1.0.0

Real-time platform metrics for dashboard widgets. The current implementation returns a mix of live counts (from the catalog) and mock values for response-time, system, and integration metrics. Responses include a `mock_data: true` flag wherever the values are synthetic. A future release will swap these for Prometheus-backed numbers.

Base URL: https://shoehorn.example.com/api/v1

/

Metrics

GET/metrics/#

Get current platform metrics

Returns a snapshot of HTTP request counts, response-time samples, integration counts, and basic system stats. Used by the home and admin dashboards.

Responses

  • 200Metrics snapshot
    Schema (application/json)
    object
    6 properties
    timestampstring<date-time>
    http_requests_totalobject

    Request counts keyed by HTTP method.

    response_timesarray<object>
    5 properties
    timestampstring<date-time>
    methodstring
    pathstring
    response_time_msnumber
    status_codeinteger
    integrations_statsobject
    4 properties
    totalinteger
    activeinteger
    errorsinteger
    mock_databoolean
    system_statsobject
    6 properties
    database_connectionsinteger
    cache_hitsinteger
    cache_missesinteger
    memory_usage_bytesinteger
    cpu_usage_percentnumber
    mock_databoolean
    mock_databoolean

    True if any field in the response is synthetic.

GET/metrics/timeseries#

Get a time-series for a named metric

Returns timestamps and values for a single metric over a window. Currently generates synthetic data; treat the shape as stable but the values as illustrative until the Prometheus backend lands.

Query parameters

  • metric"response_time" | "request_count" | "error_rate" | "cpu_usage" | "memory_usage"required
  • range"1h" | "24h" | "7d"

Responses

  • 200Time-series data
    Schema (application/json)
    object
    4 properties
    metricstring
    timeRangestring
    timestampsarray<string<date-time>>
    valuesarray<number>
  • 400metric query parameter missing

DORA

GET/metrics/dora#

Get DORA metrics

Deployment frequency, lead time for changes, mean time to restore, and change failure rate. Optionally filtered by team.

Query parameters

  • teamstring
  • period"7d" | "30d" | "90d"

Responses

  • 200DORA metrics (deployment frequency, lead time, MTTR, change failure rate)

Insights

GET/metrics/bus-factor#

Get bus factor analysis

Returns bus-factor scores per entity (or for a specific entity if `entity_id` is given). Higher score = more contributors who could keep the service running.

Query parameters

  • entity_idstring

Responses

  • 200Bus factor scores

Shoehorn Notifications API

v1.0.0

User notifications and notification subscription management.

Base URL: https://shoehorn.example.com/api/v1

/

Notifications

GET/notifications#

List notifications

Returns notifications visible to the current user.

Query parameters

  • severity"critical" | "warning" | "info"
  • typestring

    Filter by notification type prefix

  • limitinteger
  • offsetinteger

Responses

  • 200User notifications
    Schema (application/json)
    object
    1 property
    notificationsarray<Notification>
    18 properties
    idstring<uuid>
    tenantIdstring<uuid>
    teamIdstring<uuid>nullable
    entityIdintegernullable
    notificationTypestring

    Dotted type, e.g. k8s.workload.unhealthy

    severitystring
    "critical""warning""info"
    titlestring
    messagestring
    actionUrlstring

    Deep link to the related resource

    metadataobject
    isReadboolean
    dedupeKeystringnullable
    resolvedAtstring<date-time>nullable
    expiresAtstring<date-time>nullable
    tagsarray<string>
    criticalityTierintegernullable
    createdAtstring<date-time>
    updatedAtstring<date-time>
GET/notifications/count#

Get unread notification counts

Returns unread notification counts grouped by severity.

Responses

  • 200Unread counts
    Schema (application/json)
    object
    4 properties
    totalinteger
    criticalinteger
    warninginteger
    infointeger
PATCH/notifications/{id}/read#

Mark notification as read

Path parameters

  • idstring<uuid>required

Responses

  • 200Notification marked as read
POST/notifications/read-all#

Mark all notifications as read

Responses

  • 200All notifications marked as read
DELETE/notifications/{id}#

Dismiss notification

Path parameters

  • idstring<uuid>required

Responses

  • 204Notification dismissed
POST/notifications/dismiss-all#

Dismiss all notifications

Responses

  • 200Notifications dismissed
    Schema (application/json)
    object
    1 property
    dismissedinteger

Notification Subscriptions

GET/notifications/subscriptions#

List notification subscriptions

Returns subscriptions for a team or user scope.

Query parameters

  • scope"team" | "user"required
  • scope_idstring<uuid>required

Responses

  • 200Subscriptions for the scope
    Schema (application/json)
    object
    2 properties
    subscriptionsarray<Subscription>
    16 properties
    idstring<uuid>
    scopestring
    "team""user"
    scope_idstring<uuid>
    namestring
    enabledboolean
    event_typesarray<string>
    min_severitystring
    "critical""warning""info"
    entity_filterobject
    channel_typestring
    "slack""webhook""email""inapp"
    channel_configobject

    Channel settings; secret values are redacted in responses.

    cadencestring
    "realtime""hourly""daily""weekly"
    cadence_configobject
    paused_untilstring<date-time>nullable
    next_due_atstring<date-time>nullable
    created_atstring<date-time>
    updated_atstring<date-time>
    totalinteger
POST/notifications/subscriptions#

Create notification subscription

Request bodyrequired

Content-Type: application/json

SubscriptionInput
11 properties
scopestring*
"team""user"
scope_idstring<uuid>*
namestring*
enabledboolean

Default: true

event_typesarray<string>*
min_severitystring
"critical""warning""info"
entity_filterobject
channel_typestring*
"slack""webhook""email""inapp"
channel_configobject

Channel settings. Secret values are encrypted on write.

cadencestring
"realtime""hourly""daily""weekly"
cadence_configobject

For non-realtime cadences: day_of_week (0-6), hour (0-23), minute (0-59).

Responses

  • 201Created subscription
    Schema (application/json)
    Subscription
    16 properties
    idstring<uuid>
    scopestring
    "team""user"
    scope_idstring<uuid>
    namestring
    enabledboolean
    event_typesarray<string>
    min_severitystring
    "critical""warning""info"
    entity_filterobject
    channel_typestring
    "slack""webhook""email""inapp"
    channel_configobject

    Channel settings; secret values are redacted in responses.

    cadencestring
    "realtime""hourly""daily""weekly"
    cadence_configobject
    paused_untilstring<date-time>nullable
    next_due_atstring<date-time>nullable
    created_atstring<date-time>
    updated_atstring<date-time>
PUT/notifications/subscriptions/{id}#

Update notification subscription

Updates a subscription. The scope, scope_id, and channel_type fields are immutable.

Path parameters

  • idstring<uuid>required

Request bodyrequired

Content-Type: application/json

SubscriptionInput
11 properties
scopestring*
"team""user"
scope_idstring<uuid>*
namestring*
enabledboolean

Default: true

event_typesarray<string>*
min_severitystring
"critical""warning""info"
entity_filterobject
channel_typestring*
"slack""webhook""email""inapp"
channel_configobject

Channel settings. Secret values are encrypted on write.

cadencestring
"realtime""hourly""daily""weekly"
cadence_configobject

For non-realtime cadences: day_of_week (0-6), hour (0-23), minute (0-59).

Responses

  • 200Updated subscription
    Schema (application/json)
    Subscription
    16 properties
    idstring<uuid>
    scopestring
    "team""user"
    scope_idstring<uuid>
    namestring
    enabledboolean
    event_typesarray<string>
    min_severitystring
    "critical""warning""info"
    entity_filterobject
    channel_typestring
    "slack""webhook""email""inapp"
    channel_configobject

    Channel settings; secret values are redacted in responses.

    cadencestring
    "realtime""hourly""daily""weekly"
    cadence_configobject
    paused_untilstring<date-time>nullable
    next_due_atstring<date-time>nullable
    created_atstring<date-time>
    updated_atstring<date-time>
  • 404Subscription not found
DELETE/notifications/subscriptions/{id}#

Delete notification subscription

Path parameters

  • idstring<uuid>required

Responses

  • 204Subscription deleted
POST/notifications/subscriptions/{id}/test#

Send a test notification

Sends a synthetic notification through the subscription's channel.

Path parameters

  • idstring<uuid>required

Responses

  • 200Test notification sent
    Schema (application/json)
    object
    1 property
    statusstring
    "sent"
  • 502Channel delivery failed
POST/notifications/subscriptions/{id}/resume#

Resume a paused subscription

Clears paused_until to resume delivery.

Path parameters

  • idstring<uuid>required

Responses

  • 200Subscription resumed
    Schema (application/json)
    object
    1 property
    statusstring
    "resumed"
GET/notifications/subscriptions/{id}/deliveries#

List subscription delivery attempts

Returns the 50 most recent delivery attempts for a subscription.

Path parameters

  • idstring<uuid>required

Responses

  • 200Recent delivery attempts
    Schema (application/json)
    object
    2 properties
    deliveriesarray<Delivery>
    8 properties
    notification_idstring<uuid>
    channel_typestring
    "slack""webhook""email""inapp"
    statusstring
    "pending""success""failed"
    attemptsinteger
    last_errorstringnullable
    created_atstring<date-time>
    delivered_atstring<date-time>nullable
    next_attempt_atstring<date-time>nullable
    totalinteger

Shoehorn Operations API

v1.0.0

Workloads, deployment tracking, and GitOps management.

Base URL: https://shoehorn.example.com/api/v1

/

Workloads

GET/operations/workloads#

List all workloads

Returns workloads across all registered K8s clusters.

Query parameters

  • cluster_idstring
  • namespacestring
  • kind"Deployment" | "StatefulSet" | "DaemonSet" | "CronJob" | "Job"
  • limitinteger
  • cursorstring

Responses

  • 200Paginated workloads
GET/operations/workloads/stats#

Get workload statistics

Responses

  • 200Workload aggregate statistics
    Schema (application/json)
    object
    5 properties
    totalinteger
    by_kindobject
    by_clusterobject
    healthyinteger
    unhealthyinteger
GET/operations/workloads/image-stats#

Get image usage statistics

Returns aggregated container image statistics across workloads. All filters are optional and combine with AND.

Query parameters

  • clusterstring
  • namespacestring
  • teamstring
  • ownerstring

Responses

  • 200Image statistics
    Schema (application/json)
    object
    4 properties
    total_imagesinteger
    unique_imagesinteger
    by_registryobject
    outdatedinteger

    Images older than the platform's freshness threshold

  • 400Invalid filter value
GET/operations/workloads/replica-stats#

Get replica health statistics

Returns aggregated replica health (desired vs ready) across workloads.

Query parameters

  • clusterstring
  • namespacestring
  • teamstring
  • ownerstring

Responses

  • 200Replica statistics
    Schema (application/json)
    object
    4 properties
    desiredinteger
    readyinteger
    unavailableinteger
    by_clusterobject
GET/operations/workloads/network-policy-stats#

Get network policy coverage statistics

Returns the share of workloads in a cluster covered by at least one NetworkPolicy.

Query parameters

  • clusterstringrequired

Responses

  • 200Coverage statistics
    Schema (application/json)
    object
    5 properties
    clusterstring
    total_workloadsinteger
    coveredinteger
    uncoveredinteger
    coverage_percentnumber
  • 400cluster query parameter missing or too long
  • 503Network policy service not configured
GET/operations/workloads/{id}#

Get workload details

Path parameters

  • idstringrequired

Responses

  • 200Workload details including pods and events
GET/operations/workloads/{id}/pods#

Get workload pods

Path parameters

  • idstringrequired

Responses

  • 200Pods belonging to workload
GET/operations/workloads/{id}/events#

Get workload events

Path parameters

  • idstringrequired

Responses

  • 200Recent Kubernetes events for workload
GET/operations/workloads/{id}/network-flows#

Get inbound/outbound network flows for a workload

**Deprecated.** Superseded by platform-side relation inference. Retained for already-deployed observers until a future major version. Responses carry a `Deprecation: true` header (RFC 8594). Returns the inbound and outbound aggregated flows for a single workload entity.

Path parameters

  • idstringrequired

Query parameters

  • timeRangestring
  • minConnectionsinteger

Responses

  • 200Inbound and outbound flows for the workload
  • 400Invalid workload ID
  • 404Workload not found
  • 503Network flow service not configured
GET/operations/zombies#

List zombie workloads

Returns workloads that are not matched to any catalog entity (unowned).

Query parameters

  • cluster_idstring
  • namespacestring

Responses

  • 200Unowned workloads

GitOps

GET/operations/gitops#

List GitOps resources

Returns ArgoCD Applications and FluxCD resources across clusters.

Query parameters

  • platform"argocd" | "fluxcd"
  • cluster_idstring
  • sync_status"synced" | "out_of_sync" | "unknown"
  • health_status"healthy" | "degraded" | "progressing" | "missing" | "unknown"

Responses

  • 200GitOps resources
GET/operations/gitops/stats#

Get GitOps statistics

Responses

  • 200Aggregate GitOps statistics
GET/operations/gitops/{id}#

Get GitOps resource details

Path parameters

  • idstringrequired

Responses

  • 200GitOps resource details
POST/operations/gitops/{id}/sync#

Trigger GitOps sync

Sends a sync command to the agent managing this resource.

Path parameters

  • idstringrequired

Responses

  • 200Sync command queued
POST/operations/gitops/{id}/refresh#

Trigger GitOps refresh

Sends a refresh command to re-evaluate desired state.

Path parameters

  • idstringrequired

Responses

  • 200Refresh command queued

NetworkFlows

GET/operations/clusters/{clusterId}/network-flows#

List aggregated network flows for a cluster

**Deprecated.** The network observer that fed these flows is retired in favor of platform-side relation inference. Already-deployed observers may still POST flows, so this endpoint stays until a future major version. Responses carry a `Deprecation: true` header (RFC 8594). Returns aggregated source-to-destination flows. Backed by the network flow service; returns `503` if that service is not configured.

Path parameters

  • clusterIdstringrequired

Query parameters

  • timeRangestring

    Window over which to aggregate. Examples: `15m`, `1h`, `24h`.

  • minConnectionsinteger

    Drop edges below this connection count.

  • pageinteger
  • pageSizeinteger

Responses

  • 200Aggregated flows
    Schema (application/json)
    object
    2 properties
    flowsarray<object>
    5 properties
    sourceEntityIdstring
    destEntityIdstring
    destPortinteger
    connectionCountinteger
    lastSeenAtstring<date-time>
    metaobject
    2 properties
    timeRangestring
    totalFlowsinteger
  • 400clusterId missing
  • 503Network flow service not configured
GET/operations/clusters/{clusterId}/network-flows/topology#

Get the network topology graph for a cluster

**Deprecated.** Superseded by platform-side relation inference. Retained for already-deployed observers until a future major version. Responses carry a `Deprecation: true` header (RFC 8594). Returns nodes, edges, and summary stats suitable for graph rendering.

Path parameters

  • clusterIdstringrequired

Query parameters

  • timeRangestring
  • minConnectionsinteger
  • pageinteger
  • pageSizeinteger

Responses

  • 200Topology
    Schema (application/json)
    object
    3 properties
    nodesarray<object>
    edgesarray<object>
    statsobject
  • 400clusterId missing
  • 503Network flow service not configured
GET/operations/clusters/{clusterId}/network-flows/stats#

Get summary statistics for a cluster's network flows

**Deprecated.** Superseded by platform-side relation inference. Retained for already-deployed observers until a future major version. Responses carry a `Deprecation: true` header (RFC 8594). Returns summary statistics (total flows, unique source/destination entities, and top talkers and ports) for network flows within a cluster.

Path parameters

  • clusterIdstringrequired

Query parameters

  • timeRangestring
  • minConnectionsinteger

Responses

  • 200Summary statistics
  • 400clusterId missing
  • 503Network flow service not configured

GitOps Agent

POST/k8s/gitops/push#

Push GitOps resources from agent

Called by the K8s agent to push discovered GitOps resources.

Responses

  • 200Resources received
GET/k8s/{clusterId}/gitops/commands#

Get pending GitOps commands for agent

Path parameters

  • clusterIdstringrequired

Responses

  • 200Pending commands (sync, refresh)
PATCH/k8s/{clusterId}/gitops/commands/{commandId}#

Update command status

Path parameters

  • clusterIdstringrequired
  • commandIdstringrequired

Responses

  • 200Command status updated

Shoehorn Organization API

v1.0.0

Org-chart endpoints. The read endpoint is available to all authenticated users; the write endpoint is admin-only.

Base URL: https://shoehorn.example.com/api/v1

/

OrgChart

GET/organization/org-chart#

Get the org chart

Returns every active team plus its parent relationship, member count, and the team's primary manager (the highest-ranking member matching owner / manager / lead / team_lead). `total_member_count` includes descendants. Sub-team links are computed server-side.

Responses

  • 200Org chart
    Schema (application/json)
    object
    1 property
    teamsarray<OrgChartTeam>
    12 properties
    idstring<uuid>
    namestring
    slugstring
    display_namestringnullable
    descriptionstringnullable
    parent_team_idstring<uuid>nullable
    sub_team_idsarray<string<uuid>>
    member_countinteger

    Direct members.

    total_member_countinteger

    Direct members plus all descendants.

    manager_user_idstringnullable

    Highest-ranking team member (owner > manager > lead > team_lead).

    manager_rolestringnullable
    metadataobject
PUT/admin/org-chart#

Bulk-update team parent relationships

Admin-only. Each update sets a team's `parent_team_id`; pass `null` (or omit) to make the team a root team. Updates run inside one transaction. The server walks ancestry to reject cycles before applying: if any update would create a cycle, the entire request fails with `CIRCULAR_REFERENCE`.

Request bodyrequired

Content-Type: application/json

object
1 property
updatesarray<object>*
2 properties
team_idstring<uuid>*
parent_team_idstring<uuid>nullable

Set null to make the team a root team.

Responses

  • 200Updates applied
    Schema (application/json)
    object
    2 properties
    successboolean
    updatedinteger

    Number of updates applied.

  • 400Returned for an empty `updates` array, an invalid UUID, or a cycle. Cycles use the error code `CIRCULAR_REFERENCE`.
  • 403Caller lacks admin permission

Shoehorn Security API

v1.0.0

Security overview, findings, and posture assessment.

Base URL: https://shoehorn.example.com/api/v1

/

Security

GET/security/overview#

Get security overview

Returns the overall security posture for the tenant, including entity counts by security grade, risk distribution, and trends.

Responses

  • 200Security overview
    Schema (application/json)
    object
    4 properties
    overall_gradestring
    "A+""A""B""C""D""F"
    total_entitiesinteger
    by_gradeobject
    findings_summaryobject
    5 properties
    criticalinteger
    highinteger
    mediuminteger
    lowinteger
    infointeger
GET/security/findings#

List security findings

Returns CodeQL, secret scanning and Dependabot findings across your repositories, ordered by repository. Without `limit` every finding comes back in one response. With `limit`, pass each page's `nextCursor` as `cursor` to get the next one.

Query parameters

  • type"codeql" | "secret" | "dependabot"
  • severity"critical" | "high" | "medium" | "low"
  • repositorystring

    Only findings from this repository name.

  • teamstring

    Only findings from repositories these teams own. Comma-separated slugs.

  • searchstring

    Matches a CodeQL rule or description, a secret type, or a Dependabot package, CVE or GHSA id.

  • limitinteger

    Page size. Omit it to get every finding.

  • cursorstring

    The `nextCursor` from the previous page.

Responses

  • 200Security findings
    Schema (application/json)
    object
    2 properties
    findingsarray<SecurityFinding>
    12 properties
    idstring<uuid>
    entity_idstring
    entity_namestring
    typestring

    e.g., missing_owner, no_readme, exposed_secret

    severitystring
    "critical""high""medium""low""info"
    statusstring
    "open""acknowledged""resolved""false_positive"
    titlestring
    descriptionstring
    remediationstring

    Suggested fix

    sourcestring

    e.g., scorecard, scanner, manual

    created_atstring<date-time>
    resolved_atstring<date-time>
    paginationobject
    4 properties
    totalinteger

    Findings matching the filters

    limitinteger

    The page size

    nextCursorstring

    Present when there is another page.

    hasMoreboolean
  • 400A filter, `limit` or `cursor` value is not valid.
GET/security/findings/{id}#

Get security finding details

Path parameters

  • idstringrequired

Responses

  • 200Finding details with remediation guidance
    Schema (application/json)
    SecurityFinding
    12 properties
    idstring<uuid>
    entity_idstring
    entity_namestring
    typestring

    e.g., missing_owner, no_readme, exposed_secret

    severitystring
    "critical""high""medium""low""info"
    statusstring
    "open""acknowledged""resolved""false_positive"
    titlestring
    descriptionstring
    remediationstring

    Suggested fix

    sourcestring

    e.g., scorecard, scanner, manual

    created_atstring<date-time>
    resolved_atstring<date-time>
GET/security/infrastructure/clusters#

List Kubernetes infrastructure CVE findings by cluster

Returns, for every connected cluster, the CVE status of the control plane, kubelet, node OS, and the workload-level components Shoehorn can identify by container image (Argo CD, Cilium, cert-manager, Flux, Zitadel, the UpCloud CSI driver). Each component is matched against a curated CVE and ownership-tier table and may carry zero or more CVEs; a component Shoehorn can't yet version-check is reported as not yet scanned rather than silently omitted.

Query parameters

  • teamstring

    Comma-separated team slugs. Restricts the response to clusters owned by the tenant's designated infrastructure owner team, if one of these slugs matches it; otherwise returns no clusters. Omit for the org-wide view, which always returns every cluster.

Responses

  • 200Infrastructure CVE findings by cluster
    Schema (application/json)
    object
    4 properties
    clustersarray<InfrastructureCluster>*
    11 properties
    clusterIdstring*
    clusterNamestring*
    providerstring*

    The cloud provider as the agent reports it (SHOEHORN_PROVIDER), e.g. upcloud

    regionstring*

    Region the agent reports, e.g., fi-hel2. Empty when unknown.

    controlPlaneVersionstring*

    Kubernetes version of the control plane. Empty when unknown.

    managedOfferingstring

    Who runs the control plane, as the agent detects it: UpCloud Managed Kubernetes (uks), GKE, EKS or AKS. Omitted for a self-managed cluster, or one whose agent is too old to report it; on UpCloud, such a cluster reads as uks.

    "uks""gke""eks""aks"
    kubernetesVersionInfrastructureKubernetesVersion

    The cluster's Kubernetes version, the upgrades its provider offers and who starts them. Omitted when the agent reported no control plane version.

    7 properties
    runningstring*

    The control plane version

    statusstring*

    update: the provider offers a newer version. current: it offers nothing newer. untracked: Shoehorn has no offers for the cluster. Only UpCloud Managed Kubernetes has offers; GKE, EKS, AKS and self-managed clusters are always untracked.

    "update""current""untracked"
    offersarray<string>*

    Offered versions newer than running, oldest first, as UpCloud spells them (1.36). Empty, never null, without offers.

    offersSourcestring

    upcloud_cluster: the offers of the UpCloud cluster this one runs on, which the agent reports. upcloud_minor: the offers for its minor version across the connected UpCloud account, for an agent too old to report the cluster. Omitted when Shoehorn found neither to read offers from.

    "upcloud_cluster""upcloud_minor"
    providerClusterNamestring

    The UpCloud cluster's own name, with upcloud_cluster.

    upgradeViastring

    How the upgrade happens: started in UpCloud Hub, automatic on the GKE release channel, started by the user in AWS or Azure, or run by the user on a self-managed cluster. Omitted when an older agent didn't report the offering.

    "upcloud_hub""gke_auto""eks_user""aks_user""self"
    upgradeUrlstring<uri>

    UKS only: the UpCloud Hub page to start the upgrade, the cluster's own (https://hub.upcloud.com/kubernetes/<uuid>) when the agent reported it, else Hub's home page.

    workloadCountinteger*

    Workloads reporting a container image. Pods are counted through their owner.

    lastReportAtstring<date-time>*nullable

    The agent's last heartbeat. Null before the first one.

    componentsarray<InfrastructureComponent>*
    13 properties
    componentstring*

    e.g., control-plane, kubelet, cilium, argo-cd

    runningVersionstring*

    The running version. For Flux, the Flux release its controllers make up, empty when they match none.

    ownershipTierstring*

    Who can act on this component's CVEs: the tenant directly (self_service), the tenant triggers and the cloud provider executes (trigger_provider_executes), or neither can (provider_locked, shown for visibility only).

    "self_service""trigger_provider_executes""provider_locked"
    notYetScannedboolean*

    True when Shoehorn can't yet version-check this component.

    cvesarray<InfrastructureCVE>*

    Empty when no known CVE matches this version.

    5 properties
    idstring*

    A CVE id

    severitystring*
    "critical""high""medium""low"
    fixedVersionstring*

    The first version that fixes the CVE for this install's version: on its own minor line, or on a later one when its line has no fix (a 1.33 control plane can get 1.34.12). One CVE can list a different fix per cluster. Flux fixes are Flux releases and keep their v prefix (v2.8.8); the rest leave it out (1.18.6).

    descriptionstring*
    alsoFixedInarray<string>

    Control plane only: the fix on each other minor the provider offers this cluster, oldest first, never repeating fixedVersion (a 1.35.3 cluster offered 1.36 lists 1.36.5). Omitted when empty.

    cveDispositionstring

    provider_patches when only the provider can fix the listed CVEs: the control plane on UKS, GKE and EKS, and components the provider manages (Cilium, the CSI driver and the node OS on UKS, for example). They are listed but not counted as the tenant's findings, and upgradeTarget is left out. Omitted when the tenant fixes them.

    "provider_patches"
    driftboolean

    True when the Helm release record disagrees with the running version. Omitted when false.

    driftNotestring

    Explains the drift. Omitted when empty.

    countinteger

    Nodes or workload instances reporting this exact runningVersion; for Flux, the number of controllers. Omitted for cluster-wide components like control-plane, where a count doesn't apply.

    statusReasonstring

    Why notYetScanned is true: Shoehorn has no CVE data for the component (no_cve_data), or it has but can't read the running version (unknown_version). Omitted when the component was checked.

    "no_cve_data""unknown_version"
    upgradeTargetstring

    Version that fixes every listed CVE without landing in another known CVE range of the component, spelled like fixedVersion (v2.8.8 for Flux, 1.18.6 for the rest). Omitted without CVEs, or when no fixed version reads as X.Y.Z.

    updateInfrastructureUpdate

    Whether a newer version is out. Sent for the kubelet, node OS, Flux and the UpCloud CSI driver, whether or not the component also has CVE data; omitted for the other components. The control plane has none: its upgrades are the cluster's kubernetesVersion.

    3 properties
    statusstring*

    update: a newer version is out. current: runs the newest version Shoehorn knows about. untracked: Shoehorn can't tell, because it has no release data for the component, the control plane version is unknown (kubelet), or the controllers match no Flux release it knows.

    "update""current""untracked"
    lateststring

    The newer version, spelled as its source gives it: the control plane version for the kubelet (provider suffix included), a Flux release for Flux (v2.10.1). Set with update.

    asOfstring<date>

    Flux only: the day the Flux release list behind status was last refreshed. A release newer than that list reads as untracked.

    controllersarray<object>

    Flux only: each controller and version seen, by name, newest first. A controller running two versions is listed twice, and runningVersion is then empty: the controllers are no one release.

    2 properties
    namestring*

    source, kustomize, helm or notification

    versionstring*
    nodesarray<InfrastructureNode>*

    Raw per-node version facts, one entry per node.

    6 properties
    namestring*
    osImagestring*
    kernelVersionstring*
    kubeletVersionstring*
    containerRuntimeVersionstring*
    architecturestring*
    infrastructureOwnerTeamstring*nullable

    The tenant's designated infrastructure owner team slug, or null if unset.

    connectedClustersinteger

    How many clusters are connected. Sent even when a team filter hides the clusters, so a team that doesn't own the infrastructure still sees the count. Left out if the count couldn't be read.

    cveDataAsOfstring<date>

    The day the curated CVE data behind `cves` was last checked against its sources. Left out when a team filter hides the clusters.

  • 500The inventory couldn't be read. The body is the error response described in the API overview, with code `INTERNAL_ERROR`.
  • 504The request ran out of time before the response was ready. The body is the error response described in the API overview, with code `TIMEOUT`. A client that disconnects first gets no answer.

Shoehorn Teams API

v1.0.0

Team management, members, group mappings, and role assignments.

Base URL: https://shoehorn.example.com/api/v1

/

Teams

GET/teams#

List teams (public)

Returns teams visible to the current user.

Query parameters

  • limitinteger
  • cursorstring

Responses

  • 200List of teams
GET/teams/{id_or_slug}#

Get team by ID or slug (public)

Accepts either a UUID or a team slug.

Path parameters

  • id_or_slugstringrequired

Responses

  • 200Team details with members, mappings, and audit log
    Schema (application/json)
    TeamDetailsResponse
    4 properties
    teamTeam
    8 properties
    idstring<uuid>
    namestring
    slugstring
    descriptionstring
    metadataobject
    parent_idstring<uuid>
    created_atstring<date-time>
    updated_atstring<date-time>
    membersarray<TeamMember>
    4 properties
    user_idstring
    namestring
    emailstring
    rolestring
    "lead""member""viewer"
    group_mappingsarray<GroupMapping>
    4 properties
    idstring<uuid>
    group_namestring
    providerstring
    rolestring
    audit_logarray<object>

Admin Teams

GET/admin/teams#

List all teams (admin)

Responses

  • 200All teams
POST/admin/teams#

Create team

Request bodyrequired

Content-Type: application/json

CreateTeamRequest
5 properties
namestring*
slugstring
descriptionstring
parent_idstring
metadataobject

Responses

  • 201Team created
GET/admin/teams/{id}#

Get team (admin)

Path parameters

  • idstringrequired

Responses

  • 200Team details
PUT/admin/teams/{id}#

Update team

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

UpdateTeamRequest
4 properties
namestring
descriptionstring
parent_idstring
metadataobject

Responses

  • 200Team updated
DELETE/admin/teams/{id}#

Delete team

Path parameters

  • idstringrequired

Responses

  • 204Team deleted
GET/admin/teams/{id}/members#

List team members

Path parameters

  • idstringrequired

Responses

  • 200Team members
POST/admin/teams/{id}/members#

Add team member

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

object
2 properties
user_idstring*
rolestring*
"lead""member""viewer"

Responses

  • 201Member added
DELETE/admin/teams/{id}/members/{memberId}#

Remove team member

Path parameters

  • idstringrequired
  • memberIdstringrequired

Responses

  • 204Member removed
GET/admin/teams/{id}/mappings#

List group mappings

Path parameters

  • idstringrequired

Responses

  • 200Group-to-team mappings
POST/admin/teams/{id}/mappings#

Add group mapping

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

object
3 properties
group_namestring*
providerstring*
rolestring
"lead""member""viewer"

Responses

  • 201Mapping created
DELETE/admin/teams/{id}/mappings/{mappingId}#

Remove group mapping

Path parameters

  • idstringrequired
  • mappingIdstringrequired

Responses

  • 204Mapping removed
GET/admin/teams/{id}/roles#

Get team role assignments

Path parameters

  • idstringrequired

Responses

  • 200Roles assigned to team
POST/admin/teams/{id}/roles#

Assign role to team

Path parameters

  • idstringrequired

Request bodyrequired

Content-Type: application/json

object
1 property
role_idstring*

Responses

  • 201Role assigned
DELETE/admin/teams/{id}/roles/{roleId}#

Remove role from team

Path parameters

  • idstringrequired
  • roleIdstringrequired

Responses

  • 204Role removed

Shoehorn Users API

v1.0.0

User directory and current-user profile. Group membership and role mappings are surfaced via the Groups API.

Base URL: https://shoehorn.example.com/api/v1

/

Users

GET/me#

Get current user profile

Returns the authenticated user's profile, team memberships, and group claims.

Responses

  • 200Current user profile
    Schema (application/json)
    object
    8 properties
    idstring<uuid>
    emailstring
    namestring
    picturestring
    tenant_idstring
    teamsarray<string>

    Team slugs the user belongs to

    groupsarray<string>

    IdP group names from JWT claims

    rolesarray<string>
GET/workspace#

Get the workspace's look, announcement and read-only state

What every signed-in user sees of the workspace, with no role needed: its appearance (name, logo, colors, hidden pages), the announcement, and whether it's read-only. The full settings are under /admin/settings.

Responses

  • 200Workspace appearance, announcement and license state
    Schema (application/json)
    object
    3 properties
    appearanceobject
    10 properties
    primary_colorstring
    secondary_colorstring
    logo_urlstring
    logo_url_darkstring
    favicon_urlstring
    default_themestring
    "light""dark""system"
    platform_namestring
    platform_name_color_lightstring
    platform_name_color_darkstring
    hidden_pagesarray<string>
    announcementobject
    7 properties
    enabledboolean
    messagestring
    typestring
    link_urlstring
    link_textstring
    pinnedboolean
    updated_atstring
    licenseobject
    2 properties
    is_read_onlyboolean
    beta_grace_ends_atstring<date-time>
GET/users#

List users

Returns all users in the tenant directory.

Query parameters

  • limitinteger
  • cursorstring
  • searchstring

Responses

  • 200User directory
    Schema (application/json)
    object
    1 property
    usersarray<User>
    6 properties
    idstring<uuid>
    emailstring
    namestring
    picturestring
    last_loginstring<date-time>
    created_atstring<date-time>
GET/users/{id}#

Get user by ID

Returns a user's profile including group memberships and roles.

Path parameters

  • idstringrequired

Responses

  • 200User details
    Schema (application/json)
    UserDetail
    10 properties
    idstring<uuid>
    emailstring
    namestring
    picturestring
    tenant_idstring
    teamsarray<string>
    groupsarray<string>
    rolesarray<string>
    last_loginstring<date-time>
    created_atstring<date-time>
  • 404User not found