Krobar.ai Data Sources API
Endpoints for managing data sources for observed data
Endpoints for managing data sources for observed data
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/krobar-ai:krobar-ai-data-sources-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: Krobar AI Data Sources API
description: '# API Krobar AI
Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai
## Authentication
**IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.
```bash
curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint
```'
contact:
name: API Support
email: tristan@kromatic.com
version: 1.0.0
tags:
- name: Data Sources
description: Endpoints for managing data sources for observed data
paths:
/data-sources/integrations:
get:
tags:
- Data Sources
summary: List Data Source Integrations
description: List all registered data source integrations and their schemas.
operationId: list_data_source_integrations_data_sources_integrations_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Data Source Integrations Data Sources Integrations Get
/data-sources:
post:
tags:
- Data Sources
summary: Create Data Source
description: 'Create a new data source.
This endpoint allows you to create a new data source for observed data in the system.
Example request:
```json
{
"name": "Stock Market Data",
"source_type": "external_api",
"configuration": {
"api_url": "https://api.example.com/market-data",
"api_key": "your-api-key"
},
"datasource_metadata": {
"provider": "ExampleDataProvider",
"update_frequency": "daily"
}
}
```'
operationId: create_data_source_data_sources_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourceCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Data Sources
summary: List Data Sources
description: 'List all data sources.
This endpoint retrieves a list of all data sources with pagination.'
operationId: list_data_sources_data_sources_get
parameters:
- name: skip
in: query
required: false
schema:
type: integer
default: 0
title: Skip
- name: limit
in: query
required: false
schema:
type: integer
default: 100
title: Limit
- name: all
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
default: false
title: All
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourcesListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/data-sources/{data_source_id}:
get:
tags:
- Data Sources
summary: Get Data Source
description: 'Get a data source by ID.
This endpoint retrieves a specific data source by its ID.'
operationId: get_data_source_data_sources__data_source_id__get
parameters:
- name: data_source_id
in: path
required: true
schema:
type: string
format: uuid
title: Data Source Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourceWithConfigResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Data Sources
summary: Update Data Source
description: 'Update an existing data source.
This endpoint allows you to update the properties of an existing data source.
Example request:
```json
{
"name": "Updated Stock Market Data",
"configuration": {
"api_url": "https://api.example.com/v2/market-data",
"api_key": "your-new-api-key"
}
}
```'
operationId: update_data_source_data_sources__data_source_id__put
parameters:
- name: data_source_id
in: path
required: true
schema:
type: string
format: uuid
title: Data Source Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourceUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DataSourceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Data Sources
summary: Delete Data Source
description: 'Delete a data source.
This endpoint deletes a data source by its ID. Note that this will also delete all associated observed data.'
operationId: delete_data_source_data_sources__data_source_id__delete
parameters:
- name: data_source_id
in: path
required: true
schema:
type: string
format: uuid
title: Data Source Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/data-sources/{data_source_id}/ingest/{data_type}:
post:
tags:
- Data Sources
summary: Ingest Data Source
description: Fetch data from the external data source (e.g., Mailchimp) and return it.
operationId: ingest_data_source_data_sources__data_source_id__ingest__data_type__post
parameters:
- name: data_source_id
in: path
required: true
schema:
type: string
format: uuid
title: Data Source Id
- name: data_type
in: path
required: true
schema:
type: string
title: Data Type
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
DataSourceUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Name of the data source
source_type:
anyOf:
- type: string
- type: 'null'
title: Source Type
description: Type of the data source
configuration:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Configuration
description: Configuration for the data source
datasource_metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Datasource Metadata
description: Additional metadata for the data source
secrets:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Secrets
description: Confidential secrets for the data source (API keys, etc.)
type: object
title: DataSourceUpdate
description: Schema for updating an existing data source.
DataSourceCreate:
properties:
name:
type: string
title: Name
description: Name of the data source
source_type:
type: string
title: Source Type
description: Type of the data source
configuration:
additionalProperties: true
type: object
title: Configuration
description: Configuration for the data source
default: {}
datasource_metadata:
additionalProperties: true
type: object
title: Datasource Metadata
description: Additional metadata for the data source
default: {}
secrets:
additionalProperties: true
type: object
title: Secrets
description: Confidential secrets for the data source (API keys, etc.)
default: {}
type: object
required:
- name
- source_type
title: DataSourceCreate
description: Schema for creating a new data source.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
DataSourcesListResponse:
properties:
data_sources:
items:
$ref: '#/components/schemas/DataSourceWithConfigResponse'
type: array
title: Data Sources
total:
type: integer
title: Total
skip:
type: integer
title: Skip
limit:
type: integer
title: Limit
type: object
required:
- data_sources
- total
- skip
- limit
title: DataSourcesListResponse
description: Schema for paginated data sources list response.
DataSourceWithConfigResponse:
properties:
id:
type: string
format: uuid
title: Id
example: 123e4567-e89b-12d3-a456-426614174000
name:
type: string
title: Name
description: Name of the data source
source_type:
type: string
title: Source Type
description: Type of the data source
configuration:
additionalProperties: true
type: object
title: Configuration
description: Configuration for the data source (never includes secrets)
datasource_metadata:
additionalProperties: true
type: object
title: Datasource Metadata
description: Additional metadata for the data source
created_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Created By
example: 123e4567-e89b-12d3-a456-426614174000
updated_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Updated By
example: 123e4567-e89b-12d3-a456-426614174000
created_at:
type: string
format: date-time
title: Created At
example: '2023-06-01T15:30:45.123Z'
updated_at:
type: string
format: date-time
title: Updated At
example: '2023-06-02T09:15:22.456Z'
type: object
required:
- id
- name
- source_type
- configuration
- datasource_metadata
- created_at
- updated_at
title: DataSourceWithConfigResponse
description: Schema for data source response including configuration (but never secrets).
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
DataSourceResponse:
properties:
id:
type: string
format: uuid
title: Id
example: 123e4567-e89b-12d3-a456-426614174000
name:
type: string
title: Name
description: Name of the data source
source_type:
type: string
title: Source Type
description: Type of the data source
datasource_metadata:
additionalProperties: true
type: object
title: Datasource Metadata
description: Additional metadata for the data source
created_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Created By
example: 123e4567-e89b-12d3-a456-426614174000
updated_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Updated By
example: 123e4567-e89b-12d3-a456-426614174000
created_at:
type: string
format: date-time
title: Created At
example: '2023-06-01T15:30:45.123Z'
updated_at:
type: string
format: date-time
title: Updated At
example: '2023-06-02T09:15:22.456Z'
type: object
required:
- id
- name
- source_type
- datasource_metadata
- created_at
- updated_at
title: DataSourceResponse
description: Schema for data source response.
securitySchemes:
APIKeyCookie:
type: apiKey
in: cookie
name: access_token
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key