Fetch contacts by phonebook ID
Endpoint:https://BASE_URL/api/phonebooks/{phonebook_id}/contacts?api_key=YourAPIKey
Request Type: GET
Add single contacts to phonebook
Endpoint:https://BASE_URL/api/phonebooks/{phonebook_id}/contacts
Request Type: POST
Body params:
| Options | Required | Description |
|---|---|---|
| api_key | yes | string Your API key (It can be found on your Termii dashboard) |
| phone_number | yes | string Phone number of the contact |
| country_code | no | string Represents short numeric geographical codes developed to represent countries ( Example: 234 ). |
| email_address | no | string email address of the contact |
| first_name | yes | string first name of the contact |
| last_name | yes | string last name of the contact |
| company | yes | string name of the company of the contact |
Add multiple contacts to phonebook
Endpoint:https://BASE_URL/api/phonebooks/contacts/upload
Request Type: POST
Content-Type for “contact” should be “application/json”. Content-Type in headers should be auto generated as multipart/form-data
| Options | Required | Description |
|---|---|---|
| api_key | yes | string Your API key (It can be found on your Termii dashboard) |
| file | yes | string sample csv file containing phone numbers. |
| country_code | no | string Represents short numeric geographical codes developed to represent countries ( Example: 234 ). |
| pid | yes | string Phonebook ID |
Delete contact
Endpoint:https://BASE_URL/api/phonebook/contacts/delete/contact_id?api_key=YourAPIKey
Request Type: DELETE
Response