What gets indexed
- Document content - The main text content of each document
- Document metadata - Name, description, and custom fields you define
- Custom fields - User-defined fields (text, number, or date) based on your schema
Setup
1. Create a data type
Before ingesting documents, create a data type that defines the schema for your documents.1
Open Custom Data settings
In Grapevine, go to Integrations and click on Custom Data.
2
Create a new data type
Click Add Data Type and configure:
- Display name - A human-readable name (e.g., “Product Documentation”)
- Description - Optional description of what this data type contains
- Custom fields - Define additional fields for your documents
3
Define custom fields (optional)
Add custom fields to capture structured metadata:
For each field, specify:
| Field type | Description | Example values |
|---|---|---|
text | String values | "v2.1", "Marketing" |
number | Numeric values | 42, 3.14 |
date | ISO 8601 date strings | "2024-01-15", "2024-01-15T10:30:00Z" |
- Name - Field identifier (used in API)
- Type - One of
text,number, ordate - Required - Whether the field must be provided
- Description - Optional description (improves search relevance)
2. Get your API key
To ingest documents via API, you need an API key:- Go to Settings > API Keys
- Click Create API Key
- Copy and securely store your key
Ingesting documents
Single document
{slug} with your data type’s slug (shown in the Custom Data settings).
Batch ingestion
Ingest up to 100 documents in a single request:Document fields
| Field | Required | Description |
|---|---|---|
name | Yes | Document title |
content | Yes | Main document content |
description | No | Brief summary of the document |
| Custom fields | Varies | Fields defined in your data type schema |
Response
Successful ingestion returns the document ID:Updating documents
Update an existing document by ID:Updates replace the entire document. Include all fields you want to preserve.
Retrieving documents
Fetch a document by ID:Deleting documents
Delete a document by ID:Deleting a data type
You can delete a data type from the Custom Data settings page in Grapevine.Permissions
- Custom Data documents are accessible to all users in your organization
- Documents are indexed with tenant-level permissions (no per-document access control)
- API keys are scoped to your organization
Sync behavior
- Real-time indexing - Documents are indexed immediately after ingestion
- Instant updates - Changes are reflected in search results within seconds
- Deletion - Deleted documents are removed from the search index
Limitations
- Maximum 2 MB payload size per request
- Maximum 100 documents per batch request
- Custom field types limited to:
text,number,date - Document IDs are auto-generated (you cannot specify custom IDs)
- No partial updates (must send complete document on update)
- Data type slugs must be unique and contain only lowercase letters, numbers, hyphens, or underscores