# Ayrshare AI integration on Definable

> Ayrshare provides a Social Media API that enables developers to programmatically manage and automate social media posts, analytics, and interactions across multiple platforms.

## What this connects

Ayrshare provides a Social Media API that enables developers to programmatically manage and automate social media posts, analytics, and interactions across multiple platforms.

Vendor: https://www.ayrshare.com/

## Tools available

**3** tools available. First 3:

- `AYRSHARE_CREATE_AUTO_SCHEDULE` — Create Auto Schedule — Tool to create a new auto-post schedule with specified times and optional weekday filters. Use when setting up recurring posting plans.
- `AYRSHARE_DELETE_DELETE_POST` — Delete a previously published Ayrshare post — 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.
- `AYRSHARE_GET_POST_HISTORY` — Get Post History — Tool to retrieve Ayrshare post history with metrics. Use when you need to fetch and filter past posts by date, status, or record count.

## Auth

Auth schemes: `API_KEY`.

## How agents use Ayrshare

Inside a Definable workflow, Ayrshare is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → Ayrshare** — the Researcher (GPT-5.5) pulls context from Ayrshare (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → Ayrshare** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into Ayrshare (create record, post message, draft email).
- **Designer / Engineer → Distributor → Ayrshare** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via Ayrshare (attach file, open PR comment, post status).

The Verifier checks every Ayrshare call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- social media marketing — https://definable.ai/apps/category/social-media-marketing/
- social media accounts — https://definable.ai/apps/category/social-media-accounts/

## Related

- HTML page: https://definable.ai/apps/ayrshare/
- Same category (social media marketing): https://definable.ai/apps/category/social-media-marketing/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
