Gates API- en
This API allows you to edit a single message and delete groups of messages within a specific contact gateway.
Editing a message.
Allows you to edit the selected message.
PUT https://api.smartsender.com/v1/gates/{gateId}/messages
URL parameters:
Name | Description |
---|---|
gateId | Gateway ID |
Main parameters:
Name | Description | Validation |
---|---|---|
text | Message text to which the message should be changed | String |
messageId | Sent message ID | Integer |
If the response is successful, you will receive the following:
{
"state": true
}
Deleting messages.
Allows you to delete a specific group of messages.
DELETE https://api.smartsender.com/v1/gates/{gateId}/messages
URL parameters:
Name | Description |
---|---|
gateId | Идентификатор шлюза |
Main parameters:
Name | Description | Validation |
---|---|---|
messageIds | List of sent message IDs | Array<int> |
If the response is successful, you will receive the following:
Creation.
Use Channels API (gateway creation). To do this you need a channel ID.