I am having trouble using the Podio Search API endpoint. My goal is to check if the number already exists in the contacts app. I keep receiving errors or it isn't working properly. Can you tell me what I am doing wrong? Thanks in advance!

I have attached my current function that checks for duplicates. I also have the error code below. My other previous code, was not receiving any errors but was never checking for duplicates properly.

 

Error code: Error searching for phone number: 400 Client Error: Bad Request for url: https://api.podio.com/item/app/APP_ID/filter/

Search Function