Specify a User Profile in an API call by adding the Profile Key in the header.
Profile Key
Many endpoints, such as /user, /analytics, or /delete, can be called on behalf of a Profile account by adding the “Profile-Key” parameter in the Header. For example, the /delete endpoint can be called to delete a Profile account’s post for the given post id for the provided Profile Key.Enable or Disable Social Networks
You can disable and enable social networks at either the global level or at the User Profile level.- Globally manage social account access in the dashboard.
- Manage social account access for a User Profile when creating or updating.
Get the Linked Social Accounts
Retrieve the social accounts a User Profile has linked with either the /profiles endpoint or the /user endpoint.Post to a User Profile
With the /post endpoint, you can post to a User Profile by adding the Profile Key in the header. The return will be an array of posts or error results, with an overall status. If all posts successful, “success”, or if any post failed, “error”. You may obtain a user’s Profile Key when the profile is created with the /create-profile endpoint or in Ayrshare’s Web Dashboard GUI by switching to the profile and going to Profile Key page.Demo User Profiles
Demo User Profiles let you offer a prospective end user a 30-day evaluation of your platform’s social features before committing them to a standard User Profile. Create one by settingdemo: true when creating a profile. A Demo User Profile works just like a standard User Profile — your user can link social accounts, post, and retrieve analytics using its Profile Key.
After 30 days, the Demo User Profile automatically converts to a standard User Profile. If you have a demo webhook registered, you’ll receive an upgradeWarning event two days before the conversion and an upgrade event when the conversion happens, so you can prompt your user (or remove the profile) beforehand.
Demo User Profiles are available on the Enterprise plan and must be enabled for your account. Please contact us if you’d like to learn more.
