# Create Api Key
Source: https://docs.mielto.com/api-reference/api-keys/create-api-key
api-reference/openapi.json post /api/v1/api-keys
Create new API key.
# Delete Api Key
Source: https://docs.mielto.com/api-reference/api-keys/delete-api-key
api-reference/openapi.json delete /api/v1/api-keys/{api_key_id}
Delete API key.
# Get Api Key
Source: https://docs.mielto.com/api-reference/api-keys/get-api-key
api-reference/openapi.json get /api/v1/api-keys/{api_key_id}
Get API key by ID.
# List Api Keys
Source: https://docs.mielto.com/api-reference/api-keys/list-api-keys
api-reference/openapi.json get /api/v1/api-keys
Retrieve API keys.
# Update Api Key
Source: https://docs.mielto.com/api-reference/api-keys/update-api-key
api-reference/openapi.json put /api/v1/api-keys/{api_key_id}
Update API key.
# Create Chunks
Source: https://docs.mielto.com/api-reference/chunks/create-chunks
api-reference/openapi.json post /api/v1/chunks/create
Create chunks/embeddings from existing content.
This endpoint processes uploaded content that was stored without ingestion
(ingest=False) and creates vector embeddings for it.
Args:
request: CreateChunksRequest containing:
- content_id: Content ID to process
- reader: Reader to use ("native", "langchain", "markitdown", etc.)
- force_rechunk: Whether to force re-chunking existing chunks
Returns:
CreateChunksResponse with processing results
Examples:
Create chunks for uploaded content:
POST /chunks/create
{
"content_id": "content_123",
"reader": "markitdown",
"force_rechunk": false
}
Force re-chunk with different reader:
POST /chunks/create
{
"content_id": "content_123",
"reader": "langchain_pdfplumber",
"force_rechunk": true
}
# Delete Chunk
Source: https://docs.mielto.com/api-reference/chunks/delete-chunk
api-reference/openapi.json delete /api/v1/chunks/{chunk_id}
Delete a specific chunk.
Args:
chunk_id: ID of the chunk to delete
Returns:
Success message
Examples:
Delete a chunk:
DELETE /chunks/chunk_123
# Delete Chunks Batch
Source: https://docs.mielto.com/api-reference/chunks/delete-chunks-batch
api-reference/openapi.json post /api/v1/chunks/delete
Delete multiple chunks in a single request.
Args:
request: DeleteChunksRequest with chunk IDs to delete
Returns:
DeleteChunksResponse with deletion results
Examples:
Delete multiple chunks:
POST /chunks/delete
{
"chunk_ids": ["chunk_123", "chunk_456", "chunk_789"]
}
# Delete Chunks By Content
Source: https://docs.mielto.com/api-reference/chunks/delete-chunks-by-content
api-reference/openapi.json delete /api/v1/chunks/content/{content_id}
Delete all chunks associated with a specific content item.
Args:
content_id: ID of the content whose chunks should be deleted
Returns:
DeleteChunksResponse with deletion results
Examples:
Delete all chunks for a content:
DELETE /chunks/content/content_123
# Get Chunk
Source: https://docs.mielto.com/api-reference/chunks/get-chunk
api-reference/openapi.json get /api/v1/chunks/{chunk_id}
Get a specific chunk by ID.
Args:
chunk_id: ID of the chunk to retrieve
include_embedding: If True, includes the embedding vector in response
Returns:
ChunkResponse with chunk details
Examples:
Get chunk without embedding:
GET /chunks/chunk_123
Get chunk with embedding:
GET /chunks/chunk_123?include_embedding=true
# List Chunks
Source: https://docs.mielto.com/api-reference/chunks/list-chunks
api-reference/openapi.json get /api/v1/chunks
List chunks with cursor-based pagination.
Cursor-based pagination is more efficient than offset-based for large datasets:
- Consistent results even when data changes
- Better performance (no offset scanning)
- No "missed items" when new chunks are added
Args:
collection_id: Optional filter by collection
content_id: Optional filter by parent content
cursor: Cursor from previous response for next page (None for first page)
limit: Number of items to return (default: 50, max: 500)
include_embedding: Include embedding vectors in response
Returns:
ChunksListResponse with chunks, next_cursor, and has_more flag
Examples:
First page of all chunks:
GET /chunks?limit=50
Next page (using cursor from previous response):
GET /chunks?cursor=chunk_xyz123&limit=50
List chunks for a specific collection:
GET /chunks?collection_id=col_123&limit=50
Continue pagination for collection:
GET /chunks?collection_id=col_123&cursor=chunk_abc456&limit=50
List chunks for specific content:
GET /chunks?content_id=content_456&limit=20
List with embeddings:
GET /chunks?collection_id=col_123&include_embedding=true&limit=10
# Update Chunk
Source: https://docs.mielto.com/api-reference/chunks/update-chunk
api-reference/openapi.json patch /api/v1/chunks/{chunk_id}
Update a chunk's content or metadata.
Args:
chunk_id: ID of the chunk to update
request: UpdateChunkRequest with fields to update
Returns:
ChunkResponse with updated chunk
Examples:
Update chunk content:
PATCH /chunks/chunk_123
{
"content": "Updated chunk text"
}
Update chunk metadata:
PATCH /chunks/chunk_123
{
"metadata": {
"category": "important",
"tags": ["updated"]
}
}
Update both content and metadata:
PATCH /chunks/chunk_123
{
"content": "Updated text",
"metadata": {"status": "reviewed"}
}
Note:
Updating chunk content will regenerate the embedding vector.
# Archive Collection
Source: https://docs.mielto.com/api-reference/collections/archive-collection
api-reference/openapi.json post /api/v1/collections/{collection_id}/archive
Archive a collection.
# Create Collection
Source: https://docs.mielto.com/api-reference/collections/create-collection
api-reference/openapi.json post /api/v1/collections
Create new collection.
# Delete Collection
Source: https://docs.mielto.com/api-reference/collections/delete-collection
api-reference/openapi.json delete /api/v1/collections/{collection_id}
Delete collection.
# Read Collection
Source: https://docs.mielto.com/api-reference/collections/read-collection
api-reference/openapi.json get /api/v1/collections/{collection_id}
Get collection by ID.
# Read Collections
Source: https://docs.mielto.com/api-reference/collections/read-collections
api-reference/openapi.json get /api/v1/collections
Retrieve collections with pagination.
Returns a paginated list of collections with filtering options.
Args:
skip: Number of records to skip (for pagination)
limit: Maximum number of records to return
status: Filter by collection status (e.g., 'active', 'archived')
visibility: Filter by visibility ('public' or 'private')
search: Search term for name or description
tags: Comma-separated list of tags to filter by
Returns:
PaginatedResponse with collections and total count
Examples:
Get first page:
GET /collections?skip=0&limit=20
Get second page:
GET /collections?skip=20&limit=20
Filter by status:
GET /collections?status=active&limit=50
Search collections:
GET /collections?search=documents&limit=20
Filter by tags:
GET /collections?tags=important,work&limit=50
# Search Collection
Source: https://docs.mielto.com/api-reference/collections/search-collection
api-reference/openapi.json post /api/v1/collections/search
Search within a collection using knowledge search.
Supports different search types:
- fulltext: Traditional text-based search
- semantic: Vector similarity search
- hybrid: Combination of fulltext and semantic search
# Update Collection
Source: https://docs.mielto.com/api-reference/collections/update-collection
api-reference/openapi.json put /api/v1/collections/{collection_id}
Update collection.
# Update Collection Stats
Source: https://docs.mielto.com/api-reference/collections/update-collection-stats
api-reference/openapi.json put /api/v1/collections/{collection_id}/stats
Update collection statistics.
# Compress Context
Source: https://docs.mielto.com/api-reference/compression/compress-context
api-reference/openapi.json post /api/v1/compress
# Create Connection
Source: https://docs.mielto.com/api-reference/connections/create-connection
api-reference/openapi.json post /api/v1/connections
Create a new connection with validation.
This endpoint validates the provided credentials and configuration against
the integration's requirements before creating the connection.
**Validation includes:**
- Required fields are present
- Field types match expected types (email, url, etc.)
- Values match validation patterns (regex)
- Length constraints are met
- OAuth credentials are valid (if applicable)
**Example:**
```json
{
"label": "My Gmail Connection",
"integration": "gmail",
"integration_type": "connectors",
"auth_method_id": "oauth2",
"credentials": {
"access_token": "ya29.a0...",
"refresh_token": "1//0g...",
"token_type": "Bearer",
"expires_at": "2025-10-19T12:00:00Z"
},
"config": {}
}
```
**Error Response (validation failure):**
```json
{
"detail": {
"message": "Connection validation failed",
"errors": [
"Field 'API Key' is required",
"Field 'Email' must be a valid email address"
]
}
}
```
# Delete Connection
Source: https://docs.mielto.com/api-reference/connections/delete-connection
api-reference/openapi.json delete /api/v1/connections/{connection_id}
Delete a connection.
# Get Connection
Source: https://docs.mielto.com/api-reference/connections/get-connection
api-reference/openapi.json get /api/v1/connections/{connection_id}
Get a connection by ID.
# Get Connection Stats
Source: https://docs.mielto.com/api-reference/connections/get-connection-stats
api-reference/openapi.json get /api/v1/connections/stats
Get connection statistics.
# Get Connections By Integration
Source: https://docs.mielto.com/api-reference/connections/get-connections-by-integration
api-reference/openapi.json get /api/v1/connections/integrations/{integration_type}
Get connections by integration type.
# Get Integration Requirements
Source: https://docs.mielto.com/api-reference/connections/get-integration-requirements
api-reference/openapi.json get /api/v1/connections/integrations/{integration_id}/requirements
Get required fields and validation rules for an integration.
This endpoint returns the fields required to create a connection for
a specific integration, including field types, validation rules, and
authentication method information.
**Use this endpoint to:**
- Understand what credentials are needed before creating a connection
- Build dynamic forms for connection creation
- Display helpful information to users about authentication requirements
**Example:**
```bash
GET /connections/integrations/gmail/requirements
GET /connections/integrations/slack/requirements?auth_method_id=oauth2
```
**Response:**
```json
{
"integration_id": "gmail",
"auth_method": {
"id": "oauth2",
"name": "OAuth 2.0",
"type": "oauth2",
"description": "Secure authentication with Google account"
},
"required_fields": [
{
"key": "access_token",
"label": "Access Token",
"type": "password",
"required": true,
"secure": true,
"validation": {
"minLength": 20
}
}
]
}
```
# Get User Connections
Source: https://docs.mielto.com/api-reference/connections/get-user-connections
api-reference/openapi.json get /api/v1/connections/users/{user_id}
Get connections owned by a specific user.
# List Connections
Source: https://docs.mielto.com/api-reference/connections/list-connections
api-reference/openapi.json get /api/v1/connections
List connections with optional filters.
# Update Connection
Source: https://docs.mielto.com/api-reference/connections/update-connection
api-reference/openapi.json put /api/v1/connections/{connection_id}
Update a connection.
# Update Connection Status
Source: https://docs.mielto.com/api-reference/connections/update-connection-status
api-reference/openapi.json patch /api/v1/connections/{connection_id}/status
Update connection status.
# Validate Connection Requirements
Source: https://docs.mielto.com/api-reference/connections/validate-connection-requirements
api-reference/openapi.json post /api/v1/connections/validate
Validate connection credentials without creating a connection.
This endpoint allows you to validate credentials and configuration
before attempting to create a connection. Useful for providing
real-time validation feedback in forms.
**Example:**
```bash
POST /connections/validate?integration_id=gmail
```
**Request Body:**
```json
{
"credentials": {
"api_key": "abc123",
"email": "user@example.com"
},
"config": {}
}
```
**Success Response:**
```json
{
"valid": true,
"errors": []
}
```
**Validation Error Response:**
```json
{
"valid": false,
"errors": [
"Field 'API Key' must be at least 20 characters",
"Field 'Email' must be a valid email address"
]
}
```
# Upload
Source: https://docs.mielto.com/api-reference/content-upload/upload
api-reference/openapi.json post /api/v1/upload
Upload content (files, URLs, or text) to a collection.
Args:
collection_id (str): Required. ID of the collection to upload to.
file (UploadFile, optional): Single file to upload.
files (List[UploadFile], optional): Multiple files to upload.
content (str, optional): Direct text content to upload.
urls (List[str], optional): List of URLs to download and upload.
content_type (str, optional): Type of content - 'file', 'url', or 'text'. Default: 'file'.
metadata (Dict[str, Any], optional): Additional metadata to attach to uploaded content.
label (str, optional): Custom label for the content.
description (str, optional): Description of the content.
crawl (bool, optional): Whether to crawl linked content from URLs. Default: False.
ingest (bool, optional): Whether to ingest content into vector database. Default: True.
If False, only file metadata is stored. Use POST /v1/chunks/create to ingest later.
reader (str, optional): Reader to use for processing files. Default: 'native'.
Reader Parameter:
Controls how uploaded files are processed. Supported formats:
Provider Format:
- 'native': Use native implementation (default, fastest)
- 'langchain': Use LangChain readers for all files
- 'markitdown': Use MarkItDown for universal conversion to markdown
Provider + Type Format:
- 'langchain_pdfplumber': LangChain with PDFPlumber (better OCR, tables)
- 'langchain_pypdf': LangChain with PyPDF (faster for text-based PDFs)
Specific Reader:
- 'pdf', 'csv', 'docx', 'json', 'markdown', 'text'
Returns:
UploadResponse: Contains upload status, successful uploads, and any errors.
- collection_id: ID of the collection
- content_type: Type of content uploaded
- uploads: List of successfully uploaded content
- errors: List of failed uploads with error details
- total_uploads: Total number attempted
- successful_uploads: Number successful
- failed_uploads: Number failed
Examples:
Upload a single file with native reader:
POST /upload
Form data:
- file: document.pdf
- collection_id: "my_docs"
- reader: "native"
Upload PowerPoint with MarkItDown (converts to markdown):
POST /upload
Form data:
- file: presentation.pptx
- collection_id: "presentations"
- reader: "markitdown"
Upload scanned PDF with better OCR:
POST /upload
Form data:
- file: scanned.pdf
- collection_id: "scans"
- reader: "langchain_pdfplumber"
Upload from URLs:
POST /upload
Form data:
- urls: ["https://example.com/doc1.pdf", "https://example.com/doc2.pdf"]
- collection_id: "web_docs"
- content_type: "url"
Upload direct text content:
POST /upload
Form data:
- content: "This is my text content"
- collection_id: "notes"
- content_type: "text"
- label: "Quick Note"
Upload file without ingesting (metadata only):
POST /upload
Form data:
- file: document.pdf
- collection_id: "pending_docs"
- ingest: false
Note: Use POST /v1/chunks/create later to ingest content
Raises:
HTTPException: 403 if collection not accessible
HTTPException: 400 if invalid parameters
HTTPException: 500 if upload processing fails
# Bulk Delete Contents
Source: https://docs.mielto.com/api-reference/contents/bulk-delete-contents
api-reference/openapi.json post /api/v1/contents/bulk/delete
Delete multiple contents at once.
Bulk deletion operation for removing multiple content items.
Returns details about successful and failed deletions.
Args:
content_ids: List of content IDs to delete
Returns:
Summary of deletion results
Example:
POST /contents/bulk/delete
Body:
{
"content_ids": ["con_123", "con_456", "con_789"]
}
Response:
{
"deleted": 2,
"failed": 1,
"deleted_ids": ["con_123", "con_456"],
"failed_ids": ["con_789"],
"errors": {
"con_789": "Content not found"
}
}
# Bulk Update Status
Source: https://docs.mielto.com/api-reference/contents/bulk-update-status
api-reference/openapi.json patch /api/v1/contents/bulk/update-status
Update status for multiple contents at once.
Bulk status update operation useful for batch processing workflows.
Args:
content_ids: List of content IDs to update
new_status: New status value (new, processing, completed, failed)
status_message: Optional status message
Returns:
Summary of update results
Example:
PATCH /contents/bulk/update-status
Body:
{
"content_ids": ["con_123", "con_456"],
"new_status": "completed",
"status_message": "Processing finished successfully"
}
# Delete Content
Source: https://docs.mielto.com/api-reference/contents/delete-content
api-reference/openapi.json delete /api/v1/contents/{content_id}
Delete content by ID.
Permanently removes a content item from the knowledge base.
This action cannot be undone. Associated vectors and chunks
may also be removed depending on the storage configuration.
Args:
content_id: The unique identifier for the content
Returns:
No content (204) on success
Example:
DELETE /contents/con_abc123xyz
Raises:
404: If content not found
403: If not authorized to delete
# Get Content
Source: https://docs.mielto.com/api-reference/contents/get-content
api-reference/openapi.json get /api/v1/contents/{content_id}
Get a single content by ID.
Returns detailed information about a specific content item including
metadata, file information, and processing status.
Args:
content_id: The unique identifier for the content
Returns:
Content details
Example:
GET /contents/con_abc123xyz
Raises:
404: If content not found or not accessible
# Get Content Chunks
Source: https://docs.mielto.com/api-reference/contents/get-content-chunks
api-reference/openapi.json get /api/v1/contents/{content_id}/chunks
Get all chunks/vectors for a specific content in a collection.
Returns all the chunks (text segments with embeddings) that were created
when processing this content in the specified collection. This is useful for:
- Debugging vector search results
- Analyzing how content was chunked
- Inspecting chunk metadata
- Retrieving embeddings for analysis
**Important:** The same content can have different chunks in different collections
(due to different chunking strategies, embedding models, etc.), so `collection_id`
is required to ensure you get the correct set of chunks.
Args:
content_id: The unique identifier for the content
collection_id: The collection ID (ensures correct chunks are retrieved)
include_embeddings: Whether to include embedding vectors (default: false to save bandwidth)
Returns:
ContentChunksResponse with list of chunks and metadata
Example:
GET /contents/con_abc123/chunks?collection_id=col_xyz789&include_embeddings=false
Response:
{
"content_id": "con_abc123",
"collection_id": "col_xyz789",
"chunks": [
{
"id": "vec_chunk1",
"content_id": "con_abc123",
"content": "First chunk text...",
"embedding": null, // or array if include_embeddings=true
"meta_data": {"page": 1, "section": "intro"},
"collection_id": "col_xyz789",
"workspace_id": "wsp_123"
},
...
],
"total_chunks": 42,
"includes_embeddings": false
}
Raises:
404: If content not found or collection not accessible
500: If error retrieving chunks
# List Contents
Source: https://docs.mielto.com/api-reference/contents/list-contents
api-reference/openapi.json get /api/v1/contents
List contents with pagination and filtering.
Returns a paginated list of contents from the workspace's knowledge base.
Args:
collection_id: Filter by specific collection
status: Filter by processing status
skip: Number of records to skip (for pagination)
limit: Maximum number of records to return
sort_by: Field to sort by (created_at, updated_at, name, size)
sort_order: Order direction (asc or desc)
Returns:
PaginatedResponse with contents and total count
Examples:
Get first page:
GET /contents?skip=0&limit=20
Get second page:
GET /contents?skip=20&limit=20
Filter by collection:
GET /contents?collection_id=col_123&limit=50
Filter by status:
GET /contents?status=completed&limit=50
Sort by size:
GET /contents?sort_by=size&sort_order=desc&limit=20
Combined filters:
GET /contents?collection_id=col_123&status=completed&skip=0&limit=20
# Update Content
Source: https://docs.mielto.com/api-reference/contents/update-content
api-reference/openapi.json put /api/v1/contents/{content_id}
Update content metadata and status.
Allows updating content fields such as name, description, metadata,
and processing status. The content data itself cannot be modified.
Args:
content_id: The unique identifier for the content
content_update: Fields to update
Returns:
Updated content
Example:
PATCH /contents/con_abc123xyz
Body:
{
"name": "Updated Document Name",
"description": "New description",
"metadata": {"category": "important"},
"status": "completed"
}
Raises:
404: If content not found
400: If validation fails
# Update Content
Source: https://docs.mielto.com/api-reference/contents/update-content-1
api-reference/openapi.json patch /api/v1/contents/{content_id}
Update content metadata and status.
Allows updating content fields such as name, description, metadata,
and processing status. The content data itself cannot be modified.
Args:
content_id: The unique identifier for the content
content_update: Fields to update
Returns:
Updated content
Example:
PATCH /contents/con_abc123xyz
Body:
{
"name": "Updated Document Name",
"description": "New description",
"metadata": {"category": "important"},
"status": "completed"
}
Raises:
404: If content not found
400: If validation fails
# Archive Conversation
Source: https://docs.mielto.com/api-reference/conversations/archive-conversation
api-reference/openapi.json patch /api/v1/conversations/{conversation_id}/archive
Archive a conversation.
# Create Conversation
Source: https://docs.mielto.com/api-reference/conversations/create-conversation
api-reference/openapi.json post /api/v1/conversations
Create a new conversation.
The workspace_id will be automatically set from the current session context.
# Delete Conversation
Source: https://docs.mielto.com/api-reference/conversations/delete-conversation
api-reference/openapi.json delete /api/v1/conversations/{conversation_id}
Delete a conversation.
# End Conversation
Source: https://docs.mielto.com/api-reference/conversations/end-conversation
api-reference/openapi.json patch /api/v1/conversations/{conversation_id}/end
End a conversation.
# Get Conversation
Source: https://docs.mielto.com/api-reference/conversations/get-conversation
api-reference/openapi.json get /api/v1/conversations/{conversation_id}
Get a specific conversation by ID.
# List Conversations
Source: https://docs.mielto.com/api-reference/conversations/list-conversations
api-reference/openapi.json get /api/v1/conversations
List conversations in the current workspace with cursor-based pagination.
Cursor-based pagination is more efficient for large datasets and handles
data changes better than offset-based pagination.
Args:
cursor: Cursor from previous response for next page (None for first page)
limit: Number of items per page (default: 50, max: 100)
sort_by: Field to sort by (default: 'updated_at')
sort_order: Sort order - 'asc' or 'desc' (default: 'desc')
status: Optional status filter
search: Optional search term for title
user_id: Optional user_id filter
collection_id: Optional collection_id filter
Returns:
ConversationListResponse with conversations, next_cursor, and has_more flag
Examples:
First page:
GET /conversations?limit=50
Next page (using cursor from previous response):
GET /conversations?cursor=conv_xyz123&limit=50
Sort by created_at ascending:
GET /conversations?sort_by=created_at&sort_order=asc
Filter by status with sorting:
GET /conversations?status=active&sort_by=updated_at&sort_order=desc
# Update Conversation
Source: https://docs.mielto.com/api-reference/conversations/update-conversation
api-reference/openapi.json put /api/v1/conversations/{conversation_id}
Update a conversation.
# Create Credential
Source: https://docs.mielto.com/api-reference/credentials/create-credential
api-reference/openapi.json post /api/v1/credentials
Create a new credential.
# Delete Credential
Source: https://docs.mielto.com/api-reference/credentials/delete-credential
api-reference/openapi.json delete /api/v1/credentials/{credential_id}
Delete a credential.
# Get Credential
Source: https://docs.mielto.com/api-reference/credentials/get-credential
api-reference/openapi.json get /api/v1/credentials/{credential_id}
Get a credential by ID.
# List Credentials
Source: https://docs.mielto.com/api-reference/credentials/list-credentials
api-reference/openapi.json get /api/v1/credentials
List credentials with optional filters.
# Update Credential
Source: https://docs.mielto.com/api-reference/credentials/update-credential
api-reference/openapi.json put /api/v1/credentials/{credential_id}
Update a credential.
# Get All Resources
Source: https://docs.mielto.com/api-reference/integrations/get-all-resources
api-reference/openapi.json get /api/v1/integrations/all
Get all available resources (integrations, models, vector stores).
This endpoint returns everything in one response. Optionally filter
by resource type.
**Examples:**
```
GET /integrations/all
GET /integrations/all?resource_type=model
GET /integrations/all?resource_type=vector_store
```
**Response (all types):**
```json
{
"integrations": [...],
"models": [...],
"vector_stores": [...],
"summary": {
"total_integrations": 11,
"total_models": 33,
"total_vector_stores": 17
}
}
```
# Get Auth Methods
Source: https://docs.mielto.com/api-reference/integrations/get-auth-methods
api-reference/openapi.json get /api/v1/integrations/{integration_id}/auth-methods
Get available authentication methods for an integration.
Returns simplified authentication configuration without sensitive details.
Useful for building authentication UI flows.
**Example:**
```
GET /integrations/gmail/auth-methods
GET /integrations/slack/auth-methods
```
# Get Integration
Source: https://docs.mielto.com/api-reference/integrations/get-integration
api-reference/openapi.json get /api/v1/integrations/{integration_id}
Get detailed information about a specific integration.
Returns the complete integration definition including:
- Authentication methods and OAuth configuration
- Available actions and triggers
- Webhook configuration
- Rate limits and retry policies
**Example:**
```
GET /integrations/gmail
GET /integrations/github
```
# Get Integration Actions
Source: https://docs.mielto.com/api-reference/integrations/get-integration-actions
api-reference/openapi.json get /api/v1/integrations/{integration_id}/actions
Get available actions for an integration.
Actions represent operations that can be performed with the integration,
such as sending an email, creating an issue, or uploading a file.
**Example:**
```
GET /integrations/gmail/actions
GET /integrations/jira/actions
```
# Get Integration Triggers
Source: https://docs.mielto.com/api-reference/integrations/get-integration-triggers
api-reference/openapi.json get /api/v1/integrations/{integration_id}/triggers
Get available triggers for an integration.
Triggers are events that can initiate workflows, such as receiving
a new email, creating an issue, or completing a task.
**Example:**
```
GET /integrations/gmail/triggers
GET /integrations/github/triggers
```
# Get Model
Source: https://docs.mielto.com/api-reference/integrations/get-model
api-reference/openapi.json get /api/v1/integrations/providers/{provider_id}/models/{model_id}
Get detailed information about a specific model.
Returns complete model specifications including capabilities,
pricing, context window, and parameter options.
**Example:**
```
GET /integrations/providers/openai/models/gpt-4o
GET /integrations/providers/anthropic/models/claude-3-5-sonnet-20241022
```
# Get Model Provider
Source: https://docs.mielto.com/api-reference/integrations/get-model-provider
api-reference/openapi.json get /api/v1/integrations/providers/{provider_id}
Get detailed information about a specific model provider.
Returns the complete provider definition including available models,
authentication methods, and compatibility information.
**Example:**
```
GET /integrations/providers/openai
GET /integrations/providers/anthropic
```
# Get Provider Models
Source: https://docs.mielto.com/api-reference/integrations/get-provider-models
api-reference/openapi.json get /api/v1/integrations/providers/{provider_id}/models
Get available models for a specific provider.
Returns a list of models with their specifications, pricing,
and capability information.
**Example:**
```
GET /integrations/providers/openai/models
GET /integrations/providers/google/models?model_type=chat
GET /integrations/providers/openai/models?model_type=embedding
```
# List All Model Providers
Source: https://docs.mielto.com/api-reference/integrations/list-all-model-providers
api-reference/openapi.json get /api/v1/integrations/models
List all available model providers from the codebase.
This endpoint scans the mielto/models directory and returns all
available LLM providers that can be used in the system.
**Example:**
```
GET /integrations/models
```
**Response:**
```json
{
"models": [
{
"id": "openai",
"name": "OpenAI",
"type": "llm",
"path": "mielto.models.openai"
},
{
"id": "anthropic",
"name": "Anthropic",
"type": "llm",
"path": "mielto.models.anthropic"
}
],
"total": 33
}
```
# List All Vector Stores
Source: https://docs.mielto.com/api-reference/integrations/list-all-vector-stores
api-reference/openapi.json get /api/v1/integrations/vector-stores
List all available vector stores from the codebase.
This endpoint scans the mielto/vectordb directory and returns all
available vector store implementations that can be used in the system.
**Example:**
```
GET /integrations/vector-stores
```
**Response:**
```json
{
"vector_stores": [
{
"id": "pgvector",
"name": "PostgreSQL (pgvector)",
"type": "vector_store",
"path": "mielto.vectordb.pgvector"
},
{
"id": "pineconedb",
"name": "Pinecone",
"type": "vector_store",
"path": "mielto.vectordb.pineconedb"
}
],
"total": 17
}
```
# List Integrations
Source: https://docs.mielto.com/api-reference/integrations/list-integrations
api-reference/openapi.json get /api/v1/integrations
List available integrations with optional filtering.
Returns a list of integration definitions including their capabilities,
authentication methods, and configuration options.
Can optionally filter by type with the `type` parameter.
**Examples:**
```
GET /integrations?category=communication&status=active
GET /integrations?tags=messaging,email
GET /integrations?type=integration
GET /integrations?type=model
GET /integrations?type=vector_store
GET /integrations?type=all
```
# List Model Providers
Source: https://docs.mielto.com/api-reference/integrations/list-model-providers
api-reference/openapi.json get /api/v1/integrations/providers
List available model providers.
Returns a list of LLM and embedding model providers with their
capabilities, models, and authentication requirements.
**Example:**
```
GET /integrations/providers
GET /integrations/providers?has_embedding=true
```
# API Reference
Source: https://docs.mielto.com/api-reference/introduction
Complete API documentation for Mielto - Context Layer for AI
## Welcome to Mielto API
Mielto provides a comprehensive API for building AI-powered applications with advanced context management, knowledge collections, and conversation handling. Our REST API enables you to integrate intelligent context layers into your applications.
## Base URL
All API requests should be made to:
```
https://api.mielto.com/api/v1
```
## Key Features