Flow
Create a sub-profile
Call
create_profile (account-level — no profileKey). It returns a profile key for the new sub-profile.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.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.Requirements
Error states
| Condition | Response |
|---|---|
| No provisioned domain | 400 — “No social-linking domain is provisioned for this account (available on Business/Enterprise plans).” |
| No signing key | 400 — “No signing key found for this account’s social-linking domain.” |
Next steps
Connect & Setup
Authentication and profile targeting.
Tool Catalog
The 27 tools grouped by domain, with scope and purpose.
