API Reference
Every endpoint of the Studio API, with its parameters and its answers. The Overview explains the terms used here (org, space, role, service account, writer and article type) and how they fit together.
Base URL and authentication
| Environment | URL |
|---|---|
| Production | https://api.studio.onhelix.ai |
| Development | https://api.dev.studio.onhelix.ai |
Send the key of your service account on every request:
Authorization: Bearer hxk_…
The shared rules for HTTPS, bodies, responses, lists, times, IDs and the x-request-id header are in
Conventions.
Account
Get the account behind a key
GET /me
Returns the service account, org and key in use. Use it to test a key.
Response 200
| Field | Type | Description |
|---|---|---|
account | { id, name } | The service account the key belongs to |
organization | { id, name } | The org the account belongs to |
key | { id, name } | The key in use: its ID and the name an admin gave it, never the secret |
{
"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" }
}
}
Errors: 400, 401, 429, 500, 503.
Spaces
The space object
| Field | Type | Description |
|---|---|---|
id | string | The space's ID. It doesn't change when the space is renamed or moved |
name | string | |
parentId | string or null | The space above it. null at the top of what your account can see, so a list is always a complete tree |
path | string[] | Names from the org down to this space, such as ["Acme Media", "Client A", "Blog"]. It may name spaces above that your account can't open |
childCount | integer | Spaces directly under this one that your account can see |
writer.canCreateArticles | boolean | Whether your account may create articles here |
List spaces
GET /spaces
Every space your account can see, at all levels, in tree order. Access to a space covers every space below it.
Query parameters
| Parameter | Type | Description |
|---|---|---|
parentId | string | Only the spaces directly under this one |
ancestorId | string | Every space below this one, at any depth, without the space itself |
limit | integer | 1 to 100. Default 50 |
offset | integer | 0 or more. Default 0 |
Send parentId or ancestorId, not both (400 INVALID_QUERY). An ID your account can't see answers 404.
Response 200: a list of spaces.
{
"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 }
}
}
Errors: 400, 401, 404, 429, 500, 503.
Get a space
GET /spaces/{id}
Path parameters: id, the space's ID.
Response 200: one space. The answer is 404 if the space doesn't exist, has been deleted, or
your account can't see it.
Errors: 400, 401, 404, 429, 500, 503.
Writer config
Writers (writing voices) and article types (kinds of article) are set up by people in Helix Studio. The API can read them but not change them. Both lists return the space's own and those it inherits from the spaces above it, and leave out archived ones. They list the space's own first, then each space above it, nearest first, and by name within each.
Query parameters (both endpoints)
| Parameter | Type | Description |
|---|---|---|
spaceId | string | Required. The space to list for. One your account can't see answers 404, as does any space when Writer is switched off for your org |
limit | integer | 1 to 100. Default 50 |
offset | integer | 0 or more. Default 0 |
List writers
GET /writer/config/writers?spaceId={spaceId}
Response 200: a list of writers.
| Field | Type | Description |
|---|---|---|
id | string | Pass it as writerId when creating an article |
name | string | |
spaceId | string | The space that owns it |
inherited | boolean | true when it comes from a space above. Its spaceId may then be a space your account can't open |
Errors: 400, 401, 404, 429, 500, 503.
List article types
GET /writer/config/article-types?spaceId={spaceId}
Response 200: a list of article types. Any type works for both written and edited articles. Helix's built-in
Edited type isn't listed: an edited article sent without articleTypeId uses it.
| Field | Type | Description |
|---|---|---|
id | string | Pass it as articleTypeId when creating an article |
name | string | |
description | string or null | |
spaceId | string | The space that owns it |
inherited | boolean | true when it comes from a space above. Its spaceId may then be a space your account can't open |
Errors: 400, 401, 404, 429, 500, 503.
Articles
The article object
GET /writer/articles/{ref}, POST /writer/articles and POST /writer/articles/{ref}/stop return the full article.
List items have every field except html and sources.
| Field | Type | Description |
|---|---|---|
id | string | Helix's ID for the article |
externalId | string | Your ID for this attempt |
kind | string | written or edited |
status | string | pending, running, completed, failed or canceled. See The article lifecycle |
stage | string or null | While running: researching, planning, writing, polishing or editing. For display only. null otherwise |
spaceId | string | The space the article is in now. input.spaceId is where it was created |
input | object | What you sent to create it, with defaults filled in and without content |
title | string | Never empty: the article's own title, else the one you supplied, else the first sentence of the brief |
suppliedTitle | string or null | The title a written article was sent, stored trimmed on one line. null if none was sent, and always on an edited article |
html | string | The body, without the title. May be partial while running. Not in list items |
url | string | Opens the article in Helix Studio |
review | object or null | { openIssues, checksCompleted }. null until the article first completes. See Review facts |
import | object or null | On an edited article, { changes: [{ kind, what, count }] }: what the import dropped or changed. null on a written one. See What an edit keeps |
error | object or null | Set while failed: { code, message }. code is USAGE_LIMIT_REACHED, RESEARCH_FAILED, WRITING_FAILED or INTERNAL_ERROR; message can be shown to people |
sources | { title, url }[] | The pages the article draws on. Not in list items |
createdBy | object | { type, id, name }. type is service_account |
createdAt | string | ISO 8601, UTC |
startedAt | string or null | When its first run started |
completedAt | string or null | When it last ended. null while pending or running |
updatedAt | string | Moves on any saved change, including a person's edit in Helix |
input on a written article holds kind, externalId, spaceId, articleTypeId, writerId, brief and title
(null if you sent none). On an edited article it holds kind, externalId, spaceId, articleTypeId (yours, or the
built-in Edited type's ID), writerId (null if you sent none), format, autoFix and title. After a 409 on a retried
create, input tells you whether the existing article is the one you meant.
Example, a completed edited article:
{
"id": "019ab6a2-5e6f-7a8b-9c0d-2e3f4a5b6c7d",
"externalId": "4821-edit-1",
"kind": "edited",
"status": "completed",
"stage": null,
"spaceId": "019ab6a2-0000-7000-8000-00000000c11a",
"input": {
"kind": "edited",
"externalId": "4821-edit-1",
"spaceId": "019ab6a2-0000-7000-8000-00000000c11a",
"articleTypeId": "edited-article",
"writerId": null,
"format": "html",
"autoFix": true,
"title": "Five habits of newsletters people actually open"
},
"title": "Five habits of newsletters people actually open",
"suppliedTitle": null,
"html": "<p>Most newsletters are deleted unread. The ones that survive the inbox tend to share a handful of habits.</p>…",
"url": "https://studio.onhelix.ai/writer/019ab6a2-5e6f-7a8b-9c0d-2e3f4a5b6c7d",
"review": { "openIssues": 3, "checksCompleted": true },
"import": { "changes": [{ "kind": "dropped_attribute", "what": "attributes on <h2>", "count": 2 }] },
"error": null,
"sources": [{ "title": "Email marketing benchmarks", "url": "https://www.example.com/email-marketing-benchmarks" }],
"createdBy": { "type": "service_account", "id": "019ab6a2-0000-7000-8000-0000000da17e", "name": "Newsroom integration" },
"createdAt": "2026-11-24T10:00:00.000Z",
"startedAt": "2026-11-24T10:00:01.000Z",
"completedAt": "2026-11-24T10:14:30.000Z",
"updatedAt": "2026-11-24T10:14:30.000Z"
}
Create an article
POST /writer/articles
Creates a written or an edited article. It starts at once and runs unattended. Helix takes a written article from research to a finished draft. It imports an edited article, checks it and gives it an editor pass. Your account needs the Writer role or higher in the space. See Written and edited articles.
Body, written article
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | yes | "written" |
externalId | string | yes | Your ID for this attempt: 1 to 255 characters matching [A-Za-z0-9._:-], not . or .., not shaped like a UUID. See externalId |
spaceId | string | yes | Where the article lives |
writerId | string | yes | A writer the space lists |
articleTypeId | string | yes | An article type the space lists |
brief | string | yes | Everything Helix's writing agent is told. Up to the length in Limits, with some visible text |
title | string | no | A suggested title: on one line, with some visible text, up to the length in Limits |
Body, edited article
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | yes | "edited" |
externalId | string | yes | As for a written article |
spaceId | string | yes | Where the article lives |
content | string | yes | The article to edit, within the size and length in Limits |
format | string | yes | html, markdown or auto. Send plain text as markdown or auto |
autoFix | boolean | no | Default true: apply the safe fixes. false: change no words |
title | string | no | The article's title, on one line. Left out, it's taken from the content; with neither, the create answers 400 |
writerId | string | no | A writer the space lists. Left out, the article keeps its own voice |
articleTypeId | string | no | An article type the space lists. Left out, the article uses Helix's built-in Edited type |
Helix answers 400 INVALID_BODY to a body with a field not listed here.
Response 202: the new article. Follow it by webhook or by
reading it.
Errors
| Status | Code | When |
|---|---|---|
400 | INVALID_BODY | The body isn't JSON, isn't sent as application/json, or fails the rules above (a brief or title over its length included); details.issues lists the fields |
400 | VALIDATION_FAILED | A writer or article type the space doesn't list, or a space with no writers for a written article (details.field names the field); or content Helix can't read (details.reason: empty, unparseable, too_large or too_long) |
403 | PERMISSION_DENIED | Your account can see the space, but its role there can't create articles |
404 | NOT_FOUND | The space doesn't exist or your account can't see it |
409 | ALREADY_EXISTS | The externalId is already used. details.articleId names the article; it may be one your account can no longer read |
413 | INVALID_BODY | The whole request body is over its limit (see Limits) |
Plus 401, 429, 500 and 503, as on every endpoint.
{
"success": false,
"error": {
"code": "ALREADY_EXISTS",
"message": "This externalId is already used by one of this account's articles.",
"details": { "articleId": "019ab6a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b" }
}
}
List articles
GET /writer/articles
The articles your account created, newest first, in spaces it can still see. Items leave out html and sources.
Query parameters
| Parameter | Type | Description |
|---|---|---|
externalId | string | One externalId |
spaceId | string | That space only, not the spaces below it |
kind | string | written or edited |
status | string | pending, running, completed, failed or canceled |
createdSince | string | ISO 8601 with a zone. Includes this time |
createdUntil | string | ISO 8601 with a zone. Excludes this time |
limit | integer | 1 to 100. Default 50 |
offset | integer | 0 or more. Default 0 |
Both time filters work to the second. To page through many articles safely, see Listing articles.
Response 200: a list of articles, without html and sources. A spaceId your account
can't see, or one that doesn't exist, gives an empty list, not a 404.
Errors: 400, 401, 429, 500, 503.
Get an article
GET /writer/articles/{ref}
Returns the article's progress and its latest HTML. The article is the source of truth: read it whenever a webhook leaves you unsure.
Path parameters: ref, Helix's article ID or your externalId. A UUID is read as Helix's ID.
Response 200: the article. The answer is 404 if your account didn't create the article, can
no longer see its space, or the article has been deleted in Helix.
Errors: 400, 401, 404, 429, 500, 503.
Stop an article
POST /writer/articles/{ref}/stop
Ends a pending or running article's run at once. Takes no body. Your account needs the Writer role or higher in the article's current space.
Path parameters: ref, Helix's article ID or your externalId.
Response 200: the article, now canceled. Repeating the call gives the same answer, so a stop
whose answer you lost is safe to send again.
Errors
| Status | Code | When |
|---|---|---|
403 | PERMISSION_DENIED | Your account's role in the article's space can't stop it |
404 | NOT_FOUND | Your account didn't create the article or can't see its space |
409 | CONFLICT | Nothing to stop: the article completed or failed, or a person has taken it over in Helix and it's waiting for them. Also when a person in Helix started it again while you were stopping it: read it, then stop it again if you still want to |
Plus 400, 401, 429, 500 and 503, as on every endpoint.
Errors
An error answer looks like this:
{
"success": false,
"error": {
"code": "INVALID_BODY",
"message": "The request body is invalid.",
"details": { "issues": [{ "path": "brief", "message": "may not be blank" }] }
}
}
Act on code. message is written for people, is safe to show, and may change.
| Status | Code | When |
|---|---|---|
400 | INVALID_BODY, INVALID_PARAMS, INVALID_QUERY | The body, a path parameter or the query is malformed; details.issues lists the fields. A plain-HTTP request is INVALID_PARAMS with the message "Use https." |
400 | VALIDATION_FAILED | The request refers to something it may not use, such as a writer the space doesn't list; details.field names the field |
401 | AUTHENTICATION_FAILED | The key is missing, malformed, revoked or expired, or its service account is disabled. The answer carries www-authenticate: Bearer |
403 | PERMISSION_DENIED | Your account can see the space, but its role there doesn't allow this |
404 | NOT_FOUND | It doesn't exist, or your account can't see it. Also any unknown path, and a known path called with the wrong method |
409 | ALREADY_EXISTS | The externalId is already used; details.articleId names the article |
409 | CONFLICT | Stopping an article that has nothing to stop |
413 | INVALID_BODY | The request body is over its limit (see Limits). Only POST /writer/articles takes a body |
429 | RATE_LIMITED | Too many requests; wait for Retry-After (see Limits) |
500 | INTERNAL_ERROR | Something failed on Helix's side |
503 | SERVICE_UNAVAILABLE | Try again later. This includes when Helix can't check your key: that is never a 401 |
details on a 400
- An
INVALID_*error lists every failing field indetails.issues, as[{ "path", "message" }].pathis the field's dotted path, such astitleorlimit. An emptypath("") means the whole body or query, which is where an unknown field is reported. A body that isn't JSON has an empty list. - A
VALIDATION_FAILEDerror names the field indetails.fieldwhen there is one. Content Helix can't read addsdetails.reason.
Limits
| Limit | How much |
|---|---|
| Per service account | About 300 reads and 60 writes a minute. Writes are creates and stops; every other call is a read |
| Per IP address | About 600 requests a minute, counted across every key that calls from that address |
| An edited article's content | 1 MiB, and 60,000 characters of article text |
| A whole request body | 6 MiB plus 64 KiB, which leaves room for 1 MiB of content after JSON escaping (escaping can make text up to six times longer, as PHP's default json_encode does) plus the other fields |
| A brief | 10,000 characters |
| A title | 300 characters, on one line |
| A page of a list | 100 items (limit, 50 by default) |
Over a rate limit you get 429 RATE_LIMITED with these headers:
| Header | Meaning |
|---|---|
Retry-After | Seconds to wait before trying again |
RateLimit-Limit | The limit you reached: 600 is the IP address's limit, 300 or 60 your service account's |
RateLimit-Remaining | Always 0 on a 429 |
RateLimit-Reset | The same number as Retry-After |
Successful answers carry no RateLimit-* headers, so you can't see how close you are to a limit. Pace your calls
instead; see Polling.