one moment
# support
m
type=Call on logs api returns 0 results
I'm trying to search call logs with the api, but the logs endpoint returns 0 results when I use the query string type=Call
v
@Matt I'm here to help! To assist you with the issue of the logs API returning 0 results, I'll need a bit more information. Could you please provide me with the specific parameters or query you're using to call the logs API? This will help me understand the situation better and offer you the most accurate assistance.
You can continue this conversation by mentioning me in the message.
m
s
curl -G https://api.vapi.ai/logs?type=Call&orgId= \ -H "Authorization: Bearer " \ -d type=Call Hey @Matt you have to pass it in the body as visible in the screenshot
x-www-form-urlencoded
when making API calls. https://cdn.discordapp.com/attachments/1306731453052223548/1306957981795094570/Screenshot_2024-11-15_at_5.53.36_PM.png?ex=67388ef8&is=67373d78&hm=19c76c9fda8181b235ac4adbc8012afc64fa235950066277161119eb6ff46b21&
Do let me know how it goes.
m
That didn't work. It just returns everything instead of filtering to just calls
Something is clearly broken with your api right now
s
Hey @Matt did you pass the orgId along with it, I can guess you forgot to pass the orgId.
Try it again and pass the orgId as well, without orgId you won't be getting the records.
m
Still nothing, even with the org id. Also, according to the documentation the org id is optional. I didn't include it because the call works without it as long as I don't try to specify a call type. https://cdn.discordapp.com/attachments/1306731453052223548/1308830150380617809/image.png?ex=673f5e90&is=673e0d10&hm=9593362ec65d3a1f22fdc8a73e6c844928e3f8f8b3f07c47754c57c331b1fff3&
s
can you share the orgId with me.
m
b3ce3a2e-eecc-4231-b684-81412f7b2899
s
Calls "metadata": { "totalItems": 0, "itemsPerPage": 100, "currentPage": 1 } Webhook "metadata": { "totalItems": 20116, "itemsPerPage": 100, "currentPage": 1 } Api "metadata": { "totalItems": 6073, "itemsPerPage": 100, "currentPage": 1 }
@Matt looks like the log endpoint for type call is having some issue, let me get back to you on this.