Lakera · JSON Structure

Lakera Guard Request Structure

Documents the structural composition of a Lakera Guard /v2/guard request body.

Type: object Properties: 0
AI SecurityArtificial IntelligenceGenerative AILLM SecurityPrompt InjectionAI GuardrailsAI Red TeamingData Loss PreventionContent ModerationCheck Point

Lakera Guard Request Structure is a JSON Structure definition published by Lakera.

Meta-schema:

JSON Structure

Raw ↑
{
  "title": "Lakera Guard Request Structure",
  "description": "Documents the structural composition of a Lakera Guard /v2/guard request body.",
  "type": "object",
  "structure": {
    "messages": {
      "kind": "array",
      "of": "Message",
      "description": "Ordered list of chat messages following the OpenAI chat completions format."
    },
    "Message": {
      "kind": "object",
      "fields": {
        "role": "enum<system|user|assistant|tool>",
        "content": "string"
      }
    },
    "project_id": {
      "kind": "string",
      "optional": true,
      "description": "Project identifier whose assigned policy governs screening."
    },
    "policy_id": {
      "kind": "string",
      "optional": true,
      "description": "Explicit policy override."
    },
    "breakdown": {
      "kind": "boolean",
      "optional": true,
      "default": false
    },
    "payload": {
      "kind": "boolean",
      "optional": true,
      "default": false
    },
    "dev_info": {
      "kind": "object",
      "optional": true
    }
  },
  "notes": [
    "Guard screens the LAST interaction in the messages array against the resolved policy.",
    "Setting breakdown=true returns per-detector results; setting payload=true returns match locations for masking.",
    "If neither project_id nor policy_id is supplied, the organization's default policy applies."
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/lakera-guard-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.