like in the vapi dashboard there are 8
# office-hours
a
like in the vapi dashboard there are 8 calls but in my project only 7 are showing
s
cc: @Kings_big💫
can you share your orgId?
a
a11c1fc3-b150-470b-b789-44c18d811167
@Shubham Bajaj
like in my project when i am calling api get calls only 7 are showing why is that
its not updating
Also when i am trying to delete the calls its not deleting at all
This is how am i calling api tell me if i am wrong
Copy code
// import Vapi from "@vapi-ai/web";

// export const vapi = new Vapi(process.env.NEXT_PUBLIC_VAPI_WEB_TOKEN!);
"use server";
import { VapiClient } from "@vapi-ai/server-sdk";

if (!process.env.VAPI_WEB_TOKEN) {
  throw new Error("VAPI_WEB_TOKEN is not defined in environment variables");
}

const client = new VapiClient({
  token: process.env.VAPI_WEB_TOKEN,
});

export async function getVapiCalls() {
  try {
    const response = await client.calls.list({
      assistantId: process.env.VAPI_ASSISTANT_ID,
      limit: 100,

    return response;
  } catch (error) {
    console.error("Error fetching VAPI calls:", error);
    throw error;
  }
}
s
@anuj846k Would you be able to attempt it again at this time and provide me with an update on your progress?
a
yeah i got it