No description
Find a file
2025-09-10 10:59:54 +00:00
Http close: fitler by bot users 2025-09-10 10:59:54 +00:00
Providers Initial commit 2024-06-16 12:39:16 +00:00
Public close: replace svg with welp 2024-06-16 12:54:19 +00:00
Resources Initial commit 2024-06-16 12:39:16 +00:00
.gitignore Initial commit 2024-06-16 12:39:16 +00:00
composer.json Initial commit 2024-06-16 12:39:16 +00:00
LICENSE Initial commit 2024-06-16 12:39:16 +00:00
logo.sketch Initial commit 2024-06-16 12:39:16 +00:00
module.json close: update the module image 2024-06-16 12:55:30 +00:00
readme.md close: update the readme 2024-06-16 14:40:57 +00:00
release.sh Initial commit 2024-06-16 12:39:16 +00:00
start.php Initial commit 2024-06-16 12:39:16 +00:00

API Extender module for FreeScout

This module adds the following API access for the FreeScout.

  • knowledge base (module)
  • report module

Requirements

Installation

Method 1: Clone the repo

  1. ssh into your server, and navigate to the freescout modules folder, e.g.
cd /freescout/Modules/
  1. Clone the repo
    git clone https://github.com/osoobe/freescout-api-extender ApiExtender
    
    If you cloned the repo locally, and need it on the server, then zip it first and follow the step 2 of Method 2.
  2. Activate the module via the Modules page in FreeScout.

Moethod 2: Download Zip file

  1. Download the latest module zip file via the releases card on the right.
  2. Transfer the zip file to the server in the Modules folder of FreeScout.
  3. Unpack the zip file.
  4. Remove the zip file.
  5. Activate the module via the Modules page in FreeScout.

Update instructions

Method 1: Pull changes via git

If you had originally downloaded the zip file, please follow Method 2, otherwise, follow the steps below.

  1. ssh into your server, and navigate to the freescout modules folder, e.g.
cd /freescout/Modules/ApiExtender
  1. Pull the updates
git pull origin main

Moethod 2: Download Zip file

  1. Download the latest module zip file via the releases card on the right.
  2. Transfer the zip file to the server in the Modules folder of FreeScout.
  3. Remove the folder ApiExtender
  4. Unpack the zip file.
  5. Remove the zip file.

Contributing

Feel free to add your own features by sending a pull request.

Get knowledge base categories in a mailbox

curl "https://example.com/api/knowledgebase/1/categories?locale=en" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{}'

Get articles in a category

curl "https://example.com/api/knowledgebase/1/categories/1?locale=en" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{}'

Get article

curl "https://example.com/api/knowledgebase/138/1/how-do-i-reset-my-password" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{}'

Get report

curl --location 'https://example.com/api/report/productivity' \
--header 'X-FreeScout-API-Key: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{
  "action": "report",
  "report_name": "productivity",
  "filters": {
    "type": "",
    "mailbox": "",
    "tag": "",
    "from": "2024-06-09",
    "to": "2024-06-16"
  },
  "chart": {
    "group_by": "d",
    "type": "customers_helped"
  }
}'

LICENSE

MIT