MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Base URL

https://app.quickblog.co

Endpoints

User Login

Example request:
curl --request POST \
            "{'base url'}/api/v1/userlogin" \
            --header "Content-Type: application/json" \
            --header "Accept: application/json" \
            --data "{
            \"email\": \"corrupti\",
            \"password\": \"assumenda\"
        }"
        
const url = new URL(
            "{'base url'}/api/v1/userlogin"
        );
        
        const headers = {
            "Content-Type": "application/json",
            "Accept": "application/json",
        };
        
        let body = {
            "email": "corrupti",
            "password": "assumenda"
        };
        
        fetch(url, {
            method: "POST",
            headers,
            body: JSON.stringify(body),
        }).then(response => response.json());

POST api/v1/userlogin

Body Parameters

email  string  

password  string  

Update Profile

Example request:
curl --request POST \
            "{'base url'}/api/v1/updateprofile" \
            --header "Content-Type: application/json" \
            --header "Accept: application/json" \
            --header "token: Your API token here" \
            --header "apikey: Your API key here" \
            --header "apisecretkey: Your API Secret key here" \
            --data "{
            \"firstName\": \"ad\",
            \"lastName\": \"nihil\"
        }"
        
const url = new URL(
            "{'base url'}/api/v1/updateprofile"
        );
        
        const headers = {
            "Content-Type": "application/json",
            "Accept": "application/json",
            "token": "Your API token here",
            "apikey": "Your API key here",
            "apisecretkey": "Your API Secret key here",
        };
        
        let body = {
            "firstName": "ad",
            "lastName": "nihil"
        };
        
        fetch(url, {
            method: "POST",
            headers,
            body: JSON.stringify(body),
        }).then(response => response.json());

POST api/v1/updateprofile

Body Parameters

firstName  string  

lastName  string  

Add Post

Example request:
curl --request POST \
    "{'base url'}/api/v1/addpost" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"postImage\": \"a\",
    \"postTitle\": \"nesciunt\",
    \"postSlug\": \"consequuntur\",
    \"postAuthorId\": 9,
    \"postStatus\": \"autem\",
    \"postPublishAt\": \"2022-07-28T05:20:50\",
    \"postButtonText\": \"labore\",
    \"postSeoPrimaryKeyword\": \"praesentium\",
    \"postSeoOtherKeyword\": \"possimus\",
    \"postSeoPostTitle\": \"quia\",
    \"postSeoMetaDescription\": \"voluptatum\",
    \"accountId\": 0
}"
const url = new URL(
    "{'base url'}/api/v1/addpost"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "postImage": "a",
    "postTitle": "nesciunt",
    "postSlug": "consequuntur",
    "postAuthorId": 9,
    "postStatus": "autem",
    "postPublishAt": "2022-07-28T05:20:50",
    "postButtonText": "labore",
    "postSeoPrimaryKeyword": "praesentium",
    "postSeoOtherKeyword": "possimus",
    "postSeoPostTitle": "quia",
    "postSeoMetaDescription": "voluptatum",
    "accountId": 0
};

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

POST api/v1/addpost

Body Parameters

postImage  string optional  

postTitle  string  

postSlug  string optional  

postContent  string optional  

postAuthorId  integer optional  

postCategoriesId  string optional  

postRelatedPostId  string optional  

postStatus  string optional  

postPublishAt  string optional  

Must be a valid date.

postButtonText  string optional  

postSeoPrimaryKeyword  string optional  

postSeoOtherKeyword  string optional  

postSeoPostTitle  string optional  

postSeoMetaDescription  string optional  

accountId  integer  

Must be at least 1.

Update Post

Example request:
curl --request POST \
    "{'base url'}/api/v1/updatepost" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"postImage\": \"maiores\",
    \"postTitle\": \"id\",
    \"postSlug\": \"eius\",
    \"postAuthorId\": 16,
    \"postStatus\": \"ullam\",
    \"postPublishAt\": \"2022-07-28T05:20:50\",
    \"postButtonText\": \"ut\",
    \"postCanonicalUrl\": \"http:\\/\\/www.morissette.com\\/doloremque-a-cum-laborum-magnam-doloribus-unde-et\",
    \"postEnableCommenting\": \"et\",
    \"postEnableSharing\": \"illum\",
    \"postHidePostFromBlog\": \"sit\",
    \"postSeoPrimaryKeyword\": \"quas\",
    \"postSeoOtherKeyword\": \"tempore\",
    \"postSeoPostTitle\": \"expedita\",
    \"postSeoMetaDescription\": \"error\",
    \"accountId\": 0,
    \"postId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/updatepost"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "postImage": "maiores",
    "postTitle": "id",
    "postSlug": "eius",
    "postAuthorId": 16,
    "postStatus": "ullam",
    "postPublishAt": "2022-07-28T05:20:50",
    "postButtonText": "ut",
    "postCanonicalUrl": "http:\/\/www.morissette.com\/doloremque-a-cum-laborum-magnam-doloribus-unde-et",
    "postEnableCommenting": "et",
    "postEnableSharing": "illum",
    "postHidePostFromBlog": "sit",
    "postSeoPrimaryKeyword": "quas",
    "postSeoOtherKeyword": "tempore",
    "postSeoPostTitle": "expedita",
    "postSeoMetaDescription": "error",
    "accountId": 0,
    "postId": 1
};

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

POST api/v1/updatepost

Body Parameters

postImage  string optional  

postTitle  string  

postSlug  string optional  

postContent  string optional  

postAuthorId  integer optional  

postCategoriesId  string optional  

postRelatedPostId  string optional  

postStatus  string optional  

postPublishAt  string optional  

Must be a valid date.

postButtonText  string optional  

postCanonicalUrl  string optional  

Must be a valid URL.

postEnableCommenting  string optional  

postEnableSharing  string optional  

postHidePostFromBlog  string optional  

postSeoPrimaryKeyword  string optional  

postSeoOtherKeyword  string optional  

postSeoPostTitle  string optional  

postSeoMetaDescription  string optional  

accountId  integer  

Must be at least 1.

postId  integer  

Delete Post

Example request:
curl --request POST \
    "{'base url'}/api/v1/deletepost" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"postId\": 0,
    \"accountId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/deletepost"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "postId": 0,
    "accountId": 1
};

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

POST api/v1/deletepost

Body Parameters

postId  integer  

Must be at least 1.

accountId  integer  

Must be at least 1.

Post Embed Code

Example request:
curl --request POST \
    "{'base url'}/api/v1/postembedcode" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"accountId\": 0
}"
const url = new URL(
    "{'base url'}/api/v1/postembedcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "accountId": 0
};

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

POST api/v1/postembedcode

Body Parameters

accountId  integer  

Must be at least 1.

List Categories

Example request:
curl --request POST \
    "{'base url'}/api/v1/listcategories" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"accountId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/listcategories"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "accountId": 1
};

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

POST api/v1/listcategories

Body Parameters

accountId  integer  

Must be at least 1.

Add Category

Example request:
curl --request POST \
    "{'base url'}/api/v1/addcategory" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"catName\": \"consectetur\",
    \"catLabelColor\": \"omnis\",
    \"catLabelFontSize\": 16,
    \"catLabelTextColor\": \"officiis\",
    \"subAccountId\": 17
}"
const url = new URL(
    "{'base url'}/api/v1/addcategory"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "catName": "consectetur",
    "catLabelColor": "omnis",
    "catLabelFontSize": 16,
    "catLabelTextColor": "officiis",
    "subAccountId": 17
};

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

POST api/v1/addcategory

Body Parameters

catName  string optional  

catLabelColor  string optional  

catLabelFontSize  integer optional  

catLabelTextColor  string optional  

subAccountId  integer optional  

Update Category

Example request:
curl --request POST \
    "{'base url'}/api/v1/updatecategory" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"catName\": \"et\",
    \"catLabelColor\": \"laborum\",
    \"catLabelFontSize\": \"et\",
    \"catLabelTextColor\": \"adipisci\",
    \"catId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/updatecategory"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "catName": "et",
    "catLabelColor": "laborum",
    "catLabelFontSize": "et",
    "catLabelTextColor": "adipisci",
    "catId": 1
};

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

POST api/v1/updatecategory

Body Parameters

catName  string optional  

catLabelColor  string optional  

catLabelFontSize  string optional  

catLabelTextColor  string optional  

catId  integer  

Must be at least 1.

Delete Category

Example request:
curl --request POST \
    "{'base url'}/api/v1/deletecategory" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"catId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/deletecategory"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "catId": 1
};

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

POST api/v1/deletecategory

Body Parameters

catId  integer  

Must be at least 1.

List Authors

Example request:
curl --request POST \
    "{'base url'}/api/v1/listauthors" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"accountId\": 0
}"
const url = new URL(
    "{'base url'}/api/v1/listauthors"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "accountId": 0
};

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

POST api/v1/listauthors

Body Parameters

accountId  integer  

Must be at least 1.

Add Author

Example request:
curl --request POST \
    "{'base url'}/api/v1/addauthor" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"authorImg\": \"aperiam\",
    \"authorName\": \"consequatur\",
    \"authorBio\": \"est\",
    \"subAccountId\": 2
}"
const url = new URL(
    "{'base url'}/api/v1/addauthor"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "authorImg": "aperiam",
    "authorName": "consequatur",
    "authorBio": "est",
    "subAccountId": 2
};

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

POST api/v1/addauthor

Body Parameters

authorImg  string optional  

authorName  string  

authorBio  string optional  

subAccountId  integer  

Update Author

Example request:
curl --request POST \
    "{'base url'}/api/v1/updateauthor" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"authorImg\": \"autem\",
    \"authorName\": \"non\",
    \"authorBio\": \"explicabo\",
    \"subAccountId\": 12,
    \"authorId\": 16
}"
const url = new URL(
    "{'base url'}/api/v1/updateauthor"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "authorImg": "autem",
    "authorName": "non",
    "authorBio": "explicabo",
    "subAccountId": 12,
    "authorId": 16
};

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

POST api/v1/updateauthor

Body Parameters

authorImg  string optional  

authorName  string  

authorBio  string optional  

subAccountId  integer  

authorId  integer optional  

Delete Author

Example request:
curl --request POST \
    "{'base url'}/api/v1/deleteauthor" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"authorId\": 1
}"
const url = new URL(
    "{'base url'}/api/v1/deleteauthor"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "authorId": 1
};

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

POST api/v1/deleteauthor

Body Parameters

authorId  integer  

Must be at least 1.

Create Team

Example request:
curl --request POST \
    "{'base url'}/api/v1/createteam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"teamName\": \"enim\",
    \"assignAccountId\": \"quas\"
}"
const url = new URL(
    "{'base url'}/api/v1/createteam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "teamName": "enim",
    "assignAccountId": "quas"
};

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

POST api/v1/createteam

Body Parameters

teamName  string  

assignAccountId  string  

Update Team

Example request:
curl --request POST \
    "{'base url'}/api/v1/updateteam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"teamName\": \"id\",
    \"assignAccountId\": \"error\",
    \"teamId\": 3
}"
const url = new URL(
    "{'base url'}/api/v1/updateteam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "teamName": "id",
    "assignAccountId": "error",
    "teamId": 3
};

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

POST api/v1/updateteam

Body Parameters

teamName  string  

assignAccountId  string  

teamId  integer  

Delete Team

Example request:
curl --request POST \
    "{'base url'}/api/v1/deleteteam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"teamId\": 12
}"
const url = new URL(
    "{'base url'}/api/v1/deleteteam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "teamId": 12
};

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

POST api/v1/deleteteam

Body Parameters

teamId  integer  

Add User To Team

Example request:
curl --request POST \
    "{'base url'}/api/v1/addusertoteam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"userEmail\": \"voluptatem\",
    \"userRoleName\": \"sed\",
    \"teamId\": 12
}"
const url = new URL(
    "{'base url'}/api/v1/addusertoteam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "userEmail": "voluptatem",
    "userRoleName": "sed",
    "teamId": 12
};

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

POST api/v1/addusertoteam

Body Parameters

userEmail  string  

userRoleName  string  

teamId  integer  

Update Team User Role

Example request:
curl --request POST \
    "{'base url'}/api/v1/updateteamuserrole" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"userEmail\": \"perspiciatis\",
    \"userRoleName\": \"facere\",
    \"teamId\": 9
}"
const url = new URL(
    "{'base url'}/api/v1/updateteamuserrole"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "userEmail": "perspiciatis",
    "userRoleName": "facere",
    "teamId": 9
};

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

POST api/v1/updateteamuserrole

Body Parameters

userEmail  string  

userRoleName  string  

teamId  integer  

Delete Team User

Example request:
curl --request POST \
    "{'base url'}/api/v1/deleteteamuser" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"teamId\": 1,
    \"userEmail\": \"consequatur\"
}"
const url = new URL(
    "{'base url'}/api/v1/deleteteamuser"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "teamId": 1,
    "userEmail": "consequatur"
};

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

POST api/v1/deleteteamuser

Body Parameters

teamId  integer  

userEmail  string  

Create Sub-Account

Example request:
curl --request POST \
    "{'base url'}/api/v1/createsubaccount" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"name\": \"fugiat\",
    \"parentAccountId\": 19
}"
const url = new URL(
    "{'base url'}/api/v1/createsubaccount"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "name": "fugiat",
    "parentAccountId": 19
};

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

POST api/v1/createsubaccount

Body Parameters

name  string  

parentAccountId  integer  

Update Sub-Account

Example request:
curl --request POST \
    "{'base url'}/api/v1/updatesubaccount" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"updatedSubAccountName\": \"recusandae\",
    \"subAccountId\": 0
}"
const url = new URL(
    "{'base url'}/api/v1/updatesubaccount"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "updatedSubAccountName": "recusandae",
    "subAccountId": 0
};

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

POST api/v1/updatesubaccount

Body Parameters

updatedSubAccountName  string  

subAccountId  integer  

Must be at least 1.

Delete Sub-Account

Example request:
curl --request POST \
    "{'base url'}/api/v1/deletesubaccount" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here" \
    --data "{
    \"subAccountId\": 0
}"
const url = new URL(
    "{'base url'}/api/v1/deletesubaccount"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

let body = {
    "subAccountId": 0
};

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

POST api/v1/deletesubaccount

Body Parameters

subAccountId  integer  

Must be at least 1.

List Sub-Accounts

Example request:
curl --request GET \
    --get "{'base url'}/api/v1/listsubaccounts" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "token: Your API token here" \
    --header "apikey: Your API key here" \
    --header "apisecretkey: Your API Secret key here"
const url = new URL(
    "{'base url'}/api/v1/listsubaccounts"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "token": "Your API token here",
    "apikey": "Your API key here",
    "apisecretkey": "Your API Secret key here",
};

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

GET api/v1/listsubaccounts