List source catalogues
curl --request GET \
--url https://app.chatobserver.com/api/v2/metrics/catalogues \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/metrics/catalogues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/metrics/catalogues"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"snapshots": [
{
"sourceAccountId": "<string>",
"queryTypes": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"providerResource": "<string>",
"grain": "<string>",
"default": false
}
],
"queryOptions": [
{
"id": "<string>",
"label": "<string>",
"type": "boolean",
"description": "<string>",
"values": [
{
"value": "<string>",
"label": "<string>"
}
],
"required": false,
"defaultValue": "<string>"
}
],
"limits": {
"maximumDimensions": 123,
"maximumMetrics": 123,
"maximumRows": 123
},
"capabilities": {
"queryOrdering": "provider",
"supportsMetricFilters": false,
"supportsMultipleDateRanges": false,
"supportsComparisons": false,
"supportsPivots": false,
"supportsMultipleAccounts": false,
"supportsNestedFilters": false
},
"reportingLagDays": 123,
"completenessNote": "<string>",
"snapshot": {
"id": "<string>",
"expiresAt": "<string>",
"workspaceId": "<string>",
"fingerprint": "<string>",
"connectorKey": "<string>",
"discoveredAt": "<string>",
"fields": [
{
"type": "string",
"id": "<string>",
"description": "<string>",
"label": "<string>",
"role": "metric",
"providerFieldId": "<string>",
"aggregation": "<string>",
"compatibleFieldIds": [
"<string>"
],
"supportedFilterOperators": [
"equals"
],
"semanticTags": [
"<string>"
],
"queryTypeIds": [
"<string>"
],
"hidden": false,
"deprecated": false
}
],
"queryType": "<string>",
"providerSchemaVersion": "<string>"
},
"status": "<string>"
}
],
"changes": [
{
"sourceAccountId": "<string>",
"createdAt": "<string>",
"id": "<string>",
"addedFieldIds": [
"<string>"
],
"removedFieldIds": [
"<string>"
],
"changedFieldIds": [
"<string>"
],
"affectedQueryCount": 123
}
]
}
}{
"error": {
"code": "internal",
"fieldPath": [
"<string>"
],
"parameters": {},
"repairActions": [
"<string>"
],
"requestId": "<string>",
"retryable": false,
"retryAfterSeconds": 1
}
}Data connections
List source catalogues
Discover authorised connections, source accounts and connector catalogues.
GET
/
api
/
v2
/
metrics
/
catalogues
List source catalogues
curl --request GET \
--url https://app.chatobserver.com/api/v2/metrics/catalogues \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/metrics/catalogues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/metrics/catalogues"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"snapshots": [
{
"sourceAccountId": "<string>",
"queryTypes": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"providerResource": "<string>",
"grain": "<string>",
"default": false
}
],
"queryOptions": [
{
"id": "<string>",
"label": "<string>",
"type": "boolean",
"description": "<string>",
"values": [
{
"value": "<string>",
"label": "<string>"
}
],
"required": false,
"defaultValue": "<string>"
}
],
"limits": {
"maximumDimensions": 123,
"maximumMetrics": 123,
"maximumRows": 123
},
"capabilities": {
"queryOrdering": "provider",
"supportsMetricFilters": false,
"supportsMultipleDateRanges": false,
"supportsComparisons": false,
"supportsPivots": false,
"supportsMultipleAccounts": false,
"supportsNestedFilters": false
},
"reportingLagDays": 123,
"completenessNote": "<string>",
"snapshot": {
"id": "<string>",
"expiresAt": "<string>",
"workspaceId": "<string>",
"fingerprint": "<string>",
"connectorKey": "<string>",
"discoveredAt": "<string>",
"fields": [
{
"type": "string",
"id": "<string>",
"description": "<string>",
"label": "<string>",
"role": "metric",
"providerFieldId": "<string>",
"aggregation": "<string>",
"compatibleFieldIds": [
"<string>"
],
"supportedFilterOperators": [
"equals"
],
"semanticTags": [
"<string>"
],
"queryTypeIds": [
"<string>"
],
"hidden": false,
"deprecated": false
}
],
"queryType": "<string>",
"providerSchemaVersion": "<string>"
},
"status": "<string>"
}
],
"changes": [
{
"sourceAccountId": "<string>",
"createdAt": "<string>",
"id": "<string>",
"addedFieldIds": [
"<string>"
],
"removedFieldIds": [
"<string>"
],
"changedFieldIds": [
"<string>"
],
"affectedQueryCount": 123
}
]
}
}{
"error": {
"code": "internal",
"fieldPath": [
"<string>"
],
"parameters": {},
"repairActions": [
"<string>"
],
"requestId": "<string>",
"retryable": false,
"retryAfterSeconds": 1
}
}