---
schema_version: "1"
id: e656ebfa840a2a8b8759d077cc15546e26f1d2dfe81d354b45e3c1d97a0c84c7
title: TenantSecurityAIGtwyUsage
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_tenantsecurityaigtwyusage.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_tenantsecurityaigtwyusage.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8ec33bb0dd084465a59c5d52b6c67682a2c3201d7e141383800399bf2a389c1e
description: Stores Einstein generative AI gateway usage data. This object is available in API version 65.0 and later.
---
# TenantSecurityAIGtwyUsage

Stores Einstein generative AI gateway usage data. This object is available in API version 65.0 and later.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

This object is available for Security Center subscribers. This object is read-only.

## Fields

| Field | Details |
| --- | --- |
| Cloud | 
Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

Cost cloud ID.



 |
| DetailIdentifier | 

Type

string

Properties

Filter, Group, Sort

Description

The ID of the individual detail record. This field is unique across all tenants.



 |
| Feature | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The AI feature for which the gateway request was made.



 |
| MaskedPrompt | 

Type

textarea

Properties

Nillable

Description

Masked prompt or input text.



 |
| MaskedResponse | 

Type

textarea

Properties

Nillable

Description

The generated response from the LLM. If masking is enabled, this may contain placeholder text.



 |
| MetricIdentifier | 

Type

string

Properties

Filter, Group, Sort

Description

The ID of the type of metric that was counted. This field is unique within your organization.



 |
| MetricsType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The type of data collected.



 |
| Model | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The name of the model to which the request was sent.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The name of the metric for which data is being collected.



 |
| ObjectName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

Name of the Salesforce object is referenced in the prompt.



 |
| Prompt | 

Type

textarea

Properties

Nillable

Description

The hydrated version of prompt text before data masking is applied. The actual prompt sent to the LLM will mask sensitive data if data masking is enabled.



 |
| PromptTemplateDevName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The ID of the prompt template.



 |
| PromptTemplateVersionNo | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The version of the prompt template.



 |
| PromptTokens | 

Type

int

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The number of tokens used in the prompt.



 |
| Response | 

Type

textarea

Properties

Nillable

Description

The generated response after unmasking.



 |
| Tenant | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The ID of the tenant of this AI gateway usage event.



 |
| TenantName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The name of the tenant of this AI gateway usage event.



 |