Using REST API without mod_rewrite

It is possible to use call LiveAgent API also without support of mod_rewrite in your Apache (or something similar).
You just need to change call URL a bit. Here is an example of ordinary API URL call with the support of mod_rewrite:
 
https://example.com/api/conversations/[conversationid]/messages?apikey=key123456
 
and this is how it looks like without mod_rewrite support:
 
URL_To_LiveAgent/api/index.php?handler=conversations/[conversationid]/messages&apikey=key123456
 
You must just address specific API handler file
https://example.com/api/index.php
 
and then attach handler string and API key to it:
handler=conversations/[conversationid]/messages?apikey=key123456
 
Another example:
- if you wanted to retrieve all the conversations of a department then you could do it this way:
URL_To_LiveAgent/api/index.php?handler=conversations&department=[departmentid]&apikey=key123456
×