Proto's API Reference

Financial service providers in Rwanda that have a complaints management system (CMS) are required to integrate their CMS with the National Bank of Rwanda's via API. This document will show you how to use Proto's RESTful APIs so all complaints received or updated on your CMS will sync with NBR's inside Proto.

Authentication

The first step will be accessing the Proto platform with your Observer account and creating a Personal Access Token (PAT) by following the steps below:

  1. Log in to your Proto Observer account. In the top-right corner, click on the avatar.
  2. Select "Profile".
3024
  1. On the horizontal menu, select "API".
  2. If you never created a PAT before, click "Issue new token".
3024
  1. Copy and save the token somewhere safe.

❗️

Caution

Anyone with this token could gain access to your account.

To use the RESTful APIs, authenticate it with your PAT by passing it in X-SINITIC-TOKEN header.

Cases

A case is a complaint lodged by the consumer from the NBR chatbot. All cases created are stored in Track inside the Proto platform, under the case group "NBR - Consumer Complaints". The team case will be used in this document, meaning a complaint.

3024

They are 2 types of consumers supported in Proto's case.

  1. Complainant: If the end-user that requests to create the case is the complainant him/herself
  2. Representative: If the end user that requests to create the case is representing someone to lodge a complaint

Create a Case

The following are the APIs required for creating a case:

  1. Create a PERSON ID for the complainant/respondent

POST Endpoint:
Coming soon

Request Headers
Coming soon

Request Body
Coming soon

Sample Request
Coming soon

Sample Response

If the request is successful, you will receive a personid from the response result. You will use this id in the next API to create a case.

  1. Create a case with the PERSON ID created.

POST Endpoint:
Coming soon

Request Headers
Coming soon

Request Body
Coming soon

Status Code Properties

StatusValue
New0
Open1
Resolved2
Closed3
Overdue4

Sample Request
Coming soon

Sample Response

If the request is successful, you will receive a case id from the response result. You will use this id to update the case details such as the case status.

📘

Note

Please get the casem_id, institute_id, category_id and custom_attrs from your CX Manager.

Update a Case

The following API allows you to update the case details such as the case Status:

PATCH Endpoint:
Coming soon

Request Header
Coming soon

Request Body
Coming soon

Sample Request
Coming soon

Sample Response
Coming soon

The following API allows you to add an Internal Note to the case:

POST Endpoint:
Coming soon

Request Header
Coming soon

Request Body
Coming soon

Sample Request
Coming soon

Sample Response
Coming soon