Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
Endpoints
User's
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
List Posts
Example request:
curl --request POST \
"{'base url'}/api/v1/listposts" \
--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\": \513\"
}"
const url = new URL(
"{'base url'}/api/v1/listposts"
);
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": "513"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Post
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\",
\"postCanonicalUrl\": \"http:\\/\\/www.morissette.com\\/doloremque-a-cum-laborum-magnam-doloribus-unde-et\",
\"postEnableCommenting\": \"Yes or No\",
\"postEnableSharing\": \"Yes or No\",
\"postHidePostFromBlog\": \"Yes or No\",
\"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",
"postCanonicalUrl": "http:\\/\\/www.morissette.com\\/doloremque-a-cum-laborum-magnam-doloribus-unde-et",
"postEnableCommenting": "Yes or No",
"postEnableSharing": "Yes or No",
"postHidePostFromBlog": "Yes or No",
"accountId": 0
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
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\",
\"postSeoPrimaryKeyword\": \"quas\",
\"postSeoOtherKeyword\": \"tempore\",
\"postSeoPostTitle\": \"expedita\",
\"postSeoMetaDescription\": \"error\",
\"postCanonicalUrl\": \"http:\\/\\/www.morissette.com\\/doloremque-a-cum-laborum-magnam-doloribus-unde-et\",
\"postEnableCommenting\": \"Yes or No\",
\"postEnableSharing\": \"Yes or No\",
\"postHidePostFromBlog\": \"Yes or No\",
\"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",
"postSeoPrimaryKeyword": "quas",
"postSeoOtherKeyword": "tempore",
"postSeoPostTitle": "expedita",
"postSeoMetaDescription": "error",
"postCanonicalUrl": "http:\/\/www.morissette.com\/doloremque-a-cum-laborum-magnam-doloribus-unde-et",
"postEnableCommenting": "Yes or No",
"postEnableSharing": "Yes or No",
"postHidePostFromBlog": "Yes or No",
"accountId": 0,
"postId": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
Category
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
List Teams
Example request:
curl --request POST \
"{'base url'}/api/v1/listteams" \
--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\": \513\"
}"
const url = new URL(
"{'base url'}/api/v1/listteams"
);
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": "513"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Team
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
User Team
List Users
Example request:
curl --request POST \
"{'base url'}/api/v1/listusers" \
--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\": \513\"
}"
const url = new URL(
"{'base url'}/api/v1/listusers"
);
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": "513"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
Author
List Authors
Add Author
Update Author
Delete Author
Sub-Account
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error: