2. Create Profile

Create Profile

POST http://127.0.0.1:12368/profiles

Parameters - Parameter

NameTypeDescription

os

String

Operating system. List of supported operating systems: (win, mac, linux, android, ios)

name

String

Optional profile's name

notes

String

Optional Note

browser

String

Optional Browser. List of supported browsers: (chrome, opera, edge, firefox)

proxy

String

Optional Proxy. Use in the following format: "{"host":"103.171.112.245","mode":"http","password":"1ee93edba5c911c33","port":19099,"username":"nguyenmanhtien.bh"}"

Examples

  • Curl example

curl -X POST http://127.0.0.1:12368/profiles -i -d "os=mac&name=test&notes=example&browser=chrome"
  • Javascript example

const hidemyacc = new Hidemyacc();
const proxy = {
  host: "103.171.112.245",
  mode: "http",
  password: "1ee93edba5c911c33",
  port: 19099,
  username: "nguyenmanhtien.bh",
};
const user = await hidemyacc.create(os, name, notes, browser, proxy);

Success response

Success response - Success 200

NameTypeDescription

data

Object

Profile information.

Success response example

Success response example - Success-Example

HTTP/1.1 200 OK
    {
        "code": 1,
        "data":
        {
            "browserType": "chrome",
            "createdAt": "2021-10-06T09:28:43.178Z",
            "id": "615d6c4b2a151505fe6ba060",
            "name": "test",
            "notes": "example",
            "os": "mac",
            "platform": "MacIntel",
            "proxy":
            {
                "autoProxyPassword": "",
                "autoProxyRegion": "us",
                "autoProxyServer": "",
                "autoProxyUsername": "",
                "host": "",
                "mode": "none",
                "password": "",
                "port": 80,
                "proxyEnabled": false,
                "torProxyRegion": "us",
                "username": ""
            },
            "role": "owner",
            "updatedAt": "2021-10-06T09:28:43.178Z"
        }
    }

Error response

Error response - Error 4xx

NameTypeDescription

401

Not logged into account

Error response example

Error response example - Response (example):

HTTP/1.1 401 Not Authenticated
{
  "code": 0,
  "message": "Unauthorized",
  "data": {}
}

Last updated