Creates a new contact object. Text.lk – SMS Gateway Sri lanka returns the created contact object with each request.
API Endpoint #
https://app.text.lk/api/v3/contacts/{group_id}/store
HTTPParameters #
Parameter | Required | Type | Description |
group_id | Yes | string | Contact Groups uid |
PHONE | Yes | number | The phone number of the contact. |
OTHER_FIELDS | No | string | All Contact’s other fields: FIRST_NAME (?), LAST_NAME (?),… (depending on the contact group fields configuration) |
Example request #
Returns #
Returns a contact object if the request is successful.
{
"status": "success",
"data": "contacts data with all details",
}
HTTPIf the request fails, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTP