Sending an inbound message on behalf of a customer

fetch('https://api.belco.io/v1/conversations/sendMessage', {
  method: 'POST',
  headers: {
    'authorization': 'Bearer <accessToken>',
    'content-type': 'application/json' 
  }
  contentType: 'json',
  body: JSON.stringify({
    "shopId": "QCKysMML2DRfxW37G",
    "channel": "email",
    "type": "inbound-message",
    "body": "Hi",
    "from": {
      "type": "customer",
      "email": "[email protected]",
  		"firstName": "Eelco",
  		"lastName": "Wiersma"
    },
    "subject": "Question about product x",
    "tags": ["Sales"]
  })
})
Language
Authorization
Header
Click Try It! to start a request and see the response here!