Skip to main content

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​

EnvironmentURL
Productionhttps://api.studio.onhelix.ai
Developmenthttps://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

FieldTypeDescription
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​

FieldTypeDescription
idstringThe space's ID. It doesn't change when the space is renamed or moved
namestring
parentIdstring or nullThe space above it. null at the top of what your account can see, so a list is always a complete tree
pathstring[]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
childCountintegerSpaces directly under this one that your account can see
writer.canCreateArticlesbooleanWhether 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

ParameterTypeDescription
parentIdstringOnly the spaces directly under this one
ancestorIdstringEvery space below this one, at any depth, without the space itself
limitinteger1 to 100. Default 50
offsetinteger0 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)

ParameterTypeDescription
spaceIdstringRequired. 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
limitinteger1 to 100. Default 50
offsetinteger0 or more. Default 0

List writers​

GET /writer/config/writers?spaceId={spaceId}

Response 200: a list of writers.

FieldTypeDescription
idstringPass it as writerId when creating an article
namestring
spaceIdstringThe space that owns it
inheritedbooleantrue 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.

FieldTypeDescription
idstringPass it as articleTypeId when creating an article
namestring
descriptionstring or null
spaceIdstringThe space that owns it
inheritedbooleantrue 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.

FieldTypeDescription
idstringHelix's ID for the article
externalIdstringYour ID for this attempt
kindstringwritten or edited
statusstringpending, running, completed, failed or canceled. See The article lifecycle
stagestring or nullWhile running: researching, planning, writing, polishing or editing. For display only. null otherwise
spaceIdstringThe space the article is in now. input.spaceId is where it was created
inputobjectWhat you sent to create it, with defaults filled in and without content
titlestringNever empty: the article's own title, else the one you supplied, else the first sentence of the brief
suppliedTitlestring or nullThe title a written article was sent, stored trimmed on one line. null if none was sent, and always on an edited article
htmlstringThe body, without the title. May be partial while running. Not in list items
urlstringOpens the article in Helix Studio
reviewobject or null{ openIssues, checksCompleted }. null until the article first completes. See Review facts
importobject or nullOn an edited article, { changes: [{ kind, what, count }] }: what the import dropped or changed. null on a written one. See What an edit keeps
errorobject or nullSet 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
createdByobject{ type, id, name }. type is service_account
createdAtstringISO 8601, UTC
startedAtstring or nullWhen its first run started
completedAtstring or nullWhen it last ended. null while pending or running
updatedAtstringMoves 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

FieldTypeRequiredDescription
kindstringyes"written"
externalIdstringyesYour ID for this attempt: 1 to 255 characters matching [A-Za-z0-9._:-], not . or .., not shaped like a UUID. See externalId
spaceIdstringyesWhere the article lives
writerIdstringyesA writer the space lists
articleTypeIdstringyesAn article type the space lists
briefstringyesEverything Helix's writing agent is told. Up to the length in Limits, with some visible text
titlestringnoA suggested title: on one line, with some visible text, up to the length in Limits

Body, edited article

FieldTypeRequiredDescription
kindstringyes"edited"
externalIdstringyesAs for a written article
spaceIdstringyesWhere the article lives
contentstringyesThe article to edit, within the size and length in Limits
formatstringyeshtml, markdown or auto. Send plain text as markdown or auto
autoFixbooleannoDefault true: apply the safe fixes. false: change no words
titlestringnoThe article's title, on one line. Left out, it's taken from the content; with neither, the create answers 400
writerIdstringnoA writer the space lists. Left out, the article keeps its own voice
articleTypeIdstringnoAn 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

StatusCodeWhen
400INVALID_BODYThe 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
400VALIDATION_FAILEDA 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)
403PERMISSION_DENIEDYour account can see the space, but its role there can't create articles
404NOT_FOUNDThe space doesn't exist or your account can't see it
409ALREADY_EXISTSThe externalId is already used. details.articleId names the article; it may be one your account can no longer read
413INVALID_BODYThe 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

ParameterTypeDescription
externalIdstringOne externalId
spaceIdstringThat space only, not the spaces below it
kindstringwritten or edited
statusstringpending, running, completed, failed or canceled
createdSincestringISO 8601 with a zone. Includes this time
createdUntilstringISO 8601 with a zone. Excludes this time
limitinteger1 to 100. Default 50
offsetinteger0 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

StatusCodeWhen
403PERMISSION_DENIEDYour account's role in the article's space can't stop it
404NOT_FOUNDYour account didn't create the article or can't see its space
409CONFLICTNothing 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.

StatusCodeWhen
400INVALID_BODY, INVALID_PARAMS, INVALID_QUERYThe 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."
400VALIDATION_FAILEDThe request refers to something it may not use, such as a writer the space doesn't list; details.field names the field
401AUTHENTICATION_FAILEDThe key is missing, malformed, revoked or expired, or its service account is disabled. The answer carries www-authenticate: Bearer
403PERMISSION_DENIEDYour account can see the space, but its role there doesn't allow this
404NOT_FOUNDIt doesn't exist, or your account can't see it. Also any unknown path, and a known path called with the wrong method
409ALREADY_EXISTSThe externalId is already used; details.articleId names the article
409CONFLICTStopping an article that has nothing to stop
413INVALID_BODYThe request body is over its limit (see Limits). Only POST /writer/articles takes a body
429RATE_LIMITEDToo many requests; wait for Retry-After (see Limits)
500INTERNAL_ERRORSomething failed on Helix's side
503SERVICE_UNAVAILABLETry 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 in details.issues, as [{ "path", "message" }]. path is the field's dotted path, such as title or limit. An empty path ("") 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_FAILED error names the field in details.field when there is one. Content Helix can't read adds details.reason.

Limits​

LimitHow much
Per service accountAbout 300 reads and 60 writes a minute. Writes are creates and stops; every other call is a read
Per IP addressAbout 600 requests a minute, counted across every key that calls from that address
An edited article's content1 MiB, and 60,000 characters of article text
A whole request body6 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 brief10,000 characters
A title300 characters, on one line
A page of a list100 items (limit, 50 by default)

Over a rate limit you get 429 RATE_LIMITED with these headers:

HeaderMeaning
Retry-AfterSeconds to wait before trying again
RateLimit-LimitThe limit you reached: 600 is the IP address's limit, 300 or 60 your service account's
RateLimit-RemainingAlways 0 on a 429
RateLimit-ResetThe 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.