> For the complete documentation index, see [llms.txt](https://bmsvieira.gitbook.io/osticket-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bmsvieira.gitbook.io/osticket-api/get-started/configuration.md).

# Configuration

Main configuration file for OSTicket API is located in:\
&#x20;<mark style="color:orange;">`ost_wbs > config.php`</mark>

```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);
```
