OSTicket API
  • Introduction
  • Get Started
    • How to Use
    • Authentication
    • Request Structure
    • Configuration
  • Ticket
    • 🟢[POST] Add
    • 🟢[POST] Reply
    • 🟢[POST] Close
    • 🔵[GET] Specific
    • 🔵[GET] Status
    • 🔵[GET] Creation Date
    • 🔵[GET] Creation Date by Status
  • Users
    • 🟢[POST] Add
    • 🔵[GET] Specific by ID
    • 🔵[GET] Specific by Email
    • 🔵[GET] Creation Date
  • Departments
    • 🟢[POST] Add
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] Name
  • Tasks
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
    • 🔵[GET] By Ticket
  • SLA
    • 🟢[POST] Add
    • 🔴[DELETE] Delete
    • 🔵[GET] Specific
    • 🔵[GET] Creation Date
  • FAQ
    • 🔵[GET] Specific
    • 🔵[GET] All
  • Topics
    • 🔵[GET] Specific
    • 🔵[GET] All
Powered by GitBook
On this page
  1. Get Started

Configuration

Main configuration file for OSTicket API is located in: ost_wbs > config.php

// Database Credentials
define('DBTYPE',''); // Database type (mysql, sql..)
define('DBHOST',''); // IP Address
define('DBNAME',''); // Database Name
define('DBUSER',''); // Database User
define('DBPASS',''); // Database Password

// Table prefix
define('TABLE_PREFIX','ost_');

// Accepted ticket status
define('ATSTATUS', array(0,1,2,3,4,5,6,7));

// Check for IP authorization
// Set this to True, if you want your API to be only used by a specific IP Address
// The IP Address is defined in the OSTicket built in form.
define('APIKEY_RESTRICT', false);

// Write every successfull request to built in system log
define('WRITE_SYSTEMLOG', true);
PreviousRequest StructureNext[POST] Add

Last updated 2 years ago