Overview
Raily provides multiple ways to import your content, from single-item API calls to bulk imports from your existing CMS. This guide covers all ingestion methods and best practices.Ingestion Methods
API
Direct API calls for programmatic control
Bulk Import
CSV/JSON uploads for large datasets
CMS Sync
Automatic sync with your CMS
Single Content via API
The simplest way to add content is through the API:Content Fields Reference
| Field | Required | Description |
|---|---|---|
externalId | Yes | Your unique identifier for this content |
title | Yes | Human-readable title |
type | Yes | Content type: article, report, image, dataset, video |
source | Yes | URL or path to the original content |
metadata | No | Custom key-value pairs for your data |
policyId | No | Access policy to apply |
tags | No | Array of tags for categorization |
Bulk Import
For large content libraries, use bulk import to add thousands of items at once.JSON Format
CSV Format
Bulk Import via API
Upload from File
CMS Integrations
Raily integrates with popular CMS platforms for automatic content sync.WordPress
1
Install the Plugin
Download the Raily WordPress plugin from your dashboard or search “Raily” in the WordPress plugin directory.
2
Configure API Key
Go to Settings > Raily and enter your API key.
3
Select Content Types
Choose which post types to sync (posts, pages, custom types).
4
Enable Auto-Sync
Toggle on automatic sync to push content changes in real-time.
Contentful
Strapi
Content Updates
Keep your content in sync with these update strategies.Single Update
Upsert (Create or Update)
Bulk Update
Content Validation
Raily validates content before ingestion. Here are common validation errors:Invalid URL
Invalid URL
Error:
source must be a valid URLSolution: Ensure the source field contains a properly formatted URL including the protocol (https://).Duplicate External ID
Duplicate External ID
Error:
Content with externalId already existsSolution: Use upsert instead of create, or use a unique external ID.Invalid Content Type
Invalid Content Type
Error:
type must be one of: article, report, image, dataset, videoSolution: Use one of the supported content types or contact support for custom types.Best Practices
Use External IDs
Always set meaningful
externalId values that match your internal system. This makes syncing and debugging much easier.Batch Operations
Use bulk endpoints for large imports. Single-item calls are rate-limited to 100/minute; bulk can handle 1000 items per request.
Rich Metadata
Include as much metadata as possible. This enables better filtering, analytics, and policy rules later.
Idempotent Imports
Use
upsert with skipDuplicates for safe, repeatable import processes.