Data Integrations API
Discover configuration options and manage data source integrations.
Authentication and permissions
Use an API key in Authorization: Bearer <YOUR_API_KEY> and select the backend with X-Backend-Id: <YOUR_BACKEND_ID>. Use your own API base URL for a self-hosted deployment.
Admin required: creating, replacing or archiving integration configurations, and testing connections. Listing, reading and describing configurations require backend access but do not require Admin permissions.
Endpoints
GET
/api/integrations/v1/data/config
List configurations across types.
GET
/api/integrations/v1/data/config/{type}
List configurations of one type.
GET
/api/integrations/v1/data/config/{type}/{id}
Get one configuration.
GET
/api/integrations/v1/data/describe/{type}
Read configuration defaults, options and supported actions.
POST
/api/integrations/v1/data/config/{type}
Admin required. Create a configuration.
PUT
/api/integrations/v1/data/config/{type}/{id}
Admin required. Replace a configuration.
DELETE
/api/integrations/v1/data/config/{type}/{id}
Admin required. Archive a configuration.
POST
/api/integrations/v1/data/{type}/test-connection
Admin required. Test supported backend integrations.
Use the Synthetics API for synthetic checks. The generic configuration API rejects synthetics for create, update, get-by-type, delete and test operations; its describe endpoint remains available.
Discover and list
curl --request GET 'https://api.groundcover.com/api/integrations/v1/data/describe/prometheusscrape' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Backend-Id: <YOUR_BACKEND_ID>'Describe returns version, optional defaults and options, and supported_actions. These describe the selected integration type; they are not a universal schema shared by every integration. Read defaults and the corresponding data-source guide before constructing config.
List and get accept the optional query parameter includeArchived=true. Lists return an array of configuration objects containing type, id, name, config, is_paused, is_archived, updated_by, update_timestamp, tags, and optional cluster. config is serialized configuration text.
Create an integration
config
string
Yes
Type-specific JSON text. Include its configuration-schema version.
name
string
No
Configuration display name.
cluster
string
No
Cluster scope. Omit for the backend integration scope.
is_paused
boolean
No
Whether the configuration is paused.
tags
object
No
Metadata attached to the integration configuration.
The example uses the prometheusscrape type. Replace the target with a reachable metrics endpoint in your environment.
HTTP 201 returns the created configuration, including its server-generated id. Use this ID for subsequent operations. Invalid configuration returns HTTP 400; an unavailable configuration service can return HTTP 503.
Update and delete
PUT accepts the same complete body as POST. Retrieve the existing configuration first, retain its type-specific fields, and change only the intended values in your request. To pause an integration, submit the complete request with is_paused: true.
Save your edited request body as integration-request.json (using the request fields above), then submit it:
PUT returns HTTP 200 with the updated configuration. Delete archives the configuration:
For a cluster-scoped integration, pass its cluster in the DELETE query string (?cluster=<CLUSTER_NAME>). URL-encode the name. Deleting returns HTTP 200 with no body.
Test a connection
Admin permissions are required, even though this operation does not save a configuration.
Send the same request body as create to /api/integrations/v1/data/{type}/test-connection. Omit cluster: testing is supported only in the backend cluster. Check the describe response for test-connection in supported_actions; it is not supported by every integration or backend.
The response contains statusCode, status, and message; inspect the result to determine whether the connection succeeded. The test does not create a saved configuration.
Last updated
