Answer ask
Answer an ask from the inbox, publicly on your blog or privately.
POST https://cotlet.dev/api/v1/tumblr/asks/{ask_id}/replies
write Confirm
Answers one ask. With visibility public, the answer is published to your blog with the question. With private, only the sender gets it. An anonymous ask can only be answered publicly. Set state to queue or draft to hold a public answer back. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| blog string required | string | Blog name, e.g. 'studio-notes' for studio-notes.tumblr.com. Names come from list_blogs. |
| ask_id string required | string | Ask ID from list_asks. |
| answer string required | string | Answer text. |
| visibility enum | enum | public or private. Default: public. Anonymous asks allow only public. |
| state enum | enum | published, queue, draft or private. Default: published. |
Request
curl -X POST https://cotlet.dev/api/v1/tumblr/asks/ask_5521e0/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"blog":"studio-notes","answer":"Mostly 300 gsm cold-pressed paper. It takes wet ink without buckling, and the tooth keeps lines soft.","visibility":"public"}' result = client.call("tumblr", "answer_ask", {"blog":"studio-notes","ask_id":"ask_5521e0","answer":"Mostly 300 gsm cold-pressed paper. It takes wet ink without buckling, and the tooth keeps lines soft.","visibility":"public"}) const result = await cotlet.call('tumblr', 'answer_ask', {"blog":"studio-notes","ask_id":"ask_5521e0","answer":"Mostly 300 gsm cold-pressed paper. It takes wet ink without buckling, and the tooth keeps lines soft.","visibility":"public"}); cotlet call tumblr answer_ask --data '{"blog":"studio-notes","ask_id":"ask_5521e0","answer":"Mostly 300 gsm cold-pressed paper. It takes wet ink without buckling, and the tooth keeps lines soft.","visibility":"public"}' Example response
{
"post_id": "771205011190",
"ask_id": "ask_5521e0",
"blog": "studio-notes",
"state": "published",
"visibility": "public"
}