Fetch deals from Custom Deal Stages

I am trying to fetch deals from a custom deals stage that was created in the timeline.
I am trying to fetch it using filtergroup as follows:

"filterGroups": [
 {
 "filters": [
 {
 "propertyName": "dealstage",
 "operator": "EQ",
 "value": "trial"
 }
 ]
 }
 ],

I am not getting any deals that are in custom ‘trial’ stage.
However, I am able to fetch deals from all other standard dealstages.

Hi ATam8,

It seems that there’s a comma at the end of your code.

Can you try the following code instead:

"filterGroups": [
 {
 "filters": [
 {
 "propertyName": "dealstage",
 "operator": "EQ",
 "value": "trial"
 }
 ]
 }
 ]

Or try:

{
 "filters": [
 {
 "propertyName": "dealstage",
 "operator": "EQ",
 "value": "trial"
 }
 ]
}

the comma at the end is for other filter groups. Comma is not the issue here. Because when I put value as ‘closedwon’ (which is a hubspot standard deal stage) it works.
The ‘Trial’ dealstage is the custom one I created, but when I fetch the deals from that particular dealstage, there are no responses even though there are deals in it.