API referenceComment
Create Comment
Create a team comment on a booking, customer, or stock item. Parses @mentions from the body and notifies mentioned users and previous thread participants. App connections need the booking:write or inventory:write scope.
POST
/commentcurl -X POST "https://dash.lockii.app/api/v1/comment" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"body": "string"
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
application/json
idstringrequiredComment ID, usually comment_<uuid>
bodystringrequiredComment text. Use @Name syntax for @mentions.
orderIDstringBooking/order ID. Provide orderID, customerID, or stockID.
customerIDstringCustomer ID. Provide orderID, customerID, or stockID.
stockIDstringStock item ID. Provide orderID, customerID, or stockID.
companyIDstringCompany ID. Defaults to the authenticated user's company.
createdAtnumberUnix ms. Defaults to now.
updatedAtnumberUnix ms. Defaults to now.
Response
application/json
JSON result for this operation.
object
{}