Unsubscribe a subscriber

Unsubscribe. Subscriber can still be fetched with a message or by SID. Due to billing reasons, it is not possible to delete a subscriber from the system.

Resource URL:

DELETE https://api.essential.to/v2/account/subscribers/{sid}

Resource information:

Response formatJSON
Requires authentication?Yes

Sample code:

curl -X DELETE \
     -u '[SID]:[TOKEN]' \
     'https://api.essential.to/v2/account/subscribers/sub_p03Gjl8Uzn0RkZSpHXHnrw'

# Sample response
{
  "phone_number": "5555555555",
  "status": "unsubscribed",
  "subscribed_at": null,
  "unsubscribed_at": "2017-01-25T23:06:31.311Z",
  "created_at": "2017-01-24T22:52:16.000Z",
  "updated_at": "2017-01-25T23:06:31.314Z",
  "carrier": "Unknown",
  "carrier_updated_at": "2017-01-24T22:52:16.000Z",
  "added_to_inbox_at": null,
  "facebook_id": null,
  "sid": "tRhvpNDGZwyDeH-YRZIr9A",
  "account_sid": "p03Gjl8Uzn0RkZSpHXHnrw",
  "channel_sid": "p03Gjl8Uzn0RkZSpHXHnrw",
  "transport_sid": "p03Gjl8Uzn0RkZSpHXHnrw"
}
Python coming soon.
Node coming soon.