Memory Stores
The Memory Stores API lets you create and manage vector stores for semantic search. Memory stores hold text records with optional metadata, embedded using a model you specify at creation time. You can attach memory stores to sandbox sessions as resources for in-session retrieval.
To obtain your authentication credentials, install the Release CLI and run release auth login. The CLI stores credentials in ~/.release.yaml.
List Memory Stores
Returns all memory stores for an account.
Endpoint
GET https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
Status Codes
200
Returns array of memory stores
401
Unauthorized — invalid or missing credentials
Response Body
Returns an array of memory store objects.
id
string (hashid)
Unique identifier for the memory store
name
string
Display name of the memory store
embedding_model
string
The embedding model used for vectorization
created_at
string (ISO 8601)
When the memory store was created
updated_at
string (ISO 8601)
When the memory store was last updated
Example Responses
200 OK
Create Memory Store
Creates a new memory store with the specified embedding model.
Endpoint
POST https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Content-Type
application/json
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
Request Body
name
string
Yes
Display name for the memory store
embedding_model
string
Yes
The embedding model to use (e.g. text-embedding-3-small)
Example
Status Codes
201
Memory store created
401
Unauthorized — invalid or missing credentials
422
Validation error
Response Body
id
string (hashid)
Unique identifier for the memory store
name
string
Display name of the memory store
embedding_model
string
The embedding model used for vectorization
created_at
string (ISO 8601)
When the memory store was created
updated_at
string (ISO 8601)
When the memory store was last updated
Example Responses
201 Created
422 Unprocessable Entity
Get Memory Store
Returns a single memory store by ID.
Endpoint
GET https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores/{id}
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
id
string (hashid)
Yes
The memory store ID
Status Codes
200
Returns the memory store
401
Unauthorized — invalid or missing credentials
404
Memory store not found
Response Body
id
string (hashid)
Unique identifier for the memory store
name
string
Display name of the memory store
embedding_model
string
The embedding model used for vectorization
created_at
string (ISO 8601)
When the memory store was created
updated_at
string (ISO 8601)
When the memory store was last updated
Example Responses
200 OK
404 Not Found
Delete Memory Store
Permanently deletes a memory store and all of its records. This action cannot be undone.
Endpoint
DELETE https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores/{id}
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
id
string (hashid)
Yes
The memory store ID
Status Codes
204
Memory store deleted (no content)
401
Unauthorized — invalid or missing credentials
404
Memory store not found
Example Responses
404 Not Found
Records
Records are the individual text entries stored in a memory store. Each record is embedded using the store's configured model and can be retrieved via semantic search.
Write Records
Writes one or more records to a memory store. Each record is embedded and indexed for semantic search.
Endpoint
POST https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores/{id}/write
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Content-Type
application/json
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
id
string (hashid)
Yes
The memory store ID
Request Body
records
array
Yes
Array of record objects to write
records[].content
string
Yes
The text content to embed and store
records[].metadata
object
No
Arbitrary key-value metadata attached to the record
Example
Status Codes
200
Records written successfully
401
Unauthorized — invalid or missing credentials
404
Memory store not found
422
Validation error
Example Responses
200 OK
Semantic Search
Searches for records semantically similar to the provided query. The query is embedded using the store's configured model and compared against all stored records.
Endpoint
POST https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores/{id}/search
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Content-Type
application/json
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
id
string (hashid)
Yes
The memory store ID
Request Body
query
string
Yes
The search query text
k
integer
No
Number of results to return (default varies by server)
filters
object
No
Key-value metadata filters to narrow results
Example
Status Codes
200
Returns matching records
401
Unauthorized — invalid or missing credentials
404
Memory store not found
422
Validation error
Response Body
Returns an array of matching record objects, ordered by relevance.
id
string
Unique record identifier (UUID)
content
string
The stored text content
metadata
object
Metadata attached to the record
score
number
Similarity score
Example Responses
200 OK
Delete Records
Deletes specific records from a memory store by their IDs.
Endpoint
POST https://backend-{handle}-envs.gcp.release.com/ai/accounts/{accountId}/memory_stores/{id}/delete_records
Authentication
Authenticate using headers from your ~/.release.yaml file. To set this up, install the Release CLI and run release auth login.
X-User-Email
User email from ~/.release.yaml (login field)
X-User-Token
User token from ~/.release.yaml (token field)
Headers
Content-Type
application/json
Accept
application/json
Path Parameters
accountId
string (hashid)
Yes
The Release account ID
id
string (hashid)
Yes
The memory store ID
Request Body
ids
array of strings
Yes
Record UUIDs to delete
Example
Status Codes
200
Records deleted successfully
401
Unauthorized — invalid or missing credentials
404
Memory store not found
422
Validation error
Example Responses
200 OK
Last updated
Was this helpful?