Comment in a forum thread

Post a comment in a forum thread, or reply to a comment.

POST https://cotlet.dev/api/v1/anilist/threads/{thread_id}/comment

write Confirm

Posts publicly in the thread and notifies people who subscribed to it. Returns the comment ID. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: post_thread_comment
NameTypeDescription
thread_id integer required integer Thread ID from list_forum_threads.
comment string required string Comment text in markdown, 1 to 12000 characters.
parent_comment_id integer integer Reply to this comment instead of the thread.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/anilist/threads/1/comment \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"comment":"comment"}'
Python
result = client.call("anilist", "post_thread_comment", {"thread_id":1,"comment":"comment"})
Node.js
const result = await cotlet.call('anilist', 'post_thread_comment', {"thread_id":1,"comment":"comment"});
CLI
cotlet call anilist post_thread_comment --data '{"thread_id":1,"comment":"comment"}'

Example response

JSON

{
  "comment_id": 5550123,
  "thread_id": 31337,
  "posted": true
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.