DEVELOPER API

API Reference

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.

curl --location --request POST 'https://minzo.link/usethisapi/account' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \ 

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.

Headers
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 29
X-RateLimit-Reset: TIMESTAMP

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.

JSON
{
    "error": 1,
    "message": "An error occurred"
}

Account

Account

GET https://minzo.link/usethisapi/account

To get information on the account, you can send a request to this endpoint and it will return data on the account.

curl --location --request GET 'https://minzo.link/usethisapi/account' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "data": {
        "id": 1,
        "email": "sample@domain.com",
        "username": "sampleuser",
        "avatar": "https:\/\/domain.com\/content\/avatar.png",
        "status": "pro",
        "expires": "2022-11-15 15:00:00",
        "registered": "2020-11-10 18:01:43",
        "usage": {
            "links": {
                "used": 12,
                "limit": 100,
                "monthly": true
            }
        }
    }
}

Update Account

PUT https://minzo.link/usethisapi/account/update

To update information on the account, you can send a request to this endpoint and it will update data on the account.

curl --location --request PUT 'https://minzo.link/usethisapi/account/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "newemail@google.com",
    "password": "newpassword"
}'
Server response
{
    "error": 0,
    "message": "Account has been successfully updated."
}

Bio Pages

List Bio Pages

GET https://minzo.link/usethisapi/bios?limit=2&page=1

To get your bio pages via the API, you can use this endpoint.

ParameterDescription
limitoptional
Per page data result
pageoptional
Current page request
curl --location --request GET 'https://minzo.link/usethisapi/bios?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "data": {
        "bios": [
            {
                "id": 1,
                "name": "My Page",
                "alias": "mypage",
                "url": "https:\/\/minzo.link\/mypage",
                "avatar": "https:\/\/minzo.link\/content\/profiles\/avatar.png",
                "views": 10,
                "editurl": "https:\/\/minzo.link\/user\/bio\/1\/edit"
            }
        ],
        "total": 1,
        "page": 1
    }
}

Branded Domains

List Branded Domains

GET https://minzo.link/usethisapi/domains?limit=2&page=1

To get your branded domains 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
curl --location --request GET 'https://minzo.link/usethisapi/domains?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "domains": [
            {
                "id": 1,
                "domain": "https:\/\/domain1.com",
                "redirectroot": "https:\/\/rootdomain.com",
                "redirect404": "https:\/\/rootdomain.com\/404"
            },
            {
                "id": 2,
                "domain": "https:\/\/domain2.com",
                "redirectroot": "https:\/\/rootdomain2.com",
                "redirect404": "https:\/\/rootdomain2.com\/404"
            }
        ]
    }
}

Create a Branded Domain

POST https://minzo.link/usethisapi/domain/add

A domain can be added using this endpoint. Please make sure the domain is correctly pointed to our server.

ParameterDescription
domainrequired
Branded domain including http or https
redirectrootoptional
Root redirect when someone visits your domain
redirect404optional
Custom 404 redirect
curl --location --request POST 'https://minzo.link/usethisapi/domain/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "domain": "https:\/\/domain1.com",
    "redirectroot": "https:\/\/rootdomain.com",
    "redirect404": "https:\/\/rootdomain.com\/404"
}'
Server response
{
    "error": 0,
    "id": 1
}

Update Domain

PUT https://minzo.link/usethisapi/domain/:id/update

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).

ParameterDescription
redirectrootoptional
Root redirect when someone visits your domain
redirect404optional
Custom 404 redirect
curl --location --request PUT 'https://minzo.link/usethisapi/domain/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "redirectroot": "https:\/\/rootdomain-new.com",
    "redirect404": "https:\/\/rootdomain-new.com\/404"
}'
Server response
{
    "error": 0,
    "message": "Domain has been updated successfully."
}

Delete Domain

DELETE https://minzo.link/usethisapi/domain/:id/delete

To delete a domain, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/domain/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Domain has been deleted successfully."
}

CTA Overlays

List CTA Overlays

GET https://minzo.link/usethisapi/overlay?limit=2&page=1

To get cta overlays 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
curl --location --request GET 'https://minzo.link/usethisapi/overlay?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "cta": [
            {
                "id": 1,
                "type": "message",
                "name": "Product 1 Promo",
                "date": "2020-11-10 18:00:00"
            },
            {
                "id": 2,
                "type": "contact",
                "name": "Contact Page",
                "date": "2020-11-10 18:10:00"
            }
        ]
    }
}

Campaigns

List Campaigns

GET https://minzo.link/usethisapi/campaigns?limit=2&page=1

To get your campaigns 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
curl --location --request GET 'https://minzo.link/usethisapi/campaigns?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "campaigns": [
            {
                "id": 1,
                "name": "Sample Campaign",
                "public": false,
                "rotator": false,
                "list": "https:\/\/domain.com\/u\/admin\/list-1"
            },
            {
                "id": 2,
                "domain": "Facebook Campaign",
                "public": true,
                "rotator": "https:\/\/domain.com\/r\/test",
                "list": "https:\/\/domain.com\/u\/admin\/test-2"
            }
        ]
    }
}

Create a Campaign

POST https://minzo.link/usethisapi/campaign/add

A campaign can be added using this endpoint.

ParameterDescription
nameoptional
Campaign name
slugoptional
Rotator Slug
publicoptional
Access
curl --location --request POST 'https://minzo.link/usethisapi/campaign/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "New Campaign",
    "slug": "new-campaign",
    "public": true
}'
Server response
{
    "error": 0,
    "id": 3,
    "domain": "New Campaign",
    "public": true,
    "rotator": "https:\/\/domain.com\/r\/new-campaign",
    "list": "https:\/\/domain.com\/u\/admin\/new-campaign-3"
}
POST https://minzo.link/usethisapi/campaign/:campaignid/assign/:linkid

A short link can be assigned to a campaign using this endpoint. The endpoint requires the campaign ID and the short link ID.

curl --location --request POST 'https://minzo.link/usethisapi/campaign/:campaignid/assign/:linkid' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Link successfully added to the campaign."
}

Update Campaign

PUT https://minzo.link/usethisapi/campaign/:id/update

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).

ParameterDescription
namerequired
Campaign name
slugoptional
Rotator Slug
publicoptional
Access
curl --location --request PUT 'https://minzo.link/usethisapi/campaign/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Twitter Campaign",
    "slug": "twitter-campaign",
    "public": true
}'
Server response
{
    "error": 0,
    "id": 3,
    "domain": "Twitter Campaign",
    "public": true,
    "rotator": "https:\/\/domain.com\/r\/twitter-campaign",
    "list": "https:\/\/domain.com\/u\/admin\/twitter-campaign-3"
}

Delete Campaign

DELETE https://minzo.link/usethisapi/campaign/:id/delete

To delete a campaign, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/campaign/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Campaign has been deleted successfully."
}

Channels

List Channels

GET https://minzo.link/usethisapi/channels?limit=2&page=1

To get your channels 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
curl --location --request GET 'https://minzo.link/usethisapi/channels?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "channels": [
            {
                "id": 1,
                "name": "Channel 1",
                "description": "Description of channel 1",
                "color": "#000000",
                "starred": true
            },
            {
                "id": 2,
                "name": "Channel 2",
                "description": "Description of channel 2",
                "color": "#FF0000",
                "starred": false
            }
        ]
    }
}

List Channel Items

GET https://minzo.link/usethisapi/channel/:id?limit=1&page=1

To get items in a select channels 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
curl --location --request GET 'https://minzo.link/usethisapi/channel/:id?limit=1&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "items": [
            {
                "type": "links",
                "id": 1,
                "title": "My Sample Link",
                "preview": "https:\/\/google.com",
                "link": "https:\/\/minzo.link\/google",
                "date": "2022-05-12"
            },
            {
                "type": "bio",
                "id": 1,
                "title": "My Sample Bio",
                "preview": "https:\/\/minzo.link\/mybio",
                "link": "https:\/\/minzo.link\/mybio",
                "date": "2022-06-01"
            }
        ]
    }
}

Create a Channel

POST https://minzo.link/usethisapi/channel/add

A channel can be added using this endpoint.

ParameterDescription
namerequired
Channel name
descriptionoptional
Channel description
coloroptional
Channel badge color (HEX)
starredoptional
Star the channel or not (true or false)
curl --location --request POST 'https://minzo.link/usethisapi/channel/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}'
Server response
{
    "error": 0,
    "id": 3,
    "name": "New Channel",
    "description": "my new channel",
    "color": "#000000",
    "starred": true
}

Assign an Item to a Channel

POST https://minzo.link/usethisapi/channel/:channelid/assign/:type/:itemid

An item can be assigned to any channel by sending a request with the channel id, item type (links, bio or qr) and item id.

ParameterDescription
:channelidrequired
Channel ID
:typerequired
links or bio or qr
:itemidrequired
Item ID
curl --location --request POST 'https://minzo.link/usethisapi/channel/:channelid/assign/:type/:itemid' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Item successfully added to the channel."
}

Update Channel

PUT https://minzo.link/usethisapi/channel/:id/update

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).

ParameterDescription
nameoptional
Channel name
descriptionoptional
Channel description
coloroptional
Channel badge color (HEX)
starredoptional
Star the channel or not (true or false)
curl --location --request PUT 'https://minzo.link/usethisapi/channel/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Acme Corp",
    "description": "channel for items for Acme Corp",
    "color": "#FFFFFF",
    "starred": false
}'
Server response
{
    "error": 0,
    "message": "Channel has been updated successfully."
}

Delete Channel

DELETE https://minzo.link/usethisapi/channel/:id/delete

To delete a channel, you need to send a DELETE request. All items will be unassigned as well.

curl --location --request DELETE 'https://minzo.link/usethisapi/channel/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Channel has been deleted successfully."
}

Custom Splash

List Custom Splash

GET https://minzo.link/usethisapi/splash?limit=2&page=1

To get custom splash pages 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
curl --location --request GET 'https://minzo.link/usethisapi/splash?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "splash": [
            {
                "id": 1,
                "name": "Product 1 Promo",
                "date": "2020-11-10 18:00:00"
            },
            {
                "id": 2,
                "name": "Product 2 Promo",
                "date": "2020-11-10 18:10:00"
            }
        ]
    }
}

Files

List Files

GET https://minzo.link/api/files?limit=2&page=1

Get all of your files. You can also search by name.

ParameterDescription
nameoptional
Search for a file by name
limitoptional
Per page data result
pageoptional
Current page request
curl --location --request GET 'https://minzo.link/api/files?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "result": 3,
    "perpage": 15,
    "currentpage": 1,
    "nextpage": null,
    "maxpage": 1,
    "list": [
        {
            "id": 1,
            "name": "My Photo",
            "downloads": 10,
            "shorturl": "https:\/\/minzo.link\/sXNkM",
            "date": "2022-08-09 17:00:00"
        },
        {
            "id": 2,
            "name": "My Documents",
            "downloads": 15,
            "shorturl": "https:\/\/minzo.link\/BtxWf",
            "date": "2022-08-10 17:01:00"
        },
        {
            "id": 3,
            "name": "My Files",
            "downloads": 5,
            "shorturl": "https:\/\/minzo.link\/euqDQ",
            "date": "2022-08-11 19:01:00"
        }
    ]
}

Upload a file

POST https://minzo.link/api/files/upload/:filename?name=My+File

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.

ParameterDescription
nameoptional
File name
customoptional
Custom alias instead of random alias.
domainoptional
Custom Domain
passwordoptional
Password protection
expiryoptional
Expiration for the download example 2021-09-28
maxdownloadsoptional
Maximum number of downloads
curl --location --request POST 'https://minzo.link/api/files/upload/:filename?name=My+File' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '"BINARY DATA"'
Server response
{
    "error": 0,
    "id": 1,
    "shorturl": "https:\/\/minzo.link\/GbcEU"
}

Monitors

List Monitors

GET https://minzo.link/usethisapi/monitors?limit=2&page=1

To get your uptime monitors 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
curl --location --request GET 'https://minzo.link/usethisapi/monitors?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "monitors": [
            {
                "id": 1,
                "name": "Main Website",
                "url": "https:\/\/example.com",
                "status": 1,
                "uptime": 99.87,
                "last_checked": "2020-11-10 18:00:00",
                "date": "2020-11-10 17:00:00"
            },
            {
                "id": 2,
                "name": "Checkout API",
                "url": "https:\/\/api.example.com\/health",
                "status": 0,
                "uptime": 92.14,
                "last_checked": "2020-11-10 18:00:00",
                "date": "2020-11-10 17:10:00"
            }
        ]
    }
}

Create a Monitor

POST https://minzo.link/usethisapi/monitor/add

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://
curl --location --request POST 'https://minzo.link/usethisapi/monitor/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Main Website",
    "url": "https:\/\/example.com"
}'
Server response
{
    "error": 0,
    "id": 3
}

Delete a Monitor

DELETE https://minzo.link/usethisapi/monitor/:id/delete

To delete a monitor, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/monitor/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Monitor has been deleted successfully."
}

Pixels

List Pixels

GET https://minzo.link/usethisapi/pixels?limit=2&page=1

To get your pixels codes 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
curl --location --request GET 'https://minzo.link/usethisapi/pixels?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "pixels": [
            {
                "id": 1,
                "type": "gtmpixel",
                "name": "GTM Pixel",
                "tag": "GA-123456789",
                "date": "2020-11-10 18:00:00"
            },
            {
                "id": 2,
                "type": "twitterpixel",
                "name": "Twitter Pixel",
                "tag": "1234567",
                "date": "2020-11-10 18:10:00"
            }
        ]
    }
}

Create a Pixel

POST https://minzo.link/usethisapi/pixel/add

A pixel can be created using this endpoint. You need to send the pixel type and the tag.

ParameterDescription
typerequired
gtmpixel | gapixel | fbpixel | adwordspixel | linkedinpixel | twitterpixel | adrollpixel | quorapixel | pinterest | bing | snapchat | reddit | tiktok | customjs
namerequired
Custom name for your pixel
tagrequired
The tag for the pixel
curl --location --request POST 'https://minzo.link/usethisapi/pixel/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "gtmpixel",
    "name": "My GTM",
    "tag": "GTM-ABCDE"
}'
Server response
{
    "error": 0,
    "id": 1
}

Update Pixel

PUT https://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).

ParameterDescription
nameoptional
Custom name for your pixel
tagrequired
The tag for the pixel
curl --location --request PUT 'https://minzo.link/usethisapi/pixel/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "My GTM",
    "tag": "GTM-ABCDE"
}'
Server response
{
    "error": 0,
    "message": "Pixel has been updated successfully."
}

Delete Pixel

DELETE https://minzo.link/usethisapi/pixel/:id/delete

To delete a pixel, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/pixel/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Pixel has been deleted successfully."
}

QR Codes

List QR codes

GET https://minzo.link/usethisapi/qr?limit=2&page=1

To get your QR codes 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
curl --location --request GET 'https://minzo.link/usethisapi/qr?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "qrs": [
            {
                "id": 2,
                "link": "https:\/\/minzo.link\/qr\/a2d5e",
                "scans": 0,
                "name": "Google",
                "date": "2020-11-10 18:01:43"
            },
            {
                "id": 1,
                "link": "https:\/\/minzo.link\/qr\/b9edfe",
                "scans": 5,
                "name": "Google Canada",
                "date": "2020-11-10 18:00:25"
            }
        ]
    }
}

Get a single QR Code

GET https://minzo.link/usethisapi/qr/:id

To get details for a single QR code via the API, you can use this endpoint.

curl --location --request GET 'https://minzo.link/usethisapi/qr/:id' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "details": {
        "id": 1,
        "link": "https:\/\/minzo.link\/qr\/b9edfe",
        "scans": 5,
        "name": "Google Canada",
        "date": "2020-11-10 18:00:25"
    },
    "data": {
        "clicks": 1,
        "uniqueClicks": 1,
        "topCountries": {
            "Unknown": "1"
        },
        "topReferrers": {
            "Direct, email and other": "1"
        },
        "topBrowsers": {
            "Chrome": "1"
        },
        "topOs": {
            "Windows 10": "1"
        },
        "socialCount": {
            "facebook": 0,
            "twitter": 0,
            "instagram": 0
        }
    }
}

Create a QR Code

POST https://minzo.link/usethisapi/qr/add

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
backgroundoptional
RGB color e.g. rgb(255,255,255)
foregroundoptional
RGB color e.g. rgb(0,0,0)
logooptional
Path to the logo either png or jpg
nameoptional
QR Code name
curl --location --request POST 'https://minzo.link/usethisapi/qr/add' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "link",
    "data": "https:\/\/google.com",
    "background": "rgb(255,255,255)",
    "foreground": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png",
    "name": "QR Code API"
}'
Server response
{
    "error": 0,
    "id": 3,
    "link": "https:\/\/minzo.link\/qr\/a58f79"
}

Update QR Code

PUT https://minzo.link/usethisapi/qr/:id/update

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
backgroundoptional
RGB color e.g. rgb(255,255,255)
foregroundoptional
RGB color e.g. rgb(0,0,0)
logooptional
Path to the logo either png or jpg
curl --location --request PUT 'https://minzo.link/usethisapi/qr/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "link",
    "data": "https:\/\/google.com",
    "background": "rgb(255,255,255)",
    "foreground": "rgb(0,0,0)",
    "logo": "https:\/\/site.com\/logo.png"
}'
Server response
{
    "error": 0,
    "message": "QR has been updated successfully."
}

Delete a QR Code

DELETE https://minzo.link/usethisapi/qr/:id/delete

To delete a QR code, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/qr/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "QR Code has been deleted successfully."
}

Surveys

List Surveys

GET https://minzo.link/usethisapi/surveys?limit=2&page=1

To get your surveys 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
curl --location --request GET 'https://minzo.link/usethisapi/surveys?limit=2&page=1' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": "0",
    "data": {
        "result": 2,
        "perpage": 2,
        "currentpage": 1,
        "nextpage": 1,
        "maxpage": 1,
        "surveys": [
            {
                "id": 1,
                "title": "Customer Satisfaction",
                "alias": "customer-satisfaction",
                "status": 1,
                "responses": 24,
                "date": "2020-11-10 18:00:00"
            },
            {
                "id": 2,
                "title": "Product Feedback",
                "alias": "product-feedback",
                "status": 1,
                "responses": 8,
                "date": "2020-11-10 18:10:00"
            }
        ]
    }
}

Get a single Survey

GET https://minzo.link/usethisapi/survey/:id

To get details for a single survey via the API, including its questions, you can use this endpoint.

curl --location --request GET 'https://minzo.link/usethisapi/survey/:id' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
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

POST https://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"
}'
Server response
{
    "error": 0,
    "id": 3,
    "alias": "customer-satisfaction"
}

Update Survey

PUT https://minzo.link/usethisapi/survey/:id/update

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).

ParameterDescription
titleoptional
Title for your survey
descriptionoptional
A short description shown to respondents
statusoptional
1 to activate, 0 to pause the survey
curl --location --request PUT 'https://minzo.link/usethisapi/survey/:id/update' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Customer Satisfaction",
    "status": 1
}'
Server response
{
    "error": 0,
    "message": "Survey has been updated successfully."
}

Delete a Survey

DELETE https://minzo.link/usethisapi/survey/:id/delete

To delete a survey and all of its responses, you need to send a DELETE request.

curl --location --request DELETE 'https://minzo.link/usethisapi/survey/:id/delete' \
--header 'Authorization: Bearer YOURAPIKEY' \
--header 'Content-Type: application/json' \
Server response
{
    "error": 0,
    "message": "Survey has been deleted successfully."
}