Skip to main content
Answer

Support on q parameter API usage

  • January 4, 2023
  • 1 reply
  • 57 views

Front Developer
Forum|alt.badge.img+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?

Best answer by Support Engineering

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

 

1 reply

Forum|alt.badge.img+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