An API key is required for requests to be processed by the system. Once a user registers, an API key is automatically generated for this user. The API key must be sent with each request. If the API key is not sent or is expired, there will be an error.
Base URL
https://minzo.link/usethisapi
Authentication
Bearer
Format
JSON
Rate Limit
30/1 min
Endpoints
44
Getting Started
Authentication
To authenticate with the API system, you need to send your API key as an authorization token with each request. You can see sample code below.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/account");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Rate Limit
Our API has a rate limiter to safeguard against spike in requests to maximize its stability. Our rate limiter is currently caped at 30 requests per 1 minute. Please note that the rate might change according to the subscribed plan.
Several headers will be sent alongside the response and these can be examined to determine various information about the request.
The limit counts the requests of every key of an account together. Once it is reached, the API answers with HTTP status 429 and a Retry-After header that gives the seconds to wait.
HTTP 429
Retry-After: SECONDS
{
"error": 429,
"message": "Too Many API Requests.",
"Retry-After": SECONDS
}
Response Handling
All API response are returned in JSON format by default. To convert this into usable data, the appropriate function will need to be used according to the language. In PHP, the function json_decode() can be used to convert the data to either an object (default) or an array (set the second parameter to true). It is very important to check the error key as that provides information on whether there was an error or not. You can also check the header code.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/account");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/bios?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/domains?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
To update a branded domain, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/domain/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Domain has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/overlay?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/campaigns?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/campaign/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
"name": "New Campaign",
"slug": "new-campaign",
"public": true
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/campaign/:campaignid/assign/:linkid");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Link successfully added to the campaign."
}
To update a campaign, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/campaign/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Campaign has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/channels?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/channel/:id?limit=1&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/channel/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
"name": "New Channel",
"description": "my new channel",
"color": "#000000",
"starred": true
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"id": 3,
"name": "New Channel",
"description": "my new channel",
"color": "#000000",
"starred": true
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/channel/:channelid/assign/:type/:itemid");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Item successfully added to the channel."
}
To update a channel, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/channel/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Channel has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/splash?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/api/files?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Upload a file by sending the binary data as the post body. You need to send the file name including the extension instead of :filename in the url (e.g. brandkit.zip). You can set options by sending the following parameters.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/api/files/upload/:filename?name=My+File");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent(""BINARY DATA"", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
To get your links via the API, you can use this endpoint. You can also filter data (See table for more info).
ParameterDescription
limitoptional
Per page data result
pageoptional
Current page request
orderoptional
Sort data between date or click
shortoptional
Search using the short url. Note that when you use the short parameter, all other parameters are ignored and if there is a match a Single Link response will be returned.
qoptional
Search for links using a keyword
campaignoptional
Only return links in this campaign ID
channeloptional
Only return links in this channel ID
idsoptional
Only return these link IDs, separated by commas (up to 100)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/urls?limit=2&page=1&order=date");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/url/:id");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
To shorten a link, you need to send a valid data in JSON via a POST request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
ParameterDescription
urlrequired
Long URL to shorten.
customoptional
Custom alias instead of random alias, from 3 to 50 characters.
typeoptional
Redirection type [direct, frame, splash], only id for custom splash page or overlay-id for cta pages
passwordoptional
Password protection
domainoptional
Custom Domain
expiryoptional
Expiration for the link example 2021-09-28 23:11:16
geotargetoptional
Geo targeting data. Each rule has a country (location) and a link, plus an optional state or city in English. A city rule wins over a state rule, which wins over the country.
devicetargetoptional
Device targeting data
languagetargetoptional
Language targeting data
metatitleoptional
Meta title
metadescriptionoptional
Meta description
metaimageoptional
Link to a jpg or png image
descriptionoptional
Note or description
pixelsoptional
Array of pixel ids
channeloptional
Channel ID
campaignoptional
Campaign ID
deeplinkoptional
Object containing app store links. When using this, it is important to set device targeting as well. (New) You can now set the parameter "auto" to true to automatically generate the deep links from provided long link.
To update a link, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info). Only the fields you send are changed: every field you leave out keeps its current value. Send an empty value to clear a field such as expiry or description.
ParameterDescription
urloptional
New long URL. Leave it out to keep the current destination.
descriptionoptional
Link description
customoptional
Custom alias instead of random alias, from 3 to 50 characters.
typeoptional
Redirection type [direct, frame, splash]
passwordoptional
Password protection
domainoptional
Custom Domain
expiryoptional
Expiration for the link example 2021-09-28 23:11:16
geotargetoptional
Geo targeting data. Each rule has a country (location) and a link, plus an optional state or city in English. A city rule wins over a state rule, which wins over the country.
devicetargetoptional
Device targeting data
languagetargetoptional
Language targeting data
metatitleoptional
Meta title
metadescriptionoptional
Meta description
metaimageoptional
Link to a jpg or png image
pixelsoptional
Array of pixel ids
channeloptional
Channel ID
campaignoptional
Campaign ID
deeplinkoptional
Object containing app store links. When using this, it is important to set device targeting as well.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/url/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Link has been deleted successfully"
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/monitors?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
A monitor can be created using this endpoint. The URL is checked automatically every few minutes and you will be notified by email if it goes down or comes back up.
ParameterDescription
namerequired
A name to identify this monitor
urlrequired
The URL to monitor, must start with http:// or https://
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/monitor/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Monitor has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/pixels?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/pixel/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
"type": "gtmpixel",
"name": "My GTM",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"id": 1
}
Update Pixel
PUThttps://minzo.link/usethisapi/pixel/:id/update
To update a pixel, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://minzo.link/usethisapi/pixel/:id/update");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
"name": "My GTM",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Pixel has been updated successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/pixel/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Pixel has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/qr?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/qr/:id");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
To create a QR Code, you need to send a valid data in JSON via a POST request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
ParameterDescription
typerequired
text | vcard | link | email | phone | sms | wifi
datarequired
Data to be embedded inside the QR code. The data can be string or array depending on the type
To update a QR Code, you need to send a valid data in JSON via a PUT request. The data must be sent as the raw body of your request as shown below. The example below shows all the parameters you can send but you are not required to send all (See table for more info).
ParameterDescription
datarequired
Data to be embedded inside the QR code. The data can be string or array depending on the type
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/qr/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "QR Code has been deleted successfully."
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/surveys?limit=2&page=1");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://minzo.link/usethisapi/survey/:id");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"details": {
"id": 1,
"title": "Customer Satisfaction",
"alias": "customer-satisfaction",
"description": "Tell us how we are doing",
"status": 1,
"questions": [
{
"id": "a1b2c3d4",
"type": "rating",
"label": "How would you rate your experience?",
"options": [],
"required": false
}
],
"responses": 24,
"date": "2020-11-10 18:00:00"
}
}
Create a Survey
POSThttps://minzo.link/usethisapi/survey/add
To create a survey, you need to send a valid data in JSON via a POST request. A starter question is added automatically, you can add more questions later from your dashboard.
ParameterDescription
titlerequired
Title for your survey
descriptionoptional
A short description shown to respondents
curl --location --request POST 'https://minzo.link/usethisapi/survey/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "Customer Satisfaction",
"description": "Tell us how we are doing"
}'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://minzo.link/usethisapi/survey/add',
'headers': {
'Authorization': 'Bearer YOURAPIKEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"title": "Customer Satisfaction",
"description": "Tell us how we are doing"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
import requests
url = "https://minzo.link/usethisapi/survey/add"
payload = {
"title": "Customer Satisfaction",
"description": "Tell us how we are doing"
}
headers = {
'Authorization': 'Bearer YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://minzo.link/usethisapi/survey/add");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{
"title": "Customer Satisfaction",
"description": "Tell us how we are doing"
}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
To update a survey title, description or status, you need to send a valid data in JSON via a PUT request. You are not required to send all the parameters (See table for more info).
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://minzo.link/usethisapi/survey/:id/delete");
request.Headers.Add("Authorization", "Bearer YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Server response
{
"error": 0,
"message": "Survey has been deleted successfully."
}