NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

Account management

APIs for managing user accounts

api/account/show/{slug}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/show/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/show/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/show/{slug}

api/account/follow/followers/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/follow/followers/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/follow/followers/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/follow/followers/{accountId}

api/account/follow/following/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/follow/following/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/follow/following/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/follow/following/{accountId}

api/account/info

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/info"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/info

api/account/create

Example request:

curl -X POST \
    "http://localhost:82/api/account/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/create"
);

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

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

HTTP Request

POST api/account/create

api/account/avatar

Example request:

curl -X POST \
    "http://localhost:82/api/account/avatar" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/avatar"
);

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

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

HTTP Request

POST api/account/avatar

api/account/delete/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/account/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/delete/1"
);

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

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

HTTP Request

POST api/account/delete/{id}

api/account/edit/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/account/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/edit/1"
);

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

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

HTTP Request

POST api/account/edit/{id}

api/account/change-number

Example request:

curl -X POST \
    "http://localhost:82/api/account/change-number" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/change-number"
);

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

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

HTTP Request

POST api/account/change-number

api/account/block/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/block/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/block/1"
);

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

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

HTTP Request

POST api/account/block/{accountId}

api/account/unblock/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/unblock/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/unblock/1"
);

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

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

HTTP Request

POST api/account/unblock/{accountId}

api/account/friend/list/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/friend/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/list/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/friend/list/{accountId}

api/account/friend/create/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/friend/create/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/create/1"
);

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

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

HTTP Request

POST api/account/friend/create/{accountId}

api/account/friend/delete/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/friend/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/delete/1"
);

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

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

HTTP Request

POST api/account/friend/delete/{accountId}

api/account/friend/block/list/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/friend/block/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/block/list/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/friend/block/list/{accountId}

api/account/friend/block/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/friend/block/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/block/1"
);

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

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

HTTP Request

POST api/account/friend/block/{accountId}

api/account/friend/unblock/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/friend/unblock/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/unblock/1"
);

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

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

HTTP Request

POST api/account/friend/unblock/{accountId}

api/account/friend/report/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/friend/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/friend/report/1"
);

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

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

HTTP Request

POST api/account/friend/report/{accountId}

api/account/follow/follow/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/follow/follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/follow/follow/1"
);

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

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

HTTP Request

POST api/account/follow/follow/{accountId}

api/account/follow/un-follow/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/follow/un-follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/follow/un-follow/1"
);

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

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

HTTP Request

POST api/account/follow/un-follow/{accountId}

api/account/privacy/last-seen

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/last-seen" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/last-seen"
);

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

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

HTTP Request

POST api/account/privacy/last-seen

api/account/privacy/profile-photo

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/profile-photo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/profile-photo"
);

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

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

HTTP Request

POST api/account/privacy/profile-photo

api/account/privacy/about

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/about" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/about"
);

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

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

HTTP Request

POST api/account/privacy/about

api/account/privacy/status

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/status" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/status"
);

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

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

HTTP Request

POST api/account/privacy/status

api/account/privacy/live-location

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/live-location" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/live-location"
);

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

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

HTTP Request

POST api/account/privacy/live-location

api/account/privacy/blocked-contact

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/blocked-contact" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/blocked-contact"
);

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

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

HTTP Request

POST api/account/privacy/blocked-contact

api/account/privacy/read-receipts

Example request:

curl -X POST \
    "http://localhost:82/api/account/privacy/read-receipts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/privacy/read-receipts"
);

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

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

HTTP Request

POST api/account/privacy/read-receipts

api/account/security/show-notification

Example request:

curl -X POST \
    "http://localhost:82/api/account/security/show-notification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/security/show-notification"
);

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

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

HTTP Request

POST api/account/security/show-notification

api/account/security/tow-step-verification

Example request:

curl -X POST \
    "http://localhost:82/api/account/security/tow-step-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/security/tow-step-verification"
);

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

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

HTTP Request

POST api/account/security/tow-step-verification

api/account/group/list/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/group/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/list/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/group/list/{accountId}

api/account/group/list

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/group/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/group/list

api/account/group/info/{groupId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/group/info/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/info/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/group/info/{groupId}

api/account/group/report/{groupId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/account/group/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/report/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/account/group/report/{groupId}

api/account/group/create

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/create"
);

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

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

HTTP Request

POST api/account/group/create

api/account/group/edit/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/edit/1"
);

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

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

HTTP Request

POST api/account/group/edit/{groupId}

api/account/group/delete/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/delete/1"
);

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

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

HTTP Request

POST api/account/group/delete/{groupId}

api/account/group/add-participants/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/add-participants/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/add-participants/1"
);

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

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

HTTP Request

POST api/account/group/add-participants/{groupId}

api/account/group/delete-participant/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/delete-participant/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/delete-participant/1"
);

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

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

HTTP Request

POST api/account/group/delete-participant/{groupId}

api/account/group/leave-from-group/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/leave-from-group/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/leave-from-group/1"
);

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

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

HTTP Request

POST api/account/group/leave-from-group/{groupId}

api/account/group/make-as-group-admin/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/make-as-group-admin/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/make-as-group-admin/1"
);

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

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

HTTP Request

POST api/account/group/make-as-group-admin/{groupId}

api/account/group/avatar/{groupId}

Example request:

curl -X POST \
    "http://localhost:82/api/account/group/avatar/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/account/group/avatar/1"
);

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

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

HTTP Request

POST api/account/group/avatar/{groupId}

Callback management

APIs for managing callbacks

api/sms/callback/twilio

Example request:

curl -X POST \
    "http://localhost:82/api/sms/callback/twilio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sms/callback/twilio"
);

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

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

HTTP Request

POST api/sms/callback/twilio

api/subscription/callback/ios

Example request:

curl -X POST \
    "http://localhost:82/api/subscription/callback/ios" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/subscription/callback/ios"
);

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

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

HTTP Request

POST api/subscription/callback/ios

api/subscription/callback/android

Example request:

curl -X POST \
    "http://localhost:82/api/subscription/callback/android" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/subscription/callback/android"
);

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

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

HTTP Request

POST api/subscription/callback/android

Community management

APIs for managing community

api/community/search

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/search" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/search"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/search

api/community/post/list

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/post/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/post/list

api/community/post/show/{id}

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/post/show/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/show/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/post/show/{id}

api/community/hash-tag/info

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/hash-tag/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/info"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/hash-tag/info

api/community/hash-tag/post-list

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/hash-tag/post-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/post-list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/hash-tag/post-list

api/community/hash-tag/follow/following/{accountId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/hash-tag/follow/following/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/follow/following/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/hash-tag/follow/following/{accountId}

api/community/post/create

Example request:

curl -X POST \
    "http://localhost:82/api/community/post/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/create"
);

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

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

HTTP Request

POST api/community/post/create

api/community/post/edit/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/community/post/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/edit/1"
);

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

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

HTTP Request

POST api/community/post/edit/{id}

api/community/post/delete/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/community/post/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/delete/1"
);

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

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

HTTP Request

POST api/community/post/delete/{id}

api/community/post/interaction/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/community/post/interaction/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/interaction/1"
);

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

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

HTTP Request

POST api/community/post/interaction/{id}

api/community/post/interaction/list/{id}

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/post/interaction/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/interaction/list/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/post/interaction/list/{id}

api/community/post/report/types

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/post/report/types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/report/types"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/post/report/types

api/community/post/report/{id}

Example request:

curl -X POST \
    "http://localhost:82/api/community/post/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/post/report/1"
);

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

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

HTTP Request

POST api/community/post/report/{id}

api/community/hash-tag/follow/follow/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/community/hash-tag/follow/follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/follow/follow/1"
);

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

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

HTTP Request

POST api/community/hash-tag/follow/follow/{accountId}

api/community/hash-tag/follow/un-follow/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/community/hash-tag/follow/un-follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/follow/un-follow/1"
);

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

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

HTTP Request

POST api/community/hash-tag/follow/un-follow/{accountId}

api/community/hash-tag/group/list

Example request:

curl -X GET \
    -G "http://localhost:82/api/community/hash-tag/group/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/group/list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/community/hash-tag/group/list

api/community/hash-tag/group/follow/{accountId}

Example request:

curl -X POST \
    "http://localhost:82/api/community/hash-tag/group/follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/community/hash-tag/group/follow/1"
);

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

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

HTTP Request

POST api/community/hash-tag/group/follow/{accountId}

Notification management

APIs for managing notification

Notification Acknowledgement

This API used to sent acknowledgement by manually over API

Example request:

curl -X POST \
    "http://localhost:82/api/common/notification/acknowledgement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"receiver_id":18,"account_id":2,"message_id":"sequi","chat_id":"earum"}'
const url = new URL(
    "http://localhost:82/api/common/notification/acknowledgement"
);

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

let body = {
    "receiver_id": 18,
    "account_id": 2,
    "message_id": "sequi",
    "chat_id": "earum"
}

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

Example response (204):

{}

HTTP Request

POST api/common/notification/acknowledgement

Body Parameters

Parameter Type Status Description
receiver_id integer required
account_id integer required
message_id string required
chat_id string required

SDK management

APIs for managing SDK

api/sdk/info

Example request:

curl -X GET \
    -G "http://localhost:82/api/sdk/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/info"
);

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

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

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "token": [
            "The JWT string must have two dots"
        ]
    }
}

HTTP Request

GET api/sdk/info

api/sdk/receiver

Example request:

curl -X POST \
    "http://localhost:82/api/sdk/receiver" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/receiver"
);

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

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

HTTP Request

POST api/sdk/receiver

api/sdk/sender

Example request:

curl -X POST \
    "http://localhost:82/api/sdk/sender" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/sender"
);

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

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

HTTP Request

POST api/sdk/sender

api/sdk/deep-link

Example request:

curl -X POST \
    "http://localhost:82/api/sdk/deep-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/deep-link"
);

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

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

HTTP Request

POST api/sdk/deep-link

api/sdk/package

Example request:

curl -X GET \
    -G "http://localhost:82/api/sdk/package" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/package"
);

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

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

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "token": [
            "The JWT string must have two dots"
        ]
    }
}

HTTP Request

GET api/sdk/package

api/sdk/product/filter-builder

Example request:

curl -X POST \
    "http://localhost:82/api/sdk/product/filter-builder" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/sdk/product/filter-builder"
);

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

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

HTTP Request

POST api/sdk/product/filter-builder

Service management

APIs for managing services

api/service/list

Example request:

curl -X GET \
    -G "http://localhost:82/api/service/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/service/list

api/service/topics

Example request:

curl -X POST \
    "http://localhost:82/api/service/topics" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/topics"
);

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

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

HTTP Request

POST api/service/topics

api/service/package/{serviceId}/{packageId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/service/package/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/package/1/1"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/service/package/{serviceId}/{packageId}

api/service/group/create

Example request:

curl -X POST \
    "http://localhost:82/api/service/group/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/group/create"
);

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

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

HTTP Request

POST api/service/group/create

api/service/group/deeplink/create

Example request:

curl -X POST \
    "http://localhost:82/api/service/group/deeplink/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/group/deeplink/create"
);

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

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

HTTP Request

POST api/service/group/deeplink/create

api/service/products/list

Example request:

curl -X GET \
    -G "http://localhost:82/api/service/products/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/products/list"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/service/products/list

api/service/products/stores

Example request:

curl -X GET \
    -G "http://localhost:82/api/service/products/stores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/service/products/stores"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/service/products/stores

Subscription management

APIs for managing subscription

api/subscription/package/{serviceId}/{packageId}

Example request:

curl -X GET \
    -G "http://localhost:82/api/subscription/package/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/subscription/package/1/1"
);

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

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

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "package_id": [
            "Service package id is not valid!"
        ]
    }
}

HTTP Request

GET api/subscription/package/{serviceId}/{packageId}

api/subscription/log

Example request:

curl -X POST \
    "http://localhost:82/api/subscription/log" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/subscription/log"
);

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

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

HTTP Request

POST api/subscription/log

api/subscription

Example request:

curl -X POST \
    "http://localhost:82/api/subscription" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/subscription"
);

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

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

HTTP Request

POST api/subscription

Upload management

APIs for managing upload

Upload Image

This API used to Upload Image. allowed mimes:jpeg,png,jpg,gif,svg Max size 8192 KB

Example request:

curl -X POST \
    "http://localhost:82/api/common/upload/image" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/common/upload/image"
);

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

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

Example response (200):

{
    "result": {
        "image_url": "https:\/\/s3.jawab.app\/"
    }
}

HTTP Request

POST api/common/upload/image

Upload Audio

This API used to Upload Audio. allowed mimes:rmi,mp3,m4a,wav,aif Max size 10240 KB

Example request:

curl -X POST \
    "http://localhost:82/api/common/upload/audio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/common/upload/audio"
);

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

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

Example response (200):

{
    "result": {
        "audio_url": "https:\/\/s3.jawab.app\/"
    }
}

HTTP Request

POST api/common/upload/audio

Upload video

This API used to Upload video. allowed mimes:mov,m4v,mp4,avi,wav Max size 30720 KB

Example request:

curl -X POST \
    "http://localhost:82/api/common/upload/video" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/common/upload/video"
);

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

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

Example response (200):

{
    "result": {
        "video_url": "https:\/\/s3.jawab.app\/"
    }
}

HTTP Request

POST api/common/upload/video

User management

APIs for managing users

api/auth/login-by-phone

Example request:

curl -X POST \
    "http://localhost:82/api/auth/login-by-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/auth/login-by-phone"
);

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

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

HTTP Request

POST api/auth/login-by-phone

api/auth/resend-code-sms

Example request:

curl -X POST \
    "http://localhost:82/api/auth/resend-code-sms" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/auth/resend-code-sms"
);

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

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

HTTP Request

POST api/auth/resend-code-sms

api/auth/pin-code-verification

Example request:

curl -X POST \
    "http://localhost:82/api/auth/pin-code-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/auth/pin-code-verification"
);

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

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

HTTP Request

POST api/auth/pin-code-verification

api/auth/logout

Example request:

curl -X POST \
    "http://localhost:82/api/auth/logout" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/auth/logout"
);

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

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

HTTP Request

POST api/auth/logout

Registration

[Create a anonymous user]

Example request:

curl -X POST \
    "http://localhost:82/api/auth/registration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"facilis","token":"velit","mobile_os":"ios"}'
const url = new URL(
    "http://localhost:82/api/auth/registration"
);

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

let body = {
    "uuid": "facilis",
    "token": "velit",
    "mobile_os": "ios"
}

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

Example response (200):

{
    "result": {
        "token_type": "Bearer",
        "expires_in": 1626870090,
        "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJ..."
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "token": [
            "invalid secret token"
        ]
    }
}

HTTP Request

POST api/auth/registration

Body Parameters

Parameter Type Status Description
uuid string required The UUID of the device, be sure to be unique and only one for the device.
token string required The token check with Qanah.
mobile_os string required The mobile_os is one of this (android,ios).

Registration UsePhone

[Login user use phone]

Example request:

curl -X POST \
    "http://localhost:82/api/auth/registration/use-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"possimus","phone":"consequatur","phone_country":"similique","mobile_os":"ios","env":"prod"}'
const url = new URL(
    "http://localhost:82/api/auth/registration/use-phone"
);

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

let body = {
    "uuid": "possimus",
    "phone": "consequatur",
    "phone_country": "similique",
    "mobile_os": "ios",
    "env": "prod"
}

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

Example response (200):

[]

HTTP Request

POST api/auth/registration/use-phone

Body Parameters

Parameter Type Status Description
uuid string required The UUID of the device, be sure to be unique and only one for the device.
phone string required The user phone.
phone_country string required The user phone country code.
mobile_os string required The mobile_os is one of this (android,ios).
env string optional nullable The env is one of this (prod,test).

Registration PinCode Verification

[Create a anonymous user]

Example request:

curl -X POST \
    "http://localhost:82/api/auth/registration/pin-code-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"architecto","code":"laudantium"}'
const url = new URL(
    "http://localhost:82/api/auth/registration/pin-code-verification"
);

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

let body = {
    "uuid": "architecto",
    "code": "laudantium"
}

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

Example response (200):

[]

HTTP Request

POST api/auth/registration/pin-code-verification

Body Parameters

Parameter Type Status Description
uuid string required The UUID of the device, be sure to be unique and only one for the device.
code string required The token check with Qanah.

api/user

Example request:

curl -X GET \
    -G "http://localhost:82/api/user" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user"
);

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

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

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/user

api/user/pin-code

Example request:

curl -X POST \
    "http://localhost:82/api/user/pin-code" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/pin-code"
);

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

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

HTTP Request

POST api/user/pin-code

api/user/pin-code/check

Example request:

curl -X POST \
    "http://localhost:82/api/user/pin-code/check" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/pin-code/check"
);

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

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

HTTP Request

POST api/user/pin-code/check

api/user/deep-link

Example request:

curl -X POST \
    "http://localhost:82/api/user/deep-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/deep-link"
);

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

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

HTTP Request

POST api/user/deep-link

api/user/fcm-token

Example request:

curl -X POST \
    "http://localhost:82/api/user/fcm-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/fcm-token"
);

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

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

HTTP Request

POST api/user/fcm-token

api/user/apn-token

Example request:

curl -X POST \
    "http://localhost:82/api/user/apn-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/apn-token"
);

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

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

HTTP Request

POST api/user/apn-token

api/user/analytics-info

Example request:

curl -X POST \
    "http://localhost:82/api/user/analytics-info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/user/analytics-info"
);

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

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

HTTP Request

POST api/user/analytics-info

api/contact/syncing

Example request:

curl -X POST \
    "http://localhost:82/api/contact/syncing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/contact/syncing"
);

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

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

HTTP Request

POST api/contact/syncing

WebChat management

APIs for managing web-chat

api/webchat/connect

Example request:

curl -X POST \
    "http://localhost:82/api/webchat/connect" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/webchat/connect"
);

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

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

HTTP Request

POST api/webchat/connect

api/webchat/refresh-token

Example request:

curl -X POST \
    "http://localhost:82/api/webchat/refresh-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/webchat/refresh-token"
);

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

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

HTTP Request

POST api/webchat/refresh-token

api/webchat/login

Example request:

curl -X POST \
    "http://localhost:82/api/webchat/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "http://localhost:82/api/webchat/login"
);

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

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

HTTP Request

POST api/webchat/login