Enterprise SaaS Setup
Enterprise SaaS Setup
If you have already completed setup, proceed to the Phase 1: Performance documentation.
This is a streamlined setup guide. Detailed API documentation is available, containing information on how to best utilize Lakera Guard resources.
To get access to the Enterprise version of Guard for evaluation you can make a request here.
Enterprise API Overivew
As an Enterprise tier member, you have access to the Lakera Guard platform, including:
- Flexible package of API requests per month
- Up to 1MB of context per individual request
- RBAC configuration for the Dashboard
- SIEM integration
- Data retention control
Generating an API Key
Lakera will provide access to your enterprise organization setup. Once logged in, you can generate up to 100 API keys for your organization by navigating to API Access -> + Create new API key.
Sending Requests
Using Lakera Guard is straightforward and requires only an API request. With your API key, you can call Lakera Guard by sending a JSON request in the following format.
Example request to the Prompt Injection endpoint.
cURL
Enterprise Platform Overview
Enterprise SaaS customers can access additional organization features on our platform. You can find the documentation on our Platform in the Getting Started section.
The Platform provides data insights into:
Request volume
: The total number of API requests processed by Lakera Guard.Detections flagged
: The number of flagged inputs, filterable to individual requests.Categories flagged
: A breakdown of detections by each category.Overall detection rate
: The percentage of flagged requests from the total request volume.Latency metrics
: The average response times from the Lakera Guard API.
By default, all requests to Lakera Guard are logged and contain:
Prompt content
: A text string containing the text content sent to Lakera Guard. See “Prompt Logging” below for more details on configuration options.Detection checks ran on the request
: The detectors that analyzed the request input.Detection result
: A True or False boolean flag indicating if the request was flagged.Timestamp
: The time and date of the request.Response time
: The latency measured from the time Lakera Guard received the request to when it returned a response.Project name (if configured)
: The name of the application, component or integration that sent the request.Metadata tags (if configured)
: Additional custom metadata contained in the request.
Prompt Logging
Enterprise customers can choose to disable prompt logging, which will prevent screened content from being logged and stored in the Lakera platform. If disabled, content sent to Lakera Guard will not be stored in a database by Lakera. Request metadata and detection results will still be stored and available for investigation and analysis. To disable prompt logging, navigate to Organization -> Settings and uncheck Log Prompts from Lakera Guard.
Configuring Metadata Logging (Optional)
From within the platform, navigate to the Projects page -> + New Project. Creating a new project will generate a Project ID to be included in requests to Lakera Guard.
To log metadata tags, include requests to Lakera Guard with your project ID in the following format, where XXXXXXXXXX
is the autogenerated ID:
Custom dynamic metadata values can be passed in with the request, for example, session and user IDs.
Example request made to the Guard endpoint with metadata configured.