Post a Project Comment
Attach a comment, with optional images, to a project
Post a comment on a project. Use this to record scheduling updates, homeowner context, or internal notes, and optionally attach one or more images. Comments appear in Sibi and trigger a project-phase.comment.created webhook when your organization is entitled to the channel.
To attach images, first request an upload target for each image with Upload a Comment Attachment, POST the file to the returned url with the signed fields, then pass the returned imageKey values in imageKeys here.
Endpoint: https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/comments
Authentication: Bearer token with the write:phase-comments scope (Authorization: Bearer {accessToken})
Path parameters
projectPhaseId
string — Required. ID of the project phase to comment on (returned from Create Project or project webhooks).
Request body
{
"channel": "PUBLIC",
"body": "Homeowner confirmed the 6/15 install window works.",
"imageKeys": ["comment/phase_xyz/V1StGXR8_Z5jdHi6B-myT.jpg"],
"parentCommentId": "ppc_existing123",
"sourceRef": "crm-comment-9f2c"
}
channel
"PUBLIC" | "SIBI_MANAGER" | undefined — Comment audience. When omitted, a reply (see parentCommentId) takes its parent comment’s channel, and any other comment defaults to SIBI_MANAGER — a new top-level comment only reaches the resident when you send PUBLIC explicitly.
| Channel | Visible to |
|---|---|
PUBLIC |
Project owner organization, property owner organization, Sibi staff, and the resident via a project share link |
SIBI_MANAGER |
Project owner organization only (Sibi staff also see it in-app) |
Neither channel reaches the assigned labor organization (the pro). Pro correspondence is Sibi-mediated on its own channel, so a message intended for the pro should be sent to Sibi rather than posted here.
The caller must be authorized for the chosen channel. Owner-org users with edit access on the project can typically post to both; users with view-only access can post to PUBLIC but not SIBI_MANAGER, so they must send "channel": "PUBLIC".
body
string | undefined — Comment text (1–4000 characters after trimming). Required unless at least one image is attached via imageKeys.
imageKeys
string[] | undefined — Up to 50 image keys returned by Upload a Comment Attachment, after the files have been uploaded to their pre-signed URLs. Each key must have been issued for comments on this project phase. Provide body, imageKeys, or both.
parentCommentId
string | undefined — When set, posts a reply to an existing comment. The parent must belong to the same project phase. The reply is posted in the parent’s channel; omit channel or send the parent’s channel, since a different one is rejected with 400.
sourceRef
string | undefined — Optional external identifier for this comment in your own system (max 256 characters). Stored on the comment and echoed in the project-phase.comment.created webhook when set.
Response 201
{
"projectPhaseCommentId": "ppc_abc123",
"projectPhaseId": "phase_xyz",
"channel": "PUBLIC",
"imageKeys": ["comment/phase_xyz/V1StGXR8_Z5jdHi6B-myT.jpg"],
"images": ["https://..."],
"createdAt": "2026-06-23T18:30:00.000Z"
}
imageKeys and images are present only when the comment has attached images, and always together.
They are not redundant. imageKeys are the opaque, stable identifiers — the same values you supplied — and are what you should store and compare. images are presigned download URLs for those same keys, in the same order, each valid for 1 hour; they are re-signed on every read, so the same photo yields a different URL each time you fetch it. They are returned here so you can render the comment you just posted without a follow-up read.
Error responses
| HTTP | code |
When |
|---|---|---|
| 400 | VALIDATION_ERROR |
Invalid JSON or schema (e.g. body too long, more than 50 imageKeys, neither body nor images) |
| 400 | BAD_INPUT |
parentCommentId is not a comment in this phase and channel, or an imageKeys entry was not issued for this phase’s comments or was never uploaded |
| 401 | UNAUTHORIZED |
Missing or invalid bearer token |
| 403 | INSUFFICIENT_SCOPE |
The token does not carry write:phase-comments |
| 403 | FORBIDDEN |
Caller lacks permission for the requested channel, including a projectPhaseId that does not exist |
| 404 | NOT_FOUND |
The phase has been cancelled |
| 500 | INTERNAL_ERROR |
Unexpected server error |
| 503 | AUTH_UNAVAILABLE |
The authentication service is temporarily unavailable. Retry shortly |
Webhooks
When a comment is created, Sibi emits project-phase.comment.created to organizations entitled to that channel. Inbound comments from Sibi staff or other parties on channels you can view are delivered the same way — you do not need a separate read API to receive them.