NAV
bash javascript

Info

Welcome to the generated API reference.

GeneratePassword

Preset-1

You can automatically generate and share an 8-digit simple password using lowercase letters and numbers. Sample Result: cn3hvphy

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/ld" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/ld"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.3621010780334473,
    "message": "Processing completed.",
    "data": "u9ypy89r"
}

HTTP Request

ANY api/gp/ld

Preset-2

You can automatically generate and share an 8-digit more secure password using uppercase and lowercase letters and numbers. Sample Result: 4sCFwNr8

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/lud" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/lud"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.9436540603637695,
    "message": "Processing completed.",
    "data": "8YHT7cFP"
}

HTTP Request

ANY api/gp/lud

Preset-3

You can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters. Sample Result: r&$EQx1#USbw

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/luds" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/luds"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.8201470375061035,
    "message": "Processing completed.",
    "data": "T@H!dk7tW6WX"
}

HTTP Request

ANY api/gp/luds

Customize

You can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters. Sample Result: r&$EQx1#USbw

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/customize?charSet=lud&size=10&isUsedDashes=true&isUsedEncrypt=false" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/customize"
);

let params = {
    "charSet": "lud",
    "size": "10",
    "isUsedDashes": "true",
    "isUsedEncrypt": "false",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 4.936893939971924,
    "message": "Processing completed.",
    "data": "T?g9sMg!"
}

HTTP Request

ANY api/gp/customize

Query Parameters

Parameter Status Description
charSet required character kinds(l:lowercase letters, u:uppercase letters, d:number, s:special character
size required size of password
isUsedDashes required use dashes
isUsedEncrypt required use encrypt

SharePassword

Make share link

You can make share Link. Sample Result: r&$EQx1#USbw

Example request:

curl -X POST \
    "https://share-to.pw/api/share?password=4sCFwNr8&max_display=2&expired_hour=10" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/share"
);

let params = {
    "password": "4sCFwNr8",
    "max_display": "2",
    "expired_hour": "10",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 4.936893939971924,
    "message": "Processing completed.",
    "data": "T?g9sMg!"
}

HTTP Request

POST api/share

Query Parameters

Parameter Status Description
password required password
max_display required maximum display
expired_hour required expired hours

general

doc.json

Example request:

curl -X GET \
    -G "https://share-to.pw/doc.json" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/doc.json"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "variables": [],
    "info": {
        "name": "Laravel API",
        "_postman_id": "4c10740c-1150-4af8-b333-08b527f1be81",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"
    },
    "item": [
        {
            "name": "GeneratePassword",
            "description": "",
            "item": [
                {
                    "name": "Preset-1\nYou can automatically generate and share an 8-digit simple password using lowercase letters and numbers.\nSample Result: cn3hvphy",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/ld",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Preset-2\nYou can automatically generate and share an 8-digit more secure password using uppercase and lowercase letters and numbers.\nSample Result: 4sCFwNr8",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/lud",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Preset-3\nYou can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/luds",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Customize\nYou can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/customize",
                            "query": [
                                {
                                    "key": "charSet",
                                    "value": "lud",
                                    "description": "character kinds(l:lowercase letters, u:uppercase letters, d:number, s:special character",
                                    "disabled": false
                                },
                                {
                                    "key": "size",
                                    "value": "10",
                                    "description": "size of password",
                                    "disabled": false
                                },
                                {
                                    "key": "isUsedDashes",
                                    "value": "true",
                                    "description": "use dashes",
                                    "disabled": false
                                },
                                {
                                    "key": "isUsedEncrypt",
                                    "value": "false",
                                    "description": "use encrypt",
                                    "disabled": false
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        },
        {
            "name": "SharePassword",
            "description": "",
            "item": [
                {
                    "name": "Make share link\nYou can make share Link.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/share",
                            "query": [
                                {
                                    "key": "password",
                                    "value": "4sCFwNr8",
                                    "description": "password",
                                    "disabled": false
                                },
                                {
                                    "key": "max_display",
                                    "value": "2",
                                    "description": "maximum display",
                                    "disabled": false
                                },
                                {
                                    "key": "expired_hour",
                                    "value": "10",
                                    "description": "expired hours",
                                    "disabled": false
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        }
    ]
}

HTTP Request

GET doc.json

share/pw/{token}

Example request:

curl -X GET \
    -G "https://share-to.pw/share/pw/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/share/pw/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (302):

null

HTTP Request

GET share/pw/{token}

docs/api

Example request:

curl -X GET \
    -G "https://share-to.pw/docs/api" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/docs/api"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (500):

{
    "message": "Server Error"
}

HTTP Request

GET docs/api

API Reference NAV
bash javascript

Info

Welcome to the generated API reference.

GeneratePassword

Preset-1

You can automatically generate and share an 8-digit simple password using lowercase letters and numbers. Sample Result: cn3hvphy

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/ld" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/ld"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.3621010780334473,
    "message": "Processing completed.",
    "data": "u9ypy89r"
}

HTTP Request

ANY api/gp/ld

Preset-2

You can automatically generate and share an 8-digit more secure password using uppercase and lowercase letters and numbers. Sample Result: 4sCFwNr8

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/lud" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/lud"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.9436540603637695,
    "message": "Processing completed.",
    "data": "8YHT7cFP"
}

HTTP Request

ANY api/gp/lud

Preset-3

You can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters. Sample Result: r&$EQx1#USbw

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/luds" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/luds"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 2.8201470375061035,
    "message": "Processing completed.",
    "data": "T@H!dk7tW6WX"
}

HTTP Request

ANY api/gp/luds

Customize

You can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters. Sample Result: r&$EQx1#USbw

Example request:

curl -X GET \
    -G "https://share-to.pw/api/gp/customize?charSet=lud&size=10&isUsedDashes=true&isUsedEncrypt=false" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/gp/customize"
);

let params = {
    "charSet": "lud",
    "size": "10",
    "isUsedDashes": "true",
    "isUsedEncrypt": "false",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 4.936893939971924,
    "message": "Processing completed.",
    "data": "T?g9sMg!"
}

HTTP Request

ANY api/gp/customize

Query Parameters

Parameter Status Description
charSet required character kinds(l:lowercase letters, u:uppercase letters, d:number, s:special character
size required size of password
isUsedDashes required use dashes
isUsedEncrypt required use encrypt

SharePassword

Make share link

You can make share Link. Sample Result: r&$EQx1#USbw

Example request:

curl -X POST \
    "https://share-to.pw/api/share?password=4sCFwNr8&max_display=2&expired_hour=10" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/api/share"
);

let params = {
    "password": "4sCFwNr8",
    "max_display": "2",
    "expired_hour": "10",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "status": 200,
    "response_time": 4.936893939971924,
    "message": "Processing completed.",
    "data": "T?g9sMg!"
}

HTTP Request

POST api/share

Query Parameters

Parameter Status Description
password required password
max_display required maximum display
expired_hour required expired hours

general

doc.json

Example request:

curl -X GET \
    -G "https://share-to.pw/doc.json" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/doc.json"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "variables": [],
    "info": {
        "name": "Laravel API",
        "_postman_id": "4c10740c-1150-4af8-b333-08b527f1be81",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"
    },
    "item": [
        {
            "name": "GeneratePassword",
            "description": "",
            "item": [
                {
                    "name": "Preset-1\nYou can automatically generate and share an 8-digit simple password using lowercase letters and numbers.\nSample Result: cn3hvphy",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/ld",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Preset-2\nYou can automatically generate and share an 8-digit more secure password using uppercase and lowercase letters and numbers.\nSample Result: 4sCFwNr8",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/lud",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Preset-3\nYou can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/luds",
                            "query": []
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                },
                {
                    "name": "Customize\nYou can automatically generate and share a 16-digit high-security password using uppercase and lowercase letters, numbers, and special characters.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/gp\/customize",
                            "query": [
                                {
                                    "key": "charSet",
                                    "value": "lud",
                                    "description": "character kinds(l:lowercase letters, u:uppercase letters, d:number, s:special character",
                                    "disabled": false
                                },
                                {
                                    "key": "size",
                                    "value": "10",
                                    "description": "size of password",
                                    "disabled": false
                                },
                                {
                                    "key": "isUsedDashes",
                                    "value": "true",
                                    "description": "use dashes",
                                    "disabled": false
                                },
                                {
                                    "key": "isUsedEncrypt",
                                    "value": "false",
                                    "description": "use encrypt",
                                    "disabled": false
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        },
        {
            "name": "SharePassword",
            "description": "",
            "item": [
                {
                    "name": "Make share link\nYou can make share Link.\nSample Result: r&$EQx1#USbw",
                    "request": {
                        "url": {
                            "protocol": "https",
                            "host": "share-to.pw",
                            "path": "api\/share",
                            "query": [
                                {
                                    "key": "password",
                                    "value": "4sCFwNr8",
                                    "description": "password",
                                    "disabled": false
                                },
                                {
                                    "key": "max_display",
                                    "value": "2",
                                    "description": "maximum display",
                                    "disabled": false
                                },
                                {
                                    "key": "expired_hour",
                                    "value": "10",
                                    "description": "expired hours",
                                    "disabled": false
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "[]"
                        },
                        "description": "",
                        "response": []
                    }
                }
            ]
        }
    ]
}

HTTP Request

GET doc.json

share/pw/{token}

Example request:

curl -X GET \
    -G "https://share-to.pw/share/pw/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/share/pw/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (302):

null

HTTP Request

GET share/pw/{token}

docs/api

Example request:

curl -X GET \
    -G "https://share-to.pw/docs/api" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://share-to.pw/docs/api"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (500):

{
    "message": "Server Error"
}

HTTP Request

GET docs/api