NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

Mount point management

APIs for managing mount points

Validate a mount point name


Requires authentication Mount point names must be unique

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/validatename" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/validatename");

    let params = {
            "name": "JS2CDn2Lc8dxDr7F",
            "id": "o9TVvjrYI3iLvCUe",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": true
}

HTTP Request

GET api/v2/mountpoints/validatename

Query Parameters

Parameter Status Description
name required Mount point name
id optional Mount point id if it exist

Get mount point list


Requires authentication Return list of mount points

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": {
        "mountpoints": [
            {
                "id": 1,
                "user_id": 1,
                "caster_id": 1,
                "name": "SUR40",
                "type": 1,
                "data_source": 0,
                "created_at": "2019-03-07 08:27:30",
                "updated_at": "2019-03-14 08:04:37",
                "uptime": 0,
                "description": {
                    "id": 2,
                    "mountpoint_id": 1,
                    "identifier": null,
                    "format": null,
                    "format_details": null,
                    "carrier": null,
                    "nav_system": [
                        "GPS",
                        "BDS"
                    ],
                    "network": null,
                    "country": null,
                    "latitude": null,
                    "longitude": null,
                    "nmea": 0,
                    "solution": null,
                    "generator": null,
                    "compr_encryp": "none",
                    "authentication": "B",
                    "fee": "N",
                    "bitrate": null,
                    "misc": null,
                    "created_at": "2019-03-13 10:16:33",
                    "updated_at": "2019-03-13 10:16:33"
                },
                "relay": {
                    "id": 2,
                    "user_id": 1,
                    "mountpoint_id": 1,
                    "ntrip_version_id": 2,
                    "source_mountpoint": "BCLN00ESP0",
                    "host": "www.euref-ip.net",
                    "port": 2101,
                    "username": "ivial98",
                    "restart": 0,
                    "created_at": "2019-03-13 10:14:01",
                    "updated_at": "2019-03-13 10:14:01"
                },
                "directip": null,
                "ntrip": {
                    "id": 2,
                    "mountpoint_id": 1,
                    "user_id": 1,
                    "ntrip_version": 1,
                    "username": null,
                    "created_at": "2019-03-14 08:04:49",
                    "updated_at": "2019-03-14 08:04:49"
                }
            },
            {
                "id": 4,
                "user_id": 1,
                "caster_id": 2,
                "name": "test2",
                "type": 0,
                "data_source": 0,
                "created_at": "2019-03-15 06:39:07",
                "updated_at": "2019-03-15 06:39:07",
                "uptime": 0,
                "description": null,
                "relay": null,
                "directip": null,
                "ntrip": {
                    "id": 4,
                    "mountpoint_id": 4,
                    "user_id": 1,
                    "ntrip_version": 1,
                    "username": null,
                    "created_at": "2019-03-15 06:39:26",
                    "updated_at": "2019-03-15 06:39:26"
                }
            }
        ]
    }
}

HTTP Request

GET api/v2/mountpoints

Create mount point


Requires authentication Return mount point

Example request:

curl -X POST "https://youcors.com/api/v2/mountpoints" \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":"acSCMPCrDsUty9QX","casterId":15}'
const url = new URL("https://youcors.com/api/v2/mountpoints");

let headers = {
    "Authorization": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "acSCMPCrDsUty9QX",
    "casterId": 15
}

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

Example response (200):

{
    "result": {
        "user_id": 1,
        "caster_id": 1,
        "name": "regr",
        "updated_at": "2019-03-18 15:25:16",
        "created_at": "2019-03-18 15:25:16",
        "id": 5,
        "description": null,
        "relay": null,
        "directip": null,
        "ntrip": null
    }
}

HTTP Request

POST api/v2/mountpoints

Body Parameters

Parameter Type Status Description
name string required Mount point name.
casterId integer required Caster id.

Get mount point


Requires authentication Return mount point

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": {
        "id": 1,
        "user_id": 1,
        "caster_id": 1,
        "name": "SUR40",
        "type": 1,
        "data_source": 0,
        "created_at": "2019-03-07 08:27:30",
        "updated_at": "2019-03-14 08:04:37",
        "uptime": 0,
        "description": {
            "id": 2,
            "mountpoint_id": 1,
            "identifier": null,
            "format": null,
            "format_details": null,
            "carrier": null,
            "nav_system": [
                "GPS",
                "BDS"
            ],
            "network": null,
            "country": null,
            "latitude": null,
            "longitude": null,
            "nmea": 0,
            "solution": null,
            "generator": null,
            "compr_encryp": "none",
            "authentication": "B",
            "fee": "N",
            "bitrate": null,
            "misc": null,
            "created_at": "2019-03-13 10:16:33",
            "updated_at": "2019-03-13 10:16:33"
        },
        "relay": {
            "id": 2,
            "user_id": 1,
            "mountpoint_id": 1,
            "ntrip_version_id": 2,
            "source_mountpoint": "BCLN00ESP0",
            "host": "www.euref-ip.net",
            "port": 2101,
            "username": "ivial98",
            "restart": 0,
            "created_at": "2019-03-13 10:14:01",
            "updated_at": "2019-03-13 10:14:01"
        },
        "directip": null,
        "ntrip": {
            "id": 2,
            "mountpoint_id": 1,
            "user_id": 1,
            "ntrip_version": 1,
            "username": null,
            "created_at": "2019-03-14 08:04:49",
            "updated_at": "2019-03-14 08:04:49"
        }
    }
}

HTTP Request

GET api/v2/mountpoints/{id}

Delete mount point


Requires authentication

Example request:

curl -X DELETE "https://youcors.com/api/v2/mountpoints/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": true
}

HTTP Request

DELETE api/v2/mountpoints/{id}

Update mount point


Requires authentication Return mount point

Example request:

curl -X PUT "https://youcors.com/api/v2/mountpoints/{id}" \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":"d291TNJ4KUc3NKKa","casterId":10}'
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "d291TNJ4KUc3NKKa",
    "casterId": 10
}

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

Example response (200):

{
    "result": {
        "user_id": 1,
        "caster_id": 1,
        "name": "regr",
        "updated_at": "2019-03-18 15:25:16",
        "created_at": "2019-03-18 15:25:16",
        "id": 5,
        "description": null,
        "relay": null,
        "directip": null,
        "ntrip": null
    }
}

HTTP Request

PUT api/v2/mountpoints/{id}

Body Parameters

Parameter Type Status Description
name string required Mount point name.
casterId integer required Caster id.

Switch mount point input source


Requires authentication

Example request:

curl -X POST "https://youcors.com/api/v2/mountpoints/{id}/switchsource" \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -d '{"data_source":15}'
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/switchsource");

let headers = {
    "Authorization": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "data_source": 15
}

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

Example response (200):

{
    "result": true
}

HTTP Request

POST api/v2/mountpoints/{id}/switchsource

Body Parameters

Parameter Type Status Description
data_source integer required 0 - NTRIP, 1 - Relay, 2 - DirectIP.

Get relay


Requires authentication Return relay

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}/relay" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/relay");

    let params = {
            "id": "HMasHdDSeFWlUPrT",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": {
        "id": 2,
        "user_id": 2,
        "mountpoint_id": 2,
        "ntrip_version_id": 1,
        "source_mountpoint": "ACOR00ESP0",
        "host": "www.euref-ip.net",
        "port": 2101,
        "username": "ivial982",
        "restart": 0,
        "created_at": "2019-03-23 06:55:13",
        "updated_at": "2019-03-30 06:33:02"
    }
}

HTTP Request

GET api/v2/mountpoints/{id}/relay

Query Parameters

Parameter Status Description
id required Mount point id

Create or update relay


Requires authentication Return relay

Example request:

curl -X PUT "https://youcors.com/api/v2/mountpoints/{id}/relay" \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -d '{"host":"JESOMzh5TqdjBFLP","port":10,"source_mountpoint":"mSNId7zQspiRzOGa","username":"HzTGPvFj687fcNVN","password":"kxPsfJYQ68SVBJ83","ntrip_version_id":11}'
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/relay");

    let params = {
            "id": "YoOgUfR78WXbjfSk",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "host": "JESOMzh5TqdjBFLP",
    "port": 10,
    "source_mountpoint": "mSNId7zQspiRzOGa",
    "username": "HzTGPvFj687fcNVN",
    "password": "kxPsfJYQ68SVBJ83",
    "ntrip_version_id": 11
}

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

Example response (200):

{
    "result": {
        "id": 2,
        "user_id": 2,
        "mountpoint_id": 2,
        "ntrip_version_id": 1,
        "source_mountpoint": "ACOR00ESP0",
        "host": "www.euref-ip.net",
        "port": 2101,
        "username": "ivial982",
        "restart": 0,
        "created_at": "2019-03-23 06:55:13",
        "updated_at": "2019-03-30 06:33:02"
    }
}

HTTP Request

PUT api/v2/mountpoints/{id}/relay

Body Parameters

Parameter Type Status Description
host string required Remote caster domain name or IPV4
port integer required Remote caster port number between 0,65535
source_mountpoint string required Mount point name on remote caster alpha_num max:255
username string required Username on remote caster alpha_num max:255
password string required Password on remote caster max:255
ntrip_version_id integer required NTRIP version 1 - NTRIP protocol v1, 2 - NTRIP protocol v2

Query Parameters

Parameter Status Description
id required Mount point id

NTRIP input management

APIs for managing NTRIP input

Get NTRIP


Requires authentication Return NTRIP input credentials

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}/ntrip" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/ntrip");

    let params = {
            "id": "Ew61ugErwPOBrSRM",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (200):

{
    "result": {
        "id": 2,
        "mountpoint_id": 2,
        "user_id": 1,
        "ntrip_version": 2,
        "username": "ivial981",
        "created_at": "2019-03-01 11:31:48",
        "updated_at": "2019-03-30 07:34:28"
    }
}

HTTP Request

GET api/v2/mountpoints/{id}/ntrip

Query Parameters

Parameter Status Description
id required Mount point id

Create or update mount point NTRIP input source


Requires authentication Return ntrip

Example request:

curl -X PUT "https://youcors.com/api/v2/mountpoints/{id}/ntrip" \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -d '{"username":"SnnGZbiA5dhRquGZ","password":"mSewaIYandmkTyG8","ntrip_version_id":19}'
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/ntrip");

    let params = {
            "id": "4M9ID43alBzFBKgu",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "username": "SnnGZbiA5dhRquGZ",
    "password": "mSewaIYandmkTyG8",
    "ntrip_version_id": 19
}

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

Example response (200):

{
    "result": {
        "id": 2,
        "mountpoint_id": 2,
        "user_id": 1,
        "ntrip_version": 2,
        "username": "ivial98",
        "created_at": "2019-03-01 11:31:48",
        "updated_at": "2019-03-30 07:50:05"
    }
}

HTTP Request

PUT api/v2/mountpoints/{id}/ntrip

Body Parameters

Parameter Type Status Description
username string optional Username required if ntrip_version_id qual 2 alpha_num max:255
password string optional Password required to create new NTRIP credential max:255
ntrip_version_id integer required NTRIP version 1 - NTRIP protocol v1, 2 - NTRIP protocol v2

Query Parameters

Parameter Status Description
id required Mount point id

general

api/v2/auth

Example request:

curl -X POST "https://youcors.com/api/v2/auth" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/auth");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/auth

api/v2/register

Example request:

curl -X POST "https://youcors.com/api/v2/register" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/register");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/register

api/v2/resend

Example request:

curl -X GET -G "https://youcors.com/api/v2/resend" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/resend");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/resend

api/v2/verify

Example request:

curl -X POST "https://youcors.com/api/v2/verify" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/verify");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/verify

api/v2/reset

Example request:

curl -X POST "https://youcors.com/api/v2/reset" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/reset");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/reset

api/v2/passwordupdate

Example request:

curl -X POST "https://youcors.com/api/v2/passwordupdate" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/passwordupdate");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/passwordupdate

api/v2/user

Example request:

curl -X GET -G "https://youcors.com/api/v2/user" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/user");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/user

api/v2/mountpoints/{id}/directip/generate

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}/directip/generate" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/directip/generate");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/mountpoints/{id}/directip/generate

api/v2/mountpoints/{id}/description

Example request:

curl -X PUT "https://youcors.com/api/v2/mountpoints/{id}/description" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/description");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

PUT api/v2/mountpoints/{id}/description

api/v2/mountpoints/{id}/sessions

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}/sessions" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/sessions");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/mountpoints/{id}/sessions

api/v2/mountpoints/{id}/directip

Example request:

curl -X GET -G "https://youcors.com/api/v2/mountpoints/{id}/directip" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/mountpoints/{id}/directip");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/mountpoints/{id}/directip

validatename

Example request:

curl -X GET -G "https://youcors.com/api/v2/clients/validatename" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients/validatename");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/clients/validatename

api/v2/clients

Example request:

curl -X GET -G "https://youcors.com/api/v2/clients" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/clients

api/v2/clients

Example request:

curl -X POST "https://youcors.com/api/v2/clients" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/clients

api/v2/clients/{id}

Example request:

curl -X GET -G "https://youcors.com/api/v2/clients/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/clients/{id}

api/v2/clients/{id}

Example request:

curl -X DELETE "https://youcors.com/api/v2/clients/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

DELETE api/v2/clients/{id}

api/v2/clients/{id}

Example request:

curl -X PUT "https://youcors.com/api/v2/clients/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/clients/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

PUT api/v2/clients/{id}

api/v2/casters

Example request:

curl -X GET -G "https://youcors.com/api/v2/casters" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/casters");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/casters

api/v2/casters

Example request:

curl -X POST "https://youcors.com/api/v2/casters" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/casters");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/casters

api/v2/casters/{id}

Example request:

curl -X PUT "https://youcors.com/api/v2/casters/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/casters/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

PUT api/v2/casters/{id}

api/v2/casters/{id}

Example request:

curl -X DELETE "https://youcors.com/api/v2/casters/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/casters/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

DELETE api/v2/casters/{id}

api/v2/subscriptions/plans

Example request:

curl -X GET -G "https://youcors.com/api/v2/subscriptions/plans" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/subscriptions/plans");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/subscriptions/plans

api/v2/subscriptions/subscription

Example request:

curl -X GET -G "https://youcors.com/api/v2/subscriptions/subscription" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/subscriptions/subscription");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/subscriptions/subscription

api/v2/subscriptions/upgrade

Example request:

curl -X POST "https://youcors.com/api/v2/subscriptions/upgrade" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/subscriptions/upgrade");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

HTTP Request

POST api/v2/subscriptions/upgrade

api/v2/help/{id}

Example request:

curl -X GET -G "https://youcors.com/api/v2/help/{id}" \
    -H "Authorization: Bearer {token}"
const url = new URL("https://youcors.com/api/v2/help/{id}");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

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

Example response (400):

{
    "error": "token_not_provided"
}

HTTP Request

GET api/v2/help/{id}