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 "https://chat.jawab.app/api/account/show/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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}

Followers Accounts

[Api to get Followers] Note use {api-version:2} you can find the response under 300

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/account/follow/followers/20" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/account/follow/followers/20"
);

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 (200):

{
    "result": [
        {
            "id": 15225,
            "account_id": 68646,
            "follower_account_id": 20040,
            "created_at": "2020-08-09 12:42:20",
            "updated_at": "2020-08-09 12:42:20",
            "follower": {
                "id": 68646,
                "user_id": 74736,
                "nickname": "Qanah",
                "avatar": {
                    "100*100": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-100x100.jpeg",
                    "800*800": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-800x800.jpeg",
                    "original": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx.jpeg"
                },
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/GnV6ukyMGzA5tZQM6",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 10,
                "following_count": 3,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            }
        },
        {
            "id": 18675,
            "account_id": 120469,
            "follower_account_id": 20040,
            "created_at": "2020-09-07 10:52:09",
            "updated_at": "2020-09-07 10:52:09",
            "follower": {
                "id": 120469,
                "user_id": 127014,
                "nickname": "Ahmed sulta",
                "avatar": null,
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@AhmedSulta",
                "deep_link": "https:\/\/account.jawab.app\/wKTvKFdAbrT58qQp7",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 1,
                "following_count": 2,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "AhmedSulta"
            }
        },
        {
            "id": 21298,
            "account_id": 104996,
            "follower_account_id": 20040,
            "created_at": "2020-10-01 13:25:00",
            "updated_at": "2020-10-01 13:25:00",
            "follower": {
                "id": 104996,
                "user_id": 111536,
                "nickname": "Elhamm",
                "avatar": null,
                "status": "Hey there! i am using JawabApp!",
                "default": 1,
                "is_private": 0,
                "slug": "@Elhamm",
                "deep_link": "https:\/\/account.jawab.app\/CrdgXdS9mDjp4yY1A",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 1,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "Elhamm"
            }
        }
    ]
}

Example response (300):

{
    "current_page": 1,
    "data": [
        {
            "id": 15225,
            "account_id": 68646,
            "follower_account_id": 20040,
            "created_at": "2020-08-09 12:42:20",
            "updated_at": "2020-08-09 12:42:20",
            "follower": {
                "id": 68646,
                "user_id": 74736,
                "nickname": "Qanah",
                "avatar": {
                    "100*100": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-100x100.jpeg",
                    "800*800": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-800x800.jpeg",
                    "original": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx.jpeg"
                },
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/GnV6ukyMGzA5tZQM6",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 10,
                "following_count": 3,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            }
        },
        {
            "id": 18675,
            "account_id": 120469,
            "follower_account_id": 20040,
            "created_at": "2020-09-07 10:52:09",
            "updated_at": "2020-09-07 10:52:09",
            "follower": {
                "id": 120469,
                "user_id": 127014,
                "nickname": "Ahmed sulta",
                "avatar": null,
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@AhmedSulta",
                "deep_link": "https:\/\/account.jawab.app\/wKTvKFdAbrT58qQp7",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 1,
                "following_count": 2,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "AhmedSulta"
            }
        },
        {
            "id": 21298,
            "account_id": 104996,
            "follower_account_id": 20040,
            "created_at": "2020-10-01 13:25:00",
            "updated_at": "2020-10-01 13:25:00",
            "follower": {
                "id": 104996,
                "user_id": 111536,
                "nickname": "Elhamm",
                "avatar": null,
                "status": "Hey there! i am using JawabApp!",
                "default": 1,
                "is_private": 0,
                "slug": "@Elhamm",
                "deep_link": "https:\/\/account.jawab.app\/CrdgXdS9mDjp4yY1A",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 1,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "Elhamm"
            }
        }
    ],
    "first_page_url": "http:\/\/chat.jawab.app\/api\/account\/follow\/followers\/20040?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http:\/\/chat.jawab.app\/api\/account\/follow\/followers\/20040?page=1",
    "next_page_url": null,
    "path": "http:\/\/chat.jawab.app\/api\/account\/follow\/followers\/20040",
    "per_page": 20,
    "prev_page_url": null,
    "to": 3,
    "total": 3
}

HTTP Request

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

URL Parameters

Parameter Status Description
accountId required The accountId of the user.

Following Accounts

[Api to get Following] Note use {api-version:2} you can find the response under 300

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/account/follow/following/17" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/account/follow/following/17"
);

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 (200):

{
    "result": [
        {
            "id": 13890,
            "account_id": 20040,
            "follower_account_id": 1365,
            "created_at": "2020-07-22 11:15:03",
            "updated_at": "2020-07-22 11:15:03",
            "account": {
                "id": 1365,
                "user_id": 908,
                "nickname": "W.Qanah",
                "avatar": null,
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@WQanah",
                "deep_link": "https:\/\/account.jawab.app\/BU9c689gPzAZGsfYA",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 1,
                "following_count": 0,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "WQanah"
            }
        },
        {
            "id": 15226,
            "account_id": 20040,
            "follower_account_id": 68646,
            "created_at": "2020-08-09 12:43:50",
            "updated_at": "2020-08-09 12:43:50",
            "account": {
                "id": 68646,
                "user_id": 74736,
                "nickname": "Qanah",
                "avatar": {
                    "100*100": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-100x100.jpeg",
                    "800*800": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-800x800.jpeg",
                    "original": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx.jpeg"
                },
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/GnV6ukyMGzA5tZQM6",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 10,
                "following_count": 3,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            }
        }
    ]
}

Example response (300):

{
    "current_page": 1,
    "data": [
        {
            "id": 13890,
            "account_id": 20040,
            "follower_account_id": 1365,
            "created_at": "2020-07-22 11:15:03",
            "updated_at": "2020-07-22 11:15:03",
            "account": {
                "id": 1365,
                "user_id": 908,
                "nickname": "W.Qanah",
                "avatar": null,
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@WQanah",
                "deep_link": "https:\/\/account.jawab.app\/BU9c689gPzAZGsfYA",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 1,
                "following_count": 0,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "WQanah"
            }
        },
        {
            "id": 15226,
            "account_id": 20040,
            "follower_account_id": 68646,
            "created_at": "2020-08-09 12:43:50",
            "updated_at": "2020-08-09 12:43:50",
            "account": {
                "id": 68646,
                "user_id": 74736,
                "nickname": "Qanah",
                "avatar": {
                    "100*100": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-100x100.jpeg",
                    "800*800": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx-800x800.jpeg",
                    "original": "https:\/\/s3.jawab.app\/chat\/account\/68646\/LlADkRWP8wG3oWcnpjKD6aFDNvIwOiDpMfMboCnx.jpeg"
                },
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/GnV6ukyMGzA5tZQM6",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 10,
                "following_count": 3,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            }
        }
    ],
    "first_page_url": "http:\/\/chat.jawab.app\/api\/account\/follow\/following\/20040?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http:\/\/chat.jawab.app\/api\/account\/follow\/following\/20040?page=1",
    "next_page_url": null,
    "path": "http:\/\/chat.jawab.app\/api\/account\/follow\/following\/20040",
    "per_page": 20,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}

HTTP Request

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

URL Parameters

Parameter Status Description
accountId required The accountId of the user.

Account ┘ČList

you can git the account list from /api/user api

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/account/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 (200):

{
    "result": {
        "data": [
            {
                "id": 1,
                "user_id": 2,
                "nickname": "qanah",
                "avatar": null,
                "status": null,
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/9ifPF9xb13qTzc14A",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 0,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            },
            {
                "id": 2,
                "user_id": 2,
                "nickname": "officia",
                "avatar": null,
                "status": "officia",
                "default": 0,
                "is_private": 1,
                "slug": "@Officia",
                "deep_link": "https:\/\/account.jawab.app\/G4qfna8TQVfbxudf9",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 0,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "Officia"
            }
        ]
    }
}

HTTP Request

GET api/account/info

Account ┘ČList

you can git the account list from /api/user api

Example request:

curl -X POST \
    "https://chat.jawab.app/api/account/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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));

Example response (200):

{
    "result": {
        "data": [
            {
                "id": 1,
                "user_id": 2,
                "nickname": "qanah",
                "avatar": null,
                "status": null,
                "default": 1,
                "is_private": 0,
                "slug": "@Qanah",
                "deep_link": "https:\/\/account.jawab.app\/9ifPF9xb13qTzc14A",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 0,
                "post_count": 4,
                "mutual_follower_count": 0,
                "slug_without_at": "Qanah"
            },
            {
                "id": 2,
                "user_id": 2,
                "nickname": "officia",
                "avatar": null,
                "status": "officia",
                "default": 0,
                "is_private": 1,
                "slug": "@Officia",
                "deep_link": "https:\/\/account.jawab.app\/G4qfna8TQVfbxudf9",
                "account_following": false,
                "account_is_blocked": false,
                "followers_count": 0,
                "following_count": 0,
                "post_count": 0,
                "mutual_follower_count": 0,
                "slug_without_at": "Officia"
            }
        ]
    }
}

HTTP Request

POST api/account/create

api/account/avatar

Example request:

curl -X POST \
    "https://chat.jawab.app/api/account/avatar" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/change-number" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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/activity/{accountId}

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/account/activity/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/account/activity/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/activity/{accountId}

api/account/block/{accountId}

Example request:

curl -X POST \
    "https://chat.jawab.app/api/account/block/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/unblock/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/friend/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/friend/create/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/friend/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/friend/block/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/friend/block/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/friend/unblock/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/friend/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/follow/follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/follow/un-follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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}

Mutual Followers

[Api to get Mutual Followers]

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/account/follow/mutual/2?follower_account_id=16" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/account/follow/mutual/2"
);

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

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 (200):

{
    "current_page": 1,
    "data": [
        {
            "id": 3528,
            "account_id": 2977,
            "follower_account_id": 1960,
            "created_at": "2020-07-26 13:16:02",
            "updated_at": "2020-07-26 13:16:02",
            "follower": {
                "id": 1960,
                "user_id": 1286,
                "nickname": "M. Agha",
                "avatar": {
                    "100*100": "https:\/\/s3.jawab.app\/chat\/account\/1960\/S8V2ZeOWQTEqvU3HuGLNjVegO4dFE0KfjtLEOT7t-100x100.jpeg",
                    "800*800": "https:\/\/s3.jawab.app\/chat\/account\/1960\/S8V2ZeOWQTEqvU3HuGLNjVegO4dFE0KfjtLEOT7t-800x800.jpeg",
                    "original": "https:\/\/s3.jawab.app\/chat\/account\/1960\/S8V2ZeOWQTEqvU3HuGLNjVegO4dFE0KfjtLEOT7t.jpeg"
                },
                "status": "Hey there I'm using Jawabchat",
                "default": 1,
                "is_private": 0,
                "slug": "@MAgha",
                "deep_link": "https:\/\/account.jawab.app\/MthDFgiFN3SA14Ex6",
                "account_following": true,
                "account_is_blocked": false,
                "followers_count": 5,
                "following_count": 9,
                "slug_without_at": "MAgha"
            }
        }
    ],
    "first_page_url": "http:\/\/localhost:82\/api\/account\/follow\/mutual\/2977?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http:\/\/localhost:82\/api\/account\/follow\/mutual\/2977?page=1",
    "next_page_url": null,
    "path": "http:\/\/localhost:82\/api\/account\/follow\/mutual\/2977",
    "per_page": 10,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}

HTTP Request

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

URL Parameters

Parameter Status Description
accountId required The accountId of the user.

Query Parameters

Parameter Status Description
follower_account_id required integer The follower_account_id is the account you wont to get mutual.

api/account/privacy/last-seen

Example request:

curl -X POST \
    "https://chat.jawab.app/api/account/privacy/last-seen" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/profile-photo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/about" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/status" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/live-location" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/blocked-contact" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/privacy/read-receipts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/security/show-notification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/security/tow-step-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/group/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/group/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/group/info/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/account/group/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/add-participants/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/delete-participant/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/leave-from-group/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/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(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/account/group/avatar/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/sms/callback/twilio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/subscription/callback/ios" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/subscription/callback/android" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 and the notifications

api/community/search

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/search" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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/search/posts

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/search/posts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/search/posts"
);

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/posts

api/community/search/accounts

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/search/accounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/search/accounts"
);

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/accounts

api/community/search/tags

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/search/tags" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/search/tags"
);

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/tags

api/community/post/list

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/post/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/community/post/show/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/community/hash-tag/info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/community/hash-tag/post-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

Hashtag Account Following

[Api to get Following] Note use {api-version:2} you can find the response under 300

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/hash-tag/follow/following/7" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/hash-tag/follow/following/7"
);

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 (200):

{
    "result": [
        {
            "id": 1,
            "account_id": 1,
            "tag_id": 1,
            "created_at": "2020-10-15 14:16:00",
            "updated_at": "2020-10-15 14:16:00",
            "created_by": "follow_api",
            "tag": {
                "id": 1,
                "hash_tag": "#ibraheem",
                "created_at": "2020-10-08 09:15:31",
                "updated_at": "2020-10-08 09:15:31",
                "deleted_at": null,
                "deep_link": "https:\/\/hashtag.jawab.app\/jNzFq1D9isHA4ZdVA",
                "tag_group_id": null,
                "posts_count": 1,
                "hash_tag_string": "ibraheem",
                "followers_count": 1,
                "account_following": true
            }
        }
    ]
}

Example response (300):

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "account_id": 1,
            "tag_id": 1,
            "created_at": "2020-10-15 14:16:00",
            "updated_at": "2020-10-15 14:16:00",
            "created_by": "follow_api",
            "tag": {
                "id": 1,
                "hash_tag": "#ibraheem",
                "created_at": "2020-10-08 09:15:31",
                "updated_at": "2020-10-08 09:15:31",
                "deleted_at": null,
                "deep_link": "https:\/\/hashtag.jawab.app\/jNzFq1D9isHA4ZdVA",
                "tag_group_id": null,
                "posts_count": 1,
                "hash_tag_string": "ibraheem",
                "followers_count": 1,
                "account_following": true
            }
        }
    ],
    "first_page_url": "http:\/\/localhost:82\/api\/community\/hash-tag\/follow\/following\/1?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http:\/\/localhost:82\/api\/community\/hash-tag\/follow\/following\/1?page=1",
    "next_page_url": null,
    "path": "http:\/\/localhost:82\/api\/community\/hash-tag\/follow\/following\/1",
    "per_page": 20,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}

HTTP Request

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

URL Parameters

Parameter Status Description
accountId required The accountId of the user.

Subscribe to a notification

[Api to subscribe to a notification] Notification type will be as the following: post: to subscribe the user to get a notification for the post updates (currently un-available), comments addition on post level or a certain comment level.

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/subscribe-notification/5/16/6" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/subscribe-notification/5/16/6"
);

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 (200):

{
    "result": {
        "topic": "notifications\/posts\/33"
    }
}

HTTP Request

GET api/community/subscribe-notification/{type}/{id}/{account_id}

URL Parameters

Parameter Status Description
type required the notification type can be one of ['post', 'account', 'hashtag'].
id required The object id. post_id, account_id, hashtag_id.
account_id required The active account_id of the user.

Un-Subscribe to a notification

[Api to Un-subscribe a notification] Notification type will be as the following: post: to un-subscribe the user from getting a notification for the post updates (currently un-available), comments addition on post level or a certain comment level.

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/unsubscribe-notification/16/7/12" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/unsubscribe-notification/16/7/12"
);

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 (200):

{
    "result": {
        "topic": "notifications\/posts\/33"
    }
}

HTTP Request

GET api/community/unsubscribe-notification/{type}/{id}/{account_id}

URL Parameters

Parameter Status Description
type required the notification type can be one of ['post', 'account', 'hashtag'].
id required The object id. post_id, account_id, hashtag_id.
account_id required The active account_id of the user.

api/community/post/create

Example request:

curl -X POST \
    "https://chat.jawab.app/api/community/post/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/community/post/edit/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/community/post/delete/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/community/post/interaction/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/community/post/interaction/list/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/community/post/report/types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/community/post/report/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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/post/related/{id}

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/post/related/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/post/related/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/related/{id}

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

Example request:

curl -X POST \
    "https://chat.jawab.app/api/community/hash-tag/follow/follow/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/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(
    "https://chat.jawab.app/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}

List Tag Groups

[Api to get on boarding Tag Groups]

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/community/hash-tag/group/list?service_id=ut&active_account=20" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/community/hash-tag/group/list"
);

let params = {
    "service_id": "ut",
    "active_account": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 (200):

{
    "result": {
        "data": [
            {
                "id": 1,
                "parent_id": null,
                "name": {
                    "ar": "Fashion",
                    "en": "Fashion"
                },
                "image": null,
                "order": 1,
                "account_following": true,
                "children": [
                    {
                        "id": 3,
                        "parent_id": 1,
                        "name": {
                            "ar": "Women's Fashion",
                            "en": "Women's Fashion"
                        },
                        "image": null,
                        "order": 1,
                        "account_following": false
                    },
                    {
                        "id": 2,
                        "parent_id": 1,
                        "name": {
                            "ar": "Men's Fashion",
                            "en": "Men's Fashion"
                        },
                        "image": null,
                        "order": 2,
                        "account_following": true
                    }
                ]
            }
        ]
    }
}

HTTP Request

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

Query Parameters

Parameter Status Description
service_id optional int The service_id is the selected service on deep-link.
active_account optional int The active_account is the selected account on app.

Follow Tag Groups

[Api to submit on boarding Tag Groups]

Example request:

curl -X POST \
    "https://chat.jawab.app/api/community/hash-tag/group/follow/10" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"tag_group_ids":[13]}'
const url = new URL(
    "https://chat.jawab.app/api/community/hash-tag/group/follow/10"
);

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

let body = {
    "tag_group_ids": [
        13
    ]
}

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

Example response (200):

{
    "result": "OK"
}

HTTP Request

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

URL Parameters

Parameter Status Description
accountId required The accountId of the user.

Body Parameters

Parameter Type Status Description
tag_group_ids.* integer required The tag_group_ids that the user selects.

Mobile Experiment

APIs for Mobile Experiments

api/common/experiment

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/common/experiment" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/common/experiment"
);

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/common/experiment

Notification management

APIs for managing notification

Notification Acknowledgement

This API used to sent acknowledgement by manually over API

Example request:

curl -X POST \
    "https://chat.jawab.app/api/common/notification/acknowledgement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"receiver_id":20,"account_id":17,"message_id":"sunt","chat_id":"temporibus"}'
const url = new URL(
    "https://chat.jawab.app/api/common/notification/acknowledgement"
);

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

let body = {
    "receiver_id": 20,
    "account_id": 17,
    "message_id": "sunt",
    "chat_id": "temporibus"
}

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

Notification keepalive

This API used to sent keepalive

Example request:

curl -X POST \
    "https://chat.jawab.app/api/common/notification/keepalive" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":17}'
const url = new URL(
    "https://chat.jawab.app/api/common/notification/keepalive"
);

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

let body = {
    "uuid": 17
}

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/keepalive

Body Parameters

Parameter Type Status Description
uuid integer required

Remote Settings

APIs for Remote Settings

api/remote-settings

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/remote-settings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/remote-settings"
);

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/remote-settings

Service management

APIs for managing services

api/service/list

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/service/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

Show Service

[Api to Show Service]

Example request:

curl -X POST \
    "https://chat.jawab.app/api/service/show" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"account_id":20,"service_id":11}'
const url = new URL(
    "https://chat.jawab.app/api/service/show"
);

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

let body = {
    "account_id": 20,
    "service_id": 11
}

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

Example response (204):

{}

HTTP Request

POST api/service/show

Body Parameters

Parameter Type Status Description
account_id integer required
service_id integer required

api/service/topics

Example request:

curl -X POST \
    "https://chat.jawab.app/api/service/topics" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/service/package/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/service/group/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/service/group/deeplink/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/service/products/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/service/products/stores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 "https://chat.jawab.app/api/subscription/package/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/subscription/log" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/subscription" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

api/subscription/restore

Example request:

curl -X POST \
    "https://chat.jawab.app/api/subscription/restore" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/subscription/restore"
);

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/restore

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 \
    "https://chat.jawab.app/api/common/upload/image" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/common/upload/audio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/common/upload/video" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/auth/login-by-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/auth/resend-code-sms" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/auth/pin-code-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/auth/logout" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/auth/registration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"perferendis","token":"sunt","mobile_os":"ios"}'
const url = new URL(
    "https://chat.jawab.app/api/auth/registration"
);

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

let body = {
    "uuid": "perferendis",
    "token": "sunt",
    "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 \
    "https://chat.jawab.app/api/auth/registration/use-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"eum","phone":"odio","phone_country":"quasi","mobile_os":"ios","env":"prod"}'
const url = new URL(
    "https://chat.jawab.app/api/auth/registration/use-phone"
);

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

let body = {
    "uuid": "eum",
    "phone": "odio",
    "phone_country": "quasi",
    "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 \
    "https://chat.jawab.app/api/auth/registration/pin-code-verification" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"uuid":"molestiae","code":"labore"}'
const url = new URL(
    "https://chat.jawab.app/api/auth/registration/pin-code-verification"
);

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

let body = {
    "uuid": "molestiae",
    "code": "labore"
}

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 "https://chat.jawab.app/api/user" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/user/pin-code" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/user/pin-code/check" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/user/deep-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/user/fcm-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

Language

[Api to set user Language]

Example request:

curl -X POST \
    "https://chat.jawab.app/api/user/language" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"language":"unde","app_version_name":"illo","app_version_code":"ut"}'
const url = new URL(
    "https://chat.jawab.app/api/user/language"
);

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

let body = {
    "language": "unde",
    "app_version_name": "illo",
    "app_version_code": "ut"
}

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

Example response (204):

null

HTTP Request

POST api/user/language

Body Parameters

Parameter Type Status Description
language string required This is the device language.
app_version_name string required This is the app version name: 1.6.2.
app_version_code string required This is the app version code: 99.

App User Info

[Api to set user Language]

Example request:

curl -X POST \
    "https://chat.jawab.app/api/user/app-user-info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}" \
    -d '{"language":"consequuntur","app_version_name":"praesentium","app_version_code":"recusandae"}'
const url = new URL(
    "https://chat.jawab.app/api/user/app-user-info"
);

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

let body = {
    "language": "consequuntur",
    "app_version_name": "praesentium",
    "app_version_code": "recusandae"
}

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

Example response (204):

null

HTTP Request

POST api/user/app-user-info

Body Parameters

Parameter Type Status Description
language string required This is the device language.
app_version_name string required This is the app version name: 1.6.2.
app_version_code string required This is the app version code: 99.

api/contact/syncing

Example request:

curl -X POST \
    "https://chat.jawab.app/api/contact/syncing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

User management deprecated

APIs for managing users

api/user/apn-token

Example request:

curl -X POST \
    "https://chat.jawab.app/api/user/apn-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/user/analytics-info" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

WebChat management

APIs for managing web-chat

api/webchat/connect

Example request:

curl -X POST \
    "https://chat.jawab.app/api/webchat/connect" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/webchat/refresh-token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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 \
    "https://chat.jawab.app/api/webchat/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/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

general

api/subscription/callback/branch

Example request:

curl -X POST \
    "https://chat.jawab.app/api/subscription/callback/branch" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/subscription/callback/branch"
);

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/branch

List Onboarding

[Api to get on boarding Onboarding]

Example request:

curl -X GET \
    -G "https://chat.jawab.app/api/common/onboarding?service_id=laboriosam&active_account=13" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {{token}}"
const url = new URL(
    "https://chat.jawab.app/api/common/onboarding"
);

let params = {
    "service_id": "laboriosam",
    "active_account": "13",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 (200):

{
    "result": {
        "data": [
            {
                "id": 2,
                "service_id": 1,
                "info": {
                    "text": {
                        "ar": "vv",
                        "en": "aa"
                    },
                    "image": {
                        "ar": "https:\/\/s3.jawab.app\/chat-local\/onboardings\/EOd6wfbP1AEWETM7uteZFPEKlW8O3fhFjvrEa9YB.jpeg",
                        "en": "https:\/\/s3.jawab.app\/chat-local\/onboardings\/bIchuFGQtZyaYEdSrCwofHDjKJ5eYsAKFK0VLxLJ.jpeg"
                    }
                },
                "order": 0,
                "is_published": 1,
                "country_code": "JO",
                "created_at": "2020-08-04 13:41:42",
                "updated_at": "2020-08-04 13:43:34"
            }
        ]
    }
}

HTTP Request

GET api/common/onboarding

Query Parameters

Parameter Status Description
service_id optional int The service_id is the selected service on deep-link.
active_account optional int The active_account is the selected account on app.