NAME
Twilio::Rest::Memory::V1::Store - The Store resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $store = $client->memory->v1->stores->create(\%body);
for my $store ($client->memory->v1->stores->read({}, 20)) {
...
}
my $store = $client->memory->v1->stores($store_id)->fetch;
$client->memory->v1->stores($store_id)->patch(\%body, \%options);
$client->memory->v1->stores($store_id)->delete;
DESCRIPTION
This file holds StoreList, StorePage, StoreContext, StoreInstance, CreateStore202ResponseInstance, PatchStore202ResponseInstance and DeleteStore202ResponseInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
StoreList
Returned by $client->memory->v1->stores. See also Twilio::ListResource.
create
my $store = $client->memory->v1->stores->create(\%body);
Create a new Memory Store for the Twilio account. Accounts can have multiple memory stores, up to a maximum limit of 15. Each memory store will automatically provision other dependent resources as needed, including Conversational Intelligence capabilities. Returns a CreateStore202ResponseInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
description-
A human readable description of this resource, up to 128 characters.
displayName-
Required. Provides a unique and addressable name to be assigned to this Store. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
read
my @records = $client->memory->v1->stores->read(\%options, $limit, $page_size);
Get a list of memory stores for the Twilio account. Returns the records as a list, fetching as many pages as it needs.
The options are:
order_by-
Either 'ASC' or 'DESC' to sort results ascending or descending respectively. One of
ASCorDESC.
stream
my $stream = $client->memory->v1->stores->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->memory->v1->stores->page(\%options, $page_size, $page_token);
Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.
get_page
my $page = $client->memory->v1->stores->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->memory->v1->stores->get_context($store_id);
Returns a StoreContext, and makes no request.
StorePage
A Twilio::Page of StoreInstance objects.
records_key
build_instance
Used by Twilio::Page.
StoreContext
Returned by $client->memory->v1->stores($store_id). It makes no request until one of these methods is called.
fetch
my $store = $client->memory->v1->stores($store_id)->fetch;
Retrieve the details of a specific Memory Store by its unique ID. Returns a StoreInstance.
patch
my $store = $client->memory->v1->stores($store_id)->patch(\%body, \%options);
Partially update a Memory Store. Only the fields provided in the request body will be updated. Returns a PatchStore202ResponseInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
description-
A human readable description of this resource, up to 128 characters.
displayName-
Provides a unique and addressable name to be assigned to this Store. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
The options are:
if_match-
Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
delete
$client->memory->v1->stores($store_id)->delete;
Deletes the Memory Store and all associated resources including identity resolution settings, trait groups, profiles, traits, observations, and summaries. Returns a DeleteStore202ResponseInstance.
StoreInstance
See also Twilio::InstanceResource.
It has fetch, patch and delete, which work as they do on the context.
Its fields are:
- data_as_of
-
The time up to which data sent to this Memory Store has been processed by downstream systems. Equals the time the Memory Store was created when no data has been processed yet. Omitted when no value is available. Represents a high water mark for ingested data. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- description
-
A human readable description of this resource, up to 128 characters.
- display_name
-
Provides a unique and addressable name to be assigned to this Store. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
- id
-
The unique identifier for the Memory Store
- intelligence_service_id
-
The ID of the associated intelligence service that was provisioned for memory extraction.
- status
-
The current status of the Memory Store. A store begins in the QUEUED state as it is scheduled for processing. It then moves to PROVISIONING at the beginning of processing. It transitions to ACTIVE once all dependent resources are provisioned, including Conversational Intelligence capabilities. If there is an issue provisioning resources, the store will move to the FAILED state. One of
QUEUED,PROVISIONING,ACTIVEorFAILED. - version
-
The current version number of the Memory Store. Incremented on each successful update.
CreateStore202ResponseInstance
Returned by create, for an answer that is not a Store. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
- status_url
-
URI to check operation status.
PatchStore202ResponseInstance
Returned by patch, for an answer that is not a Store. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
- status_url
-
URI to check operation status.
DeleteStore202ResponseInstance
Returned by delete, for an answer that is not a Store. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
- status_url
-
URI to check operation status.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.