Skip to main content
POST
Infer Agent Memory Schema

Overview

Reads the agent and proposes what it should remember about each contact. The proposal is returned and nothing is saved: to keep it, put it on settings.memorySchema and save a version with Create Agent Version. By default it reads the agent’s newest dev version. Send a snapshot to have it read an unsaved configuration instead, which is what the builder does while you are still editing. This runs a language model over the compiled agent, so it is limited to 6 requests per minute per agent and it is not instant. The agent must have a saved version, or a snapshot in the body, and that configuration must compile. Requires an admin, owner, operator, or prompter role.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The agent’s unique identifier.

Body Parameters

object
A full agent configuration to read instead of the saved dev version, in the same shape Create Agent Version accepts. Validated before use: structural problems return 400 INVALID_SNAPSHOT with one entry per problem. Omit the field entirely to use the newest dev version.

Response

array
The proposed entity types, in the same shape as Get Agent Memory Schema. Nothing is persisted.
null | array
null on success, or a list of error objects if the request failed. An agent with no saved version returns 404 AGENT_VERSION_NOT_FOUND, and a configuration that cannot be compiled returns 400 AGENT_SNAPSHOT_INVALID.

Docs for agents: llms.txt