Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: moved backend get sec to v2 for dashboard

Akhil Mohan16f136055068
diff --git a/frontend/src/hooks/api/secrets/queries.tsx b/frontend/src/hooks/api/secrets/queries.tsx
index bd9fee0484..81a9dc0eb2 100644
--- a/frontend/src/hooks/api/secrets/queries.tsx
+++ b/frontend/src/hooks/api/secrets/queries.tsx
@@ -38,7 +38,7 @@ const fetchProjectEncryptedSecrets = async (
folderId?: string,
secretPath?: string
) => {
- const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v3/secrets", {
+ const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v2/secrets", {
params: {
environment: env,
workspaceId,
@@ -345,4 +345,4 @@ export const useCreateSecret = () => {
);
}
});
-};
\ No newline at end of file
+};