Comments
The Comment object
idstringoptionalPublic identifier of the comment.
contentstringoptionalComment body.
tagsarray of stringsoptionalTags associated with the comment.
metaobjectoptionalArbitrary metadata stored with the comment.
visibilityenumoptionalWho may see the comment, from meta.visibility: internal comments are notes for the organization's own users and never appear on the public API, customer comments may be shown to customers and drivers. A comment without a visibility is customer. Requires Core API with fleetbase/core-api#306 (release v1.6.69). One of internal, customer.
authorobjectoptionalUser that authored the comment.
repliesarray of objectsoptionalNested replies to the comment. On the public API, internal replies are left out.
editablebooleanoptionalWhether the current session user can edit the comment.
updated_attimestampoptionalTime the comment was last updated.
created_attimestampoptionalTime the comment was created.
deleted_attimestampoptionalTime the comment was deleted, when soft deleted.
{
"id": "comment_8JVZr4q",
"content": "Please confirm the delivery window.",
"tags": [],
"meta": {
"visibility": "customer"
},
"visibility": "customer",
"author": {
"id": "user_8xP2L1d",
"name": "Alex Rivera"
},
"replies": [],
"editable": true,
"updated_at": "2026-05-07T09:30:00Z",
"created_at": "2026-05-07T09:30:00Z",
"deleted_at": null
}/v1/commentsCreate Comment
Creates a comment on a subject resource or as a reply to an existing comment. Provide either a subject reference or a parent comment ID with the comment content.
Set visibility to internal for a note only the organization's users should see, or customer for one customers and drivers may see (see the Comment object for the default). Internal comments are not returned by Query Comments or Retrieve Comment. Every new comment broadcasts the realtime event comment.created (see the Comments folder). Requires Core API with fleetbase/core-api#306 (release v1.6.69).
contentstringrequiredComment body.
subjectobjectoptionalSubject resource receiving the comment. Provide this object when creating a top-level comment.
idstringrequiredPublic ID of the subject resource.
typestringrequiredMutation type or resource type used to resolve the subject model.
subject_idstringoptionalPublic ID of the subject resource. Use with subject_type as an alternative to subject.
subject_typestringoptionalMutation type or resource type used to resolve the subject model. Use with subject_id.
parentstringoptionalPublic ID of the parent comment when creating a reply.
visibilityenumoptionalWho may see the comment; any other value returns 422. Stored as meta.visibility. When omitted, a reply takes its parent's visibility, a comment on an order created through this API is customer (and internal when written from the console), and a comment on any other subject has none, which counts as customer. Requires Core API with fleetbase/core-api#306 (release v1.6.69). One of internal, customer.
/v1/commentscurl -X POST https://api.fleetbase.io/v1/comments \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"content": "Example comment",
"subject": {
"id": "{{file_id}}",
"type": "file"
}
}'/v1/comments/:idUpdate Comment
Updates the content of an existing comment. The subject and parent linkage are not changed by this endpoint.
contentstringrequiredUpdated comment body.
/v1/comments/:idcurl -X PUT https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"content": "Updated comment"
}'/v1/commentsQuery Comments
Returns comments for the current organization. Use query parameters to filter, sort, and paginate the result set. Internal comments (visibility internal) and internal replies are left out. Requires Core API with fleetbase/core-api#306 (release v1.6.69).
limitstringoptionalLimit value for this comments request.
offsetstringoptionalOffset value for this comments request.
sortstringoptionalSort value for this comments request.
/v1/commentscurl https://api.fleetbase.io/v1/comments?limit=25&offset=0&sort=created_at \
-H "Authorization: Bearer flb_live_…"/v1/comments/:idRetrieve Comment
Retrieves a comment by ID, including its author and any nested replies returned by the API resource. An internal comment returns 404 (Comment resource not found.), and internal replies are left out. Requires Core API with fleetbase/core-api#306 (release v1.6.69).
/v1/comments/:idcurl https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…"/v1/comments/:idDelete Comment
Deletes a comment by ID. The response returns a deleted-resource envelope for the removed comment.
/v1/comments/:idcurl -X DELETE https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…"