Content schema
Every field a content item can carry, and the rules each one follows.
Required on every push: title, summary, state, source, and category —
plus published_at when the item is published, and your content ID, which
travels in the URL path for single pushes and in the body for batches.
Unknown fields are rejected, not ignored. If you send catgory, you get an
error naming it. That is deliberate: silently dropping a misspelled field is how
an integration ships broken and nobody notices for months.
Prop
Type
Your content ID
The ID is required on every push, and it is the only way you address an item. Embrin also has its own ID, which we return to you, but we never accept it — yours is the one your system stores.
It must be stable. Use whatever your CMS already uses as a permanent post identifier. If it changes, we cannot tell the update from a new item, and you end up with two.
Allowed characters: letters, digits, and . _ ~ -, 1–255 of them. No
slashes, no spaces. If your IDs contain a slash (posts/2026/42), substitute
the separator or hash it — just make sure the result is stable.
Requiring an ID is what makes this API safe to retry. Without one, a request that succeeded but whose response was lost to a timeout would be written twice, and nothing would distinguish the duplicate from a genuine second item.
Content types
type says what KIND of thing you are pushing. A newspaper's stories are
articles; the same publisher might also push travel guides, social posts, or
recipes, and editors can then curate and filter each kind separately.
{ "type": { "type_id": "travel", "title": "Travel" } }It is optional. Omit it and the item is filed under article — a type we
create for you the first time you need it. If you only ever push one kind of
thing, ignore this field entirely and nothing changes.
How types are maintained
Exactly like sources and categories: there is nothing to register up front. The
first time we see a type_id we create it, and every push after that keeps its
title current. Rename a type in your CMS, push any one item carrying it, and
the new name appears everywhere it is used. Re-pushing unchanged values does
nothing at all.
The ID is the identity, the title is not. Send an ID that will not change; rename freely. If an ID does change, you get a second type rather than a renamed one.
Allowed characters: letters, digits, and . _ ~ : / -, 1–128 of them. No
spaces. Casing matters — Travel and travel are two different types.
article is a default, not a reserved word. You may push
{ "type_id": "article", "title": "Long-form" } and rename it like any other.
An item that simply omits type will not rename it back.
A type takes no url, and sending one is an error rather than being quietly ignored. A source is a place and has
somewhere to point; a type is a classification and does not.
Custom parameters
parameters carries whatever else your system knows about an item that Embrin
has no field for — a region, a sponsor flag, a room count. Each one declares its
own type, so we can tell you when a value does not match what you said it was.
{
"parameters": {
"region": { "type": "string", "value": "EU" },
"nights": { "type": "number", "value": 7 },
"featured": { "type": "boolean", "value": true }
}
}It is a map, not a list, so a key cannot appear twice — there is no duplicate-key rule to remember because duplicates are unrepresentable.
Types
type is one of string, number, or boolean, and it must agree with the
JSON type of value:
{ "nights": { "type": "number", "value": 7 } } ✓
{ "nights": { "type": "number", "value": "7" } } ✗ invalid_content, path parameters.nights.value
{ "ok": { "type": "boolean", "value": "true" } } ✗ invalid_content, path parameters.ok.valueThe mismatch case is the one worth watching. A CMS that serialises everything as
a string will send "7" where it means 7, and we reject it rather than
storing a string that every later consumer has to second-guess.
Parameter limits
| Rule | Limit |
|---|---|
| Parameters per item | 50 |
| Name length | 64 characters |
| Name characters | letters, digits, . _ - |
| String value length | 2048 characters |
| Whole object, serialized | 8 KiB |
__proto__, constructor and prototype are rejected as names.
Values are shown as plain text. Do not put a URL in one expecting it to become a
link — use the url field, or authors[].url, which are the fields we render
as links and check the scheme of.
Clearing parameters
parameters follows the same full-replace rule as everything else: omit the
object and every parameter on that item is cleared. To change one, send them
all.
Tags
tags labels an item with the topics, places and people it is about, so
editors can find everything on one subject — "every story tagged climate" —
across sources and sections. Where a category is the one section an item is
filed under, an item can carry many tags.
{ "tags": ["climate", "EU-Politics", "Budget-2027"] }Format
A tag is 1–64 characters: letters of either case, digits, and single dashes between them. No spaces, no dash at the start or end, no two dashes in a row, and nothing outside plain ASCII letters and digits.
climate ✓
EU-Politics ✓
Budget-2027 ✓
2026 ✓
climate change ✗ no spaces — send climate-change
-climate ✗ no dash at the start or end
climate--change ✗ single dashes only
#climate ✗ send the tag without the #
Kultura_Šport ✗ letters A–Z and a–z, digits and dashes onlyTag limits
| Rule | Limit |
|---|---|
| Tags per item | 50 |
| Length of one tag | 64 characters |
| Characters | letters, digits, - between them |
| The same tag, twice | rejected, whatever the casing of each |
One tag, whatever its casing
Tags ignore case: Climate, climate and CLIMATE are one tag across
your whole team. Embrin shows it in the spelling you pushed most recently, so
if you want EU-Politics rather than eu-politics, push that spelling and
every item carrying the tag shows it that way.
Because of that, one item cannot carry the same tag twice in two spellings:
["climate", "Climate"] is rejected, naming both, rather than us guessing
which one you meant.
There is nothing to register up front. The first time we see a tag we create it; a tag no item carries any more stays known but is no longer offered in the Content tab's tag filter.
Clearing tags
tags follows the full-replace rule: the list you send is the item's tags.
Leave the field out, send null, or send [], and the item is left with none.
To add one tag, send the whole list with it.
Dates
published_at accepts a full instant or a plain calendar date:
2026-07-30T08:00:00Z ✓
2026-07-30T08:00:00+02:00 ✓
2026-07-30T08:00:00.1234567Z ✓ up to 9 fractional digits
2026-07-30 ✓
2026-07-30T08:00:00 ✗ say which time zone: Z or an offset
2026-07-30T08:00:00+0200 ✗ write the offset as +02:00
now ✗
yesterday ✗
30/07/2026 ✗Fractions of a second may have up to 9 digits, so the defaults of .NET (7) and
Java (up to 9) work as they are. We keep microseconds and round the rest, so
re-pushing the same value is still a no-op. An offset must be one a clock can
show, at most ±15:59.
Relative words are rejected on purpose. "now" would resolve to a different
value on every push, so an item that had not changed would look like it had —
quietly breaking the guarantee that re-pushing is a no-op.
A draft does not need a published_at, and one you send with it is kept. When
it goes live in your CMS, push it again with "state": "published" and the
date.
Sources and categories
Every item says where it came from and which section it sits in. You send both inline, on every push — there is nothing to register up front.
{
"source": {
"source_id": "arc-xp",
"title": "Arc XP (Main site)",
"url": "https://example.com"
},
"category": {
"category_id": "sites/business",
"title": "Business",
"url": "https://example.com/business"
}
}What each one is for
source is the website or platform the content is syncing from. It exists
for publishers who push from more than one place — several mastheads, a main
site plus a weekend supplement, two CMSes mid-migration. Everything from one
source can then be curated into its own newsletter, or filtered out of someone
else's, without anyone having to remember which items came from where. If you
only ever push from one place, send the same source object every time; it costs
nothing and the field is still required.
category is the main section the item is filed under — Business, Sport,
Culture. Its url should point at that category's listing page on your site,
the page a reader would land on to see everything in that section, not the item's
own URL. Editors use categories to assemble an edition from one part of the
paper, so send the section you would put the story under in print or on your
homepage.
type, source and category answer three different questions and are worth
keeping straight: what KIND of thing this is, WHERE it came from, and WHICH
section it belongs to.
How they are maintained
The first time we see a source_id or a category_id we create it. Every push
after that keeps its title and url current — change a section's name in your
CMS, push any one item in it, and the new name appears everywhere it is used.
Re-pushing unchanged values does nothing at all.
The IDs are the identity, the titles are not. Send an ID that will not change; rename freely. If an ID does change, you get a second section rather than a renamed one.
Allowed characters for both IDs: letters, digits, and . _ ~ : / -, 1–128
of them. No spaces. Anything stable works — sites/business, arc-xp,
myCategory, or a UUID. Casing matters: Business and business are two
different sections.
A category_id only has to be unique within its source, not across your whole team. If you run three sites that
each have a Business section, send sites/business from all three — we keep them separate, because they are.
url is optional on both. title is required on both.
Languages
lang takes a BCP 47 tag, validated
against the IANA registry — en, en-GB, pt-BR, sl-SI, zh-Hans all work;
zz does not, because it is not a real language.
The tag must start with a 2- or 3-letter language code. That rules out the few
registered tags that do not, such as the grandfathered i-default and
i-mingo.
Tags are canonicalised, so EN-gb is stored as en-GB. Send the most specific
tag you have: pt-BR and pt-PT are different editions and we keep the
difference.
Images
Every key is optional. Send the sizes you have.
{
"images": {
"original": "https://example.com/img/1041.jpg",
"landscape": "https://example.com/img/1041-16x9.jpg",
"portrait": "https://example.com/img/1041-4x5.jpg",
"square": "https://example.com/img/1041-1x1.jpg"
}
}Embrin does not resize anything — these are your URLs, served from your CDN.
The grid prefers landscape, then original.
Authors
{
"authors": [{ "name": "Ana Kovač", "url": "https://example.com/by/ana" }, { "name": "Tom Wheeler" }]
}name is required for each; url is optional. Order is preserved.
A complete content item
{
"external_id": "cms-1041",
"title": "Lakeshore flood defences hold through record rainfall",
"summary": "Three days of sustained rain tested the new barriers at Millbank.",
"url": "https://example.com/story/1041",
"images": {
"original": "https://example.com/img/1041.jpg",
"landscape": "https://example.com/img/1041-16x9.jpg"
},
"authors": [{ "name": "Ana Kovač", "url": "https://example.com/by/ana" }],
"type": {
"type_id": "article",
"title": "Article"
},
"source": {
"source_id": "arc-xp",
"title": "Arc XP (Main site)",
"url": "https://example.com"
},
"category": {
"category_id": "sites/environment",
"title": "Environment",
"url": "https://example.com/environment"
},
"parameters": {
"region": { "type": "string", "value": "EU" },
"featured": { "type": "boolean", "value": true }
},
"tags": ["flooding", "climate", "Millbank"],
"lang": "en-GB",
"state": "published",
"published_at": "2026-07-30T08:00:00Z"
}