Skip to content

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

docs: add gateway to api

Sheen Capadngan524f40321737
diff --git a/backend/src/ee/routes/v3/gateway-router.ts b/backend/src/ee/routes/v3/gateway-router.ts
index 56e96e0b67..80d0440ab6 100644
--- a/backend/src/ee/routes/v3/gateway-router.ts
+++ b/backend/src/ee/routes/v3/gateway-router.ts
@@ -89,6 +89,7 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {
url: "/",
config: { rateLimit: writeLimit },
schema: {
+ hide: false,
operationId: "createGateway",
tags: [ApiDocsTags.GatewaysV3],
body: z.object({
@@ -146,6 +147,7 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {
url: "/:gatewayId",
config: { rateLimit: readLimit },
schema: {
+ hide: false,
operationId: "getGateway",
tags: [ApiDocsTags.GatewaysV3],
params: z.object({ gatewayId: z.string().trim().uuid() }),
@@ -169,6 +171,7 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {
url: "/:gatewayId",
config: { rateLimit: writeLimit },
schema: {
+ hide: false,
operationId: "updateGateway",
tags: [ApiDocsTags.GatewaysV3],
params: z.object({ gatewayId: z.string().trim().uuid() }),
@@ -250,6 +253,7 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {
url: "/:gatewayId/token-auth/generate-enrollment-token",
config: { rateLimit: writeLimit },
schema: {
+ hide: false,
operationId: "mintGatewayEnrollmentToken",
tags: [ApiDocsTags.GatewaysV3],
params: z.object({ gatewayId: z.string().trim().uuid() }),
diff --git a/docs/api-reference/endpoints/gateways/create.mdx b/docs/api-reference/endpoints/gateways/create.mdx
new file mode 100644
index 0000000000..160cfd1004
--- /dev/null
+++ b/docs/api-reference/endpoints/gateways/create.mdx
@@ -0,0 +1,4 @@
+---
+title: "Create"
+openapi: "POST /api/v3/gateways"
+---
diff --git a/docs/api-reference/endpoints/gateways/generate-enrollment-token.mdx b/docs/api-reference/endpoints/gateways/generate-enrollment-token.mdx
new file mode 100644
index 0000000000..59904bc4dd
--- /dev/null
+++ b/docs/api-reference/endpoints/gateways/generate-enrollment-token.mdx
@@ -0,0 +1,4 @@
+---
+title: "Generate Enrollment Token"
+openapi: "POST /api/v3/gateways/{gatewayId}/token-auth/generate-enrollment-token"
+---
diff --git a/docs/api-reference/endpoints/gateways/get.mdx b/docs/api-reference/endpoints/gateways/get.mdx
new file mode 100644
index 0000000000..4e42e07ce4
--- /dev/null
+++ b/docs/api-reference/endpoints/gateways/get.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get"
+openapi: "GET /api/v3/gateways/{gatewayId}"
+---
diff --git a/docs/api-reference/endpoints/gateways/update.mdx b/docs/api-reference/endpoints/gateways/update.mdx
new file mode 100644
index 0000000000..17f6887e87
--- /dev/null
+++ b/docs/api-reference/endpoints/gateways/update.mdx
@@ -0,0 +1,4 @@
+---
+title: "Update"
+openapi: "PATCH /api/v3/gateways/{gatewayId}"
+---
diff --git a/docs/docs.json b/docs/docs.json
index 36ed0fe3ca..9cc34c7911 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -450,7 +450,9 @@
"documentation/platform/secrets-mgmt/overview",
{
"group": "Quickstarts",
- "pages": ["documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret"]
+ "pages": [
+ "documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret"
+ ]
},
{
"group": "Concepts",
@@ -3924,6 +3926,15 @@
"api-reference/endpoints/kmip-servers/login"
]
},
+ {
+ "group": "Gateways",
+ "pages": [
+ "api-reference/endpoints/gateways/get",
+ "api-reference/endpoints/gateways/create",
+ "api-reference/endpoints/gateways/update",
+ "api-reference/endpoints/gateways/generate-enrollment-token"
+ ]
+ },
{
"group": "External Migrations",
"pages": [