diff --git a/.changeset/bright-bags-grin.md b/.changeset/bright-bags-grin.md
new file mode 100644
index 0000000000000000000000000000000000000000..c82e150a935cd3f3df5fe894cc05e9f92e3e4e7a
--- /dev/null
+++ b/.changeset/bright-bags-grin.md
@@ -0,0 +1,5 @@
+---
+"llamaindex": patch
+---
+
+Fix LlamaCloud API calls for ensuring an index and for file uploads
diff --git a/packages/llamaindex/src/cloud/LLamaCloudFileService.ts b/packages/llamaindex/src/cloud/LLamaCloudFileService.ts
index 2ee76e2ea513309ace0b1104ade5bbe309fdb0fb..55fa9657df5175620b9f36de0d7e4f95b70474d8 100644
--- a/packages/llamaindex/src/cloud/LLamaCloudFileService.ts
+++ b/packages/llamaindex/src/cloud/LLamaCloudFileService.ts
@@ -41,7 +41,7 @@ export class LLamaCloudFileService {
   ) {
     initService();
     const { data: file } = await FilesService.uploadFileApiV1FilesPost({
-      path: { project_id: projectId },
+      query: { project_id: projectId },
       body: {
         upload_file: uploadFile,
       },
diff --git a/packages/llamaindex/src/cloud/LlamaCloudIndex.ts b/packages/llamaindex/src/cloud/LlamaCloudIndex.ts
index a3e827ea9a863260c23415e093ecc8aacfc20367..97e199de4a6bd59eb722ca9191607d1c0f758e5a 100644
--- a/packages/llamaindex/src/cloud/LlamaCloudIndex.ts
+++ b/packages/llamaindex/src/cloud/LlamaCloudIndex.ts
@@ -378,7 +378,7 @@ export class LlamaCloudIndex {
 
       const { data: pipeline } =
         await PipelinesService.upsertPipelineApiV1PipelinesPut({
-          path: {
+          query: {
             project_id: projectId,
           },
           body: {