Create a new thread for continuous messaging
cURL
curl --request POST \ --url https://itz.am/api/v1/threads \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "My Thread", "lookupKeys": [ "user-123", "platform-web-app" ], "contextSlugs": [ "special-docs", "admin-files" ], "workflowSlug": "my_great_workflow" }'
{ "id": "thread_1234567890", "name": "My Thread", "lookupKeys": [ "user-123", "platform-web-app" ], "contextSlugs": [ "special-docs", "admin-files" ], "createdAt": "2021-01-01T00:00:00.000Z", "updatedAt": "2021-01-01T00:00:00.000Z" }
The API key to use for authentication
Successfully created thread
The response is of type object.
object