Creates a new group object. Text.lk – SMS Gateway Sri Lanka returns the created group object with each request.
API Endpoint #
https://app.text.lk/api/v3/contacts
HTTPParameters #
Parameter | Required | Type | Description |
---|---|---|---|
name | Yes | string | The name of the group |
Example Request #
curl -X POST https://app.text.lk/api/v3/contacts \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"SenderID"}'
HTTPExample Response #
Returns a contact object if the request is successful.
{
"status": "success",
"data": "group 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