Responses are generated using AI and may contain mistakes.
Bland is getting a major upgrade. We're working on updating our docs as users transition in the coming weeks. Reach out to support@bland.ai with questions.
Returns the memory entity schema the agent runs with today: the kinds of things it tracks per contact, such as a booking or an order, and the fields it fills in for each one.The schema comes from one of two places, and source tells you which. When the newest dev version carries settings.memorySchema, that is returned and source is settings. Otherwise the last schema the runtime inferred and cached is returned with source set to cached_version. An agent with neither returns an empty list and source of null, which means nothing is known yet rather than that the agent remembers nothing.To produce a schema for an agent that has none, use Infer Agent Memory Schema.
Headers
string
required
Your API key for authentication.
Path Parameters
string
required
The agent’s unique identifier.
Response
array
The entity types the agent tracks per contact. Empty when nothing is known yet.
Show entity schema object
string
Name of the entity, for example trip, order, or quote.
string
What this entity represents.
string
The field used to tell one instance from another, for example confirmation_number.
array
Field definitions. Each has name, description, and type, plus optional enum_values, required, array_item_type, array_item_schema, type_conversion, and conversational_format.
string
Which field tracks the entity’s lifecycle. Present only when one is set.
array
Possible end states for this entity. Present only when any are set.
object
Extra context about the entity type. Present only when set.
string | null
Where the schema came from: settings when it is saved on the agent’s newest dev version, cached_version when it was inferred by the runtime, or null when entity_schemas is empty.
null | array
null on success, or a list of error objects if the request failed.
{ "data": { "entity_schemas": [ { "entity_type": "appointment", "description": "A dental appointment the caller books, moves, or cancels.", "identifier_field": "confirmation_number", "fields": [ { "name": "confirmation_number", "description": "The booking reference given to the caller.", "type": "string", "required": true }, { "name": "starts_at", "description": "When the appointment starts.", "type": "string", "type_conversion": { "natural_language_examples": ["tomorrow at 2", "next Tuesday morning"], "target_format": "ISO 8601 date-time" } } ], "status_field": "state", "outcomes": ["booked", "rescheduled", "cancelled"] } ], "source": "settings" }, "errors": null}