{ "info": { "_postman_id": "47f10be3-8a78-4acb-92ea-a241e2d3b99f", "name": "Lunar.dev Gateway Admin Discovery Policies API", "description": "The Lunar.dev Gateway Admin API provides administrative endpoints for managing and monitoring the Lunar API Consumption Gateway. The gateway acts as an egress proxy for third-party API traffic, providing visibility, control, and performance optimization. The admin API enables health monitoring, endpoint discovery, flow validation, and policy management for the running gateway instance.\n\nContact Support:\n Name: Lunar.dev", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "lastUpdatedBy": "35240", "uid": "35240-47f10be3-8a78-4acb-92ea-a241e2d3b99f" }, "item": [ { "name": "apply_policies", "item": [ { "name": "Lunar.dev Apply policies", "id": "15f0c240-2b20-4b06-b7ca-ada2cc460be6", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/apply_policies", "host": [ "{{baseUrl}}" ], "path": [ "apply_policies" ] }, "description": "Applies the current policies configuration (policies.yaml) to the running Lunar Gateway instance. This reloads the policy definitions and activates any changes made to the policies file without requiring a gateway restart." }, "response": [ { "id": "35449972-c78a-4f03-a1a2-5f6ab2d7adce", "name": "Policies applied successfully.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/apply_policies", "host": [ "{{baseUrl}}" ], "path": [ "apply_policies" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"status\": \"\",\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-35449972-c78a-4f03-a1a2-5f6ab2d7adce" }, { "id": "26619cb9-5b31-4ac6-bf4f-1132dcbdcf8e", "name": "Invalid policy configuration.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/apply_policies", "host": [ "{{baseUrl}}" ], "path": [ "apply_policies" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"error\": \"\",\n \"details\": \"\"\n}", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-26619cb9-5b31-4ac6-bf4f-1132dcbdcf8e" } ], "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-15f0c240-2b20-4b06-b7ca-ada2cc460be6" } ], "id": "334ec6a1-ad17-4a41-946e-e76885606470", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-334ec6a1-ad17-4a41-946e-e76885606470" }, { "name": "validate_policies", "item": [ { "name": "Lunar.dev Validate policies", "id": "62eb7322-a485-4c5d-90cd-bfe38d11e11b", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/validate_policies", "host": [ "{{baseUrl}}" ], "path": [ "validate_policies" ] }, "description": "Validates the current policies configuration (policies.yaml) without applying it. Checks for configuration issues, syntax errors, and logical conflicts in the policy definitions." }, "response": [ { "id": "a2e254ec-17f6-4297-aa3c-20e7469481ae", "name": "Policies are valid.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/validate_policies", "host": [ "{{baseUrl}}" ], "path": [ "validate_policies" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"valid\": \"\",\n \"errors\": [\n \"\",\n \"\"\n ]\n}", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-a2e254ec-17f6-4297-aa3c-20e7469481ae" }, { "id": "ace45de6-c719-48c2-9c2c-e3825319d287", "name": "Policies contain validation errors.", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/validate_policies", "host": [ "{{baseUrl}}" ], "path": [ "validate_policies" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"valid\": \"\",\n \"errors\": [\n \"\",\n \"\"\n ]\n}", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-ace45de6-c719-48c2-9c2c-e3825319d287" } ], "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-62eb7322-a485-4c5d-90cd-bfe38d11e11b" } ], "id": "5a0c6867-8400-46cc-a927-1b638ec2833f", "createdAt": "2026-07-28T02:08:24.000Z", "updatedAt": "2026-07-28T02:08:24.000Z", "uid": "35240-5a0c6867-8400-46cc-a927-1b638ec2833f" } ], "variable": [ { "key": "baseUrl", "value": "http://localhost:8040" } ] }