cURL
curl --request POST \ --url https://api.x.com/2/users/{id}/likes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tweet_id": "1346889436626259968" }'
{ "data": { "liked": true }, "errors": [ { "detail": "<string>", "status": 123, "title": "<string>", "type": "<string>" } ] }
Causes the authenticated user to Like a specific Post by its ID.
Show child attributes
1