cURL
JavaScript
Python
PHP
C#
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-H 'Profile-Key: PROFILE_KEY' \
-d '{"platform": "twitter"}' \
-X DELETE https://api.ayrshare.com/api/profiles/social
200: OK Successful unlink
400: Bad Request Error response
{
"status" : "success" ,
"platform" : "twitter" ,
"refId" : "13a9wa9e0df1183b7a6a1fc2c61b8023fa9a32a1"
}
Available on Business, Enterprise plans.
Unlink a social network for a given user profile. For example, if a user profile is linked to TikTok, unlink TikTok by making this endpoint request. A successful 200 response will be returned even if the platform is not linked. If the Profile-Key
is not provided the Primary Profile’s social account will be unlinked.
API Key of the Primary Profile.
Format:
Authorization: Bearer API_KEY
Profile Key of a User Profile.
Format:
Profile-Key: PROFILE_KEY
Body Parameters
Allow platforms to unlink: bluesky
, facebook
, gmb
, instagram
, linkedin
, reddit
, telegram
, tiktok
, twitter
, youtube
.
cURL
JavaScript
Python
PHP
C#
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-H 'Profile-Key: PROFILE_KEY' \
-d '{"platform": "twitter"}' \
-X DELETE https://api.ayrshare.com/api/profiles/social
200: OK Successful unlink
400: Bad Request Error response
{
"status" : "success" ,
"platform" : "twitter" ,
"refId" : "13a9wa9e0df1183b7a6a1fc2c61b8023fa9a32a1"
}