Welcome to the unofficial OSTicket API!
The purpose of this API is to help the community and leverage the use of OSTicket.
For more info, please go to their official website: https://osticket.com/
This api was tested in the following OST versions:
Version |
---|
v1.15.3.1 Latest Release |
v1.14.3 |
To use OSTicket Unofficial API you have to place the ost_wbs
directory in the root of OSTicket server.
Then, go to ost_wbs > config.php
and change the DB credentials
and the table prefix
.
Use the following URL:
{YOUR-DOMAIN}/ost_wbs/?
NOTE: If you dont know the credentials, go to /include/ost-config.php
. That is the main config file for OSTicket system.
In all requests, the API key that was created in the OSTicket system must be sent to authenticate the user.
Option | Type | Mandatory | Description |
---|---|---|---|
apikey |
string | β | Official API-Key generated in OSTicket System |
Example:
{YOUR-DOMAIN}/ost_wbs/?apikey={API-KEY}
You can fetch all info from a specific ticket using the ID or ID Number, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=ticket&condition=specific¶meters={TICKET-ID/TICKET-NUMBER}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
ticket |
β | Indicates the content of the request |
condition |
string |
specific |
β | Indicates the condition of the request |
parameters |
int or string |
ID or Number |
β | Indicates specific ID or Number |
You can fetch all tickets based on the current status, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=ticket&condition=all&sort=status¶meters={TICKET-STATUS-ID}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
ticket |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
status |
β | Indicates the type of search |
parameters |
int or string |
Ticket Status ID |
β | Ticket status ID you want to search for |
Available ticket status:
Option | Name |
---|---|
0 |
All not necessarily a "state" but returns all tickets in the DB regardless of state |
1 |
Open |
2 |
Resolved |
3 |
Closed |
4 |
Archived |
5 |
Deleted |
6 |
On Going |
7 |
Pending |
You can fetch all tickets by creation between two given dates, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=ticket&condition=all&sort=creationDate¶meters={START-DATEtoEND-DATE}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
ticket |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
creationDate |
β | Indicates the type of search |
parameters |
string |
1990-01-01to2000-01-01 |
β | Date interval that all tickets will be fetched |
You can fetch all tickets by creation between two given dates and by status, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=ticket&condition=all&sort=statusByDate¶meters={START-DATEtoEND-DATE},{TICKET-STATUS-ID}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
ticket |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
statusByDate |
β | Indicates the type of search |
parameters |
string |
1990-01-01to2000-01-01 ,2 |
β | Date interval and status by wich all tickets will be fetched |
You can fetch all info from a specific user using the ID, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=user&condition=specific¶meters={USER-ID}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
user |
β | Indicates the content of the request |
condition |
string |
specific |
β | Indicates the condition of the request |
parameters |
int |
User ID |
β | Indicates specific ID |
You can fetch all user by creation between two given dates, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=user&condition=all&sort=creationDate¶meters={START-DATEtoEND-DATE}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
user |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
creationDate |
β | Indicates the type of search |
parameters |
string |
1990-01-01to2000-01-01 |
β | Date interval that all users will be fetched |
You can fetch all info from a specific deparment using the ID, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=department&condition=specific¶meters={DEPARTMENT-ID}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
department |
β | Indicates the content of the request |
condition |
string |
specific |
β | Indicates the condition of the request |
parameters |
int |
Department ID |
β | Indicates specific ID |
You can fetch all departments by creation between two given dates, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=department&condition=all&sort=creationDate¶meters={START-DATEtoEND-DATE}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
department |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
creationDate |
β | Indicates the type of search |
parameters |
string |
1990-01-01to2000-01-01 |
β | Date interval that all departments will be fetched |
You can fetch all info from a specific sla using the ID, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=sla&condition=specific¶meters={SLA-ID}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
sla |
β | Indicates the content of the request |
condition |
string |
specific |
β | Indicates the condition of the request |
parameters |
int |
SLA ID |
β | Indicates specific ID |
You can fetch all departments by creation between two given dates, for example:
{YOUR DOMAIN}/ost_wbs/?apikey={API-KEY}&query=sla&condition=all&sort=creationDate¶meters={START-DATEtoEND-DATE}
Option | Type | value | Mandatory | Description |
---|---|---|---|---|
apikey |
string |
API-Key | β | Official API-Key generated in OSTicket System |
query |
string |
sla |
β | Indicates the content of the request |
condition |
string |
all |
β | Indicates the condition of the request |
sort |
string |
creationDate |
β | Indicates the type of search |
parameters |
string |
1990-01-01to2000-01-01 |
β | Date interval that all SLAs will be fetched |