Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/corestory:corestory-old-conversations-api"
All apis
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.
Get an API 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: Crowdbotics API Documentation OLD Conversations API
description: '# CoreStory API Overview
The CoreStory API provides programmatic access to structured insights derived from software source code. It is designed for engineering, architecture, and product teams who need to extract business logic, technical specifications, architectural relationships, and system-level context from complex or legacy codebases. By interfacing directly with CoreStory API, users can:
- Generate full Product Requirements Documents (PRDs) from a codebase
- Extract detailed Technical Specifications for modernization or migration
- Query a codebase using natural language to surface implementation details, logic paths, dependencies, and architectural insights
- Construct and visualize knowledge graphs of systems, components, and relationships
- Ingest, store, and retrieve content from a vector store for AI-powered retrieval-augmented generation (RAG) workflows
CoreStory is especially valuable in contexts where:
- Codebases are large, unstructured, or under-documented
- Product and engineering teams are onboarding to unfamiliar systems
- Technical stakeholders require visibility into system design or feature coverage
- Modernization, replatforming, or M&A due diligence is underway
The API can be integrated into existing CI/CD pipelines, internal developer portals, architecture review boards, product planning processes, or documentation automation workflows. All endpoints support secure authentication and are designed for high-availability, asynchronous workloads. Output formats include JSON, Markdown, and PDF, with flexible formatting options for downstream consumption. For step-by-step usage instructions and workflows, refer to the CoreStory API Quick Start Guide. ## Features
* **Document Generation**
* Generate complete Product Requirements Documents (PRD)
* Generate Technical Specifications
* Generate individual document sections (executive overview, user personas, etc.)
* Format documents in JSON or Markdown
* **Vector Store Management**
* Ingest and manage documents in vector store
* Query and retrieve document content
* Manage document embeddings
* **Context Management**
* Manage context for different document types
* Set and retrieve PRD context
* Support for future context types (technical specs, user stories, etc.)
* **Knowledge Graph**
* Generate knowledge graphs from codebase queries
* Visualize relationships between code entities
* Analyze code structure and dependencies
* **API Endpoints**
* `/api/documents/*` - Document generation and formatting
* `/api/generate/*` - Document formatting utilities
* `/api/vector-store/*` - Vector store management
* `/api/agents/*` - AI agent operations
* `/api/context/*` - Context management for documents
* `/api/graph/*` - Knowledge graph generation and analysis
Note: JWT authentication support coming soon. All endpoints currently provide detailed OpenAPI documentation. * **Observability**
* OpenTelemetry instrumentation for distributed tracing
* Prometheus metrics endpoint at `/metrics`
* Comprehensive request/response tracking
* Custom business metrics
# CoreStory System Architecture
This document provides a high-level overview of how the CoreStory platform ingests, analyzes, and serves structured software intelligence through its API. The system is designed to process codebases and related technical artifacts in order to generate product specifications, technical documents, and knowledge graph representations. ---
## Core Components
### 1. **Ingestion Layer**
- Accepts Git URLs, file uploads, or local archives
- Extracts source files, documentation, and metadata
- Initiates chunking and embedding via the vector store pipeline
### 2. **Vector Store and Context Engine**
- Stores chunked and embedded documents
- Supports semantic search and document retrieval
- Feeds LLMs with scoped context for generation and reasoning
### 3.'
version: 1.33.0
servers:
- url: /
description: Current server
security:
- BearerAuth: []
tags:
- name: OLD_conversations
paths:
/api/projects/{project_id}/chat/conversations/list:
get:
tags:
- OLD_conversations
summary: 'DEPRECATED: Get all Project''s conversations for a User with pagination'
description: 'DEPRECATED: Use GET / instead. Retrieve all conversations related to the Project for a User.'
operationId: list_conversations_deprecated
deprecated: true
parameters:
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
description: Number of items per page
default: 100
title: Limit
description: Number of items per page
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
description: Number of items to skip
default: 0
title: Offset
description: Number of items to skip
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedConversationListResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
/api/projects/{project_id}/chat/conversations/{conversation_id}/settings:
get:
tags:
- OLD_conversations
summary: Get conversation settings
description: 'Retrieve persona and context scope settings for a conversation. DEPRECATED: Settings are now embedded in ConversationResponse from GET /{conversation_id}.'
operationId: get_conversation_settings
deprecated: true
parameters:
- name: conversation_id
in: path
required: true
schema:
type: integer
title: Conversation Id
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationSettingsResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
patch:
tags:
- OLD_conversations
summary: Update conversation settings
description: 'Update persona and/or context scope for a conversation. DEPRECATED: Use PATCH /{conversation_id} instead.'
operationId: update_conversation_settings
deprecated: true
parameters:
- name: conversation_id
in: path
required: true
schema:
type: integer
title: Conversation Id
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationSettingsRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationSettingsResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
/api/projects/{project_id}/chat/conversations/{conversation_id}/import:
get:
tags:
- OLD_conversations
summary: 'DEPRECATED: Import a shared conversation into your account'
description: 'DEPRECATED: Use GET /{conversation_id}/shared for the read-only share view instead. Import a shared conversation, creating a read-only copy with all messages. The imported conversation will have ''Shared - '' prefix and cannot be edited. If already imported, returns the existing copy without creating a duplicate.'
operationId: import_conversation
deprecated: true
parameters:
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
- name: conversation_id
in: path
required: true
schema:
type: integer
title: Conversation Id
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ImportConversationResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
/api/projects/{project_id}/chat/conversations/create-conversation:
post:
tags:
- OLD_conversations
summary: 'DEPRECATED: Create a new conversation'
description: 'DEPRECATED: Use POST / instead. Create a new conversation for a specific project and user.'
operationId: create_conversation_deprecated
deprecated: true
parameters:
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationCreateRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
/api/projects/{project_id}/chat/conversations/{conversation_id}/new-message:
post:
tags:
- OLD_conversations
summary: 'DEPRECATED: Add a chat message to a conversation'
description: 'DEPRECATED: Use POST /{conversation_id}/messages instead.'
operationId: add_chat_message_deprecated
deprecated: true
parameters:
- name: project_id
in: path
required: true
schema:
type: integer
title: Project Id
- name: conversation_id
in: path
required: true
schema:
type: integer
title: Conversation Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/QueryRequest'
responses:
'200':
description: Server-Sent Events (SSE) stream of JSON objects.
content:
text/event-stream:
schema:
$ref: '#/components/schemas/TokenEvent'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSchema'
components:
schemas:
ErrorBody:
properties:
message:
type: string
title: Message
type:
type: string
title: Type
details:
additionalProperties: true
type: object
title: Details
description: Optional extra context for the error.
code:
anyOf:
- type: string
- type: 'null'
title: Code
description: Stable machine-readable code for clients that branch on the specific failure.
required_organization:
anyOf:
- $ref: '#/components/schemas/RequiredOrganization'
- type: 'null'
description: Set when the caller can retry after switching organization context.
type: object
required:
- message
- type
title: ErrorBody
TokenEvent:
description: 'Event model for streaming responses from chat/agent operations.
This model represents various event types that can be streamed to the frontend
during orchestrator execution. The event_type field determines which additional
fields are relevant for each event.'
properties:
event_type:
$ref: '#/components/schemas/StreamEventType'
default: token
delta:
default: ''
description: Token content (for token/reasoning events)
title: Delta
type: string
seq:
description: Sequence number for ordering events
title: Seq
type: integer
conversation_id:
description: ID of the conversation this event belongs to
title: Conversation Id
type: integer
project_id:
description: ID of the project this event belongs to
title: Project Id
type: integer
title:
anyOf:
- type: string
- type: 'null'
default: null
description: Conversation title (for title events)
title: Title
has_sources:
anyOf:
- type: boolean
- type: 'null'
default: false
description: Whether the message has source file references (for done events)
title: Has Sources
summary:
anyOf:
- type: string
- type: 'null'
default: null
description: Reasoning summary text (for reasoning_complete events)
title: Summary
message_id:
anyOf:
- type: integer
- type: 'null'
default: null
description: ID of the chat message this event belongs to (for done events)
title: Message Id
error_code:
anyOf:
- type: string
- type: 'null'
default: null
description: Error code or type (for error events)
title: Error Code
error_message:
anyOf:
- type: string
- type: 'null'
default: null
description: Detailed error message (for error events)
title: Error Message
required:
- seq
- conversation_id
- project_id
title: TokenEvent
type: object
ContextScope:
type: string
enum:
- automatic
- artifacts
- code
title: ContextScope
description: Context scope for knowledge retrieval
PaginatedConversationListResponse:
properties:
results:
items:
$ref: '#/components/schemas/ConversationResponse'
type: array
title: Results
description: List of conversations
count:
type: integer
title: Count
description: Total number of conversations
limit:
type: integer
title: Limit
description: Items per page
offset:
type: integer
title: Offset
description: Items skipped
type: object
required:
- results
- count
- limit
- offset
title: PaginatedConversationListResponse
description: Response model for paginated conversation list
StreamEventType:
description: 'Types of events streamed to the frontend during chat/agent operations.
These events are emitted as Server-Sent Events (SSE) during orchestrator execution
and provide real-time progress updates to the frontend.'
enum:
- plan
- task_start
- task_complete
- continuation
- token
- reasoning
- reasoning_complete
- streaming_done
- synthesis_corrected
- sources
- title
- results_available
- plan_available
- error
- step_evaluation
- workflow_updated
- done
title: StreamEventType
type: string
ImportConversationResponse:
properties:
id:
type: integer
title: Id
description: Conversation ID
project_id:
type: integer
title: Project Id
description: Project the conversation is addressed under, and the first it covers
project_ids:
items:
type: integer
type: array
title: Project Ids
description: Every project the conversation covers. Retrieval and citations span all of them
user_id:
type: string
format: uuid
title: User Id
description: User ID who owns this conversation
title:
type: string
title: Title
description: Conversation title
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
description: When the conversation was created
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
description: When the conversation was last updated
origin:
$ref: '#/components/schemas/ConversationOrigin'
description: Where the conversation originated (UI-based or MCP session)
default: ui
persona:
$ref: '#/components/schemas/ChatPersona'
description: Chat persona for this conversation
default: general
context_scope:
$ref: '#/components/schemas/ContextScope'
default: automatic
context:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Context
description: Additional context for the conversation
meta:
$ref: '#/components/schemas/ConversationMeta'
description: Message metadata
is_imported:
type: boolean
title: Is Imported
description: Indicates if the conversation was imported
is_read_only:
type: boolean
title: Is Read Only
description: Indicates if the conversation is read-only
import_status:
anyOf:
- $ref: '#/components/schemas/ImportStatus'
- type: 'null'
description: Import status (only present for imported conversations)
chat_messages:
items:
$ref: '#/components/schemas/ChatMessageResponse'
type: array
title: Chat Messages
description: 'DEPRECATED: Use GET /{conversation_id}/messages endpoint instead.'
deprecated: true
status:
anyOf:
- $ref: '#/components/schemas/ImportStatus'
- type: 'null'
description: 'DEPRECATED: Use import_status instead. Status of the import operation.'
deprecated: true
type: object
required:
- id
- project_id
- user_id
- title
- created_at
- updated_at
- is_imported
- is_read_only
title: ImportConversationResponse
description: Response model for imported conversation with backward-compatible status field.
ConversationResponse:
properties:
id:
type: integer
title: Id
description: Conversation ID
project_id:
type: integer
title: Project Id
description: Project the conversation is addressed under, and the first it covers
project_ids:
items:
type: integer
type: array
title: Project Ids
description: Every project the conversation covers. Retrieval and citations span all of them
user_id:
type: string
format: uuid
title: User Id
description: User ID who owns this conversation
title:
type: string
title: Title
description: Conversation title
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
description: When the conversation was created
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
description: When the conversation was last updated
origin:
$ref: '#/components/schemas/ConversationOrigin'
description: Where the conversation originated (UI-based or MCP session)
default: ui
persona:
$ref: '#/components/schemas/ChatPersona'
description: Chat persona for this conversation
default: general
context_scope:
$ref: '#/components/schemas/ContextScope'
default: automatic
context:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Context
description: Additional context for the conversation
meta:
$ref: '#/components/schemas/ConversationMeta'
description: Message metadata
is_imported:
type: boolean
title: Is Imported
description: Indicates if the conversation was imported
is_read_only:
type: boolean
title: Is Read Only
description: Indicates if the conversation is read-only
import_status:
anyOf:
- $ref: '#/components/schemas/ImportStatus'
- type: 'null'
description: Import status (only present for imported conversations)
chat_messages:
items:
$ref: '#/components/schemas/ChatMessageResponse'
type: array
title: Chat Messages
description: 'DEPRECATED: Use GET /{conversation_id}/messages endpoint instead.'
deprecated: true
type: object
required:
- id
- project_id
- user_id
- title
- created_at
- updated_at
- is_imported
- is_read_only
title: ConversationResponse
description: Response model for conversation data with settings and metadata
ConversationSettingsResponse:
properties:
conversation_id:
type: integer
title: Conversation Id
persona:
$ref: '#/components/schemas/ChatPersona'
context_scope:
$ref: '#/components/schemas/ContextScope'
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
type: object
required:
- conversation_id
- persona
- context_scope
- created_at
- updated_at
title: ConversationSettingsResponse
description: 'Response model for conversation settings (deprecated: settings now in ConversationResponse)'
ChatPersona:
type: string
enum:
- general
- developer
- business_analyst
- product_manager
- project_manager
- designer
title: ChatPersona
description: Personas for chat behavior customization
RequiredOrganization:
properties:
id:
type: string
title: Id
description: Clerk organization id the client should switch to.
name:
type: string
title: Name
description: Display name of that organization.
type: object
required:
- id
- name
title: RequiredOrganization
description: The organization a caller must be acting under before a denied request can succeed.
ConversationOrigin:
type: string
enum:
- ui
- mcp
title: ConversationOrigin
description: Origin source of conversation creation
ErrorSchema:
properties:
error:
$ref: '#/components/schemas/ErrorBody'
type: object
required:
- error
title: ErrorSchema
ConversationCreateRequest:
properties:
title:
type: string
title: Title
context:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Context
persona:
anyOf:
- $ref: '#/components/schemas/ChatPersona'
- type: 'null'
context_scope:
anyOf:
- $ref: '#/components/schemas/ContextScope'
- type: 'null'
additional_project_ids:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Additional Project Ids
description: 'Further projects this conversation covers, beyond the one in the path. The set is fixed at creation: asking across a different set means starting another conversation'
type: object
required:
- title
title: ConversationCreateRequest
description: Request model for creating a conversation
ImportStatus:
type: string
enum:
- original
- pending
- in_progress
- completed
- failed
title: ImportStatus
ChatMessageResponse:
properties:
id:
type: integer
title: Id
description: Chat message ID
conversation_id:
type: integer
title: Conversation Id
description: Conversation ID this message belongs to
role:
type: string
title: Role
description: Role of the message sender (e.g., 'user', 'assistant')
content:
type: string
title: Content
description: Content of the chat message
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
description: When the message was created
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
description: When the message was last updated
has_sources:
type: boolean
title: Has Sources
description: Indicates if the message has source references
default: false
feedback:
anyOf:
- $ref: '#/components/schemas/FeedbackType'
- type: 'null'
description: Feedback for the message, if any
type: object
required:
- id
- conversation_id
- role
- content
- created_at
- updated_at
- feedback
title: ChatMessageResponse
description: Response model for chat message data
ConversationMeta:
properties:
message_count:
type: integer
title: Message Count
description: Total number of messages in the conversation
default: 0
last_message_preview:
anyOf:
- type: string
- type: 'null'
title: Last Message Preview
description: Preview of the last message content (up to 100 chars)
last_message_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Message At
description: Timestamp of the last message
type: object
title: ConversationMeta
description: Metadata about conversation messages.
ConversationSettingsRequest:
properties:
persona:
anyOf:
- $ref: '#/components/schemas/ChatPersona'
- type: 'null'
context_scope:
anyOf:
- $ref: '#/components/schemas/ContextScope'
- type: 'null'
type: object
title: ConversationSettingsRequest
description: 'Request model for updating conversation settings (deprecated: use UpdateConversationRequest)'
FeedbackType:
type: string
enum:
- thumbs_up
- thumbs_down
title: FeedbackType
description: Types of user feedback
QueryRequest:
properties:
query:
type: string
title: Query
reasoning_mode:
type: boolean
title: Reasoning Mode
default: false
model:
anyOf:
- type: string
pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$
- type: 'null'
title: Model
description: LLM model for this request (e.g. claude-sonnet-4-0, gpt-4o). Auto-detects provider from model name prefix.
language:
anyOf:
- type: string
- type: 'null'
title: Language
description: BCP-47 language code for responses (ja, es, fr-CA).
include_source_markers:
type: boolean
title: Include Source Markers
description: When true, sources are numbered ([1], [2]) and the LLM adds inline citations.
default: false
verify_build_claims:
anyOf:
- type: boolean
- type: 'null'
title: Verify Build Claims
description: Per-request override for post-synthesis build/dependency claim verification. When true, package/tool claims in the answer are cross-checked against build-manifest metadata stored during ingestion (trades streaming latency for claim accuracy). When false, verification is skipped for this request. When omitted (null), the server falls back to the BUILD_CLAIM_VERIFICATION_ENABLED environment setting.
use_graph_search:
anyOf:
- type: boolean
- type: 'null'
title: Use Graph Search
description: Per-request override for whether the agent is offered the code-graph search surface. When true, the graph tool is exposed for this request even if the global flag is off; when false, it is withheld even if the global flag is on. When omitted (null), the server falls back to the SAO_GRAPH_SEARCH_ENABLED setting. A true override still requires the project to have a built graph. Lets a paired evaluation answer the same question with and without the graph against one project.
type: object
required:
- query
title: QueryRequest
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Enter the Bearer token from Clerk authentication
x-tagGroups:
- name: Ingest Your Codebase
tags:
- vector_store
- projects
- pre_ingestion
- reingestion
- name: Generate Code Intelligence
tags:
- documents
- document_generation
- document_formatters
- prd
- prd_version
- tech_spec
- quality_metrics
- sample_projects
- name: Query Your Codebase
tags:
- conversations
- workflows
- discovery
- context
- artifacts
- name: Manage and Inspect Intelligence
tags:
- api_debugging
- events
- version
- files
- cache
- token_tracking
- name: Authenticate and Manage Access
tags:
- clerk_authentication
- git_webhooks
- github_integration
- organizations
- api_key_management
- mcp_token_management
- user
- name: (Advanced) Prompt Tuning
tags:
- prompts
- name: MCP Protocol
tags:
- mcp_protocol
- name: Administration
tags:
- admin
x-provenance:
method: harvested
publisher: CoreStory
source: https://c2s.corestory.ai/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)