Flow
1
Create a sub-profile
Call
create_profile (account-level — no profileKey). It returns a profile key for the new sub-profile.2
Target the sub-profile
Use the returned profile key on subsequent calls — either via the
Profile-Key header on the connection or as a per-call profileKey argument. See Connect & Setup for precedence.3
Mint a social-linking URL
Call
generate_jwt_social_linking_url to mint a single sign-on linking URL. The JWT signing key and onboarding domain are derived server-side — the caller supplies no X-Ayrshare-* headers and no private key or domain.4
Client links their accounts
The client opens the URL and authorizes (OAuths) their social accounts. The connected accounts are linked to the sub-profile.
Requirements
Error states
Next steps
Connect & Setup
Authentication and profile targeting.
Tool Catalog
The 27 tools grouped by domain, with scope and purpose.
