Volver al catálogo

Lakera Guard

lakera_guard

Lakera Guard screens AI application interactions for security and safety risks and provides Enterprise APIs for managing guardrail policies and projects.

Acciones
10
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (10)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create PolicyLAKERA_GUARD_CREATE_POLICYAcción

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 lookup.

Parámetros de entrada

  • namestringObligatorio

    Policy name, unique within the organization.

  • detectorsobject[]

    Built-in detector configurations. Provide at least one detector or custom_guardrail_id.

  • default_thresholdstringObligatorioenum

    Default confidence threshold at or above which configured detectors trigger.

    l1_confidentl2_very_likelyl3_likelyl4_less_likely
  • custom_guardrail_idsstring[]

    Existing custom guardrail IDs to include. Provide at least one ID or detector.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create ProjectLAKERA_GUARD_CREATE_PROJECTAcción

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 later retrieval, updates, and deletion require external project lookup.

Parámetros de entrada

  • namestringObligatorio

    Name for the new project.

  • actionstringenum

    Project response action: detect reports detections, while flag applies flagging behavior.

    detectflag
  • policy_idstring

    Existing policy ID to assign; omit to use the default policy.

  • project_metadataobject

    String-valued project metadata stored by Lakera.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete PolicyLAKERA_GUARD_DELETE_POLICYAcción

Permanently delete an Enterprise Lakera policy by ID. The provider rejects deletion while any project is assigned to the policy.

Parámetros de entrada

  • policy_idstringObligatorio

    ID of the unassigned policy to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete ProjectLAKERA_GUARD_DELETE_PROJECTAcción

Permanently and irreversibly delete an Enterprise Lakera project by ID. Historical requests lose their association with the project's metadata and assigned policy.

Parámetros de entrada

  • project_idstringObligatorio

    ID of the project to permanently and irreversibly delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Evaluate DetectorsLAKERA_GUARD_EVALUATE_DETECTORSAcción

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 decisions.

Parámetros de entrada

  • dev_infoboolean

    Whether to request Guard build and model version information.

  • messagesobject[]Obligatorio

    OpenAI-style conversation in chronological order; each message requires a role, while assistant tool-call messages may omit content.

  • metadataobject

    Optional arbitrary request metadata passed to Lakera Guard.

  • project_idstring

    Lakera project whose policy should be evaluated; omit to use the default policy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get PolicyLAKERA_GUARD_GET_POLICYAcción

Retrieve an Enterprise Lakera policy by ID, including its detector configuration, custom guardrails, version, and assigned projects.

Parámetros de entrada

  • policy_idstringObligatorio

    Policy ID returned by Create Policy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ProjectLAKERA_GUARD_GET_PROJECTAcción

Retrieve an Enterprise Lakera project by ID, including its assigned policy, metadata, and detect-or-flag action.

Parámetros de entrada

  • project_idstringObligatorio

    Lakera project ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Screen ContentLAKERA_GUARD_SCREEN_CONTENTAcción

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 interaction is screened.

Parámetros de entrada

  • payloadboolean

    Whether to include matched text locations for supported detectors such as PII, profanity, and custom regex.

  • dev_infoboolean

    Whether to include Guard build and model version information.

  • messagesobject[]Obligatorio

    OpenAI-style conversation in chronological order. Earlier messages provide context, but Guard screens only the latest interaction.

  • metadataobject

    Optional request tags, commonly user_id, session_id, ip_address, and internal_request_id.

  • breakdownboolean

    Whether to include detector-by-detector decisions and confidence levels.

  • project_idstring

    Lakera project whose policy should screen the interaction; omit to use the default policy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update PolicyLAKERA_GUARD_UPDATE_POLICYAcción

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 settings.

Parámetros de entrada

  • namestringObligatorio

    Complete replacement policy name.

  • detectorsobject[]

    Complete replacement built-in detector list. Omission removes existing detectors; provide at least one detector or custom guardrail ID.

  • policy_idstringObligatorio

    ID of the policy to replace.

  • default_thresholdstringObligatorioenum

    Complete replacement default detector threshold.

    l1_confidentl2_very_likelyl3_likelyl4_less_likely
  • custom_guardrail_idsstring[]

    Complete replacement custom guardrail ID list. Omission removes existing custom guardrails.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update ProjectLAKERA_GUARD_UPDATE_PROJECTAcción

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.

Parámetros de entrada

  • namestringObligatorio

    Project name; required by the official Platform request schema.

  • actionstringenum

    Project action. Omission keeps the existing action.

    detectflag
  • policy_idstring

    Policy ID to assign to the project.

  • project_idstringObligatorio

    ID of the project to update.

  • project_metadataobject

    String-valued project metadata to send in the update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not