For Agents
Programmatically create new document, create partial document. Covers 20 operations with apiKey authentication.
Use for: I need to new document, I want to partial document, Search for document, Find all document with custom id or update entire document
Not supported: Does not handle payments, communications, or crm - use for developer tools only.
>ℹ️ Master Data v2 is not compatible with data entities from previous versions, such as CL and AD. [Master Data](https://developers.vtex.com/docs/guides/master-data-introduction) is a secure, fast, scalable, and extensible solution that allows users to create their own entities, store data, and retrieve information directly from the storefront or external integrations. Several internal VTEX module. The API exposes 20 endpoints secured with apiKey authentication.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Master Data API - v2, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fvtex.local%2Fmaster-data-api---v2" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fvtex.local%2Fmaster-data-api---v2" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Master Data API - v2 API.
Create new document
Get document
Update partial document
Delete document
Search documents
GET STARTED
Patterns agents use Master Data API - v2 API for, with concrete tasks.
★ Developer Tools Operations
Use the Master Data API - v2 to perform developer tools operations programmatically. The API provides 20 endpoints covering core functionality including create new document, create partial document, get document.
Call POST /api/dataentities/{dataEntityName}/documents to create new document
Automated Documents Management
Automate documents operations by combining multiple Master Data API - v2 endpoints. Agents can create partial document and then get document in a single workflow.
Call PATCH /api/dataentities/{dataEntityName}/documents to create partial document, then verify the result
AI Agent Integration via Jentic
AI agents discover and call Master Data API - v2 endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.
Search Jentic for 'create new document', load the operation schema, and execute with Jentic-managed credentials
20 endpoints — >ℹ️ master data v2 is not compatible with data entities from previous versions, such as cl and ad.
METHOD
PATH
DESCRIPTION
/api/dataentities/{dataEntityName}/documents
Create new document
/api/dataentities/{dataEntityName}/documents
Create partial document
/api/dataentities/{dataEntityName}/documents/{id}
Get document
/api/dataentities/{dataEntityName}/documents/{id}
Create document with custom ID or update entire document
/api/dataentities/{dataEntityName}/documents/{id}
Update partial document
/api/dataentities/{dataEntityName}/documents/{id}
Delete document
/api/dataentities/{dataEntityName}/search
Search documents
/api/dataentities/{dataEntityName}/scroll
Scroll documents
/api/dataentities/{dataEntityName}/documents
Create new document
/api/dataentities/{dataEntityName}/documents
Create partial document
/api/dataentities/{dataEntityName}/documents/{id}
Get document
/api/dataentities/{dataEntityName}/documents/{id}
Create document with custom ID or update entire document
/api/dataentities/{dataEntityName}/documents/{id}
Update partial document
/api/dataentities/{dataEntityName}/documents/{id}
Delete document
/api/dataentities/{dataEntityName}/search
Search documents
What agents get from Jentic-routed access to this vendor.
Setup
Wiring the VTEX Master Data API v2 by hand means pairing an App Key with an App Token in the X-VTEX-API-AppKey and X-VTEX-API-AppToken headers, and templating the {accountName} and {environment} host into every call. Through Jentic you install once, import the Master Data API v2 from the API Directory, store the App Key and App Token once, and your agent calls it.
Permission scoping
The Master Data API v2 puts the data entity name and document id in the URL path (/api/dataentities/{dataEntityName}/documents/{id}), so a rule can pin your agent to one data entity and its documents. You choose the operations it may call, so destructive ones like deleting a document are not included unless you add them.
Credential isolation
Your VTEX App Key and App Token are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'create a document in a data entity' or 'search records in a data entity', and Jentic returns the matching Master Data API v2 operation with its input schema so the agent calls the right endpoint without browsing the reference docs.
Alternatives and complements available in the Jentic catalogue.
Github
Alternative developer tools API
Choose Github when you need a different approach to developer tools operations
Specific to using Master Data API - v2 API through Jentic.
What authentication does the Master Data API - v2 use?
The Master Data API - v2 uses an API key passed in the `X-VTEX-API-AppKey` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.
Can I create new document with the Master Data API - v2?
Yes. Use the POST /api/dataentities/{dataEntityName}/documents endpoint. The API returns structured JSON responses that agents can parse and act on directly.
What are the rate limits for the Master Data API - v2?
Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.
How do I create new document through Jentic?
Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'create new document'. Jentic returns the matching Master Data API - v2 operation with its input schema. Load the schema and execute the call - credentials are injected automatically.
How many endpoints does the Master Data API - v2 have?
The Master Data API - v2 exposes 20 endpoints covering documents, search, scroll operations.
Can I limit what my agent is allowed to do with the VTEX Master Data API?
Yes. Because Jentic One is self-hosted, your own rules decide which VTEX Master Data operations and credentials the agent may use. Since the data entity name and document id sit in the URL path (/api/dataentities/{dataEntityName}/documents/{id}), you can pin the agent to a single data entity and its documents. You also choose the exact operations it can call, so you can allow reads like search and scroll while leaving out destructive ones such as delete document unless you add them.
/api/dataentities/{dataEntityName}/scroll
Scroll documents