Kosmobids Public API

Comments

Post comments authored by your integration on a pipeline tender.

The comments endpoint writes a comment authored by your integration into the tender's thread in the Kosmobids pipeline. It is the way to attach context your team would otherwise only hear about outside the application: what a buyer said on the phone, what a partner confirmed, why a bid is paused.

Comments posted through the API are labelled API in the thread, and the team is notified the same way as for a teammate comment.

Post a comment

POST /tenders/:tenderId/api-comments

{
  "content": "Called the buyer; awaiting the clarification they promised by Friday.",
  "parentCommentId": null
}
Field Required Meaning
content Yes Plain text. A newline starts a new paragraph. 1–10,000 characters.
parentCommentId No Reply to an existing top-level comment on the same tender.

The response is 201:

{
  "data": {
    "id": "comment-id",
    "timestamp": "2026-11-25T08:30:00.000Z"
  },
  "error": null
}

There is no field for the author label: comments posted through the API are always labelled API, so the label stays stable across API key rotations.

Body format

content is treated as plain text. A newline starts a new paragraph; there is no markup to learn and none to escape:

  • Markdown is not rendered. **bold** and # heading appear literally.
  • @name does not mention anyone. Mention notifications only come from the application.
  • There are no citations. If you need to point at a document page, include the tender file's name and page number in the text.

The body is stored as a rich-text document internally, but every character you send is preserved in the stored text.

Company resolution

Callers never supply a company tender ID. The API resolves it from the key's company and the tender (lot) ID. If the company does not have that tender in its pipeline, the request fails with 404.

Parent comments

parentCommentId creates a reply. The parent must be a top-level comment on the same tender. A parent that does not exist, belongs to another tender, or belongs to another company returns 404. Replying to a reply attaches to that thread's top-level comment.

Retries and duplicates

The endpoint is not idempotent: a retry after a timeout can create a second comment. If a request times out, check the tender's thread in the Kosmobids application before retrying, or include a stable integration-side identifier in the comment text so duplicates can be recognised.