Link your social accounts and send your first post in a few minutes.
Bearer
keyword.
Your API Key is located within the Ayrshare Dashboard, on the API Key page. If necessary, switch to your ‘Primary Profile’ via the User Profiles page.
From there, you can find the API Key page in the left-hand side panel.
Bearer
Token. Also include the Content-Type
of application/json
.
status
of “success” when our API successfully processes your post. The response includes:
status
: Overall status of the API call (“success” or “error”)errors
: Array of any errors encountered (empty if successful)postIds
: Array of objects containing platform-specific details:postIds
array will have its own status, allowing you to verify which platforms successfully received your post.
Check your social media pages to ensure that the post was successfully processed and is live. Note that some platforms may have a slight delay before posts appear publicly.
Here is a sample response:
Set the Header
Create a Body Object
Call the /post Endpoint
randomPost
, randomMediaUrl
, and isLandscapeVideo
or isPortraitVideo
parameters in the /post endpoint. If you use the randomPost
, the post
parameter is not required.
randomPost: true
.
Used with the /post endpoint.
randomMediaUrl: true
.
Used with the /post endpoint.
isVideo: true
and isLandscapeVideo: true
.
The video will be standard landscape size.
Used with the /post endpoint.
isVideo: true
and isPortraitVideo: true
.
Used with the /post endpoint.
randomComment: true
.
Used with the /comment endpoint.