How can I create a customer timeline comment via Admin API (CommentEvent)?

Hi!
I’m trying to add a comment to a customer’s timeline programmatically. I see the CommentEvent object in the Admin GraphQL API docs, and I can query existing timeline comments, but I can’t find any mutation (like commentEventCreate) to create a new timeline comment.

Does Shopify currently allow apps to create timeline comments for customers (or orders) through the Admin API?
If so, which mutation should I use?
If not, is this feature planned?

Thank you!

There is no timeline api for this to do this through the shopify api.

For api development discussion and possible feature requests use the developer forums

Hey pal @vikaskheni !

No, it is currently not possible to create CommentEvent objects (Timeline comments) via the Admin API (GraphQL or REST) for Customers or Orders.

Shopify treats the internal Timeline as a protected space for staff-to-staff communication. The CommentEvent object in the API is strictly read-only. Shopify has kept this write-access locked for years to prevent apps from spamming the timeline or impersonating staff members.

The only native field you can write to is the Customer Note. While it doesn’t look like a threaded timeline comment, it is visible on the Customer page.

Mutation to use: customerUpdate

Field: note (Be careful: this overwrites the existing note, so you must query the current note, append your new text with a line break, and then send the update).