POST
/
api
/
v1
/
threads
curl --request POST \
  --url https://itz.am/api/v1/threads \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Thread",
  "lookupKey": "user-123-session",
  "workflowSlug": "my_great_workflow"
}'
{
  "id": "thread_1234567890",
  "name": "My Thread",
  "lookupKey": "user-123-session",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z"
}

Authorizations

Api-Key
string
header
required

The API key to use for authentication

Body

application/json

Response

200
application/json

Successfully created thread

The response is of type object.