Publish a post to social media platforms
API_KEY
, and the PROFILE_KEY
if publishing to a User Profile, in the Authorization header.
The API Key can be found in the Ayrshare Developer Dashboard under the API Key page.
See the Post API Overview for more details on posting options.
""
to publish with no text.bluesky
, facebook
, gmb
, instagram
, linkedin
, pinterest
, reddit
, snapchat
, telegram
, threads
, tiktok
, twitter
, or youtube
.Please note: use facebook
for Facebook Pages, and gmb
for Google Business Profile.Use all
to post to all linked social networks. Also include the required fields for all social network.
E.g. title
must be included in youTubeOptions
if youtube
is linked.https://
. If the URL has special characters, e.g. ñ, please encode the special characters before sending.Videos require a paid plan.Please see here for Image and Video Requirements and other advanced options.YYYY-MM-DDThh:mm:ssZ
and send as 2026-07-08T12:30:00Z
.
Please see utctime for more examples.Also see schedule posts for details.validateScheduled
to false
.We recommend keeping validation enabled for scheduled posts to catch errors early.
Otherwise, the post will be scheduled and you will only receive an error when it is published.Please see scheduled webhook actions for more details.randomPost: true
will ignore the post
field.randomMediaUrl: true
will ignore the mediaUrls
field.