Skip to main content
Thread events let you record something that happened in your own product against one specific thread, so it appears in that thread’s timeline only.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
A thread event will only be created in the thread ID provided. If you want an event to appear in all threads for a customer please use a customer event.
To create a thread event you need a thread ID. You can get this by creating a thread in Plain, from data in webhooks or other API calls you made. If you want to test this, press + K on any thread and then “Copy thread ID” to get an ID you can experiment with. In this example we’ll be creating the following event:
Example event
For this you’ll need an API key with the following permissions:
  • threadEvent:create
  • threadEvent:read