The base url is:
https://rebuetext.com/api/v1
| Method | URI |
|---|---|
| POST | /address-book/contacts/add |
| Param | Type | Description |
|---|---|---|
| phone | string(required) |
Contact Phone Number |
| first_name | string(optional) |
Contact First Name |
| last_name | string(optional) |
Contact Last Name |
string(optional) |
Contact Email Address | |
| field_1 | string(optional) |
Custom Value 1 |
| field_2 | string(optional) |
Custom Value 2 |
| field_3 | string(optional) |
Custom Value 3 |
{
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "0738361788",
"field_1": "Custom Value 1",
"field_2": "Custom Value 2",
"field_3": "Custom Value 3"
}
StatusCode 200
Content
{
"status": true,
"message": "Contact added successfully",
"data": {
"id": 1,
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "254738361788",
"operator": "Airtel",
"custom_fields": {
"field_1": "Custom Value 1",
"field_2": "Custom Value 2",
"field_3": "Custom Value 3"
},
"created_at": "2024-11-22 23:49:40"
}
}
StatusCode 409
Reason Conflict. The request conflicts with the current state of the server. So, it could not be processed.
Content
{
"status": false,
"message": "Contact with this phone number 254738361788 already exists.",
"data": {
"id": 1,
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "254738361788",
"operator": "airtel",
"custom_fields": {
"field_1": "Custom Value 1",
"field_2": "Custom Value 2",
"field_3": "Custom Value 3"
},
"created_at": "2024-11-22 23:49:40"
}
}
| Method | URI |
|---|---|
| DELETE | /address-book/contacts/delete/{contact_id} |
{info} Replace {contact_id} with the id that was received when creating the contact
StatusCode 200
Content
{
"status": true,
"message": "Contact deleted successfully."
}
| Method | URI |
|---|---|
| POST | /address-book/groups |
| Param | Type | Description |
|---|---|---|
| name | string(required) |
Name of the Group |
{
"name": "Group 1"
}
StatusCode 200
Content
{
"status": true,
"message": "Group added successfully",
"data": {
"id": 1,
"name": "Group 1",
"created_by": 2,
"created_at": "2024-11-23 11:47:53"
}
}
StatusCode 409
Reason Conflict. The request conflicts with the current state of the server. So, it could not be processed.
Content
{
"status": false,
"message": "Group with this name Group 1 already exists.",
"data": {
"id": 1,
"name": "Group 1",
"created_at": "2024-11-23 11:47:53"
}
}
| Method | URI |
|---|---|
| DELETE | /address-book/groups/delete/{group_id} |
{info} Replace {group_id} with the id that was received when creating the group
StatusCode 200
Content
{
"status": true,
"message": "Group deleted successfully."
}
StatusCode 404
Content
{
"status": false,
"message": "Group not found or does not belong to this account."
}