Quickstart
Follow one article from start to finish. You check your key; pick a space, a writer and an article type; create a written article; wait for it; and read it. The last section creates an edited article from one you already have. If the words space, writer or article type are new to you, read the Overview first.
Before you start
You need a Studio API key. An admin in your Helix org makes one:
- In Helix Studio, open Settings → Developer and create a service account for your system.
- Give the service account a role in each space it should write in: Writer or higher.
- Create a key for the service account. Helix shows the key only once, so copy it then.
Keep the key out of code, URLs and logs. Set two shell variables so the commands below run as written:
export HELIX_API=https://api.dev.studio.onhelix.ai # or https://api.studio.onhelix.ai
export HELIX_STUDIO_API_KEY=hxk_… # your key
Use the URL that matches where the key was made. A development key works only on the development URL, and a production key only on the production URL.
Step 1: Check your key
curl "$HELIX_API/me" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY"
{
"success": true,
"data": {
"account": { "id": "019ab6a2-0000-7000-8000-0000000da17e", "name": "Newsroom integration" },
"organization": { "id": "019ab6a2-0000-7000-8000-00000000a001", "name": "Acme Media" },
"key": { "id": "019ab6a2-0000-7000-8000-000000000e01", "name": "Production CMS" }
}
}
account is your service account, organization the org it belongs to, and key the key you sent (its name, never the
secret). A 401 with the code AUTHENTICATION_FAILED means the key is wrong, revoked, or meant for the other URL.
Every response has this shape: success, then data on success or error on failure. The rules every response follows
are in Conventions.
Step 2: Pick a space
curl "$HELIX_API/spaces" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY"
{
"success": true,
"data": {
"items": [
{
"id": "019ab6a2-0000-7000-8000-00000000c11a",
"name": "Blog",
"parentId": null,
"path": ["Acme Media", "Client A", "Blog"],
"childCount": 0,
"writer": { "canCreateArticles": true }
}
],
"total": 1,
"pagination": { "limit": 50, "offset": 0, "hasMore": false }
}
}
The answer lists every space your service account can see. path gives each space's place in the org, from the top
down. Pick a space whose writer.canCreateArticles is true, and keep its ID:
export SPACE_ID=019ab6a2-0000-7000-8000-00000000c11a
A space keeps its ID when it is renamed or moved, so it's safe to store.
Step 3: Pick a writer and an article type
A written article needs a writer (the voice it is written in) and an article type (the kind of article). Ask the space which ones it offers:
curl "$HELIX_API/writer/config/writers?spaceId=$SPACE_ID" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY"
curl "$HELIX_API/writer/config/article-types?spaceId=$SPACE_ID" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY"
{
"success": true,
"data": {
"items": [
{
"id": "019ab6a2-0000-7000-8000-0000000b7e01",
"name": "House style",
"spaceId": "019ab6a2-0000-7000-8000-00000000c11a",
"inherited": false
}
],
"total": 1,
"pagination": { "limit": 50, "offset": 0, "hasMore": false }
}
}
This is the writers list. The article types list has the same shape, and each article type also has a description.
inherited: true means the writer or article type was set up in a space above this one.
A writer carries only its name here, so the list alone may not tell you which one to use. Ask the Studio admin in your org which writer and article type each client or space should use. Then store those IDs next to your mapping of clients to spaces. For this walkthrough, keep one of each:
export WRITER_ID=019ab6a2-0000-7000-8000-0000000b7e01
export ARTICLE_TYPE_ID=019ab6a2-0000-7000-8000-0000000a7e01
If either list is empty, the space can't take written articles yet. A person in Helix Studio has to set up a writer and an article type for it first.
Step 4: Create a written article
curl -X POST "$HELIX_API/writer/articles" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"kind": "written",
"externalId": "4821-write-1",
"spaceId": "$SPACE_ID",
"writerId": "$WRITER_ID",
"articleTypeId": "$ARTICLE_TYPE_ID",
"title": "How home solar batteries work",
"brief": "Explain how a home solar battery stores and releases energy, what sizes households usually choose, and what to check before buying one: capacity, power rating, warranty and whether it keeps the lights on in an outage. Write for a homeowner with no technical background, in plain words, about 700 words."
}
EOF
briefis everything Helix's writing agent is told about the article. Its maximum length is in Limits.titleis optional. Helix gives the article its own title as it writes; until then, it shows yours.externalIdis your own ID for this attempt, such as your order number plus a counter. Helix refuses a second article with the sameexternalId, which makes a create safe to retry. If you run this step twice, the second run gets a409. To create another article, use4821-write-2. SeeexternalId.
Helix answers 202 Accepted with the new article, which starts at once. These are the fields that matter now:
{
"success": true,
"data": {
"id": "019ab6a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b",
"externalId": "4821-write-1",
"kind": "written",
"status": "pending",
"stage": null,
"title": "How home solar batteries work"
}
}
The full article object is in the API Reference.
Step 5: Wait for it to finish
The article runs on its own through research, planning, writing and polishing. Expect this to take several minutes or more. You can find out when it ends in two ways:
- Webhooks (recommended). Helix sends a request to your endpoint each time the article's status or stage changes,
and
writer.article.completedwhen it's done. You ask the Helix team to register your endpoint, and they give you its signing secret; see Webhooks. An endpoint gets events only for changes made after it was registered, so register it before you create articles you want to follow this way. - Polling. Read the article about once a minute until
statusiscompleted,failedorcanceled:
curl "$HELIX_API/writer/articles/4821-write-1" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY"
You can read an article by Helix's id or by your own externalId, as here. Reads count toward a rate limit, so once you
have many articles, read only the ones that haven't ended; see Polling.
While it runs, status is running and stage names the step it is on: researching, planning, writing or
polishing for this written article. Show stage to people if you like, but don't make decisions on it. If status is
failed or canceled instead, see The article lifecycle for what to
do.
Step 6: Read the result
Once status is completed, the same call returns the finished article. Here it is, shortened to the fields you need
now:
{
"success": true,
"data": {
"id": "019ab6a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b",
"externalId": "4821-write-1",
"kind": "written",
"status": "completed",
"stage": null,
"title": "How a home solar battery keeps your lights on",
"suppliedTitle": "How home solar batteries work",
"html": "<p>A home solar battery stores the power your panels make during the day…</p>",
"url": "https://studio.onhelix.ai/writer/019ab6a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b",
"review": { "openIssues": 2, "checksCompleted": true },
"sources": [
{ "title": "Home battery storage explained", "url": "https://www.energy.gov/energysaver/solar-battery-storage" }
],
"completedAt": "2026-11-24T10:14:30.000Z"
}
}
htmlis the article body, without the title. Puttitleabove it.reviewsays how many issues Helix's checks left open (openIssues) and whether the checks finished (checksCompleted). Helix doesn't decide whether the article is fit to publish; you do. See Review facts.urlopens the article in Helix Studio, where an editor can work on it.sourceslists the web pages the article draws on.
The full response also carries the fields from Step 4 and a few more. The API Reference describes them all.
Edit an article you already have
To have Helix check and edit your own article, send it as content with "kind": "edited". A writer and an article
type are optional here. Without them, the article keeps its own voice.
curl -X POST "$HELIX_API/writer/articles" \
-H "Authorization: Bearer $HELIX_STUDIO_API_KEY" \
-H "Content-Type: application/json" \
--data @- <<EOF
{
"kind": "edited",
"externalId": "4821-edit-1",
"spaceId": "$SPACE_ID",
"title": "Five habits of newsletters people actually open",
"format": "html",
"autoFix": true,
"content": "<p>Most newsletters are deleted unread. The ones that survive the inbox tend to share a handful of habits.</p><h2>1. A subject line that says what is inside</h2><p>Readers decide in a second or two.</p>"
}
EOF
formatishtml,markdownorauto. HTML pasted from Google Docs or Word works. Send plain text asmarkdownorauto.autoFix: truelets Helix apply the safe fixes it finds and record each one. Withfalse, Helix changes no words and leaves every suggestion for a person to handle in Helix Studio.
Follow and read it as in Steps 5 and 6. Its stages are researching, then editing. An edited article also has
import.changes, which lists anything in your HTML that Helix couldn't keep. See
What an edit keeps.
Next steps
- Webhooks: receive events and check their signatures.
- Concepts: retries, stopping, access and the other rules.
- API Reference: every endpoint, field and error code.