Comments
Sync, list and answer comments.
Sync comments
POST
/api/comments/syncPulls the latest comments from every connected YouTube channel. Returns how many new comments were stored per account.
List comments
GET
/api/commentsNewest first. Optional query parameters: accountId, limit (default 50, max 200) and offset. Returns { comments, total }.
Act on a comment
POST
/api/commentsThe action field picks what to do:
| action | Fields | Effect |
|---|---|---|
reply | commentId, accountId, replyText | Posts a reply on YouTube. |
spam | commentId, accountId | Marks it as spam and reports it to YouTube. |
mark_read | commentIds (array) | Marks comments as read. |
curl -X POST https://rostido.com/api/comments \
-H "X-API-Key: rostido_xxx" \
-H "Content-Type: application/json" \
-d '{"action": "reply", "commentId": "comment_id", "accountId": "account_id", "replyText": "Thank you!"}'