Data collection API endpoints

With the Sitefinity Insight API, you can report data to Sitefinity Insight in an easy and straightforward way.

Data collection with Sitefinity Insight API

POST /collect/v2/data-centers/{data-center-key}/datasources/{data-source-name}/interactions

Resource information

URL https://api.insight.sitefinity.com/collect/v2/data-centers/{data-center-key}/datasources/{data-source-name}/interactions
HTTP method POST
Description Send a single or a collection of interactions to a data center.
Authentication None.

Parameters

Name Location Required Data type Description
data-center-key URI path Yes Guid The API key of the data center you want to upload the sentences to.
data-source-name URI path Yes String The name of the data source, under which the metadata is reported. Data source name can be 32 characters max. For example, Website.

Request body

Name Required Data type Description
JSON root Yes Interaction or Interaction[]. For details, see Interaction API data type. The interaction or collection of interactions to report to the data center in the data-center-key parameter.

Responses

Name Returned data Description
200 OK Integer The number of successfully imported interactions.
400 Bad Request GeneralErrorResponse Usually returned when the provided data source name is longer than 32 characters.
403 Forbidden GeneralErrorResponse Returned when an invalid API key is provided in the data-center-key parameter. Another reason is when the provided key is valid but the authenticated user does not have access to the data center.

Sample request and response

The following sample request shows how to report just subject metadata, just a sentence, just object metadata, or just mapping, as well as all of them at the same time.

HTTP:

POST https://api.insight.sitefinity.com/collect/v2/data-centers/4we99689-3efa-94d6-8947-8f74819c807d/datasources/crm/interactions

Body JSON:

Sample response:

5

This is the number of interactions reported by the data source.

Was this article helpful?