Trigger on event
- Listen for a new event
- Parse and validate the payload
- Take an action with the linked tool
3 tools available
Ayrshare provides a Social Media API that enables developers to programmatically manage and automate social media posts, analytics, and interactions across multiple platforms.
Connect Ayrshare to Definable to automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas call Ayrshare's 3 tools directly from chat or scheduled flows. You can wire it into any persona to read, write, and react when an event fires.
Every Ayrshare action below is a callable tool any Definable persona can invoke.
Tool to create a new auto-post schedule with specified times and optional weekday filters. Use when setting up recurring posting plans.
Tool to delete an Ayrshare post. Use when you need to remove a published or scheduled post by its Ayrshare Post ID, after confirming the correct ID. Note: Instagram and TikTok published posts cannot be deleted via API; set `mark_manual_deleted=True` or remove manually.
Tool to retrieve Ayrshare post history with metrics. Use when you need to fetch and filter past posts by date, status, or record count.
Anything Ayrshare exposes through its API. Common social media marketing workflows on Definable include automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas can call any of the 3 Ayrshare tools directly, then chain the result into another integration without you writing code.
Ayrshare uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.
Yes — every Definable plan, including Starter, includes access to all 3 Ayrshare tools. You only need a separate Ayrshare subscription if Ayrshare itself charges per seat or per API call.
Every call from a persona to Ayrshare is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.
Sign up for Definable, open the integrations page, find Ayrshare, and connect via OAuth or API key. You can immediately attach Ayrshare to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.
Definable exposes all 3 Ayrshare actions as callable tools — including `Create Auto Schedule`, `Delete a previously published Ayrshare post`, `Get Post History`. Each tool gets a typed parameter schema so personas know exactly how to call it.
Wire it up in minutes. No coding required.