• Quick Start
  • Send Survey
  • Get Contact
  • Remove Contact
  • Delete Contact (GDPR)
  • Get Unsubscribed
  • Get Responses
  • Get NPS
  • Sent Statistics
  • Historical Stats
  • Deactivate All
  • Bulk Add with CSV
  • Inapp Surveys
  • Bulk Add/Send

Change Log

  • Changes

Deactivate all Contacts

Use the Deactivate All API to deactivate all contacts in your AskNicely account.

  • All active contacts in AskNicely will be deactivated
  • Deactivated contacts can be reactivated later (no data will be lost)
  • Deactivated contacts are no longer eligible to receive any surveys

API Endpoint

Make a POST request to https://DEMO.asknice.ly/api/v1/contacts/deactivateall. The request will respond with a redirect until all contacts are deleted. Make sure your API client is configured to follow redirects.

Example POST Request

Deactivate everyone in your account.
curl --location --max-redirs 50 --header "X-apikey: " https://DEMO.asknicely.site/api/v1/contacts/deactivateall

Redirects

307 (Temporary Redirect)

The API will return 307 until all contacts are deactivated.

Success

All contacts deactivated

{"success":true,"msg":"Deactivated 121 contacts"}