Data Source
View Connections
API Documentation
Health
Files
Web Scrape
Data Source
SharePoint
GitHub
Chunks / Embeddings
Retrieval
Data Source
View Connections
This endpoint retrieves active connections across all data sources for a user.
POST
/
user_data_sources
curl --request POST \
--url https://api.carbon.ai/user_data_sources \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"pagination": {
"limit": 10,
"offset": 0,
"starting_id": 0
},
"order_by": "updated_at",
"order_dir": "asc",
"filters": {}
}'
{
"results": [
{
"id": 123,
"data_source_external_id": "<string>",
"data_source_type": "GOOGLE_CLOUD_STORAGE",
"token": {},
"sync_status": "QUEUED_FOR_SYNCING",
"source_items_synced_at": "2023-11-07T05:31:56Z",
"organization_user_id": 123,
"organization_id": 123,
"organization_supplied_user_id": "<string>",
"revoked_access": true,
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_action": "ADD",
"enable_auto_sync": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"files_synced_at": "2023-11-07T05:31:56Z",
"data_source_metadata": {},
"tags": {}
}
],
"count": 123
}
Authorizations
token <token>
, corresponds to temporary access tokens.
Body
application/json
Available options:
created_at
, updated_at
Available options:
desc
, asc
Available options:
GOOGLE_CLOUD_STORAGE
, GOOGLE_DRIVE
, NOTION
, NOTION_DATABASE
, INTERCOM
, DROPBOX
, ONEDRIVE
, SHAREPOINT
, CONFLUENCE
, BOX
, ZENDESK
, ZOTERO
, S3
, AZURE_BLOB_STORAGE
, GMAIL
, OUTLOOK
, SERVICENOW
, TEXT
, CSV
, TSV
, PDF
, DOCX
, PPTX
, XLSX
, XLSM
, MD
, RTF
, JSON
, HTML
, RAW_TEXT
, WEB_SCRAPE
, RSS_FEED
, FRESHDESK
, GITBOOK
, SALESFORCE
, GITHUB
, SLACK
, GURU
, GONG
, DOCUMENT360
, JPG
, PNG
, JPEG
, MP3
, MP2
, AAC
, WAV
, FLAC
, PCM
, M4A
, OGG
, OPUS
, MPEG
, MPG
, MP4
, WMV
, AVI
, MOV
, MKV
, FLV
, WEBM
, EML
, MSG
Tags to filter by. Supports logical AND and OR operations. Input should be like below:
{
"OR": [
{
"key": "subject",
"value": "holy-bible",
"negate": false
},
{
"key": "person-of-interest",
"value": "jesus christ",
"negate": false
},
{
"key": "genre",
"value": "fiction",
"negate": true
}
{
"AND": [
{
"key": "subject",
"value": "tao-te-ching",
"negate": true
},
{
"key": "author",
"value": "lao-tzu",
"negate": false
}
]
}
]
}
For a single filter, the filter block can be placed within either an "AND" or "OR" block.
Response
200
application/json
Successful Response
Available options:
GOOGLE_CLOUD_STORAGE
, GOOGLE_DRIVE
, NOTION
, NOTION_DATABASE
, INTERCOM
, DROPBOX
, ONEDRIVE
, SHAREPOINT
, CONFLUENCE
, BOX
, ZENDESK
, ZOTERO
, S3
, AZURE_BLOB_STORAGE
, GMAIL
, OUTLOOK
, SERVICENOW
, TEXT
, CSV
, TSV
, PDF
, DOCX
, PPTX
, XLSX
, XLSM
, MD
, RTF
, JSON
, HTML
, RAW_TEXT
, WEB_SCRAPE
, RSS_FEED
, FRESHDESK
, GITBOOK
, SALESFORCE
, GITHUB
, SLACK
, GURU
, GONG
, DOCUMENT360
, JPG
, PNG
, JPEG
, MP3
, MP2
, AAC
, WAV
, FLAC
, PCM
, M4A
, OGG
, OPUS
, MPEG
, MPG
, MP4
, WMV
, AVI
, MOV
, MKV
, FLV
, WEBM
, EML
, MSG
Available options:
QUEUED_FOR_SYNCING
, SYNCING
, READY
, SYNC_ERROR
Available options:
ADD
, UPDATE
, CANCEL
, REVOKE
curl --request POST \
--url https://api.carbon.ai/user_data_sources \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"pagination": {
"limit": 10,
"offset": 0,
"starting_id": 0
},
"order_by": "updated_at",
"order_dir": "asc",
"filters": {}
}'
{
"results": [
{
"id": 123,
"data_source_external_id": "<string>",
"data_source_type": "GOOGLE_CLOUD_STORAGE",
"token": {},
"sync_status": "QUEUED_FOR_SYNCING",
"source_items_synced_at": "2023-11-07T05:31:56Z",
"organization_user_id": 123,
"organization_id": 123,
"organization_supplied_user_id": "<string>",
"revoked_access": true,
"last_synced_at": "2023-11-07T05:31:56Z",
"last_sync_action": "ADD",
"enable_auto_sync": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"files_synced_at": "2023-11-07T05:31:56Z",
"data_source_metadata": {},
"tags": {}
}
],
"count": 123
}