Add a comment

Add a comment to a job, location, quote or deficiency.

POST https://cotlet.dev/api/v1/servicetrade/entities/{entity_id}/comments

write Confirm

Returns the comment id. A private comment is seen by your own staff; a customer comment can also be seen by the customer. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: add_comment
NameTypeDescription
entity string required string One of job, location, quote, deficiency.
entity_id integer required integer Id of the job, location, quote or deficiency.
content string required string Text of the comment.
visibility string string One of private, customer. private is visible only to users of your account.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/servicetrade/entities/1/comments \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity":"entity","content":"content"}'
Python
result = client.call("servicetrade", "add_comment", {"entity":"entity","entity_id":1,"content":"content"})
Node.js
const result = await cotlet.call('servicetrade', 'add_comment', {"entity":"entity","entity_id":1,"content":"content"});
CLI
cotlet call servicetrade add_comment --data '{"entity":"entity","entity_id":1,"content":"content"}'

Example response

JSON

{
  "comment_id": 604411,
  "entity": "job",
  "entity_id": 48213,
  "visibility": "private",
  "created_at": "2026-10-26T09:12:00-04:00"
}

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.