We use analytics and advertising cookies to understand how the site is used and to measure our ads. They stay off until you accept, and you can change your choice any time. Cookie details
The routes below are the whole public StellarFirm API. Each one is also in the OpenAPI file, with its parameters and answer schemas. A route answers 405 with an Allow header for any method not listed here.
Says whether the signed-in account may run: an active trial, a licence, or free Hobby after the trial. Only a 200 with ok: true means the account may run. It is never cached.
Status
status field
Meaning
200
licensed, trial or hobby
The account may run. Ask again within recheckAfterSeconds.
401
signed-out
No signed-in session.
403
invalid
The account may not run.
503
unconfigured or unavailable
The account could not be checked. Try again shortly.
A 200 answer for an account that has the premium models also carries premiumModels: true and codingSubscription: true. The premium models are open to an account on its trial, with a licence, in a university, or on a paid plan. An account on the free plan after its trial gets neither field, and a client reads a missing field as no. The free plan keeps running on the open models.
A 200 answer also carries assistantLimit, how many named assistants the account's plan lets it hire, and teamLimit, how many teams of assistants it lets it have. A missing teamLimit means the plan puts no limit on teams, so a client must never read it as zero. Neither limit removes anything: an account that already has more keeps all of it and can still rename, move and delete, and only a new assistant or team is held back.
Every answer except 200 also carries the standard error object. See Errors.
The account's balance as a number of StellarFirm credits, never money. Answers { "credits": 120 } for example. It answers 503 with the code balance_unavailable when the balance cannot be read.
One-click unsubscribe from the later onboarding emails. Send the token from the link in the email as the query parameter. It answers 200 with a plain text line, 400 with invalid_token for a token that is not valid, and 502 with upstream_failed when the later emails are still scheduled and you should try again.
The free trial on the landing page gives a visitor with no account a few free prompts with three assistants: the Coder, Marketing and the Product owner. This route says whether the trial is open and how many prompts the visitor has left. The visitor is told apart by network address, with no sign-in and no cookie. It counts nothing and is never cached. It answers 404 with the code not_found while the trial is switched off.
Sends one free prompt. The body is JSON, and the request must come from a person in a browser on the site: a script is refused with try_refused.
json
{ "assistant": "coder", "content": "Make a one page site for a bakery." }
Field
Type
Meaning
assistant
coder, marketing or product-owner
Which assistant gets the prompt.
content
string
The prompt, 1 to 2000 characters once trimmed.
A visitor gets one free prompt a day, counted for the network address and for the browser. The browser sends the x-sf-fp header and keeps the signed sf_did cookie; a prompt without a valid cookie is refused with 409try_refused, which sets one (the status never does), so ask once more (each address gets only a few new cookies a day). A visitor may run one prompt at a time. The assistants work on their own computers, so a prompt can take several minutes, and it stops after about twelve. A step that would need an Approve never runs: the answer stops there and says so.
Send Accept: text/event-stream to read the work as it happens. Each event is one JSON object on a data: line, and a comment line now and then keeps the connection open.
Event type
Fields
Meaning
started
assistant, promptsLeft
The prompt was accepted and counted.
activity
text
A short line saying what the assistant is doing.
text
delta
More of the answer's words.
artifact
artifact
A file the assistant published: id, kind, title, and content for a kind the page draws (html, svg, markdown, csv, json) when it is small enough. Other kinds are listed with no content.
done
answer, promptsLeft, held
The whole answer as Markdown. held is true when it stopped at a step that needs an Approve.
error
code, promptsLeft
The prompt could not be answered. The code is try_failed; promptsLeft says how many are left.
Without that header, the final done event comes back as JSON, with the artifacts in one list.
A prompt that is refused before it starts answers the shared error shape with a status and code: 429try_used_up when the visitor used today's free prompt, 429try_busy while a prompt is running or too many run at once, 503try_ended when this month's trial is used up (with reopensOn), 403try_refused when the check that a person sent it fails (and 409 when the browser cannot be told apart), and 404not_found while the trial is switched off.
Any other address under /api answers 404 with the error code not_found, in JSON, never an HTML page. An address that asks for many addresses that do not exist in a few minutes is slowed down: it answers 429 with the error code rate_limited and a Retry-After header. Ordinary calls to real routes are not counted.
Sends the demo expert a task and pays for it with an x402 client. Send { "text": "..." } as JSON. The first request answers 402 with the payment request. Pay it on the test network and send the same request again with the payment attached, and the expert counts the words and returns a SHA-256 of the text. It needs no sign-in, and nothing real is charged.
The same task, paid with an MPP client on a test network. The first request answers 402 with the payment challenge. Pay it and send the request again with the payment attached. It needs no sign-in, and nothing real is charged.