Skip to content

Conversation

This endpoint returns a conversation object.

GET https://sandbox.reggora.io/lender/conversation/<conversation_id>

ParameterDescription
conversation_idThe ID of the Conversation.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/conversation/<conversation_id>', headers=headers)
{
"data": {
"conversation": {
"id": "5c4f16764672bb00105ea5f9",
"messages": [{
"id": "5c4f16764672bb00105ea5f9",
"message": "Hey this is a message",
"sender": {
"id": "5c4f16764672bb00105ea5f9",
"name": "John Smith"
},
"sent_time": "2018-04-19T15:02:02.157Z"
}]
}
},
"status": 200
}

This endpoint sends a message.

POST https://sandbox.reggora.io/lender/conversation/<conversation_id>

ParameterDescription
conversation_idThe ID of the Conversation.
ParameterDescriptionRequired
messageThe message you would like to sendTrue
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.post('https://sandbox.reggora.io/lender/conversation/<conversation_id>',
json={'message': 'Hi there!'}, headers=headers)
{
"data": "5c4f16764672bb00105ea5f9",
"status": 200
}