{
  "info": {
    "name": "Lakera Guard — mcp.ai",
    "description": "REST API for the Lakera Guard MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/lakera_guard",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "lakera_guard_create_policy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/policy",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "policy"
          ]
        },
        "description": "Create an Enterprise Lakera policy with built-in detectors and/or custom guardrails. Lakera may omit the new policy ID; if omitted, later retrieval, replacement, and deletion require external policy l",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"detectors\": \"\",\n  \"default_threshold\": \"\",\n  \"custom_guardrail_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_create_project",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/project",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "project"
          ]
        },
        "description": "Create an Enterprise Lakera project, optionally assigning a policy, metadata, and detect-or-flag action. Omit policy_id to use the default policy. Lakera does not return the generated project ID, so l",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"action\": \"\",\n  \"policy_id\": \"\",\n  \"project_metadata\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_delete_policy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/policy",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "policy"
          ]
        },
        "description": "Permanently delete an Enterprise Lakera policy by ID. The provider rejects deletion while any project is assigned to the policy.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"policy_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_delete_project",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/project",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "project"
          ]
        },
        "description": "Permanently and irreversibly delete an Enterprise Lakera project by ID. Historical requests lose their association with the project's metadata and assigned policy.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"project_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_evaluate_detectors",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/evaluate/detectors",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "evaluate",
            "detectors"
          ]
        },
        "description": "Evaluate content and return one confidence result per configured detector without producing an aggregate flagging decision or Guard screening log. Use for analysis and tuning, not runtime allow/block ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"dev_info\": false,\n  \"messages\": \"\",\n  \"metadata\": {},\n  \"project_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_get_policy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/policy",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "policy"
          ]
        },
        "description": "Retrieve an Enterprise Lakera policy by ID, including its detector configuration, custom guardrails, version, and assigned projects.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"policy_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_get_project",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/project",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "project"
          ]
        },
        "description": "Retrieve an Enterprise Lakera project by ID, including its assigned policy, metadata, and detect-or-flag action.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"project_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_screen_content",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/screen/content",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "screen",
            "content"
          ]
        },
        "description": "Screen the latest LLM or agent interaction with Lakera Guard and return the policy decision. Use this for runtime allow/block decisions; earlier messages provide context, but only the latest interacti",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"payload\": false,\n  \"dev_info\": false,\n  \"messages\": \"\",\n  \"metadata\": {},\n  \"breakdown\": false,\n  \"project_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_update_policy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/policy",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "policy"
          ]
        },
        "description": "Replace an Enterprise Lakera policy's complete configuration and create a new policy version. Omitted detectors or custom guardrails are removed, so retrieve the policy first when preserving existing ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"detectors\": \"\",\n  \"policy_id\": \"\",\n  \"default_threshold\": \"\",\n  \"custom_guardrail_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "lakera_guard_update_project",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/project",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "project"
          ]
        },
        "description": "Update an Enterprise Lakera project by ID. Name is required by the official request schema; retrieve the project first when preserving its current name or other optional settings.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"action\": \"\",\n  \"policy_id\": \"\",\n  \"project_id\": \"\",\n  \"project_metadata\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}