Create a Metadata Index
Use this endpoint to create a metadata index for a specific entity type. Metadata indexes improve query performance when filtering or searching by custom metadata fields.
Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The authorization token. This header is required if your environment has Access Manager enabled.
The type of media of the resource. Recommended value is application/json.
A unique identifier used to trace and track each request.
Path Parameters
The name of the entity for which the metadata index will be created or managed.
organization, ledger, asset, segment, portfolio, account, transaction, operation, account_type, operation_route, transaction_route Body
The request body to create a metadata index.
The metadata key to be indexed. This key must match the metadata field name used in your entities.
100"tier"
Indicates whether the index enforces uniqueness. When set to true, duplicate values for this metadata key will not be allowed.
false
Indicates whether the index is sparse. When set to true, only documents containing the indexed field will be included in the index.
true
Response
Indicates that the metadata index was successfully created and the operation was completed as expected.
The response body for a metadata index.
The name of the index in the database.
"metadata.tier_1"
The name of the entity associated with the index.
"transaction"
The metadata key used in the index.
"tier"
Indicates whether the index enforces uniqueness.
false
Indicates whether the index is sparse (ignores documents without the indexed field).
true

