Work with this as data
Every API 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 apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/lakera-guard-api"
All apis
curl "https://apis.io/api/v1/apis?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.
OpenAPI Specification
openapi: 3.2.0
info:
title: Lakera Guard API
description: Lakera Guard is an AI security API that screens text content sent to and received from large language models. It detects prompt injection, jailbreaks, PII, unsafe content, and policy violations, returning flagged decisions and detailed detector results. Authentication uses a bearer token issued in the Lakera dashboard. Self-hosted deployments expose additional policy management and Kubernetes probe endpoints.
version: '2'
contact:
name: Lakera
url: https://docs.lakera.ai/docs/api
servers:
- url: https://api.lakera.ai/v2
description: Lakera Guard global production endpoint
- url: https://us.api.lakera.ai/v2
description: United States regional endpoint
- url: https://eu-west-1.api.lakera.ai/v2
description: European regional endpoint
security:
- bearerAuth: []
tags:
- name: Guard
description: Screen prompts and model responses for threats
paths:
/guard:
post:
tags:
- Guard
operationId: guardScreen
summary: Screen text content for threats
description: Submit messages to be screened. Lakera Guard returns a flagged decision when prompt injection, jailbreak, PII, unsafe content, or other policy violations are detected.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GuardRequest'
responses:
'200':
description: Screening result
content:
application/json:
schema:
$ref: '#/components/schemas/GuardResponse'
'401':
description: Missing or invalid bearer token
'422':
description: Validation error
/guard/results:
post:
tags:
- Guard
operationId: guardResults
summary: Retrieve detailed detector results
description: Returns the per-detector breakdown that informed a Guard decision, useful for debugging policies and tuning thresholds.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GuardRequest'
responses:
'200':
description: Detector results
content:
application/json:
schema:
$ref: '#/components/schemas/GuardResultsResponse'
'401':
description: Missing or invalid bearer token
components:
schemas:
GuardMessage:
type: object
required:
- role
- content
properties:
role:
type: string
description: Role of the message author (for example system, user, assistant)
enum:
- system
- user
- assistant
- tool
content:
type: string
description: Message text to screen
GuardResponse:
type: object
properties:
flagged:
type: boolean
description: Whether the input was flagged as a threat
payload:
type: object
additionalProperties: true
description: Policy decision payload
dev_info:
type: object
additionalProperties: true
description: Diagnostic information (when enabled)
GuardResultsResponse:
type: object
properties:
results:
type: array
description: Per-detector results
items:
type: object
properties:
detector_type:
type: string
detected:
type: boolean
detector_id:
type: string
message_id:
type: string
start:
type: integer
end:
type: integer
GuardRequest:
type: object
required:
- messages
properties:
messages:
type: array
description: Conversation messages to screen
items:
$ref: '#/components/schemas/GuardMessage'
project_id:
type: string
description: Optional project identifier used to scope policies
policy_id:
type: string
description: Optional policy identifier to apply
breakdown:
type: boolean
description: When true return per-detector results
metadata:
type: object
additionalProperties: true
description: Optional caller-supplied metadata
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Bearer token issued in the Lakera dashboard. Header format: `Authorization: Bearer ${LAKERA_GUARD_API_KEY}`. Self-hosted deployments may run without authentication.'