How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Lakera Policies API

Policy validation (self-hosted)

Lakera Policies API is one of 7 APIs that Lakera publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Policies. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 8 operations across 4 paths, and defines 17 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://platform.lakera.ai/api.

8 operations 4 paths 17 schemas 2 DELETE2 GET2 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Server
https://platform.lakera.ai/api
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Lakera Policies API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

  • bearerAuth — Bearer authentication using API key. Generate an API key from the AI Guardrails Dashboard. Example: Bearer sk123... Keys carry one of two access scopes, chosen…

Paths & Operations 8

Across 4 paths, the API surfaces 8 operations — 2 DELETE, 2 GET, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Policies 8
POST
/v1/policies
Create policy
policies_createPolicy body → 200400403422
GET
/v1/policies/{policyId}
Get policy
policies_getPolicy 1 param → 200403404
PUT
/v1/policies/{policyId}
Update policy
policies_updatePolicy 1 param body → 200400403404422
DELETE
/v1/policies/{policyId}
Delete policy
policies_deletePolicy 1 param → 200403404409
POST
/v1-beta/policiesdeprecated
Create policy (retired)
policies_createPolicyV1Beta → 200410
GET
/v1-beta/policies/{policyId}deprecated
Get policy (retired)
policies_getPolicyV1Beta 1 param → 200410
PUT
/v1-beta/policies/{policyId}deprecated
Update policy (retired)
policies_updatePolicyV1Beta 1 param → 200410
DELETE
/v1-beta/policies/{policyId}deprecated
Delete policy (retired)
policies_deletePolicyV1Beta 1 param → 200410

Schemas 17

The contract defines 17 schemas that model the data the API accepts and returns. The most detailed are CustomPolicy (8 properties), DetectorConfig (7 properties), Error (5 properties), PolicyRequest (4 properties). Each schema is shown below with its type and property counts.

ScreeningLocation
string
Where in the conversation a detector screens. - user::content — content of user messages (model input). - assistant::content — content of model responses (mode…
DetectorConfigType
string
The detector type
CustomPolicyDefaultThreshold
string
The confidence level at or above which the policy's detectors flag content.
PolicyRequestDefaultThreshold
string
The confidence level at or above which the policy's detectors flag content. l1confident is the most lenient and l4lesslikely the strictest. Thresholds are incl…
PolicyRequest
object
A policy configuration, sent when creating or updating a policy. Validation rules applied to every request: 1. A policy must contain at least one detector or o…
4 properties 2 required
ErrorStatus
string
Response status
PolicyProjectBrief
object
A lightweight reference to a project that uses a policy
3 properties
CustomGuardrailEntry
object
A custom guardrail attached to a policy
2 properties 1 required
DetectorConfig
object
A single detector, screening one location. To run the same detector on more than one location, add one entry per location.
7 properties 2 required
CustomPolicy
object
A policy as returned by the API
8 properties 5 required
PolicyResponseStatus
string
Response status
Error
object
Standard error response format
5 properties
DetectorConfigToolAccessAction
string
Whether toolaccesslist is an allow list or a deny list. Required when type is toolaccesscontrol, and not applicable to other types.
PolicyResponse
object
Response returned when creating, updating or deleting a policy
3 properties
PolicyReadResponse
object
Response returned when reading a policy
1 property 1 required
PolicyProjectBriefAction
string
The project's mode. See [Project Mode](/docs/projectsproject-mode).
DetectorConfigAllowedToolsItems
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

lakera-policies-api-openapi.yml Raw ↑

Other APIs Lakera publishes across the network.

Lakera Guard
Lakera Red
Lakera Analytics API
Lakera Logs API
Lakera Projects API
Where this information came from

This is an independent, third-party profile of Lakera Policies API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.