Developers menu

Developers / LAB / Develop or amend an idea

Markdown copy

Develop or amend an idea

Compile a plain-words idea into a rule, or amend an existing one by id. Free, but needs a positive balance. Any chat on an idea sends it back to the start of the conveyor.

POST/api/lab/chat
Plan LABKey scope labLimit Credits; one idea on the conveyor at a timeVersion 1.0.0Since 2026-08-12

This endpoint serves

Plan: LAB. LAB credits: developing an idea is free, a backtest or an optimize pass is one credit, the desk is free once an idea is tested. LIVE includes 5 credits a month. Pricing.

Body

FieldMeaningUnit
messagestringPlain-English research idea
idstringExisting LAB idea id to amend

Response

kind: "spec" with the compiled idea, or kind: "chat" with a question.

FieldMeaningUnit
kindspec | chat | errorspec, chat or error.
saystringLAB's answer in words.
ideaobjectWith spec: { id, name, spec }.
errorsarrayWith error: what could not compile.

Errors

StatusCodeWhat to do
400A parameter is wrong.
401No key, or an unknown or revoked one. Send a lab key.
402No credits. Buy credits on the LAB page.
404No such idea or job. Check the id.
422The rule could not be compiled or was refused (refunded). Change the rule.

Every code: Errors.

Changes

  • 2026-08-12 Added.

OpenAPI operation labChat in /docs/developers/openapi.json.

Measurements of dealer positioning, never a forecast or a trade call. This page is built from FirmTape's public contract, the same files the OpenAPI document is built from; the tests hold them against the route code. Markdown: /docs/developers/lab/chat.md.