Create Post
POST
/posts/createCreate a new Post, (customField paramter is used to get specific value of the parameter of the post created ).
Request
required parameter to identify the api Getway
it will 2 types true or false
add scheduleDateTime time wiht YYYY-MM-DD HH:mm
0 => add to queue; 1 => share now; 2 => share next; 3 => schedule post
login ids selected by user (social media accounts)
send for client review
utmSetId
utmParameters
utmParameter
utmType
utmValue
It contains post related fields like post content, post image,post title
social media item type
mention object
post description
instagram post type default POST This is required field. If you are posting Reels then it should be reels. If you are posting Story then it should be story
It is comment on post
It is POST title
It is POST url
It is long post description
{
"scheduleDateTime": [
"2022-10-12 19:00"
],
"shareType": 0,
"loginIds": [
1000834
],
"posts": [
{
"type": "original",
"postDesc": "this post description ",
"instagramPostType": "post",
"place": null,
"comment": "",
"tagIds": [
123233
],
"mediaId": [
"ee312a70-fd6b-4abb-a96e-cd51616f45ea"
],
"altTexts": []
},
{
"type": "facebook",
"postDesc": "facebook post",
"instagramPostType": "post",
"place": null,
"fbAction": null,
"tagIds": [
123233
],
"mention": {
"123233": {
"name": "fb",
"link": "www.facebook.com/fb",
"avatar": "https://graph.facebook.com/v17.0/123233/picture?access_token=12323",
"id": "1221334",
"username": "Facebook",
"accountId": "facebook",
"activeTab": "Facebook",
"display_name": "Facebook"
}
},
"fbAudianceTargeting": {
"minAge": 14,
"maxAge": 66,
"gender": [
1
],
"interests": [
{
"id": "6003020834693",
"name": "Music",
"audience_size_lower_bound": 1519764804,
"audience_size_upper_bound": 1787243410,
"path": [
"Interests",
"Entertainment",
"Music"
],
"description": "",
"topic": "News and entertainment",
"label": "Music",
"value": "6003020834693"
},
{
"id": "6003186556105",
"name": "Love",
"audience_size_lower_bound": 1027621564,
"audience_size_upper_bound": 1208482960,
"path": [
"Interests",
"Additional interests",
"Love"
],
"description": null,
"topic": "Family and relationships",
"label": "Love",
"value": "6003186556105"
}
],
"city": [
{
"key": "1015741",
"name": "Ahmedabad",
"type": "city",
"country_code": "IN",
"country_name": "India",
"region": "Gujarat",
"region_id": 1729,
"supports_region": true,
"supports_city": true,
"label": "Ahmedabad, Gujarat, India",
"value": "1015741"
},
{
"key": "1792799",
"name": "Gujrat",
"type": "city",
"country_code": "PK",
"country_name": "Pakistan",
"region": "Punjab",
"region_id": 2939,
"supports_region": true,
"supports_city": true,
"label": "Gujrat, Punjab, Pakistan",
"value": "1792799"
}
],
"language": [
{
"key": 6,
"name": "English (US)",
"value": 6,
"label": "English (US)"
},
{
"key": 1,
"name": "Catalan",
"value": 1,
"label": "Catalan"
}
],
"relationshipStatus": [
3,
4
],
"educationalStatus": [
1,
2
],
"limitAudiance": null
}
},
{
"type": "twitter",
"postDesc": "this is tweet post",
"instagramPostType": "post",
"place": {
"name": "Hemchandracharya North Gujrat University Area, Patan",
"id": "2d65af7fcbb4bb51"
},
"mediaId": [
"dcaf280e-bef8-44c3-a26f-725bb79bf512"
],
"tagIds": [
123233
],
"altTexts": [],
"removeCarousel": true
},
{
"type": "linkedin",
"postDesc": "this is linkedin post",
"instagramPostType": "post",
"place": null,
"mediaId": [
"75d49942-848b-4244-aee4-bbbb85fbf7e5"
],
"altTexts": [],
"removeCarousel": true,
"tagIds": [
123233
],
"linkedinAudianceTargeting": {
"industry": [
{
"label": "Defense & Space",
"value": "urn:li:industry:1",
"id": "urn:li:industry:1",
"name": "Defense & Space"
},
{
"label": "Computer Software",
"value": "urn:li:industry:4",
"id": "urn:li:industry:4",
"name": "Computer Software"
}
],
"staffCount": [
{
"label": "1 employee",
"value": "SIZE_1",
"id": "SIZE_1",
"name": "1 employee"
},
{
"label": "11-50 employees",
"value": "SIZE_11_TO_50",
"id": "SIZE_11_TO_50",
"name": "11-50 employees"
}
],
"seniority": [
{
"label": "Senior",
"value": "urn:li:seniority:4",
"id": "urn:li:seniority:4",
"name": "Senior"
},
{
"label": "Director",
"value": "urn:li:seniority:6",
"id": "urn:li:seniority:6",
"name": "Director"
}
],
"superTitle": [
{
"label": "Administrative",
"value": "urn:li:function:2",
"id": "urn:li:function:2",
"name": "Administrative"
},
{
"label": "Business Development",
"value": "urn:li:function:4",
"id": "urn:li:function:4",
"name": "Business Development"
}
],
"language": [
{
"label": "Portuguese",
"value": "pt",
"id": "pt",
"name": "Portuguese"
},
{
"label": "English",
"value": "en",
"id": "en",
"name": "English"
}
],
"location": [
{
"id": "urn:li:geo:104990346",
"name": "Ahmedabad, Gujarat, India",
"label": "Ahmedabad, Gujarat, India",
"value": "urn:li:geo:104990346"
},
{
"id": "urn:li:geo:107387241",
"name": "Ahmadabad, Yazd, Iran",
"label": "Ahmadabad, Yazd, Iran",
"value": "urn:li:geo:107387241"
}
]
}
},
{
"type": "gmb",
"postDesc": "this is gmb post ",
"instagramPostType": "post",
"place": null,
"postTitle": "Google",
"tagIds": [
123233
],
"postUrl": "https://www.google.com",
"mediaId": [
"dcaf280e-bef8-44c3-a26f-725bb79bf512"
],
"longPostDesc": "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.",
"action": {
"cta": "BOOK",
"link": "https://www.google.com"
}
},
{
"type": "youtube",
"postDesc": "this post Description for testing",
"instagramPostType": "post",
"mediaId": [
"1f751d58-eb8f-474b-9fc8-4c558e3cf1d1"
],
"youtubePrivacy": "private",
"youtubeTags": [
"nothing is tagging"
],
"postTitle": "twitter video",
"videoCategory": "Film & Animation",
"youtubeAllowEmbedding": true,
"youtubeNotifySubscriber": true,
"youtubeMadeForKids": true,
"youtubeLicense": "youtube",
"tagIds": [
123233
]
}
],
"utmSetId": "123-456-789",
"utmParameters": [
{
"parameter": "Source",
"type": "D",
"value": "Social Network"
},
{
"parameter": "Campaign",
"type": "C",
"value": "just-test"
},
{
"parameter": "Medium",
"type": "C",
"value": "no-medium"
}
],
"sendForClientReview": false
}
Request samples
Responses
Your Post scheduled successfully.
Your Post scheduled successfully.
{
"message": "Your posts are scheduled successfully.\"",
"response": {
"postIds": [
"1234-1234-1234-1234",
"456-456-456-456"
],
"postScheduledLimitOver": false,
"customResponse": [],
"postCreatedCount": 2
}
}