Skip to content

M14 - Create a thread with a seller

Request

Description

Create a thread with a seller and send a first message

Call Frequency
Maximum usage: Synchronous only - At each thread answer
Read More
Security
Operator-Bearer-Token or OAuth-2
Bodymultipart/form-data
filesArray of strings, (binary)

List of attachments for the message
Maximum 1000 across all threads of the same entity.
For example, for a given seller, you can not have more than 1000 attachments across all its threads.

thread_inputobjectrequired

Message and thread data

curl -i -X POST \
  https://your-instance.mirakl.net/api/inbox/threads \
  -H 'Content-Type: multipart/form-data' \
  -F 'files=@path/to/file' \
  -F 'thread_input="{\"body\":\"string\",\"entity\":{\"id\":\"string\",\"type\":\"string\"},\"topic\":{\"type\":\"FREE_TEXT\",\"value\":\"string\"}}";type=application/json'

Responses

Created

Bodyapplication/json
message_idstring

Id of the message

thread_idstring

Id of the thread

Response
{ "message_id": "873f1cb5-a7a2-4e07-8e0e-12eb64e93ece", "thread_id": "702c3e56-dcca-41e2-b6bd-72ba3fa809be" }