Draft Post
POST
/draft/createCreate a Draft Post, (customField paramter is used to get specific value of the parameter of the post created ).
Request
Header Params
x-api-key
string
required
required parameter to identify the api Getway
Default:
yFxaTyRTiH7YBUYeYiEeCYBMRGZA8wk5fsCJxVy1
Body Params application/json
enableShortUrl
boolean
optional
it will 2 types true or false
currentActiveTab
enum<string>
optional
It is a active screen when request for draft post
Allowed values:
originalinstagrampinterestfacebooktwitterlinkedingmbyoutubetumblrtiktok
loginIds
array[number]
required
login ids selected by user (social media accounts)
posts
array [object {23}]
optional
It contains post related fields like post content, post image,post title
type
string
optional
social media item type
postDesc
string
optional
post description
instagramPostType
string
optional
instagram post type default POST
comment
string
optional
It is comment on post
mediaId
array[string]
optional
altTexts
array [object {2}]
optional
carousel
array [object {3}]
optional
fbAudianceTargeting
object
optional
place
object
optional
linkedinAudianceTargeting
object
optional
action
object
optional
youtubePrivacy
string
optional
youtubeTags
array[string]
optional
videoCategory
string
optional
youtubeAllowEmbedding
boolean
optional
youtubeNotifySubscriber
boolean
optional
youtubeMadeForKids
boolean
optional
youtubeLicense
string
optional
adDetails
object
optional
previewImgUrl
string
optional
removeCarousel
boolean
optional
pinTitle
string
optional
destinationUrl
string
optional
Example
{
"enableShortUrl": true,
"posts": [
{
"type": "original",
"postDesc": "This is a draft Post",
"instagramPostType": "post",
"place": null,
"previewImgUrl": ""
},
{
"type": "facebook",
"postDesc": "This is a draft Post For FB ",
"instagramPostType": "post",
"place": null,
"comment": "",
"carousel": [
{
"mediaId": "6ebd8a60-6339-4425-b32b-682f83ecaf97",
"title": "img1",
"link": "https://www.socialpilot.co/",
"fbAction": ""
},
{
"mediaId": "e4fde3e2-9d72-4d1b-b4e2-f8185541a81f",
"title": "Img2",
"link": "https://www.socialpilot.co/",
"fbAction": ""
}
],
"mediaId": [
"6ebd8a60-6339-4425-b32b-682f83ecaf97",
"e4fde3e2-9d72-4d1b-b4e2-f8185541a81f"
],
"fbAudianceTargeting": {
"limitAudiance": null
},
"previewImgUrl": "https://awsstage-test.s3.amazonaws.com/103953/7315f4b4-7264-4f98-88a3-fc8d9ee4370d.jpeg"
},
{
"type": "twitter",
"postDesc": "This is a draft Post Twitter",
"instagramPostType": "post",
"place": {
"name": "London, England",
"id": "457b4814b4240d87"
},
"previewImgUrl": ""
},
{
"type": "linkedin",
"postDesc": "This is a draft Post Linkedin",
"instagramPostType": "post",
"place": null,
"comment": "",
"linkedinAudianceTargeting": null,
"previewImgUrl": ""
},
{
"type": "gmb",
"postDesc": "This is a draft Post for GBP",
"instagramPostType": "post",
"place": null,
"action": {
"cta": "",
"link": ""
},
"previewImgUrl": ""
},
{
"type": "instagram",
"postDesc": "This is a draft Post For IG",
"instagramPostType": "post",
"place": {
"name": "Rajkot, Gujarat",
"id": "110832712274056"
},
"comment": "",
"mediaId": [
"ab17d2fe-0bde-4314-818e-380ad72d4d67"
],
"removeCarousel": true,
"taggedPeople": {
"https://awsstage-test.s3.amazonaws.com/103953/43a3b0f8-29c7-4566-a8f0-fd653b7de9a0.gif": []
},
"previewImgUrl": "https://awsstage-test.s3.amazonaws.com/103953/43a3b0f8-29c7-4566-a8f0-fd653b7de9a0.gif"
},
{
"type": "youtube",
"postDesc": "This is a draft Post For YT",
"instagramPostType": "post",
"mediaId": [
"6b51d262-524e-4f82-8ec3-da12c0e78933"
],
"youtubePrivacy": "public",
"youtubeTags": [],
"postTitle": "Jules",
"videoCategory": "",
"youtubeAllowEmbedding": false,
"youtubeNotifySubscriber": false,
"youtubeMadeForKids": false,
"youtubeLicense": "youtube",
"previewImgUrl": ""
},
{
"type": "pinterest",
"postDesc": "This is a draft Post For Printerest",
"instagramPostType": "post",
"place": null,
"mediaId": [
"1a28579d-be4f-4dc8-a132-22ee4595008d"
],
"altTexts": [],
"removeCarousel": true,
"pinTitle": "Social Media Scheduling, Marketing and Analytics Tool | SocialPilotst",
"destinationUrl": "https://www.socialpilot.co/",
"previewImgUrl": "https://www.socialpilot.co/wp-content/uploads/2021/07/preview-image-new.png"
}
],
"currentActiveTab": "original"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Your post has been saved as draft.
Data Schema
message
string
optional
Your post has been saved as draft.
response
object
optional
draftId
string
optional
it's id of post geerated time of save draft
Example
{
"message": "Your post has been saved as draft.",
"response": {
"draftId": "71615382-c35e-46a4-b0af-c9b41de4eef2"
}
}
Last modified: 18 days ago