All integrations
Get an API key
Ayrshare
Post to X, LinkedIn, Instagram, Facebook, TikTok, YouTube and more through one API.
Social
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
- Create an account and link each social network from the Ayrshare dashboard.
- Copy the API key. One key posts to every linked network.
- This is the pragmatic route to the gated networks: Ayrshare holds the partnerships so you do not need them.
Connection details
- Base URL
- https://api.ayrshare.com/api
- Pagination
- page
Common endpoints
| post to several networks | POST /post |
| list history | GET /history |
| list linked accounts | GET /user |
| delete a post | DELETE /delete |
Worth knowing
- Each network must be linked in the dashboard first; the API cannot link them.
- Per-network constraints still apply (character limits, media requirements) and surface as partial failures inside a 200.
- Always read `postIds[].status` per network rather than trusting the top-level status.