Get started

MangoWeb REST API is an application processing interface that connects a web server with a web browser, Helps accelerate application development and allows different applications to integrate with each other without the need to access the backend or database, Our API is designed to be very easy to use and accessible to everyone, regardless of the programming language or framework you use.

To use this API, you need an Website-Token and Website-Domain: https://client.mangospot.net
Please contact us at support@mangospot.net to get your own API key.

Header Parameter

Field Type Description
Website-Token String Your Token
Website-Domain String Your Domain
Content-Type String application/json

Response

{
    "status": true,
    "message": "success",
    "data": [JSON_DATA],
    "info": "Website available"
}               

Identity

1. Website Identity

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/identity

2. Specific Identity

To get characters, you need to make a GET call to the following url :

Type Url
Theme https://web.mangospot.net/identity/theme
List Maps https://web.mangospot.net/identity/maps
List Image https://web.mangospot.net/identity/images
List Cover https://web.mangospot.net/identity/image/cover
Icon https://web.mangospot.net/identity/image/icon
Logo https://web.mangospot.net/identity/image/logo

Config

1. Website Config

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/config

2. Specific Config

To get characters, you need to make a GET call to the following url :

Type Url
Script https://web.mangospot.net/config/script
Setting https://web.mangospot.net/config/setting
Payment https://web.mangospot.net/config/payment
Info https://web.mangospot.net/config/info
API https://web.mangospot.net/config/other

Email

1. SMTP Email

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/mail

2. Decrypt Password

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/mail

Body Parameter

Field Type Description
token String Token SMTP
password String Password SMTP

3. Email Theme

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/mail/theme

4. Specific Theme

To get characters, you need to make a GET call to the following url :

Type Url
OTP Theme https://web.mangospot.net/mail/theme/otp
Forgot Theme https://web.mangospot.net/mail/theme/forgot
Social Theme https://web.mangospot.net/mail/theme/social
Register Theme https://web.mangospot.net/mail/theme/register

Menu

1. Website Menu

How to get menu, you need to make a GET call to the following url :
GET : https://web.mangospot.net/menu

Response

{
    "status": true,
    "message": "success",
    "data": [
        {
            "id": "1",
            "name": "Menu 1",
            "title": "Menu One",
            "primary": true
        }, 
        {
            "id": "2",
            "name": "Menu 2",
            "title": "Menu Two",
            "primary": false
        }
    ],
    "info": "Menu available"
}               

2. Website List Menu

How to get list menu, you need to make a GET call to the following url :
GET : https://web.mangospot.net/menu/list

How to get specific list menu, you need to make a GET call to the following url :
GET : https://web.mangospot.net/menu/list/{menu}

Query Parameter

Field Type Description
limit Integer Limit Display Data
sort String Sort Field (id, title, sort)
order String Order Type (asc, desc, random)

3. Website Sub Menu

How to get primary sub menu, you need to make a GET call to the following url :
GET : https://web.mangospot.net/menu/sub

How to get specific sub menu, you need to make a GET call to the following url :
GET : https://web.mangospot.net/menu/sub/{menu}

Response

{
    "status": true,
    "message": "success",
    "data": [
        {
            "id": "3",
            "menu": "1",
            "slug": "0",
            "name": "Home",
            "type": "link",
            "title": "Link One",
            "value": "index.html",
            "target": true,
            "children": []
        }, 
        {
            "id": "4",
            "menu": "1",
            "slug": "0",
            "name": "About",
            "type": "page",
            "title": "Link Two",
            "value": "abaout",
            "target": false,
            "children": [
                {
                    "id": "5",
                    "menu": "1",
                    "slug": "4",
                    "name": "Profile",
                    "type": "page",
                    "title": "Link Three",
                    "value": "profile",
                    "target": false,
                    "children" []
                }
            ]
        }
    ],
    "info": "Menu available"
}               

Theme

1. Website Theme

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/theme

2. Specific Theme

To get characters, you need to make a GET call to the following url :

Type Url Description
Home https://web.mangospot.net/theme/home Theme on Home
Page https://web.mangospot.net/theme/page Theme on Page
Blog https://web.mangospot.net/theme/blog Theme on Detail Blog
Product https://web.mangospot.net/theme/product Theme on Detail Product

Widget

1. Website Widget

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/widget

2. Specific Widget

To get characters, you need to make a GET call to the following url :

Type Url Description
Page https://web.mangospot.net/widget/page Widget on Detail Page
Post https://web.mangospot.net/widget/post Widget on Category Blog
Blog https://web.mangospot.net/widget/blog Widget on Detail Blog
Shop https://web.mangospot.net/widget/shop Widget on Category Product
Product https://web.mangospot.net/widget/product Widget on Detail Product
Footer https://web.mangospot.net/widget/footer Widget on Footer

Content

1. Website Content

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/contents

To get image directory, you need to make following url :
https://web.mangospot.net/media/upload/{content_image}

Query Parameter

Field Type Description
id Integer Get ID In Array (exp: id=1,2,3)
type String Get Type In Array (exp: type=page,post,blog)
sort String Sort Field (id, title, sort)
order String Order Type (asc, desc, random)
limit Integer Limit Display Data
page Integer Display Page Number
search String Seacrh Data

2. List Content

To get characters, you need to make a GET call to the following url :

Type Url Description
Tags https://web.mangospot.net/contents/tags List Tags
Page https://web.mangospot.net/contents/page List Page
Post https://web.mangospot.net/contents/post List Category Blog
Blog https://web.mangospot.net/contents/blog List Detail Blog
Shop https://web.mangospot.net/contents/shop List Category Product
Product https://web.mangospot.net/contents/product List Detail Product
Contact https://web.mangospot.net/contents/contact List Contact
Gallery https://web.mangospot.net/contents/gallery List Gallery

3. Detail Content

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/content/{id or value}

Example List Category
GET : https://web.mangospot.net/content/tutorial

Query Parameter

Field Type Description
sort String Sort Field (id, title, sort)
order String Order Type (asc, desc, random)
limit Integer Limit Display Data
page Integer Display Page Number

Response

{
    "status": true,
    "message": "success",
    "data": {
        "id": "1",
        "type": "post",
        "title": "Tutorial",
        "value": "tutorial",
        "image": "image-category.jpg",
        "sidebar": "right",
        "other": {
            "item": "6",
            "show": "grid",
            "sort": "id",
            "order": "asc",
            "sumary": "100"
        },
        "created": "2024-11-04T23:50:18.796Z",
        "updated": "2024-11-04T23:50:44.953Z",
        "comment": false,
        "content": "",
        "children": [
            {
                "id": "2",
                "type": "blog",
                "name": "Admin",
                "title": "Install Software",
                "value": "install-software",
                "image": "image-install-software.jpg",
                "created": "2024-11-20T20:45:39.132Z",
                "updated": "2024-11-23T21:24:41.856Z",
                "content": "Tutorial Install Software..."
            }, {
                "id": "3",
                "type": "blog",
                "name": "Admin",
                "title": "Uninstall Software",
                "value": "uninstall-software",
                "image": "image-uninstall-software.jpg",
                "created": "2024-11-23T16:12:21.147Z",
                "updated": "2024-11-23T21:24:43.089Z",
                "content": "Tutorial Uninstall Software..."
            }
        ],
        "total": "2"
    },
    "info": "Content available"
}           

Location

1. Country

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/country

2. Region

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/location

3. Sub Region

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/location/{id}

Example : https://web.mangospot.net/location/3315

Response

{
    "status": true,
    "message": "success",
    "region": {
        "id": "3315",
        "slug": "33",
        "name": "Kab. Grobogan",
        "type": "city",
        "lat": null,
        "lng": null,
        "radius": 0
    },
    "data": [
        {
            "id": "331514",
            "slug": "3315",
            "name": "Brati",
            "type": "district",
            "lat": null,
            "lng": null,
            "radius": 0
        }, {
            "id": "331508",
            "slug": "3315",
            "name": "Gabus",
            "type": "district",
            "lat": null,
            "lng": null,
            "radius": 0
        }
    ],
    "info": "Location available"
}

Shipping

1. Website Shipping

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/shipping

2. Specific Shipping

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/shipping/{id}

Captcha

1. Website Captcha

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/captcha

Response

{
    "status": true,
    "message": "success",
    "data": {
        "session": "2188226ce9f2ba40b384780818307871",
        "image": "data:image/png;base64,xxxxx"
    },
    "info": "Captcha available"
}               

2. Demo Captcha


Comment

1. List Comment

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/comment

Query Parameter

Field Type Description
id Integer Get ID In Array (exp: id=1,2,3)
sort String Sort Field (id, title)
order String Order Type (asc, desc, random)
limit Integer Limit Display Data
page Integer Display Page Number
search String Seacrh Data

2. Specific Comment

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/comment/{type}

Type Url Description
Page https://web.mangospot.net/comment/page List Comment On Page
Blog https://web.mangospot.net/comment/blog List Comment On Blog
Product https://web.mangospot.net/comment/product List Comment On Product
Contact https://web.mangospot.net/comment/contact List Comment On Contact

3. Detail Comment

Detail Comment On Content, you need to make a GET call to the following url :
GET : https://web.mangospot.net/comment/{type}/{post}

Example : https://web.mangospot.net/comment/blog/2

Response

{
    "status": true,
    "message": "success",
    "total": 3,
    "data": [
        {
            "id": "2",
            "slug": "0",
            "post": "2",
            "type": "blog",
            "name": "Full Name",
            "email": "email@domain.com",
            "title": "Tutorial One",
            "value": "tutorial-one",
            "content": "This comment on page",
            "children": [
                {
                "id": "9",
                "slug": "2",
                "post": "2",
                "type": "blog",
                "name": "Full Name",
                "email": "email@domain.com",
                "title": "Tutorial One",
                "value": "tutorial-one",
                "content": "This comment reply on page",
                "children": []
                }
            ]
        }, {
            "id": "4",
            "slug": "0",
            "post": "2",
            "type": "blog",
            "name": "Full Name",
            "email": "email@domain.com",
            "title": "Tutorial One",
            "value": "tutorial-one",
            "content": "This comment on page",
            "children": []
        }
    ],
    "info": "Comment available"
}               

Detail Comment, you need to make a GET call to the following url :
GET : https://web.mangospot.net/comment/{type}/{post}/{id}

Example : https://web.mangospot.net/comment/blog/2/1

Response

{
    "status": true,
    "message": "success",
    "data": {
        "id": "1",
        "slug": "0",
        "post": "2",
        "type": "blog",
        "name": "Full Name",
        "email": "email@domain.com",
        "title": "Tutorial One",
        "value": "tutorial-one",
        "content": "This comment on page"
    },
    "info": "Comment available"
}               

4. Send Comment As Contact

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/comment

Body Parameter

Field Type Description
name String Full Name
email String Email Address
captcha String Code Captcha
comment String Comment Message

5. Send New Comment

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/comment

Body Parameter

Field Type Description
post Integer ID Page, Blog, Or Product
name String Full Name
email String Email Address
captcha String Code Captcha
comment String Comment Message

6. Send Reply Comment

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/comment

Body Parameter

Field Type Description
id Integer ID Comment
post Integer ID Page, Blog, Or Product
name String Full Name
email String Email Address
captcha String Code Captcha
comment String Comment Message

Authentication

Don't forget include Header Parameter:

Header Parameter

Field Type Description
Website-Token String Your Token
Website-Domain String Your Domain
Content-Type String application/json

Login Account

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/auth/signin

Body Parameter

Field Type Description
username String Auth Username (email or phone)
password String Auth Password

Forgot Account

1. Form Forgot

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/auth/forgot

Body Parameter

Field Type Description
email String Email Address
captcha String Code Captcha

Response

{
    "status": true,
    "message": "success",
    "data": {
        "otp": "161036",
        "code": "U2FsdGVkX18rr9tuLmURCVhFsCXr8m90ccBxLRDFORY=",
        "token": "ec1248c1b6c4133d2745f4b5c9e0a71c"
    },
    "info": "Users available"
}               

2. Update Password

Update password with Activation Code, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth/forgot

Body Parameter

Field Type Description
code String Auth Code
token String Auth Token
password String New Password

Update password with OTP Activation, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth/forgot

Body Parameter

Field Type Description
otp String OTP Code (expired 1 minute)
token String Auth Token
password String New Password

Register Account

1. Form Account

To get characters, you need to make a POST call to the following url :
POST : https://web.mangospot.net/auth/signup

Body Parameter

Field Type Description
name String Full Name
email String Email Address
phone Integer Phone Number
captcha String Code Captcha
password String Password

Response

{
    "status": true,
    "message": "success",
    "data": {
        "otp": "607225",
        "code": "U2FsdGVkX18Fby05RVGtzwtSdEyuXh7PCBedUMBQSCw=",
        "token": "ec1248c1b6c4133d2745f4b5c9e0a71c",
        "expired": "2024-12-27T17:59:06.000Z"
    },
    "info": "Users available"
}               

2. Activation Account

You can request Activation Code, you need to make a GET call to the following url :
GET : https://web.mangospot.net/auth/signup/{email or phone}

To activate account, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth/signup

Body Parameter

Field Type Description
code String Activation Code
token String Activation Token

You can request OTP Activation, you need to make a GET call to the following url :
GET : https://web.mangospot.net/auth/signup/{email or phone}

To activate account, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth/signup

Body Parameter

Field Type Description
otp Integer OTP Activation (Expired 1 Minute)
token String Activation Token

Detail Account

1. Show Account

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/auth

Header Parameter

Field Type Description
Auth-Api String Your Auth Api
Auth-Key String Your Auth Key
Auth-Token String Your Auth Token
Website-Token String Your Token
Website-Domain String Your Domain
Content-Type String application/json

2. Update Account

To get characters, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth

To get Country characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/country

Body Parameter

Field Type Description
name String Full Name
email String Email Address
phone Integer Phone Number 81234xxx
country Integer ID Country
gender String male or female
birthday Date YYYY-MM-DD
address String Full Address
images String Base64 Encode

3. Update Password

To get characters, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/auth/password

Body Parameter

Field Type Description
password String Old Password
npassword String New Password
rpassword String Reply Password

Biodata Account

Header Parameter

Field Type Description
Auth-Api String Your Auth Api
Auth-Key String Your Auth Key
Auth-Token String Your Auth Token
Website-Token String Your Token
Website-Domain String Your Domain
Content-Type String application/json

1. Show Biodata

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/biodata

2. Update Biodata

To get characters, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/biodata

Body Parameter

Field Type Description
data JSON Data Array

Document Account

Header Parameter

Field Type Description
Auth-Api String Your Auth Api
Auth-Key String Your Auth Key
Auth-Token String Your Auth Token
Website-Token String Your Token
Website-Domain String Your Domain
Content-Type String application/json

1. Show Document

To get characters, you need to make a GET call to the following url :
GET : https://web.mangospot.net/document

1. Update Document

To get characters, you need to make a PUT call to the following url :
PUT : https://web.mangospot.net/document

Body Parameter

Field Type Description
data JSON Data Array