Publish a New Message (imageset)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Details

Publish a new Spredfast Messages for the target Initiative. Note: For multiple images the cURL should looks like this (notice that content.images is an array and must contain the same number of elements as files being uploaded):

curl \
	--header 'Content-Type: multipart/form-data' \
	--header 'Accept: application/json' \
	--header 'Authorization: Bearer {your token}' \
	--form 'message={"sfEntityType":"Message","service":"FACEBOOK","content":{"sfEntityType":"ImageShareList","images":[{"sfEntityType":"ImageShare","caption":"image one"},{"sfEntityType":"ImageShare","caption":"image two"},{"sfEntityType":"ImageShare","caption":"image three"}]},"targetAccountIds":["4"]};type=application/json' -F '[email protected]' \
	--form '[email protected]' \
	--form '[email protected]' \
	-X POST 'https://api.spredfast.com/v2/conversations/initiative/{initiativeId}/message?imageset'

Content Object (one of the following)

Option 1

discriminator: sfEntityType

FieldType
captionstring

Option 2

sfEntityTypestring
imagesstring or array[object]

images Object (if images field is an array)

captionstring

Option 3

videoTitlestring
descriptionstring
tagsstring. This is a required field. You can add multiple tags and delimit it by comma like tag1, tag2.
categorystring
sfEntityTypestring

YouTube

When YouTube is selected as the service, the value of the category field needs to match one of the keys listed in this table:

KeyDescription
AutosAutos & Vehicles
ComedyComedy
EducationEducation
EntertainmentEntertainment
FilmFilm & Animation
GamesGaming
HowtoHowto & Style
MusicMusic
NewsNews & Politics
NonprofitNonprofits & Activism
PeoplePeople & Blogs
AnimalsPets & Animals
TechScience & Technology
SportsSports
TravelTravel & Events

Option 4

textstring
shareLinkobject
sfEntityTypestring

shareLink Object

urlstring
titlestring
descriptionstring
captionstring
thumbnailUrlstring
Path Params
string
required
Body Params
string
string
string
string
string
Defaults to FACEBOOK
targetAccountIds
array of strings
targetAccountIds
string
string
Defaults to DRAFT
string
publicationResults
array of objects
publicationResults
string
callbacks
array of strings
callbacks
targetingProfile
object
assetIds
array of strings
assetIds
string
boolean
sponsor
object
publisherIds
array of strings
publisherIds
notes
array of objects
notes
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain