Ayrshare API Documentation home page
Search...
⌘K
Blog
Dashboard
Dashboard
Search...
Navigation
Ids
Documentation
Help Center
Get Started
Ayrshare Social Media API
Quick Start Guide
API Endpoints
Ayrshare API Overview
Ads
Analytics
Auto Schedule
Brand
Comments
Feed
Generate
Hashtags
History
Links
Media
Messages
Post
Profiles
Reviews
User
Utils
Validate
Webhooks
Multiple Users
Business Plan Overview
User Integration
API Integration for Business
Manage Multiple User Profiles
Dashboard
Overview
Connect Social Accounts
Publish a Post
View JSON
Revoke Access to Social Media
RSS
Additional
What's New At Ayrshare
Errors
Max Pack
MCP Server
Media Guidelines
Packages & Guides
System Status
Testing & Verification
ISO Codes
Ids
Copy page
Set the Ids for a user profile.
Copy page
PUT
/
ads
/
twitter
/
ids
Set the “campaign” and “group” ids for a given profile. Used in /post for automatic promoting.
Header Parameters
Authorization
string
required
API Key
of the Primary Profile.
Format:
Authorization: Bearer API_KEY
Profile-Key
string
Profile Key
of a User Profile.
Format:
Profile-Key: PROFILE_KEY
Body Parameters
user_age
integer
default:
"0"
required
The age of the user. Cannot be less than 0
Assistant
Responses are generated using AI and may contain mistakes.