Solved

Support on q parameter API usage

  • 4 January 2023
  • 1 reply
  • 28 views

Badge +2

I'm developing an integration for one of our clients. I'm having trouble in regards with the query parameters to filter the results by date on the contacts endpoint:

https://api2.frontapp.com/contacts


How I'm supposed to use the query parameter?

icon

Best answer by Support Engineering 4 January 2023, 17:59

View original

1 reply

Userlevel 1
Badge +5

Using the query parameter (q) to filter for contacts updated before/after a specific date would be done like this:

 

The "raw" URL to use would be;

https://api2.frontapp.com/contacts?q[updated_after]=1654560000&q[updated_before]=1654732800

 

Curl version:

curl 'https://api2.frontapp.com/contacts?q\[updated_after\]=1654560000&q\[updated_before\]=1654732800'

 

The values you submit are UNIX timestamps, and the updated_before/after values are considered array elements.

 

--Jason

 

Reply