Skip to main content
POST
Create Widget

Authorizations

Authorization
string
header
required

A token from the API page: https://snapwidget.com/settings/api

Body

application/json
layout
string
required

The layout: a social one from list_widget_types (for example grid, slideshow, board, feed, scrolling, popup), or a review one (wall, carousel, marquee, list, badge, avatars).

kind
enum<string>

"social" (posts of accounts or a campaign) or "review" (reviews). Not sent: social.

Available options:
social,
review
accounts
integer[]

Social widget: the account ids from list_accounts, in order. The first gives the widget its service; at most the plan's accounts per widget (get_account).

campaign_id
integer

Social widget: one of the user's campaigns (list_campaigns) in place of accounts. Instagram, Pro plans.

name
string

The widget's name in the Widgets list (a review widget needs it).

source_ids
string[]

Review widget: the review source ids from list_review_sources. Not sent: all the user's sources.

Response

The answer, as JSON.

The response is of type object.