Content Import
Import entries from a project's Contentstack stacks into Lytics, and manage those imports.
List all content imports across the project
https://lytics-api.contentstack.com/projects/{id}/content-importundefined
Content imports
Look up the titles of imported entries, from the stacks the project's content sources read, as the caller. Uids with no title found are left out.
https://lytics-api.contentstack.com/projects/{id}/content-import/entriesundefined
{
"entries": [
{
"uid": "blt1234567890abcdef",
"title": "Cutting delivery emissions in half"
}
]
}Get a single content import
https://lytics-api.contentstack.com/projects/{id}/content-import/{importId}undefined
Content import
https://lytics-api.contentstack.com/projects/{id}/content-import/{importId}undefined
{
"deliveryTokenUid": "blt1234567890abcdef",
"contentTypes": [
"destination",
"article"
],
"domain": "wanderlust.com",
"taxonomies": [
"activities"
],
"tagsAsTopics": true,
"keepUpdated": true
}Import updated
Delete a content import
https://lytics-api.contentstack.com/projects/{id}/content-import/{importId}undefined
Import deleted
https://lytics-api.contentstack.com/projects/{id}/content-import/stacks/{stackApiKey}/authorizeundefined
{
"deliveryTokenUid": "blt1234567890abcdef",
"checkOnly": false,
"refresh": false
}Stack authorized
Create a content import under a stack
https://lytics-api.contentstack.com/projects/{id}/content-import/stacks/{stackApiKey}undefined
{
"deliveryTokenUid": "blt1234567890abcdef",
"label": "Destinations Import",
"contentTypes": [
"destination",
"article"
],
"domain": "wanderlust.com",
"taxonomies": [
"activities"
],
"tagsAsTopics": true,
"keepUpdated": true
}Import created
Pause a content import
https://lytics-api.contentstack.com/projects/{id}/content-import/{importId}/pauseundefined
Import pausing
Resume a paused content import, or run a sleeping one now
https://lytics-api.contentstack.com/projects/{id}/content-import/{importId}/runundefined
Import running