Specific API Endpoints
Create Thread
Create a new thread in Melodi.
POST
/
threads
Body
application/json
externalId
string | null
projectId
number
requiredprojectName
string | null
messages
object[]
requiredmetadata
object
externalUser
any
Response
201 - application/json
id
number | null
Unique identifier for the thread
externalId
string | null
External thread ID
organizationId
number
ID of the organization to which the thread belongs
projectId
number | null
requiredID of the project to which the thread belongs
projectName
string | null
Name of the project to which the thread belongs
messages
object[]
requiredArray of messages associated with the thread
externalUser
any
metadata
object
Metadata associated with the thread
createdAt
string
Date when the thread was created
updatedAt
string
Date when the thread was last updated