/ayrshare:profilesfrom Ayrshare - Unified Social Media API for AI Agents
Manages client profiles under an Ayrshare Business account: create profiles, list existing ones, and generate SSO linking URLs for clients to connect their social networks.
Ships in Ayrshare - Unified Social Media API for AI Agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Profile management is the agency / multi-client layer of Ayrshare. A profile is one client (or customer workspace) under your Business account; each owns its own set of connected social networks and its own profileKey. These three tools create profiles, list them, and mint the social-account linking URL a client opens to connect their networks. Together they cover client onboarding — see the onboarding sequence in ../getting-started/SKILL.md.
| Tool | Purpose | Method + Endpoint | Profile-scoped | Required inputs | Optional inputs |
|---|---|---|---|---|---|
mcp__ayrshare__create_profile | Create a new client profile; returns its profileKey | POST /profiles | No (account-level) | title | messagingActive, hideTopHeader, hideLogo, topHeader, subHeader, disableSocial, team (requires email), email, tags |
mcp__ayrshare__list_profiles | List all profiles under the Business account and their linked platforms | GET /profiles | No (account-level) | — | title, refId, hasActiveSocialAccounts, includesActiveSocialAccounts, isByokLinked, actionLog, limit, cursor, include |
mcp__ayrshare__generate_jwt_social_linking_url | Mint a single sign-on social-account linking URL for one sub-profile, the link a client opens to connect their own networks | POST /profiles/generateJWT | Yes, targets the sub-profile set by the profileKey argument or Profile-Key header (required; argument wins) | profileKey (or set it via the Profile-Key header) | logout, redirect, allowedSocial, verify, expiresIn (Max Pack), email (object, to required, optional bcc/termsUrl/privacyUrl/company/contactEmail; Max Pack) |
Full input schemas and example payloads/responses are in references/schemas.md.
mcp__ayrshare__generate_jwt_social_linking_urlmints the single sign-on linking URL a client opens to connect their social accounts; it does not run the OAuth flow itself (the client completes that in their browser) and it does not link anything on its own. There is still no MCP tool to delete a profile. See Linking a client's social accounts below.
create_profile and list_profiles are account-level: they authenticate with the Business API key only: the Authorization: Bearer header the MCP server sends, from the plugin's api_key setting (/plugin configure ayrshare@ayrshare). You never supply a profileKey as the auth key, and neither of these two takes a profileKey argument (both ignore the Profile-Key header too; they are account-level). (generate_jwt_social_linking_url, the third tool here, is profile-scoped instead: its target sub-profile comes from the profileKey argument or the Profile-Key header, the argument winning. See below.)
How profile scoping actually works. create_profile and list_profiles take no profileKey and ignore the Profile-Key header; they are account-level. To act as a specific client profile (post, fetch analytics, pull history, or mint that client's linking URL), supply that client's profileKey either as a tool argument on the call (per call; it wins when both are set) or as the Profile-Key connection header (with the plugin, its Profile-Key setting, entered with /plugin configure ayrshare@ayrshare and loaded with /reload-plugins; the default for every call on the connection). With neither set, calls act on the account's primary/Business profile. The profileKey that create_profile returns is the value you pass as the argument or save as that setting. The profile-scoped tools, including the linking tool covered next, accept it either way. Full model: ../getting-started/SKILL.md.
generate_jwt_social_linking_url is profile-scoped. It mints the linking URL for the target sub-profile, which is required for this tool: supply it as the profileKey argument or the connection's Profile-Key header (the argument wins), exactly as you would to post or pull analytics as that client. You do not supply any signing credentials: the MCP server derives the account's private key and onboarding domain server-side from your authenticated account, so no X-Ayrshare-* headers are needed. It does require the account to have a provisioned social-linking domain (Business/Enterprise plans); without one it returns a clear "no social-linking domain provisioned" error. Optional BYOK X headers (X-Twitter-OAuth1-Api-Key / X-Twitter-OAuth1-Api-Secret) still apply if you link X with your own developer app.
create_profile / list_profiles require a Business plan. A Launch/free-trial key will fail them even though it is otherwise valid.
Creating a profile does not link any social networks to it — a fresh profile has zero connected platforms. To connect a client's accounts you generate a single sign-on linking URL and the client opens it to OAuth their own networks.
mcp__ayrshare__generate_jwt_social_linking_url (in-MCP). Pass the client's profileKey as the profileKey argument (or set the connection's Profile-Key header) to get back a hosted url (valid 5 minutes by default, or expiresIn on the Max Pack). Hand that URL to the client; they open it in a browser and link their accounts. No private key or domain needed; the server derives them (requires a provisioned social-linking domain, Business/Enterprise). It only mints the link; the OAuth happens in the client's browser, not via any MCP tool.POST /profiles/generateJWT) directly — equivalent alternatives to generate_jwt_social_linking_url if you are not driving it through the MCP.After the client's accounts are linked, act as that profile by passing its profileKey argument (or setting the connection's Profile-Key header) and verify with the History tools (mcp__ayrshare__get_post_history / mcp__ayrshare__get_platform_history).
create_profile (account-level) → capture the returned profileKey → generate_jwt_social_linking_url to mint the linking URL for that profile (pass the profileKey as the argument, no header change or restart needed) → hand the URL to the client to OAuth their accounts → act as that profile (via the profileKey argument or Profile-Key header) and verify with the History tools. See the full sequence in ../getting-started/SKILL.md.profileKey from create_profile immediately. It is sensitive, shown once (the API cannot return it again), and is what you pass as the profileKey argument (or place in the Profile-Key header) to operate as that client. Treat it like a credential.profileKey? It cannot be recovered through the API — list_profiles does not return profile keys (the GET /profiles call omits them for security). Retrieve a lost key from the Ayrshare dashboard; don't create a duplicate profile just because a key was misplaced.team profiles require an email: set team: true only together with the team member's email, or the call fails.disableSocial takes an array of network names to disable for that profile; topHeader/subHeader/hideTopHeader/hideLogo control the white-label linking-page chrome.profileKey argument or the Profile-Key header. create_profile / list_profiles are account-level (Business key) and ignore both. generate_jwt_social_linking_url is profile-scoped: it mints the link for the target sub-profile, required via the profileKey argument or Profile-Key header (the argument wins). No tool ever uses a profileKey as the auth key.generate_jwt_social_linking_url mints the link; it does not link accounts itself. A new profile starts empty. It returns the URL a client opens to OAuth their networks — the actual linking happens in the client's browser, not via any MCP tool. (The dashboard and REST POST /profiles/generateJWT are equivalent alternatives.) It needs no signing headers (the server derives the private key and domain) but requires a provisioned social-linking domain (Business/Enterprise).team without email fails. If team: true, email is required.profileKey is sensitive. create_profile returns it once and the API never returns it again. Capture it, store it like a secret, and never echo it back in plain logs. A lost key is recoverable only from the Ayrshare dashboard.list_profiles returns title/refId/linked platforms — not profileKey. The GET /profiles call omits keys for security, so list_profiles cannot recover a lost key (use the dashboard for that). Use it to find a profile or its refId, not as a reason to re-create a profile.create_profile on a 4xx. Call mcp__ayrshare__explain_error, surface it, and stop. (Mirrors the global retry-safety rule in ../getting-started/SKILL.md; 429 gets at most one retry.)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrshare13 skills in this plugin
/analyticsSocial media analytics for the Ayrshare MCP server — metrics for a specific post, and account/network-level analytics on a connected social network (followers, impressions, reach, demographics). Use whenever someone wants performance data: "how did my post do", "engagement on that tweet", likes/comments/shares/views/impressions/reach for a post, follower counts, reach or impressions for an account, "analytics for our LinkedIn", "how is our Instagram growing", or comparing networks. Also use when pulling analytics for a post that was NOT created through Ayrshare (by its native Social Post ID). Trigger when calling `mcp__ayrshare__get_post_analytics`, `mcp__ayrshare__get_post_analytics_by_social_id`, or `mcp__ayrshare__get_social_network_analytics`, and even without the word "Ayrshare" — if the user wants social media stats for a post or a network through an AI assistant, this is the skill. For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/commentsUse whenever someone wants to read, add, or reply to comments on a social media post through the Ayrshare MCP server — the `mcp__ayrshare__get_comments`, `mcp__ayrshare__add_comment`, and `mcp__ayrshare__reply_comment` tools. Trigger on phrasings like "leave a comment on that post", "reply to that commenter", "respond to the top comment", "what are people saying on my LinkedIn post", "pull the comments", or "answer the question someone left on Instagram" — even if the user never says "Ayrshare", "MCP", or names a tool. Also trigger when a user wants to engage with an audience under an existing post rather than create a new post. For installing/configuring the server and the auth model, this skill cross-links to `../getting-started/SKILL.md`. To create the post being commented on, see `../post/SKILL.md`.
/draft-in-brand-voiceDraft social posts that match a brand's established voice for the Ayrshare MCP server: first pull the profile's own past posts (history) to read tone, format, and what performed, then write platform-appropriate copy in that voice and validate it before anything publishes. Use whenever someone wants on-brand content rather than generic copy: "write a post the way we usually post", "draft this in our brand voice", "match our tone", "write like our LinkedIn", or any time content is created for a profile whose established style should be matched. Trigger even without the word "Ayrshare": if the user wants content that sounds like an existing account, this is the skill. It pulls history (`get_post_history` / `get_platform_history`), optionally `get_post_analytics` for what worked, drafts via `generate_post` or your own copy, then checks with `validate_post`. It produces DRAFTS only and never publishes; publishing is the explicit `create_post` step in `../post/SKILL.md`.
/errorsError explanation for the Ayrshare MCP server: translate an Ayrshare error code into a plain-English cause, a classification, and a fix. Use whenever a code or numeric error needs decoding: "what does Ayrshare error 156 mean", "why did that post fail with code 272", "explain this error", "what is error code 110 on Instagram", "how do I fix this Ayrshare error". Trigger when calling `mcp__ayrshare__explain_error`, and even without the word "Ayrshare": if the user surfaces a social-posting error code and wants to know what it means or how to fix it, this is the skill. CRITICAL: whenever ANY OTHER Ayrshare MCP tool returns a structured error code (for example `Error 156: ...`), look the code up here and explain or fix it rather than echoing the raw error back. For the shared auth model and the global retry-safety rule, see `../getting-started/SKILL.md`.
/generateAI content generation for the Ayrshare MCP server — draft post copy and suggest hashtags. Use whenever someone wants help WRITING social content rather than publishing it: "write me a post about our product launch", "draft a tweet announcing the sale", "generate a caption for this image", "give me a LinkedIn post about X", "what should I caption these photos", "suggest hashtags for sustainable fashion", "recommend trending hashtags for ...". Trigger when calling `mcp__ayrshare__generate_post` or `mcp__ayrshare__recommend_hashtags`, and even without the word "Ayrshare" — if the user wants AI-written social copy or hashtag ideas through an assistant, this is the skill. These tools produce DRAFTS ONLY; they never publish. The natural next step is `mcp__ayrshare__validate_post` then `mcp__ayrshare__create_post` (see `../post/SKILL.md`). For the shared auth model and retry rules, see `../getting-started/SKILL.md`.
/getting-startedFoundation skill for the Ayrshare MCP server: auth model, installation, client onboarding, and retry safety. Use it when installing, configuring, or wiring up the Ayrshare MCP plugin or server in Claude Code; when an Ayrshare tool returns 401/403 or "unauthorized", or no Ayrshare tools appear; when it is unclear WHICH credential to use (Business API key vs Profile-Key, how to act as a client); when onboarding a client profile; or when the user has no Ayrshare account or API key yet. Trigger even without the word "Ayrshare" if tools named `mcp__ayrshare__*` are involved, or the user asks how to set up an MCP server for social posting or connect a client's social accounts through an AI assistant. Every other Ayrshare skill cross-links here for the shared auth and retry rules.
Other plugins' skills for the same job