Hi, everyone!
I’m trying to create api request for this conditions:

I’m using JS fetch method.
This request fails:
fetch('https://amplitude.com/api/2/events/segmentation?' + new URLSearchParams({<br /> e: '{"event_type":"_all","filters":[{"subprop_type":"event","subprop_key":"Event Name","subprop_op":"is","subprop_value":["Test"]}]}',<br /> m: 'uniques',<br /> start: '20210101',<br /> end: '20220101',<br /> i: 30<br />}).toString(), {<br /> method: 'GET',<br /> headers: {<br /> accept: '*/*',<br /> 'Content-Type': 'application/json',<br /> Authorization: 'Basic API_KEY:SECRET_KEY'<br /> }<br />})If I’m using custom user property, everything works.
fetch('https://amplitude.com/api/2/events/segmentation?' + new URLSearchParams({<br /> e: '{"event_type":"_all","filters":[{"subprop_type":"user","subprop_key":"gp:Is Tester","subprop_op":"is","subprop_value":["(none)"]}]}',<br /> m: 'uniques',<br /> start: '20210101',<br /> end: '20220101',<br /> i: 30<br />}).toString(), {<br /> method: 'GET',<br /> headers: {<br /> accept: '*/*',<br /> 'Content-Type': 'application/json',<br /> Authorization: 'Basic API_KEY:SECRET_KEY'<br /> }<br />})I have issue with Amplitude Event Name.
Thanks for any help!