List comments on a record
const url = 'https://app.buildworkpro.com/api/v1/comments/example/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.buildworkpro.com/api/v1/comments/example/1 \ --header 'Authorization: Bearer <token>'Returns the comment thread attached to a record. Requires access to the record itself — comments inherit the visibility of what they hang on.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Record type, e.g. project, bid, change_order.
Record type, e.g. project, bid, change_order.
Responses
Section titled “ Responses ”Comment thread
object
Example generated
{ "data": [ { "id": 1, "entityType": "example", "entityId": 1, "userId": 1, "content": "example", "parentId": 1, "createdAt": "example", "updatedAt": "example" } ]}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}