v1

latestOpenAPI 3.0.12026-07-24116117186.3 KB
Apps

Mute application tokens

The method mutes notifications to Telegram users having tokens. <a href="https://docs.esputnik.com/docs/muting-or-unmuting-telegram-notifications-for-users#muting-notifications">Read more.</a>

post/api/v1/apps/{app_uuid}/token/mute

Path parameters

app_uuidstring required

Application ID

Request body

tokenstring required

Application token.

durationinteger

Mute duration in seconds. If not set, notifications are muted permanently.<br><ul><li>Minimum value: 5</li><li>Maximum value: 31,536,000 (approximately 1 year)</li></ul>

Example request

{
  "token": "8256374910:BBGHQOp2J_Fk7mZyw34ty660nmHs5d7JKLP",
  "duration": 5
}

Response

OK