twitter engagement
Unfollow a user
Unfollow a user on X/Twitter.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
accountIdstring
targetUserIdstring
The Twitter ID of the user to unfollow
Response Body
application/json
application/json
curl -X DELETE "https://getlate.dev/api/v1/twitter/follow?accountId=string&targetUserId=string"{
"status": "success",
"targetUserId": "string",
"following": false,
"platform": "twitter"
}Empty
{
"error": "Unauthorized"
}Empty
Undo retweet DELETE
Undo a retweet (un-repost a tweet).
Validate media URL POST
Check if a media URL is accessible and return metadata (content type, file size) plus per-platform size limit comparisons. Performs a HEAD request (with GET fallback) to detect content type and size. Rejects private/localhost URLs for SSRF protection. Platform limits are sourced from each platform's actual upload constraints.