Memory Store
A workspace-scoped memory store backed by service-managed storage.
ManagedMemoryStore object
A workspace-scoped memory store backed by service-managed storage.
- namestringBetaOutput onlyIDImmutable
Resource name in the form
memory-stores/{managed_memory_store_id}.
- display_namestring^[a-z0-9]([a-z0-9-]*[a-z0-9])?$[ 3 .. 56 ] charactersDeprecatedBetaImmutable
Deprecated compatibility alias for the caller-provided memory store ID. Canonical clients provide the ID through
CreateMemoryStoreRequest.managed_memory_store_idand usenameas the resource identifier.
- workspace_idint64BetaOutput only
Workspace that owns the memory store.
- storage_backendobjectBetaOutput only
Service-managed storage backing this memory store.
Show child attributesHide child attributes
- backend_typestringBetaOutput only
Type of the storage backend.
STORAGE_BACKEND_TYPE_LAKEBASE
- backend_idstringBetaOutput only
Backend-specific identifier. For Lakebase, this is the project ID.
- owner_user_idstringDeprecatedBetaOutput only
Deprecated alias for
creator_user_id. This identifies the original creator, not a transferable owner. Usecreator_user_idinstead.
- creator_user_idstringBetaOutput only
Workspace-local user ID of the authenticated principal that created the store. This is immutable server-set attribution and does not grant access; authorization is evaluated from the authenticated request context.
- descriptionstringBeta
Human-readable description of the memory store.
- create_timestringBetaOutput only
Time when the store was created.
- update_timestringBetaOutput only
Time when the store was last updated.
Get a memory store by resource name Beta
GET
Retrieves a memory store by resource name. Returns NOT_FOUND when the store does not
exist in the caller's workspace.
API scopes: agent-kit
Parameters
- namestringRequiredpath
Resource name in the form
memory-stores/{managed_memory_store_id}.
Response
Returns the ManagedMemoryStore object.
List memory stores Beta
GET
Lists memory stores in the caller's workspace.
API scopes: agent-kit
Parameters
- page_sizeint32query
Maximum number of stores to return. The service may return fewer stores than requested. Defaults to 10; must be between 1 and 100.
- page_tokenstringquery
Opaque pagination token from a previous ListManagedMemoryStores response.
Response
Returns a list of ManagedMemoryStore objects.
Create a memory store Beta
POST
Creates a memory store in the caller's workspace.
API scopes: agent-kit
Parameters
- managed_memory_store_idstring^[a-z]([a-z0-9-]{0,54}[a-z0-9])?$[ 3 .. 56 ] charactersRequiredquery
Caller-provided, workspace-unique memory store ID. It must be 3-56 characters, begin with a lowercase letter, contain only lowercase letters, digits, and hyphens, and end with a letter or digit.
Request body
The memory store to create.
- display_namestring^[a-z0-9]([a-z0-9-]*[a-z0-9])?$[ 3 .. 56 ] charactersDeprecatedImmutable
Deprecated compatibility alias for the caller-provided memory store ID. Canonical clients provide the ID through
CreateMemoryStoreRequest.managed_memory_store_idand usenameas the resource identifier.
- descriptionstring
Human-readable description of the memory store.
Response
Returns the ManagedMemoryStore object.
Update a memory store Beta
PATCH
Updates a memory store's description and metadata.
API scopes: agent-kit
Parameters
- namestringRequiredIDImmutablepath
Resource name in the form
memory-stores/{managed_memory_store_id}.
- update_maskstringRequiredquery
Only
descriptionandmetadatamay be updated. Selectingmetadatareplaces the entire map.
Request body
The memory store to update. name is taken from the URL.
- display_namestring^[a-z0-9]([a-z0-9-]*[a-z0-9])?$[ 3 .. 56 ] charactersDeprecatedImmutable
Deprecated compatibility alias for the caller-provided memory store ID. Canonical clients provide the ID through
CreateMemoryStoreRequest.managed_memory_store_idand usenameas the resource identifier.
- descriptionstring
Human-readable description of the memory store.
Response
Returns the ManagedMemoryStore object.
Delete a memory store by resource name Beta
Grant memory store permission Beta
POST
1 more path
POST
Grants a READ or WRITE permission on a memory store to a principal. Only the owner or a workspace admin may grant permissions.
API scopes: agent-kit
Parameters
- namestringRequiredpath
Resource name in the form
memory-stores/{managed_memory_store_id}.
Request body
- principalobjectRequired
Principal to grant the permission to.
Show child attributesHide child attributes
- namestringRequired
- principal_typestring
The kind of principal. Required unless the deprecated type alias is supplied.
USERSERVICE_PRINCIPAL
- permissionstringRequired
Permission level to grant.
READWRITE
Get memory store permission Beta
GET
1 more path
GET
Retrieves the current caller's effective memory store permission. Returns PERMISSION_LEVEL_UNSPECIFIED when the caller has no access.
API scopes: agent-kit
Parameters
- namestringRequiredpath
Resource name in the form
memory-stores/{managed_memory_store_id}.
Response
- principalobjectOutput only
The principal whose permission is reported.
Show child attributesHide child attributes
- namestringRequired
- principal_typestring
The kind of principal. Required unless the deprecated type alias is supplied.
USERSERVICE_PRINCIPAL
- permissionstringOutput only
The permission level. WRITE includes READ; PERMISSION_LEVEL_UNSPECIFIED means neither is available.
READWRITE
List memory store permissions Beta
GET
1 more path
GET
Lists explicit memory store grants. Only the owner or a workspace admin may list permissions.
API scopes: agent-kit
Parameters
- parentstringRequiredpath
Resource name of the store, in the form
memory-stores/{managed_memory_store_id}.
- page_sizeint32query
Maximum number of permissions to return. Defaults to 100; maximum is 1000.
- page_tokenstringquery
Continuation token from a previous response.
Response
- memory_store_permissionsarray of objectOutput only
Explicit READ or WRITE grants. Implicit owner/admin access and inherited grants are excluded.
Show child attributesHide child attributes
- principalobjectOutput only
The principal whose permission is reported.
Show child attributesHide child attributes
- namestringRequired
- principal_typestring
The kind of principal. Required unless the deprecated type alias is supplied.
USERSERVICE_PRINCIPAL
- permissionstringOutput only
The permission level. WRITE includes READ; PERMISSION_LEVEL_UNSPECIFIED means neither is available.
READWRITE
- next_page_tokenstringOutput only
Token for the next page, omitted when all permissions have been returned.
Revoke memory store permission Beta
POST
1 more path
POST
Removes a principal's explicit READ and WRITE grants on a memory store. Only the owner or a workspace admin may revoke permissions. Ownership and inherited access are unaffected.
API scopes: agent-kit
Parameters
- namestringRequiredpath
Resource name in the form
memory-stores/{managed_memory_store_id}.
Request body
- principalobjectRequired
Principal whose READ and WRITE grants will be removed.
Show child attributesHide child attributes
- namestringRequired
- principal_typestring
The kind of principal. Required unless the deprecated type alias is supplied.
USERSERVICE_PRINCIPAL