Source
Add a source with the given site_id, template_id, name and config. It
returns the created object including fields like id, created_at,
updated_at.
Update an existing source.
JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'
A successful response.
An unexpected error response.
POST /gateway/v1/source HTTP/1.1
Host: p01-api.observo.ai
authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 785
{
"source": {
"id": 1,
"siteId": 1,
"templateId": 1,
"templateVersion": 1,
"templateName": "text",
"name": "text",
"description": "text",
"config": {},
"status": "NS_DEFAULT",
"created": "2025-11-28T07:07:28.151Z",
"updated": "2025-11-28T07:07:28.151Z",
"createdBy": "text",
"updatedBy": "text",
"type": "DEFAULT_TYPE",
"origin": "NODE_ORIGIN_DEFAULT",
"archivalInfo": {
"sinkId": 1,
"sinkName": "text",
"sinkType": "DEFAULT_TYPE",
"pipelineId": 1,
"pipelineName": "text",
"pipelineStatus": "DEFAULT"
},
"logFormat": "LOG_FORMAT_UNSPECIFIED",
"preprocessorConfig": {},
"port": 1,
"pushBased": true,
"pushSourceAddress": "text",
"k8sInternalSvcUrl": "text",
"siteFilenames": [
"text"
],
"sourceConfigs": [
{
"id": 1,
"sourceId": 1,
"templateId": 1,
"templateName": "text",
"category": "DEFAULT",
"config": {},
"position": 1,
"templateVersion": 1
}
],
"userVisible": true
}
}{
"status": {
"code": "OK",
"errorMessage": "text",
"userMessageCode": "DEFAULT"
},
"source": {
"id": 1,
"siteId": 1,
"templateId": 1,
"templateVersion": 1,
"templateName": "text",
"name": "text",
"description": "text",
"config": {},
"status": "NS_DEFAULT",
"created": "2025-11-28T07:07:28.151Z",
"updated": "2025-11-28T07:07:28.151Z",
"createdBy": "text",
"updatedBy": "text",
"type": "DEFAULT_TYPE",
"origin": "NODE_ORIGIN_DEFAULT",
"archivalInfo": {
"sinkId": 1,
"sinkName": "text",
"sinkType": "DEFAULT_TYPE",
"pipelineId": 1,
"pipelineName": "text",
"pipelineStatus": "DEFAULT"
},
"logFormat": "LOG_FORMAT_UNSPECIFIED",
"preprocessorConfig": {},
"port": 1,
"pushBased": true,
"pushSourceAddress": "text",
"k8sInternalSvcUrl": "text",
"siteFilenames": [
"text"
],
"sourceConfigs": [
{
"id": 1,
"sourceId": 1,
"templateId": 1,
"templateName": "text",
"category": "DEFAULT",
"config": {},
"position": 1,
"templateVersion": 1
}
],
"userVisible": true
}
}Updates a source with the given id with the site_id, template_id, name,
status and config provided. It returns the updated object including fields
like id, created_at, updated_at. If any change has happened to the object
in between, this call should fail. previous_update_time must be set to the
last available site's update time. This ensures that the object hasn't
updated in between.
Update an existing source.
JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'
A successful response.
An unexpected error response.
PATCH /gateway/v1/source HTTP/1.1
Host: p01-api.observo.ai
authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 826
{
"source": {
"id": 1,
"siteId": 1,
"templateId": 1,
"templateVersion": 1,
"templateName": "text",
"name": "text",
"description": "text",
"config": {},
"status": "NS_DEFAULT",
"created": "2025-11-28T07:07:28.151Z",
"updated": "2025-11-28T07:07:28.151Z",
"createdBy": "text",
"updatedBy": "text",
"type": "DEFAULT_TYPE",
"origin": "NODE_ORIGIN_DEFAULT",
"archivalInfo": {
"sinkId": 1,
"sinkName": "text",
"sinkType": "DEFAULT_TYPE",
"pipelineId": 1,
"pipelineName": "text",
"pipelineStatus": "DEFAULT"
},
"logFormat": "LOG_FORMAT_UNSPECIFIED",
"preprocessorConfig": {},
"port": 1,
"pushBased": true,
"pushSourceAddress": "text",
"k8sInternalSvcUrl": "text",
"siteFilenames": [
"text"
],
"sourceConfigs": [
{
"id": 1,
"sourceId": 1,
"templateId": 1,
"templateName": "text",
"category": "DEFAULT",
"config": {},
"position": 1,
"templateVersion": 1
}
],
"userVisible": true
},
"lastUpdated": "2025-11-28T07:07:28.151Z"
}{
"status": {
"code": "OK",
"errorMessage": "text",
"userMessageCode": "DEFAULT"
},
"source": {
"id": 1,
"siteId": 1,
"templateId": 1,
"templateVersion": 1,
"templateName": "text",
"name": "text",
"description": "text",
"config": {},
"status": "NS_DEFAULT",
"created": "2025-11-28T07:07:28.151Z",
"updated": "2025-11-28T07:07:28.151Z",
"createdBy": "text",
"updatedBy": "text",
"type": "DEFAULT_TYPE",
"origin": "NODE_ORIGIN_DEFAULT",
"archivalInfo": {
"sinkId": 1,
"sinkName": "text",
"sinkType": "DEFAULT_TYPE",
"pipelineId": 1,
"pipelineName": "text",
"pipelineStatus": "DEFAULT"
},
"logFormat": "LOG_FORMAT_UNSPECIFIED",
"preprocessorConfig": {},
"port": 1,
"pushBased": true,
"pushSourceAddress": "text",
"k8sInternalSvcUrl": "text",
"siteFilenames": [
"text"
],
"sourceConfigs": [
{
"id": 1,
"sourceId": 1,
"templateId": 1,
"templateName": "text",
"category": "DEFAULT",
"config": {},
"position": 1,
"templateVersion": 1
}
],
"userVisible": true
}
}List all source templates. If site_ids are specified, returns only
templates for sources in the given sites. If include_config_format is set,
will return config formats for each of the templates.
List templates for available source types.
JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'
Whether to include config format in return value.
Filter on source template IDs.
Filter on source template display name.
Filter on source template versions.
A successful response.
An unexpected error response.
GET /gateway/v1/source-templates HTTP/1.1
Host: p01-api.observo.ai
authorization: YOUR_API_KEY
Accept: */*
{
"sourceTemplates": [
{
"id": 1,
"type": "DEFAULT_TYPE",
"displayName": "text",
"configFormat": {},
"version": 1
}
],
"status": {
"code": "OK",
"errorMessage": "text",
"userMessageCode": "DEFAULT"
},
"pagination": {
"offset": 1,
"limit": 1,
"totalCount": 1,
"ordering": {
"fieldName": "text",
"descending": true
}
}
}List all sources, filtered based on site_ids, source_ids and status.
This API is paginated and returns values [offset, offset + page_size).
site_ids is mandatory. Source's config is returned if include_config is
set. Filters out deleted sources, unless source_ids or statuses provided.
List all data sources.
JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'
Whether to include config in return value.
Filter on source display name.
A successful response.
An unexpected error response.
GET /gateway/v1/sources HTTP/1.1
Host: p01-api.observo.ai
authorization: YOUR_API_KEY
Accept: */*
{
"status": {
"code": "OK",
"errorMessage": "text",
"userMessageCode": "DEFAULT"
},
"sources": [
{
"id": 1,
"siteId": 1,
"templateId": 1,
"templateVersion": 1,
"templateName": "text",
"name": "text",
"description": "text",
"config": {},
"status": "NS_DEFAULT",
"created": "2025-11-28T07:07:28.151Z",
"updated": "2025-11-28T07:07:28.151Z",
"createdBy": "text",
"updatedBy": "text",
"type": "DEFAULT_TYPE",
"origin": "NODE_ORIGIN_DEFAULT",
"archivalInfo": {
"sinkId": 1,
"sinkName": "text",
"sinkType": "DEFAULT_TYPE",
"pipelineId": 1,
"pipelineName": "text",
"pipelineStatus": "DEFAULT"
},
"logFormat": "LOG_FORMAT_UNSPECIFIED",
"preprocessorConfig": {},
"port": 1,
"pushBased": true,
"pushSourceAddress": "text",
"k8sInternalSvcUrl": "text",
"siteFilenames": [
"text"
],
"sourceConfigs": [
{
"id": 1,
"sourceId": 1,
"templateId": 1,
"templateName": "text",
"category": "DEFAULT",
"config": {},
"position": 1,
"templateVersion": 1
}
],
"userVisible": true
}
],
"pagination": {
"offset": 1,
"limit": 1,
"totalCount": 1,
"ordering": {
"fieldName": "text",
"descending": true
}
}
}Deletes the source with the specified ID
JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'
ID of the source to delete
Source deleted successfully
Source not found
Internal server error
DELETE /gateway/v1/source/{sourceId} HTTP/1.1
Host: p01-api.observo.ai
authorization: YOUR_API_KEY
Accept: */*
{
"status": {
"code": "OK",
"errorMessage": "text",
"userMessageCode": "DEFAULT"
}
}Last updated
Was this helpful?

