Sageox Repositories API
The Repositories API from Sageox — 6 operation(s) for repositories.
The Repositories API from Sageox — 6 operation(s) for repositories.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sageox-repositories-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SageOx Repositories API
version: 1.0.0
description: '# API Reference
## Overview
SageOx is a platform that captures team knowledge from discussions, decisions, and work context into a Ledger (per-repo historical record) and Team Context (team-wide shared knowledge).'
contact:
name: SageOx Team
license:
name: MIT
servers:
- url: http://localhost:3000
description: Devcontainer
- url: https://test.sageox.ai
description: Test
- url: https://sageox.ai
description: Production
security:
- bearerAuth: []
tags:
- name: Repositories
paths:
/api/v1/repos/{repo_id}/uninstall:
post:
operationId: initiateUninstall
summary: Initiate repository uninstall
description: 'Initiates an uninstall request for a repository, removing cloud resources while preserving data.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Workflow:** Triggers a Temporal workflow that handles confirmation and cleanup.
**Status:** Returns 202 Accepted - the workflow handles the rest asynchronously.
**Confirmation:** User must confirm uninstall via POST /api/v1/repos/{repo_id}/uninstall/confirm'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
requestBody:
content:
application/json:
schema:
type: object
properties:
reason:
type: string
example: Project archived
description: Optional reason for audit purposes
responses:
'202':
description: Uninstall request accepted - workflow in progress
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
- status_url
- expires_at
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: pending
status_url:
type: string
format: uri
example: https://web.example.com/repos/repo_01934f5a-8b9c-7def-b012-3456789abcde/uninstall
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
workflow_id:
type: string
example: uninstall-requested-repo_01934f5a-8b9c-7def-b012-3456789abcde
'400':
description: Invalid repo_id or request body
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Uninstall already pending
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
operationId: getUninstallStatus
summary: Get uninstall request status
description: 'Returns the current status of an uninstall request.
**Authentication:** Required (bearer token)
**Access Control:** User must be a member of the team associated with the repository.
**Status Values:**
- `pending` - Awaiting confirmation (includes confirmation_required field)
- `confirmed` - Confirmed, cleanup in progress
- `canceled` - Request was canceled
- `expired` - Confirmation window expired
- `completed` - Uninstall completed'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
responses:
'200':
description: Uninstall status retrieved
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
- initiated_by
- initiated_at
- expires_at
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
enum:
- pending
- confirmed
- canceled
- expired
- completed
example: pending
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
confirmed_by:
type: string
nullable: true
example: user_2n3k4m5l6j7h8g9f
confirmed_at:
type: string
nullable: true
format: date-time
example: '2025-12-18T11:00:00Z'
confirmation_required:
type: string
description: Text that must be typed to confirm (only when status is pending)
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
workflow_id:
type: string
example: uninstall-requested-repo_01934f5a-8b9c-7def-b012-3456789abcde
'400':
description: Invalid repo_id format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a member of the associated team
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or uninstall request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/repos/{repo_id}/uninstall/confirm:
post:
operationId: confirmUninstall
summary: Confirm uninstall request
description: 'Confirms an uninstall request. User must type the repo ID to confirm.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Confirmation:** The confirmation_text field must exactly match the repo_id.
**Workflow:** Signals the Temporal workflow to proceed with uninstall.
**Response:** Returns 202 Accepted - the workflow handles cleanup asynchronously.'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- confirmation_text
properties:
confirmation_text:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Must exactly match the repo_id
responses:
'202':
description: Confirmation signal sent - workflow proceeding
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: confirming
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
'400':
description: Invalid repo_id or confirmation_text does not match
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or uninstall request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Uninstall request not pending or has expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/repos/{repo_id}/uninstall/cancel:
post:
operationId: cancelUninstall
summary: Cancel uninstall request
description: 'Cancels a pending uninstall request.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Workflow:** Signals the Temporal workflow to cancel the uninstall.
**Response:** Returns 202 Accepted - the workflow handles state update asynchronously.'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
responses:
'202':
description: Cancellation signal sent - workflow updating state
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: canceling
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
'400':
description: Invalid repo_id format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or uninstall request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Uninstall request not pending or has expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/repos/{repo_id}/delete:
post:
operationId: initiateDeletion
summary: Initiate repository deletion
description: 'Initiates a deletion request for a repository, permanently removing all data.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Workflow:** Triggers a Temporal workflow that handles confirmation and cleanup.
**Status:** Returns 202 Accepted - the workflow handles the rest asynchronously.
**Confirmation:** User must confirm deletion via POST /api/v1/repos/{repo_id}/delete/confirm
**Warning:** This operation is irreversible.'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
requestBody:
content:
application/json:
schema:
type: object
properties:
reason:
type: string
example: No longer needed
description: Optional reason for audit purposes
responses:
'202':
description: Deletion request accepted - workflow in progress
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
- status_url
- expires_at
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: pending
status_url:
type: string
format: uri
example: https://web.example.com/repos/repo_01934f5a-8b9c-7def-b012-3456789abcde/delete
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
workflow_id:
type: string
example: deletion-requested-repo-repo_01934f5a-8b9c-7def-b012-3456789abcde
'400':
description: Invalid repo_id or request body
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Deletion already pending
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
operationId: getDeletionStatus
summary: Get deletion request status
description: 'Returns the current status of a deletion request.
**Authentication:** Required (bearer token)
**Access Control:** User must be a member of the team associated with the repository.
**Status Values:**
- `pending` - Awaiting confirmation
- `confirmed` - Confirmed, deletion in progress
- `canceled` - Request was canceled
- `expired` - Confirmation window expired
- `completed` - Deletion completed'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
responses:
'200':
description: Deletion status retrieved
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
- initiated_by
- initiated_at
- expires_at
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
enum:
- pending
- confirmed
- canceled
- expired
- completed
example: pending
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
confirmed_by:
type: string
nullable: true
example: user_2n3k4m5l6j7h8g9f
confirmed_at:
type: string
nullable: true
format: date-time
example: '2025-12-18T11:00:00Z'
canceled_by:
type: string
nullable: true
example: user_2n3k4m5l6j7h8g9f
canceled_at:
type: string
nullable: true
format: date-time
example: '2025-12-18T11:05:00Z'
workflow_id:
type: string
example: deletion-requested-repo-repo_01934f5a-8b9c-7def-b012-3456789abcde
'400':
description: Invalid repo_id format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a member of the associated team
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or deletion request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/repos/{repo_id}/delete/confirm:
post:
operationId: confirmDeletion
summary: Confirm deletion request
description: 'Confirms a deletion request. Permanently deletes the repository and all associated data.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Workflow:** Signals the Temporal workflow to proceed with deletion.
**Response:** Returns 202 Accepted - the workflow handles cleanup asynchronously.
**Warning:** This operation is irreversible.'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
responses:
'202':
description: Confirmation signal sent - deletion proceeding
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: confirming
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
expires_at:
type: string
format: date-time
example: '2025-12-25T10:30:00Z'
'400':
description: Invalid repo_id
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or deletion request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Deletion request not pending or has expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/repos/{repo_id}/delete/cancel:
post:
operationId: cancelDeletion
summary: Cancel deletion request
description: 'Cancels a pending deletion request.
**Authentication:** Required (bearer token)
**Access Control:** User must be a team admin or owner.
**Workflow:** Signals the Temporal workflow to cancel the deletion.
**Response:** Returns 202 Accepted - the workflow handles state update asynchronously.'
tags:
- Repositories
security:
- bearerAuth: []
parameters:
- name: repo_id
in: path
required: true
schema:
type: string
pattern: ^repo_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
description: Repository identifier
responses:
'202':
description: Cancellation signal sent - workflow updating state
content:
application/json:
schema:
type: object
required:
- repo_id
- team_id
- status
properties:
repo_id:
type: string
example: repo_01934f5a-8b9c-7def-b012-3456789abcde
team_id:
type: string
example: team_abc123xyz
status:
type: string
example: canceling
initiated_by:
type: string
example: user_2n3k4m5l6j7h8g9f
initiated_at:
type: string
format: date-time
example: '2025-12-18T10:30:00Z'
'400':
description: Invalid repo_id format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Not a team admin or owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Repository or deletion request not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Deletion request not pending or has expired
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
description: Standard error response returned by all endpoints on failure.
required:
- success
- error
properties:
success:
type: boolean
description: Always `false` for error responses.
enum:
- false
error:
type: string
description: Human-readable error message describing what went wrong. Do not parse this programmatically — use HTTP status codes for control flow.
example: Invalid request parameters
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: 'JWT token obtained from the auth service (/api/auth/token).
Token is validated using JWKS from the auth service.
Required claims: sub (user_id), email, name, tier.
'