- 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
Remove a Contact
This will set a contact to in-active, the contact will not be deleted from AskNicely, add a contact to re-activate them
API Endpoint
Make a GET request to
search
/key
Arguments
Argument | Example | Required | Description |
---|---|---|---|
search |
schrodinger%40example.com |
Required | URL-escaped value to search, eg email address of a contact |
key |
email |
Required | By default this is email, but you could search by any value eg a customer property set via the API |
Example GET request
Remove by emailcurl --header "X-apikey: " \ https://DEMO.asknice.ly/api/v1/contact/remove/schrodinger%40example.com/emailRemove by id
curl --header "X-apikey: " \ https://DEMO.asknice.ly/api/v1/contact/remove/your_id/id
Response
{ "success":true, "msg":"removed", "data":{ "id":"15816", "lastemailed":"1452219376", "active":"1", "created":"1418350105", "scheduled":"0", "name":"John Ballinger", "email":"john@asknice.ly", "segment":"VIP Customer", "importedattime":"1450653162", "source":"intercom", "intercomid":"548a4e19bcdac3592e0019b7", "unsubscribetime":null } }