Conversation
Get Conversation by ID
Section titled “Get Conversation by ID”This endpoint returns a conversation object.
HTTP Request
Section titled “HTTP Request”GET https://sandbox.reggora.io/lender/conversation/<conversation_id>
URL Parameters
Section titled “URL Parameters”| Parameter | Description |
|---|---|
| conversation_id | The ID of the Conversation. |
Example Request
Section titled “Example Request”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)Example Response
Section titled “Example Response”{ "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}Lender Send Message
Section titled “Lender Send Message”This endpoint sends a message.
HTTP Request
Section titled “HTTP Request”POST https://sandbox.reggora.io/lender/conversation/<conversation_id>
URL Parameters
Section titled “URL Parameters”| Parameter | Description |
|---|---|
| conversation_id | The ID of the Conversation. |
Request Body Parameters
Section titled “Request Body Parameters”| Parameter | Description | Required |
|---|---|---|
| message | The message you would like to send | True |
Example Request
Section titled “Example Request”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)Example Response
Section titled “Example Response”{ "data": "5c4f16764672bb00105ea5f9", "status": 200}