SpecProof Admin API
The admin API from SpecProof — 27 operation(s) for admin.
The admin API from SpecProof — 27 operation(s) for admin.
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/specproof-ai:specproof-ai-admin-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: SpecProof Portal Admin API
version: 1.0.0
tags:
- name: Admin
paths:
/admin/login:
post:
tags:
- Admin
summary: Admin Login
operationId: admin_login_admin_login_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AdminLoginPayload'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/stats:
get:
tags:
- Admin
summary: Admin Stats
operationId: admin_stats_admin_stats_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/users:
get:
tags:
- Admin
summary: Admin Users
operationId: admin_users_admin_users_get
parameters:
- name: search
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Search
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/orgs:
get:
tags:
- Admin
summary: Admin Orgs
operationId: admin_orgs_admin_orgs_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/usage:
get:
tags:
- Admin
summary: Admin Usage
operationId: admin_usage_admin_usage_get
parameters:
- name: range
in: query
required: false
schema:
type: string
default: 30d
title: Range
- name: org_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Org Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/orgs/{org_id}:
put:
tags:
- Admin
summary: Admin Update Org
operationId: admin_update_org_admin_orgs__org_id__put
parameters:
- name: org_id
in: path
required: true
schema:
type: string
title: Org Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/users/{user_id}:
delete:
tags:
- Admin
summary: Admin Delete User
operationId: admin_delete_user_admin_users__user_id__delete
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/api-keys:
get:
tags:
- Admin
summary: Admin Api Keys
operationId: admin_api_keys_admin_api_keys_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/api-keys/{key_id}/revoke:
post:
tags:
- Admin
summary: Admin Revoke Key
operationId: admin_revoke_key_admin_api_keys__key_id__revoke_post
parameters:
- name: key_id
in: path
required: true
schema:
type: string
title: Key Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/invoices:
get:
tags:
- Admin
summary: Admin Invoices
operationId: admin_invoices_admin_invoices_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/mcp/health:
get:
tags:
- Admin
summary: Admin Mcp Health
operationId: admin_mcp_health_admin_mcp_health_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/mcp/reload:
post:
tags:
- Admin
summary: Admin Mcp Reload
operationId: admin_mcp_reload_admin_mcp_reload_post
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents:
get:
tags:
- Admin
summary: Admin Documents
operationId: admin_documents_admin_documents_get
parameters:
- name: doc_type
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Doc Type
- name: search_pattern
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Search Pattern
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
title: Page
- name: per_page
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Per Page
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/stats:
get:
tags:
- Admin
summary: Admin Documents Stats
operationId: admin_documents_stats_admin_documents_stats_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/{doc_id}:
get:
tags:
- Admin
summary: Admin Document Detail
description: Get a document's metadata and content chunks.
operationId: admin_document_detail_admin_documents__doc_id__get
parameters:
- name: doc_id
in: path
required: true
schema:
type: integer
title: Doc Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Admin
summary: Admin Delete Document
description: Delete a document and all its chunks, FTS entries, and embeddings.
operationId: admin_delete_document_admin_documents__doc_id__delete
parameters:
- name: doc_id
in: path
required: true
schema:
type: integer
title: Doc Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/batch-delete:
post:
tags:
- Admin
summary: Admin Batch Delete Documents
description: Delete multiple documents at once (e.g., old versions).
operationId: admin_batch_delete_documents_admin_documents_batch_delete_post
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchDeletePayload'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/versions/{spec_base}:
get:
tags:
- Admin
summary: Admin Document Versions
description: Get all versions of a spec (e.g., spec_base=26501 returns 26501_j00.docx, 26501_j30.docx).
operationId: admin_document_versions_admin_documents_versions__spec_base__get
parameters:
- name: spec_base
in: path
required: true
schema:
type: string
title: Spec Base
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/multi-version:
get:
tags:
- Admin
summary: Admin Multi Version Docs
description: List all specs that have multiple versions, with version counts.
operationId: admin_multi_version_docs_admin_documents_multi_version_get
parameters:
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
title: Page
- name: per_page
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Per Page
- name: doc_type
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Doc Type
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/crawler/schedule:
get:
tags:
- Admin
summary: Admin Crawler Schedule Get
operationId: admin_crawler_schedule_get_admin_crawler_schedule_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Admin
summary: Admin Crawler Schedule Put
operationId: admin_crawler_schedule_put_admin_crawler_schedule_put
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/crawler/run:
post:
tags:
- Admin
summary: Admin Crawler Run
description: 'Start an indexing run. Body: {"mode": "gpu"|"local", "skip_download": bool}.'
operationId: admin_crawler_run_admin_crawler_run_post
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
content:
application/json:
schema:
anyOf:
- type: object
additionalProperties: true
- type: 'null'
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/crawler/stop:
post:
tags:
- Admin
summary: Admin Crawler Stop
description: 'Stop the running indexer, wherever it is running. A build only goes live at the final
atomic swap, so stopping mid-run cannot damage the live corpus.'
operationId: admin_crawler_stop_admin_crawler_stop_post
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/crawler/mpeg-credentials:
get:
tags:
- Admin
summary: Admin Crawler Mpeg Credentials Get
operationId: admin_crawler_mpeg_credentials_get_admin_crawler_mpeg_credentials_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Admin
summary: Admin Crawler Mpeg Credentials Put
operationId: admin_crawler_mpeg_credentials_put_admin_crawler_mpeg_credentials_put
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
title: Payload
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/crawler/status:
get:
tags:
- Admin
summary: Admin Crawler Status
operationId: admin_crawler_status_admin_crawler_status_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/support/threads:
get:
tags:
- Admin
summary: Admin List Support Threads
operationId: admin_list_support_threads_admin_support_threads_get
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/support/threads/{user_id}:
get:
tags:
- Admin
summary: Admin Get Support Thread
operationId: admin_get_support_thread_admin_support_threads__user_id__get
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
- name: org_id
in: query
required: true
schema:
type: string
title: Org Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/support/threads/{user_id}/reply:
post:
tags:
- Admin
summary: Admin Reply Support Thread
operationId: admin_reply_support_thread_admin_support_threads__user_id__reply_post
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
- name: org_id
in: query
required: true
schema:
type: string
title: Org Id
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SupportReplyPayload'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/documents/upload:
post:
tags:
- Admin
summary: Admin Documents Upload
operationId: admin_documents_upload_admin_documents_upload_post
parameters:
- name: x-admin-secret
in: header
required: true
schema:
type: string
title: X-Admin-Secret
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_admin_documents_upload_admin_documents_upload_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Body_admin_documents_upload_admin_documents_upload_post:
properties:
file:
type: string
contentMediaType: application/octet-stream
title: File
doc_type:
anyOf:
- type: string
- type: 'null'
title: Doc Type
title:
anyOf:
- type: string
- type: 'null'
title: Title
type: object
required:
- file
title: Body_admin_documents_upload_admin_documents_upload_post
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
AdminLoginPayload:
properties:
username:
type: string
title: Username
password:
type: string
title: Password
type: object
required:
- username
- password
title: AdminLoginPayload
BatchDeletePayload:
properties:
doc_ids:
items:
type: integer
type: array
title: Doc Ids
type: object
required:
- doc_ids
title: BatchDeletePayload
SupportReplyPayload:
properties:
body:
type: string
title: Body
author_name:
anyOf:
- type: string
- type: 'null'
title: Author Name
default: Support
type: object
required:
- body
title: SupportReplyPayload