Create content item
curl --request POST \
--url https://{host}/feed/v1/Content \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authorId": "<string>",
"authorName": "<string>",
"title": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": true,
"createdBy": "<string>",
"externalId": "<string>",
"campaignName": "<string>",
"analyticsIdentifier": "<string>",
"imageUrl": "<string>",
"altText": "<string>",
"videoUrl": "<string>",
"topMessage": "<string>",
"bottomMessage": "<string>",
"longDescription": "<string>",
"buttonText": "<string>",
"externalUrl": "<string>",
"useWebWrapper": true,
"deepLinkId": "<string>",
"deepLinkParameters": {},
"deepLinkUrl": "<string>",
"audienceIds": [
"<string>"
],
"storeId": "<string>",
"storeIds": [
"<string>"
],
"isBoardContent": true,
"customProperties": {},
"chainIds": [
"<string>"
],
"priority": 123,
"requiresApproval": true,
"unifiedCampaignId": "<string>"
}
'import requests
url = "https://{host}/feed/v1/Content"
payload = {
"authorId": "<string>",
"authorName": "<string>",
"title": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": True,
"createdBy": "<string>",
"externalId": "<string>",
"campaignName": "<string>",
"analyticsIdentifier": "<string>",
"imageUrl": "<string>",
"altText": "<string>",
"videoUrl": "<string>",
"topMessage": "<string>",
"bottomMessage": "<string>",
"longDescription": "<string>",
"buttonText": "<string>",
"externalUrl": "<string>",
"useWebWrapper": True,
"deepLinkId": "<string>",
"deepLinkParameters": {},
"deepLinkUrl": "<string>",
"audienceIds": ["<string>"],
"storeId": "<string>",
"storeIds": ["<string>"],
"isBoardContent": True,
"customProperties": {},
"chainIds": ["<string>"],
"priority": 123,
"requiresApproval": True,
"unifiedCampaignId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authorId: '<string>',
authorName: '<string>',
title: '<string>',
publishDate: '2023-11-07T05:31:56Z',
expirationDate: '2023-11-07T05:31:56Z',
isReadyToDistribute: true,
createdBy: '<string>',
externalId: '<string>',
campaignName: '<string>',
analyticsIdentifier: '<string>',
imageUrl: '<string>',
altText: '<string>',
videoUrl: '<string>',
topMessage: '<string>',
bottomMessage: '<string>',
longDescription: '<string>',
buttonText: '<string>',
externalUrl: '<string>',
useWebWrapper: true,
deepLinkId: '<string>',
deepLinkParameters: {},
deepLinkUrl: '<string>',
audienceIds: ['<string>'],
storeId: '<string>',
storeIds: ['<string>'],
isBoardContent: true,
customProperties: {},
chainIds: ['<string>'],
priority: 123,
requiresApproval: true,
unifiedCampaignId: '<string>'
})
};
fetch('https://{host}/feed/v1/Content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/feed/v1/Content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'authorId' => '<string>',
'authorName' => '<string>',
'title' => '<string>',
'publishDate' => '2023-11-07T05:31:56Z',
'expirationDate' => '2023-11-07T05:31:56Z',
'isReadyToDistribute' => true,
'createdBy' => '<string>',
'externalId' => '<string>',
'campaignName' => '<string>',
'analyticsIdentifier' => '<string>',
'imageUrl' => '<string>',
'altText' => '<string>',
'videoUrl' => '<string>',
'topMessage' => '<string>',
'bottomMessage' => '<string>',
'longDescription' => '<string>',
'buttonText' => '<string>',
'externalUrl' => '<string>',
'useWebWrapper' => true,
'deepLinkId' => '<string>',
'deepLinkParameters' => [
],
'deepLinkUrl' => '<string>',
'audienceIds' => [
'<string>'
],
'storeId' => '<string>',
'storeIds' => [
'<string>'
],
'isBoardContent' => true,
'customProperties' => [
],
'chainIds' => [
'<string>'
],
'priority' => 123,
'requiresApproval' => true,
'unifiedCampaignId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/feed/v1/Content"
payload := strings.NewReader("{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/feed/v1/Content")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/feed/v1/Content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123
}Create content item
Accepts a request body with the details of the content item to be created.
POST
/
v1
/
Content
Create content item
curl --request POST \
--url https://{host}/feed/v1/Content \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authorId": "<string>",
"authorName": "<string>",
"title": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": true,
"createdBy": "<string>",
"externalId": "<string>",
"campaignName": "<string>",
"analyticsIdentifier": "<string>",
"imageUrl": "<string>",
"altText": "<string>",
"videoUrl": "<string>",
"topMessage": "<string>",
"bottomMessage": "<string>",
"longDescription": "<string>",
"buttonText": "<string>",
"externalUrl": "<string>",
"useWebWrapper": true,
"deepLinkId": "<string>",
"deepLinkParameters": {},
"deepLinkUrl": "<string>",
"audienceIds": [
"<string>"
],
"storeId": "<string>",
"storeIds": [
"<string>"
],
"isBoardContent": true,
"customProperties": {},
"chainIds": [
"<string>"
],
"priority": 123,
"requiresApproval": true,
"unifiedCampaignId": "<string>"
}
'import requests
url = "https://{host}/feed/v1/Content"
payload = {
"authorId": "<string>",
"authorName": "<string>",
"title": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"isReadyToDistribute": True,
"createdBy": "<string>",
"externalId": "<string>",
"campaignName": "<string>",
"analyticsIdentifier": "<string>",
"imageUrl": "<string>",
"altText": "<string>",
"videoUrl": "<string>",
"topMessage": "<string>",
"bottomMessage": "<string>",
"longDescription": "<string>",
"buttonText": "<string>",
"externalUrl": "<string>",
"useWebWrapper": True,
"deepLinkId": "<string>",
"deepLinkParameters": {},
"deepLinkUrl": "<string>",
"audienceIds": ["<string>"],
"storeId": "<string>",
"storeIds": ["<string>"],
"isBoardContent": True,
"customProperties": {},
"chainIds": ["<string>"],
"priority": 123,
"requiresApproval": True,
"unifiedCampaignId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authorId: '<string>',
authorName: '<string>',
title: '<string>',
publishDate: '2023-11-07T05:31:56Z',
expirationDate: '2023-11-07T05:31:56Z',
isReadyToDistribute: true,
createdBy: '<string>',
externalId: '<string>',
campaignName: '<string>',
analyticsIdentifier: '<string>',
imageUrl: '<string>',
altText: '<string>',
videoUrl: '<string>',
topMessage: '<string>',
bottomMessage: '<string>',
longDescription: '<string>',
buttonText: '<string>',
externalUrl: '<string>',
useWebWrapper: true,
deepLinkId: '<string>',
deepLinkParameters: {},
deepLinkUrl: '<string>',
audienceIds: ['<string>'],
storeId: '<string>',
storeIds: ['<string>'],
isBoardContent: true,
customProperties: {},
chainIds: ['<string>'],
priority: 123,
requiresApproval: true,
unifiedCampaignId: '<string>'
})
};
fetch('https://{host}/feed/v1/Content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/feed/v1/Content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'authorId' => '<string>',
'authorName' => '<string>',
'title' => '<string>',
'publishDate' => '2023-11-07T05:31:56Z',
'expirationDate' => '2023-11-07T05:31:56Z',
'isReadyToDistribute' => true,
'createdBy' => '<string>',
'externalId' => '<string>',
'campaignName' => '<string>',
'analyticsIdentifier' => '<string>',
'imageUrl' => '<string>',
'altText' => '<string>',
'videoUrl' => '<string>',
'topMessage' => '<string>',
'bottomMessage' => '<string>',
'longDescription' => '<string>',
'buttonText' => '<string>',
'externalUrl' => '<string>',
'useWebWrapper' => true,
'deepLinkId' => '<string>',
'deepLinkParameters' => [
],
'deepLinkUrl' => '<string>',
'audienceIds' => [
'<string>'
],
'storeId' => '<string>',
'storeIds' => [
'<string>'
],
'isBoardContent' => true,
'customProperties' => [
],
'chainIds' => [
'<string>'
],
'priority' => 123,
'requiresApproval' => true,
'unifiedCampaignId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/feed/v1/Content"
payload := strings.NewReader("{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/feed/v1/Content")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/feed/v1/Content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authorId\": \"<string>\",\n \"authorName\": \"<string>\",\n \"title\": \"<string>\",\n \"publishDate\": \"2023-11-07T05:31:56Z\",\n \"expirationDate\": \"2023-11-07T05:31:56Z\",\n \"isReadyToDistribute\": true,\n \"createdBy\": \"<string>\",\n \"externalId\": \"<string>\",\n \"campaignName\": \"<string>\",\n \"analyticsIdentifier\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"altText\": \"<string>\",\n \"videoUrl\": \"<string>\",\n \"topMessage\": \"<string>\",\n \"bottomMessage\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"externalUrl\": \"<string>\",\n \"useWebWrapper\": true,\n \"deepLinkId\": \"<string>\",\n \"deepLinkParameters\": {},\n \"deepLinkUrl\": \"<string>\",\n \"audienceIds\": [\n \"<string>\"\n ],\n \"storeId\": \"<string>\",\n \"storeIds\": [\n \"<string>\"\n ],\n \"isBoardContent\": true,\n \"customProperties\": {},\n \"chainIds\": [\n \"<string>\"\n ],\n \"priority\": 123,\n \"requiresApproval\": true,\n \"unifiedCampaignId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123
}Authorizations
Body
application/json
The request payload containing the information required to create a content item.
Last modified on August 10, 2026