Every endpoint, runnable.
The STARCO Dev API, generated from its OpenAPI description when the site is built: parameters, an example request and response for each operation, and a Try it panel that runs it against a sandbox simulated in your browser, with the same answers, reason codes and audit chain as the real contract. Webhook deliveries are simulated too: the receiving end is this page.
Simulated in your browser, synthetic data · nothing is sent anywhere
Versions and download
v1 Beta
Accounts, projects, keys, templates, twins, observations, layers, export and the audit chain. In beta, for every account.
v1.1 · the twin model Beta
Layer schemas with typed, versioned and derived measures; the twin's current state with versions and compare-and-set; transactions with watch; series in UTC buckets; the history of each measure; project events and signed webhooks; a read-only MCP per project. In beta: names can still change.
Download
The description this page is built from: OpenAPI 1.1.0-draft (JSON).
Sandbox not started: it starts on your first Try it.
71 operations (OpenAPI 1.1.0-draft), generated from the OpenAPI description when the site is built.
Accounts
GET/v1/statusBeta
Whether the API answers here and which versions it speaks
Open, rate limited per IP in its own bucket (polling it never uses the sign-in attempts). ok means the application answered and its database replied to a trivial query; nothing else is claimed (no uptime, no latency figure).
Auth: No credentials (rate limited per IP)
GET /v1/status{
"status": "ok",
"api_version": "v1",
"spec_version": "1.1.0-draft",
"terms_version": "2026-11-27",
"mcp_protocol_version": "2025-06-18",
"server_time": "2026-11-19T09:00:00Z"
}200Answering, with the versions.429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.503service_unavailable: the database did not reply; the versions come in the envelope.
Try it (simulated)
GET/v1/termsBeta
Developer terms in force
Auth: No credentials (rate limited per IP)
GET /v1/terms{
"version": "2026-11-27",
"status": "in_force",
"operator": "STARCO SYSTEMS EUROPE, S.L.",
"data_policy": "Synthetic data only in the sandbox."
}200Version to accept at sign-up.429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/accountsBeta
Create a developer account
The answer is the same whether the address already has an account or not. A message goes to the address: a single-use verification link or token for a new address (or for an account not verified yet, whose password becomes the one sent now), or a notice for an address that already has a verified account (nothing changes). The account cannot sign in until its address is verified (POST /accounts/verify). At most three messages per address and hour; beyond that the answer is the same and nothing is sent.
Auth: No credentials (rate limited per IP)
POST /v1/accounts
{
"email": "someone-else@example.test",
"password": "tortuga-violeta-1119",
"accept_terms_version": "2026-11-27"
}{
"status": "verification_required",
"expires_in_minutes": 1440,
"note": "Simulated: no message is sent. This sandbox keeps one synthetic account, already verified."
}202Accepted; a message was sent to the address (the same answer for any address).422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/accounts/verifyBeta
Verify the address of an account with the token of the message
The token works once and expires (24 hours). Only its SHA-256 is stored.
Auth: No credentials (rate limited per IP)
POST /v1/accounts/verify
{
"token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}{
"verified": true,
"note": "Simulated: any well-formed token is accepted here. Sign in with POST /v1/sessions."
}200Verified; the account can sign in.422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/password/forgotBeta
Ask for a link to set a new password
The answer is the same whether the address has an account or not; the message is sent after the answer. The link or token works once and expires (60 minutes). The messages of an address share one budget of three per hour.
Auth: No credentials (rate limited per IP)
POST /v1/password/forgot
{
"email": "dev@example.test"
}{
"status": "sent_if_account_exists",
"expires_in_minutes": 60,
"note": "Simulated: no message is sent."
}202Accepted (the same answer for any address).422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/password/resetBeta
Set a new password with the token of the message
Signs out every console session of the account, voids every other link and counts as verifying the address.
Auth: No credentials (rate limited per IP)
POST /v1/password/reset
{
"token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"password": "tortuga-violeta-1119"
}{
"password_changed": true,
"sessions_closed": 0,
"note": "Simulated: the password of the sandbox does not change."
}200Password changed.422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/sessionsBeta
Open console sessions of the account
The sessions that are neither closed nor expired, newest first (at most 200). A session is named by the visible prefix of its console token; the token itself is never shown again. current marks the one making the request.
Auth: Console token (starco_dc_…, from POST /sessions)
GET /v1/sessions{
"data": [
{
"id": "starco_dc_984197b5",
"current": true,
"created_at": "2026-11-19T09:00:00Z",
"last_used_at": "2026-11-19T09:00:00Z",
"expires_at": "2026-11-19T21:00:00Z"
}
]
}200Sessions.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/sessionsBeta
Sign in and get a console token (shown once)
Auth: No credentials (rate limited per IP)
POST /v1/sessions
{
"email": "dev@example.test",
"password": "synthetic-sandbox-1119"
}{
"token": "starco_dc_984197b5_-BPB9OjVTJ2cvM5VdUJEJCIK0F_WnLwxU16s7GYvAUt",
"prefix": "starco_dc_984197b5",
"expires_at": "2026-11-19T21:00:00Z",
"note": "Shown once. Simulated sandbox token."
}201Console token.401error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/sessions/{session}Beta
Close one console session of the account
Revokes the console token of that session, the one in use included (its next request answers 401 token_revoked). A session that is closed, expired, unknown or of another account answers 404.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
session | path | string | yes | The id of a session: the visible prefix of its console token. |
DELETE /v1/sessions/{session}{
"revoked": true,
"id": "starco_dc_984197b5",
"note": "Simulated: the sandbox signs you in again on the next request."
}200Closed.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/sessions/currentBeta
Revoke the console token in use
Auth: Console token (starco_dc_…, from POST /sessions)
DELETE /v1/sessions/current{
"revoked": true,
"note": "Simulated: the sandbox signs you in again on the next request."
}200Revoked.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/accountBeta
The signed-in account
Auth: Console token (starco_dc_…, from POST /sessions)
GET /v1/account{
"account": {
"id": "c67edfb8-71ec-4ed1-9ce6-ce9d52aa827e",
"email": "dev@example.test",
"terms_version": "2026-11-27",
"terms_accepted_at": "2026-11-19T09:00:00Z",
"email_verified_at": "2026-11-19T09:00:00Z",
"plan": "sandbox",
"created_at": "2026-11-19T09:00:00Z"
}
}200Account.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/accountBeta
Erase the account with all its projects, keys, twins and audit chains
A subscription of the account is ended in Stripe first, and the Checkout sessions it left open are expired there (nobody can pay them afterwards); if Stripe does not confirm it, nothing is erased (502 billing_cancel_failed). Invoice records (Stripe ids, numbers, amounts and dates) are kept without the account for the accounting of the seller; the invoices themselves stay in Stripe.
Auth: Console token (starco_dc_…, from POST /sessions)
DELETE /v1/account
{
"password": "synthetic-sandbox-1119"
}{
"receipt": {
"projects_erased": 1,
"twins_erased": 9,
"erased_at": "2026-11-19T09:00:00Z"
},
"note": "Simulated: a fresh synthetic sandbox starts again."
}200Erasure receipt.401error envelope403error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope
Try it (simulated)
Billing
GET/v1/billing/plansBeta
The plans, their limits and the price Stripe has for each
Billing routes answer 404 while billing is off on the server. The seller is STARCO SYSTEMS EUROPE, S.L.; payments are handled by Stripe (Checkout and customer portal, hosted by Stripe): this API never receives a card. The amount of a price is read from Stripe; amount: null means it could not be read and that plan and period cannot be bought now. Taxes are not computed by this API.
Auth: Console token (starco_dc_…, from POST /sessions)
GET /v1/billing/plans{
"billing": {
"enabled": true,
"configured": false,
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
],
"mode": null,
"seller": "STARCO SYSTEMS EUROPE, S.L.",
"currency": "usd",
"tax": "not_computed",
"card_data": "Handled only by Stripe (Checkout and customer portal). This API never receives a card."
},
"data": [
{
"id": "sandbox",
"free": true,
"limits": {
"projects_per_account": 5,
"active_keys_per_project": 10,
"twins_per_project": 200,
"observations_per_twin": 100000,
"webhooks_per_project": 5,
"layer_schemas_per_project": 200,
"rate_limit_max_per_minute": 600
},
"prices": []
}
],
"contact": {
"url": "/#contact",
"note": "Simulated: the real API answers the address of the contact form of the site."
},
"note": "Simulated sandbox: only the free plan, with its real limits. Paid plans and their amounts are read from Stripe by the real API."
}200Plans.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/billing/subscriptionBeta
The plan in force and the state of the subscription
The plan changes only when Stripe confirms it to this API with a signed webhook, never when the browser comes back from Checkout: poll this after paying. past_due keeps the plan until grace_until; after that the account is on sandbox and what is over its limits is read-only (nothing is deleted) until an invoice is paid.
Auth: Console token (starco_dc_…, from POST /sessions)
GET /v1/billing/subscription{
"billing": {
"enabled": true,
"configured": false,
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
],
"mode": null,
"seller": "STARCO SYSTEMS EUROPE, S.L.",
"currency": "usd",
"tax": "not_computed",
"card_data": "Handled only by Stripe (Checkout and customer portal). This API never receives a card."
},
"plan": "sandbox",
"limits": {
"projects_per_account": 5,
"active_keys_per_project": 10,
"twins_per_project": 200,
"observations_per_twin": 100000,
"webhooks_per_project": 5,
"layer_schemas_per_project": 200,
"rate_limit_max_per_minute": 600
},
"subscription": null
}200Plan and subscription.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/billing/checkoutBeta
Start a Stripe Checkout session to subscribe to a plan
One call: the answer is the address of Stripe's hosted payment page, with the account's address already filled in. Not safe to retry blindly (each call creates a session; an abandoned one charges nothing). An account with a subscription changes plan in the portal instead.
Auth: Console token (starco_dc_…, from POST /sessions)
POST /v1/billing/checkout
{
"plan": "builder",
"period": "month"
}{
"success": false,
"code": "billing_not_configured",
"error": "Simulated sandbox: payments are never simulated. Nothing was charged.",
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
]
}201Checkout session.401error envelope403error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope503error envelope
Try it (simulated)
POST/v1/billing/portalBeta
Open the Stripe customer portal (payment method, invoices, change plan, cancel)
Auth: Console token (starco_dc_…, from POST /sessions)
POST /v1/billing/portal{
"success": false,
"code": "billing_not_configured",
"error": "Simulated sandbox: payments are never simulated. Nothing was charged.",
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
]
}201Portal session.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope503error envelope
Try it (simulated)
GET/v1/billing/invoicesBeta
The invoices of the account, with the page Stripe hosts for each
Read from Stripe at the time of the call, newest first.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
limit | query | integer | no |
GET /v1/billing/invoices{
"success": false,
"code": "billing_not_configured",
"error": "Simulated sandbox: payments are never simulated. Nothing was charged.",
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
]
}200Invoices.401error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope503error envelope
Try it (simulated)
POST/v1/billing/subscription/cancelBeta
Cancel the subscription at the end of the paid period
Asks Stripe not to renew. The plan stays until the end of the period; cancel_at_period_end of GET /billing/subscription turns true once Stripe confirms it. Safe to retry. Undoing it is done in the portal.
Auth: Console token (starco_dc_…, from POST /sessions)
POST /v1/billing/subscription/cancel{
"success": false,
"code": "billing_not_configured",
"error": "Simulated sandbox: payments are never simulated. Nothing was charged.",
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
]
}202Asked to Stripe.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope503error envelope
Try it (simulated)
POST/v1/billing/stripe/webhookBeta
Stripe's webhook (for Stripe only)
Not for developers: Stripe calls it. Authenticated by the Stripe-Signature header (HMAC-SHA256 with the endpoint's secret, five minutes of tolerance). Each event id is applied once; an event older than the last one applied changes nothing. Every verified event is answered 200 with what was done. The plan follows the state Stripe reports for the subscription; an invoice only starts the grace period (first failure) or ends it (no other invoice of the subscription known as failed). An event of a subscription created by a Checkout of this API whose account no longer exists ends that subscription in Stripe (orphan_cancelled); if Stripe does not confirm it the answer is 502 billing_provider_error, nothing is recorded and Stripe delivers the event again.
Auth: No credentials (rate limited per IP)
| parameter | in | type | required | notes |
|---|---|---|---|---|
Stripe-Signature | header | string | yes |
POST /v1/billing/stripe/webhook
{
"id": "evt_example",
"type": "invoice.paid",
"created": 1795078800,
"livemode": false,
"data": {
"object": {
"id": "in_example"
}
}
}{
"success": false,
"code": "billing_not_configured",
"error": "Simulated sandbox: payments are never simulated. Nothing was charged.",
"missing": [
"STARCO_DEV_STRIPE_SECRET",
"STARCO_DEV_STRIPE_WEBHOOK_SECRET"
]
}200Received.400error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.502error envelope503error envelope
Try it (simulated)
Projects
GET/v1/projectsBeta
Projects of the account
Auth: Console token (starco_dc_…, from POST /sessions)
GET /v1/projects{
"data": [
{
"id": "70892ae9-38f6-4b38-942a-814505ed747b",
"name": "explorer",
"data_class": "synthetic",
"rate_limit_per_minute": 60,
"twin_count": 9,
"audit_head": {
"seq": 7,
"hash": "f6d9a0118cba70e20f930a0137b3e92964afa27bc06c564f4831e6e21f69d899"
},
"created_at": "2026-11-19T09:00:00Z"
}
]
}200Projects.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/projectsBeta
Create a project (with its synthetic cohort of 8 twins)
Auth: Console token (starco_dc_…, from POST /sessions)
POST /v1/projects
{
"name": "explorer"
}{
"project": {
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"name": "explorer",
"data_class": "synthetic",
"rate_limit_per_minute": 60,
"twin_count": 8,
"audit_head": {
"seq": 0,
"hash": "0000000000000000000000000000000000000000000000000000000000000000"
},
"created_at": "2026-11-19T09:00:00Z"
}
}201Project created; its cohort is ready.401error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/projects/{project}Beta
One project
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
GET /v1/projects/{project}{
"project": {
"id": "70892ae9-38f6-4b38-942a-814505ed747b",
"name": "explorer",
"data_class": "synthetic",
"rate_limit_per_minute": 60,
"twin_count": 9,
"audit_head": {
"seq": 7,
"hash": "f6d9a0118cba70e20f930a0137b3e92964afa27bc06c564f4831e6e21f69d899"
},
"created_at": "2026-11-19T09:00:00Z"
}
}200Project.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
PATCH/v1/projects/{project}Beta
Rename a project or change its rate limit
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
PATCH /v1/projects/{project}
{
"rate_limit_per_minute": 120
}{
"project": {
"id": "70892ae9-38f6-4b38-942a-814505ed747b",
"name": "explorer",
"data_class": "synthetic",
"rate_limit_per_minute": 120,
"twin_count": 9,
"audit_head": {
"seq": 7,
"hash": "f6d9a0118cba70e20f930a0137b3e92964afa27bc06c564f4831e6e21f69d899"
},
"created_at": "2026-11-19T09:00:00Z"
}
}200Project.401error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/projects/{project}Beta
Erase one project with its twins, keys, MCP tokens, events, webhooks and audit chain
Confirmed with the account password. The account and its other projects stay. A project on which a Studio study is built is refused (409 project_has_study): the study would go with it. Nothing of the project is kept but the receipt.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
DELETE /v1/projects/{project}
{
"password": "synthetic-sandbox-1119"
}{
"receipt": {
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"twins_erased": 9,
"observations_erased": 211,
"keys_erased": 2,
"erased_at": "2026-11-19T09:00:00Z",
"note": "The project, its twins, keys, events, webhooks and its audit chain are erased. Nothing of it is kept but this receipt."
}
}200Erasure receipt.401error envelope403error envelope404error envelope409error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/projects/{project}/usageBeta
What the project uses against each limit of the account's plan
Counts only (never a value). The limits are those of the account's plan (plan; sandbox is the free one and the only one while billing is off). rate_limit_per_minute is the project's own setting (PATCH /projects/{project}); rate_limit_effective_per_minute is what it really gets (never above the plan's maximum). read_only is true when the project is beyond the plan's number of projects: it can be read, exported and erased, not written.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
GET /v1/projects/{project}/usage{
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"plan": "sandbox",
"read_only": false,
"usage": {
"twins": 9,
"active_keys": 2,
"observations": 211,
"layer_schemas": 1,
"active_webhooks": 1,
"audit_events": 7
},
"limits": {
"projects_per_account": 5,
"active_keys_per_project": 10,
"twins_per_project": 200,
"observations_per_twin": 100000,
"observations_per_batch": 500,
"layer_schemas_per_project": 200,
"custom_layers_per_twin": 8,
"webhooks_per_project": 5,
"operations_per_transaction": 100,
"points_per_append": 500,
"rate_limit_per_minute": 60,
"rate_limit_effective_per_minute": 60,
"rate_limit_max_per_minute": 600,
"key_max_ttl_days": 90,
"events_retention_days": 30
}
}200Usage and limits.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/cloud-link-intents/inspectBeta
Inspect a manually shared Cloud association code
Console account only; both Dev and Cloud must be enabled in the same deployment. A Cloud manager deliberately shares this 128-bit bearer authorization for one registered instance with the intended Dev project owner. It expires after ten minutes. Send it only in the JSON body, never in a URL or log. Inspection does not consume it or grant access. Verify the displayed organization and instance before confirming. No hosting, provisioning, twin data transfer or Dev permission is granted.
Auth: Console token (starco_dc_…, from POST /sessions)
POST /v1/cloud-link-intents/inspect
{
"code": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}Cache-Control: no-store, private
{
"target": {
"organization": "Synthetic Research Cloud",
"instance": "Synthetic EU instance"
},
"expires_at": "2026-11-19T09:10:00Z",
"provisioning": "none",
"data_access": false,
"note": "Simulated: STARCO Cloud is not part of this sandbox. Any well-formed code stands for one just shared by a manager of this synthetic organization."
}200Private, no-store. Inspect a manually shared Cloud association code.401error envelope403error envelope404error envelope409error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/projects/{project}/cloud-linksBeta
List this owner's active Cloud references for a project
Console account only, never a project key or Ritmical identity. At most ten active links per project. Only explicit shared aliases and destination names are returned, without Cloud credentials or infrastructure access. Requires both Dev and Cloud in the same deployment.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
GET /v1/projects/{project}/cloud-linksCache-Control: no-store, private
{
"links": [
{
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"alias": "explorer study",
"organization": "Synthetic Research Cloud",
"instance": "Synthetic EU instance",
"linked_at": "2026-11-19T09:00:00Z"
}
],
"provisioning": "none",
"data_access": false
}200Private, no-store. List this owner's active Cloud references for a project.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/projects/{project}/cloud-linksBeta
Confirm a synthetic project's reference to the inspected Cloud destination
The verified Dev account must own the project, whose data class must be synthetic. Confirm the destination and deliberately choose the alias shared with Cloud organization members; do not put personal data in it. The alias is not the private project name. Organization, creator's current manager role, instance availability, deployment, account, ownership and unused/unexpired code are rechecked atomically. A project/instance pair is unique; limits are ten active links per project and one hundred per organization. This consumes the code once and writes minimized Cloud and Dev audit records. It does not create an instance, copy twin data, authorize Dev access or transfer credentials. If the response is lost, read this project's links before retrying: consumption is not replayed.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
POST /v1/projects/{project}/cloud-links
{
"code": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"alias": "explorer study",
"confirm": true
}Cache-Control: no-store, private
{
"link": {
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"alias": "explorer study",
"organization": "Synthetic Research Cloud",
"instance": "Synthetic EU instance",
"linked_at": "2026-11-19T09:00:00Z"
},
"provisioning": "none",
"data_access": false,
"note": "Simulated: STARCO Cloud is not part of this sandbox. Any well-formed code stands for one just shared by a manager of this synthetic organization."
}201Private, no-store. Confirm a synthetic project's reference to the inspected Cloud destination.401error envelope403error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/projects/{project}/cloud-links/{link}Beta
Revoke this owner's explicit Cloud metadata reference
Console account only; the project must belong to the account in this deployment. Revocation hides the reference from both consoles. Safe to repeat while the project and reference still exist. Cloud managers may also revoke it from Cloud. It does not delete a project, stop an instance, move data or erase independent audit history. Requires both Dev and Cloud in the same deployment.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes | |
link | path | string · uuid | yes |
DELETE /v1/projects/{project}/cloud-links/{link}Cache-Control: no-store, private
{
"revoked": true
}200Private, no-store. Revoke this owner's explicit Cloud metadata reference.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/projects/{project}/keysBeta
Keys of a project (never their secrets)
Every key ever created in the project, oldest first, in pages. Without parameters, the first 200.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes | |
limit | query | integer | no | Out-of-range values are clamped. |
after | query | integer | no | Cursor: next_after of the previous page. |
GET /v1/projects/{project}/keys{
"data": [
{
"id": "68639d09-c5d9-43ee-9f77-ad410eef650c",
"name": "explorer",
"prefix": "starco_dk_45a64a58",
"scopes": [
"read",
"write"
],
"state": "active",
"expires_at": "2026-12-19T09:00:00Z",
"revoked_at": null,
"last_used_at": "2026-11-19T09:00:00Z",
"created_at": "2026-11-19T09:00:00Z"
},
{
"id": "0ebdfc01-272d-4c92-8d8d-45daf1943ccb",
"name": "Read-only MCP",
"prefix": "starco_dm_edc64599",
"scopes": [
"mcp:read"
],
"state": "active",
"expires_at": "2026-11-19T10:00:00Z",
"revoked_at": null,
"last_used_at": null,
"created_at": "2026-11-19T09:00:00Z"
}
],
"next_after": null
}200Keys.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/projects/{project}/keysBeta
Create a key (the secret is shown once)
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
POST /v1/projects/{project}/keys
{
"name": "explorer",
"scopes": [
"read",
"write"
],
"ttl_days": 30
}{
"key": {
"id": "88dfccb1-6404-463d-86b9-39aa29ae82ab",
"name": "explorer",
"prefix": "starco_dk_c7bfd54c",
"scopes": [
"read",
"write"
],
"state": "active",
"expires_at": "2026-12-19T09:00:00Z",
"revoked_at": null,
"last_used_at": null,
"created_at": "2026-11-19T09:00:00Z"
},
"secret": "starco_dk_c7bfd54c_ruHA9Ql_0Gt2K31CazV0y2_7m1u21CDBsQ3-tcCPgg6",
"note": "The secret is shown once. Keep it in an environment variable."
}201Key and its secret.401error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/projects/{project}/keys/{key}Beta
Revoke a key
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes | |
key | path | string · uuid | yes |
DELETE /v1/projects/{project}/keys/{key}{
"key": {
"id": "68639d09-c5d9-43ee-9f77-ad410eef650c",
"name": "explorer",
"prefix": "starco_dk_45a64a58",
"scopes": [
"read",
"write"
],
"state": "revoked",
"expires_at": "2026-12-19T09:00:00Z",
"revoked_at": "2026-11-19T09:00:00Z",
"last_used_at": "2026-11-19T09:00:00Z",
"created_at": "2026-11-19T09:00:00Z"
}
}200Revoked key.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Twins
GET/v1/templatesBeta
Templates, layers and observation kinds with their units (scope read)
Auth: Project key (starco_dk_…) with the read scope
GET /v1/templates{
"templates": [
{
"id": "sports_performance",
"name": "Rendimiento Deportivo & Fuerza",
"layers": [
"wellness",
"biomarkers"
],
"wellness_kinds": [
"exercise_minutes",
"exercise_intensity"
]
},
{
"id": "sleep_optimization",
"name": "Sueño y horarios",
"layers": [
"wellness",
"biomarkers"
],
"wellness_kinds": [
"sleep_hours",
"nap_minutes"
]
}
],
"layers": [
"wellness",
"biomarkers"
],
"kinds": [
{
"kind": "sleep_hours",
"layer": "wellness",
"unit": "h",
"accepted_min": 0,
"accepted_max": 24,
"integer": false
},
{
"kind": "sleep_quality",
"layer": "wellness",
"unit": "rating_1_10",
"accepted_min": 1,
"accepted_max": 10,
"integer": true
}
]
}200Catalogue.401error envelope403error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twinsBeta
Twins of the key's project (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
limit | query | integer | no | |
after | query | integer | no | Cursor: next_after of the previous page. |
GET /v1/twins{
"data": [
{
"id": "0794937c-0b16-447a-84da-f99b4777cbec",
"template": "sports_performance",
"layers": [
"wellness"
],
"custom_layers": [],
"label": "cohort-1",
"origin": "synthetic_cohort",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
},
{
"id": "0fbdae0e-0bf5-4428-8400-9b3b969b1328",
"template": "sleep_optimization",
"layers": [
"wellness"
],
"custom_layers": [],
"label": "cohort-2",
"origin": "synthetic_cohort",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
}
],
"next_after": null
}200Page of twins.401error envelope403error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twinsBeta
Create a twin from a template and/or layer schemas (scope write)
Without schemas, template and layers are required (v1). With schemas (one per custom layer), both are optional.
Auth: Project key (starco_dk_…) with the write scope
POST /v1/twins
{
"template": "daily_movement",
"layers": [
"wellness",
"biomarkers"
],
"label": "explorer-02"
}{
"twin": {
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"template": "daily_movement",
"layers": [
"wellness",
"biomarkers"
],
"custom_layers": [],
"label": "explorer-02",
"origin": "api",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
}
}201Twin created.401error envelope403error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}Beta
One twin (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
GET /v1/twins/{twin}{
"twin": {
"id": "141ab376-0216-47aa-991d-043bb545bbd4",
"template": "daily_movement",
"layers": [
"wellness",
"biomarkers"
],
"custom_layers": [
{
"layer": "study",
"schema_id": "05fc0485-2704-4bff-873f-55603e053e30",
"version": 1
}
],
"label": "explorer-01",
"origin": "api",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
}
}200Twin with the state of its layers.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/twins/{twin}Beta
Erase a twin with its observations and layers (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
DELETE /v1/twins/{twin}{
"receipt": {
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"erased_at": "2026-11-19T09:00:00Z",
"observations_erased": 3,
"layers_erased": 3,
"state_values_erased": 6,
"content_sha256": "aee7cf7aa626c2840c0636629aefa3e644abc649742b74f1c8cc9a6e19b104f7",
"note": "content_sha256 is the SHA-256 of the export of the twin right before its erasure. Nothing of the twin is kept but this receipt in the project audit chain."
}
}200Erasure receipt (also kept in the audit chain).401error envelope403error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}/layers/{layer}Beta
Descriptive values of a layer (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
layer | path | string (wellness, biomarkers) | yes |
GET /v1/twins/{twin}/layers/{layer}{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"layer": "wellness",
"template": "daily_movement",
"computed_at": "2026-11-19T09:00:00Z",
"observation_count": 3,
"description": "Descriptive values of the observations received: no reference range, no interpretation, no score. Null means no data.",
"kinds": [
{
"kind": "sleep_hours",
"unit": "h",
"count": 3,
"latest": {
"value": 7.7,
"observed_at": "2026-11-18T07:00:00Z"
},
"min": 6.8,
"max": 7.7,
"mean": 7.2333,
"mean_last_7_days": 7.2333,
"first_observed_at": "2026-11-15T07:00:00Z",
"last_observed_at": "2026-11-18T07:00:00Z"
},
{
"kind": "exercise_minutes",
"unit": "min",
"count": 0,
"latest": null,
"min": null,
"max": null,
"mean": null,
"mean_last_7_days": null,
"first_observed_at": null,
"last_observed_at": null
}
]
}200Layer.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}/exportBeta
Export a twin as one JSON document with its SHA-256 (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
GET /v1/twins/{twin}/exportX-Content-SHA256: aee7cf7aa626c2840c0636629aefa3e644abc649742b74f1c8cc9a6e19b104f7
{
"format": "starco-dev-export/v1",
"operator": "STARCO SYSTEMS EUROPE, S.L.",
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"twin": {
"id": "141ab376-0216-47aa-991d-043bb545bbd4",
"template": "daily_movement",
"layers": [
"wellness",
"biomarkers"
],
"custom_layers": [
{
"layer": "study",
"schema_id": "05fc0485-2704-4bff-873f-55603e053e30",
"version": 1
}
],
"label": "explorer-01",
"origin": "api",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
},
"layers": [
{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"layer": "wellness",
"template": "daily_movement",
"computed_at": "2026-11-19T09:00:00Z",
"observation_count": 3,
"description": "Descriptive values of the observations received: no reference range, no interpretation, no score. Null means no data.",
"kinds": [
{
"kind": "sleep_hours",
"unit": "h",
"count": 3,
"latest": {
"value": 7.7,
"observed_at": "2026-11-18T07:00:00Z"
},
"min": 6.8,
"max": 7.7,
"mean": 7.2333,
"mean_last_7_days": 7.2333,
"first_observed_at": "2026-11-15T07:00:00Z",
"last_observed_at": "2026-11-18T07:00:00Z"
},
{
"kind": "exercise_minutes",
"unit": "min",
"count": 0,
"latest": null,
"min": null,
"max": null,
"mean": null,
"mean_last_7_days": null,
"first_observed_at": null,
"last_observed_at": null
}
]
},
{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"layer": "biomarkers",
"template": "daily_movement",
"computed_at": "2026-11-19T09:00:00Z",
"observation_count": 0,
"description": "Descriptive values of the observations received: no reference range, no interpretation, no score. Null means no data.",
"kinds": [
{
"kind": "heart_rate",
"unit": "bpm",
"count": 0,
"latest": null,
"min": null,
"max": null,
"mean": null,
"mean_last_7_days": null,
"first_observed_at": null,
"last_observed_at": null
},
{
"kind": "resting_heart_rate",
"unit": "bpm",
"count": 0,
"latest": null,
"min": null,
"max": null,
"mean": null,
"mean_last_7_days": null,
"first_observed_at": null,
"last_observed_at": null
}
]
}
],
"observations": [
{
"kind": "sleep_hours",
"value": 7.2,
"unit": "h",
"observed_at": "2026-11-15T07:00:00Z",
"origin": "api"
},
{
"kind": "sleep_hours",
"value": 6.8,
"unit": "h",
"observed_at": "2026-11-16T07:00:00Z",
"origin": "api"
}
],
"measures": [
{
"measure": "wellness.exercise_minutes",
"layer": "wellness",
"name": "exercise_minutes",
"type": "integer",
"unit": "min",
"accepted_min": 0,
"accepted_max": 1440,
"enum": null,
"description": null,
"builtin": true,
"has_series": true,
"derived": false,
"expression": null,
"inputs": []
},
{
"measure": "wellness.steps",
"layer": "wellness",
"name": "steps",
"type": "integer",
"unit": "steps",
"accepted_min": 0,
"accepted_max": 100000,
"enum": null,
"description": null,
"builtin": true,
"has_series": true,
"derived": false,
"expression": null,
"inputs": []
}
],
"state": [
{
"measure": "study.ml_per_kg",
"value": 25,
"version": 1,
"updated_at": "2026-11-19T09:00:00Z",
"updated_by": "starco_dk_45a64a58"
},
{
"measure": "study.phase",
"value": "baseline",
"version": 1,
"updated_at": "2026-11-19T09:00:00Z",
"updated_by": "starco_dk_45a64a58"
}
]
}200The export; `X-Content-SHA256` is the SHA-256 of exactly the body bytes.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Observations
GET/v1/twins/{twin}/observationsBeta
Series of observations (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
kind | query | string | no | |
from | query | string · date-time | no | Inclusive. |
to | query | string · date-time | no | Exclusive. |
limit | query | integer | no |
GET /v1/twins/{twin}/observations{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"data": [
{
"kind": "sleep_hours",
"value": 7.2,
"unit": "h",
"observed_at": "2026-11-15T07:00:00Z",
"origin": "api"
},
{
"kind": "sleep_hours",
"value": 6.8,
"unit": "h",
"observed_at": "2026-11-16T07:00:00Z",
"origin": "api"
}
]
}200Observations in time order.401error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twins/{twin}/observationsBeta
Send a batch of observations (scope write)
Each line is validated on its own: kind from GET /templates, unit exactly as listed (never converted), a numeric value within the accepted bounds (integer where required), observed_at RFC 3339 with an offset, not in the future. Unknown fields are refused (identifier_field_not_accepted for names such as email or patient_id). A refused line is never stored, not even in part; the valid lines are stored together and the affected layers are recomputed before the answer. An observation with the same kind and time as a stored one is refused (duplicate_observation), never overwritten. 200 when at least one line was accepted, 422 when none.
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
POST /v1/twins/{twin}/observations
{
"observations": [
{
"kind": "steps",
"value": 8432,
"unit": "steps",
"observed_at": "2026-11-18T21:00:00Z"
},
{
"kind": "sleep_hours",
"value": 450,
"unit": "min",
"observed_at": "2026-11-18T07:00:00Z"
}
]
}{
"batch_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"accepted": 1,
"rejected": [
{
"index": 1,
"reason": "unit_mismatch",
"field": "unit",
"expected": "h"
}
],
"recomputed_layers": [
"wellness"
]
}200Batch result.401error envelope403error envelope404error envelope413error envelope422No line accepted (same body as 200), or the batch itself is malformed (error envelope).429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Audit
GET/v1/auditBeta
The project's audit chain (scope read)
row_hash = SHA-256 of "starco-dev-audit/v1\n" + project_id + "\n" + seq + "\n" + prev_hash + "\n" followed by one line per field (seq, actor_type, actor_ref, action, resource_type, resource_id, http_status, detail, created_at) written field=<byte length>:<value>, or field=~ when null, joined by \n. The first row's prev_hash is the genesis (64 zeros). The row of the current request is appended after the answer.
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
after_seq | query | integer | no | |
limit | query | integer | no |
GET /v1/audit{
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"algorithm": "sha256",
"hash_input": "\"starco-dev-audit/v1\\n\" + project_id + \"\\n\" + seq + \"\\n\" + prev_hash + \"\\n\" + one line per field: field=<UTF-8 byte length>:<value> (field=~ when null), joined by \"\\n\"",
"genesis": "0000000000000000000000000000000000000000000000000000000000000000",
"data": [
{
"seq": 1,
"actor_type": "console",
"actor_ref": "c67edfb8-71ec-4ed1-9ce6-ce9d52aa827e",
"action": "mcp.token.created",
"resource_type": "key",
"resource_id": "0ebdfc01-272d-4c92-8d8d-45daf1943ccb",
"http_status": 201,
"detail": "{\"expires_at\":\"2026-11-19T10:00:00Z\"}",
"created_at": "2026-11-19T09:00:00Z",
"prev_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"row_hash": "662042a4a52cfeb9cd1a661cc255b4e673448af3771df74b494ef73bd0aba951"
},
{
"seq": 2,
"actor_type": "key",
"actor_ref": "starco_dk_45a64a58",
"action": "schemas.store",
"resource_type": "schema",
"resource_id": "05fc0485-2704-4bff-873f-55603e053e30",
"http_status": 201,
"detail": "{\"layer\":\"study\",\"version\":1,\"measures\":5}",
"created_at": "2026-11-19T09:00:00Z",
"prev_hash": "662042a4a52cfeb9cd1a661cc255b4e673448af3771df74b494ef73bd0aba951",
"row_hash": "710f95d1675a8cab48297044c3e5a63df39b8e9bf52c70da7c5f7bd60087267d"
}
],
"next_after_seq": null
}200Rows in chain order.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/audit/verifyBeta
Verify the project's audit chain on the server (scope read)
Auth: Project key (starco_dk_…) with the read scope
GET /v1/audit/verify{
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"ok": true,
"events": 7,
"head_seq": 7,
"head_hash": "f6d9a0118cba70e20f930a0137b3e92964afa27bc06c564f4831e6e21f69d899",
"first_broken_seq": null,
"reason": null
}200Result of walking the chain.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Layer schemas
GET/v1/schemasBeta
Layer schemas of the project, every version (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
layer | query | string | no |
GET /v1/schemas?layer=study{
"data": [
{
"id": "05fc0485-2704-4bff-873f-55603e053e30",
"layer": "study",
"version": 1,
"description": "A synthetic hydration study",
"measure_count": 5,
"created_at": "2026-11-19T09:00:00Z"
}
]
}200Versions, oldest first per layer (without their measures).401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/schemasBeta
Define a custom layer and its measures; posting the same layer again creates its next version (scope write)
Auth: Project key (starco_dk_…) with the write scope
POST /v1/schemas
{
"layer": "study",
"description": "A synthetic hydration study",
"measures": [
{
"name": "water_ml",
"type": "integer",
"unit": "ml",
"min": 0,
"max": 10000,
"description": "Water drunk in the day"
},
{
"name": "weight_kg",
"type": "number",
"unit": "kg",
"min": 1,
"max": 400
},
{
"name": "ml_per_kg",
"type": "number",
"unit": "ml/kg",
"expression": "round(water_ml / weight_kg, 1)",
"description": "Derived: recomputed when an input changes"
},
{
"name": "phase",
"type": "enum",
"enum": [
"baseline",
"follow_up"
]
},
{
"name": "sessions_done",
"type": "integer",
"unit": "count",
"min": 0,
"max": 100
}
]
}{
"schema": {
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"layer": "study",
"version": 2,
"description": "A synthetic hydration study",
"measure_count": 5,
"created_at": "2026-11-19T09:00:00Z",
"measures": [
{
"name": "water_ml",
"type": "integer",
"unit": "ml",
"min": 0,
"max": 10000,
"enum": null,
"description": "Water drunk in the day",
"expression": null
},
{
"name": "weight_kg",
"type": "number",
"unit": "kg",
"min": 1,
"max": 400,
"enum": null,
"description": null,
"expression": null
}
]
}
}201The new version (never changed afterwards).401error envelope403error envelope409error envelope422validation_failed with errors [{index?, reason, field}]: layer_invalid, layer_reserved, measures_missing, too_many_measures, measure_name_invalid, measure_duplicate, type_invalid, unit_invalid, bounds_invalid, bound_invalid, enum_invalid, identifier_not_accepted, unknown_field…429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/schemas/{schema}Beta
One layer schema version with its measures (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
schema | path | string · uuid | yes |
GET /v1/schemas/{schema}{
"schema": {
"id": "05fc0485-2704-4bff-873f-55603e053e30",
"layer": "study",
"version": 1,
"description": "A synthetic hydration study",
"measure_count": 5,
"created_at": "2026-11-19T09:00:00Z",
"measures": [
{
"name": "water_ml",
"type": "integer",
"unit": "ml",
"min": 0,
"max": 10000,
"enum": null,
"description": "Water drunk in the day",
"expression": null
},
{
"name": "weight_kg",
"type": "number",
"unit": "kg",
"min": 1,
"max": 400,
"enum": null,
"description": null,
"expression": null
}
]
}
}200The version.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
State
GET/v1/twins/{twin}/measuresBeta
Every typed measure of the twin, built-in and custom layers (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
GET /v1/twins/{twin}/measures{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"data": [
{
"measure": "wellness.exercise_minutes",
"layer": "wellness",
"name": "exercise_minutes",
"type": "integer",
"unit": "min",
"accepted_min": 0,
"accepted_max": 1440,
"enum": null,
"description": null,
"builtin": true,
"has_series": true,
"derived": false,
"expression": null,
"inputs": []
},
{
"measure": "wellness.steps",
"layer": "wellness",
"name": "steps",
"type": "integer",
"unit": "steps",
"accepted_min": 0,
"accepted_max": 100000,
"enum": null,
"description": null,
"builtin": true,
"has_series": true,
"derived": false,
"expression": null,
"inputs": []
}
]
}200Measures, addressed as <layer>.<measure>.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}/stateBeta
The current state of the twin, every measure with a value (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
GET /v1/twins/{twin}/state{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"state": [
{
"measure": "study.ml_per_kg",
"value": 25,
"version": 1,
"updated_at": "2026-11-19T09:00:00Z",
"updated_by": "starco_dk_45a64a58"
},
{
"measure": "study.phase",
"value": "baseline",
"version": 1,
"updated_at": "2026-11-19T09:00:00Z",
"updated_by": "starco_dk_45a64a58"
}
],
"note": "Only measures with a value are listed; a measure without one has no data (never a default)."
}200Measures without a value are absent (no default, no zero).401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
PATCH/v1/twins/{twin}/stateBeta
Set several measures at once, all or nothing, with an optional watch (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
PATCH /v1/twins/{twin}/state
{
"values": {
"study.phase": "follow_up",
"study.sessions_done": 4
},
"watch": {
"study.phase": 1
}
}{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"committed": true,
"transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"results": [
{
"op": "set",
"measure": "study.phase",
"value": "follow_up",
"version": 2,
"updated_at": "2026-11-19T09:00:00Z"
},
{
"op": "set",
"measure": "study.sessions_done",
"value": 4,
"version": 2,
"updated_at": "2026-11-19T09:00:00Z"
}
]
}200Committed, with the result of each operation in order.401error envelope403error envelope404error envelope409error envelope413error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}/state/{measure}Beta
The current value of one measure, with its version as ETag (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
GET /v1/twins/{twin}/state/{measure}ETag: "1"
{
"measure": "study.phase",
"has_value": true,
"value": "baseline",
"version": 1,
"updated_at": "2026-11-19T09:00:00Z",
"updated_by": "starco_dk_45a64a58"
}200has_value false and value null when it has none (version 0 if it never had one).401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
PUT/v1/twins/{twin}/state/{measure}Beta
Set one measure; with if_version (or If-Match) only if it is still at that version (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
If-Match | header | string | no | The ETag of a read; same as if_version. |
PUT /v1/twins/{twin}/state/{measure}
{
"value": "follow_up",
"if_version": 1
}ETag: "2"
{
"op": "set",
"measure": "study.phase",
"value": "follow_up",
"version": 2,
"updated_at": "2026-11-19T09:00:00Z",
"transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6"
}200The new value and version (also as ETag), and the transaction id.401error envelope403error envelope404error envelope409version_conflict: current_version and has_value tell what is there now; nothing was changed.422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/twins/{twin}/state/{measure}Beta
Remove the value of one measure (its version still grows; scope write)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
if_version | query | integer | no | |
If-Match | header | string | no | Strong ETag of a read; the same as if_version (both must agree). |
DELETE /v1/twins/{twin}/state/{measure}ETag: "2"
{
"op": "del",
"measure": "study.phase",
"deleted": true,
"version": 2,
"transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6"
}200The new value and version (also as ETag), and the transaction id.401error envelope403error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twins/{twin}/state/{measure}/incrBeta
Add to a number or integer measure within its accepted bounds (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
POST /v1/twins/{twin}/state/{measure}/incr
{
"by": 1
}ETag: "2"
{
"op": "incr",
"measure": "study.sessions_done",
"value": 4,
"version": 2,
"updated_at": "2026-11-19T09:00:00Z",
"transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6"
}200The new value and version (also as ETag), and the transaction id.401error envelope403error envelope404error envelope409measure_has_no_value (set one first: no value is never taken as 0) or version_conflict.422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twins/{twin}/txBeta
A transaction on the twin, ordered operations applied all or nothing after an optional watch (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
POST /v1/twins/{twin}/tx
{
"watch": {
"study.phase": 1
},
"ops": [
{
"op": "set",
"measure": "study.phase",
"value": "follow_up"
},
{
"op": "incr",
"measure": "study.sessions_done",
"by": 1
},
{
"op": "append",
"measure": "study.water_ml",
"points": [
{
"t": "2026-11-18T20:00:00Z",
"v": 1750
}
]
}
]
}{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"committed": true,
"transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"results": [
{
"op": "set",
"measure": "study.phase",
"value": "follow_up",
"version": 2,
"updated_at": "2026-11-19T09:00:00Z"
},
{
"op": "incr",
"measure": "study.sessions_done",
"value": 4,
"version": 2,
"updated_at": "2026-11-19T09:00:00Z"
}
]
}200Committed, with the result of each operation in order.401error envelope403error envelope404error envelope409watch_failed (conflicts) or version_conflict (op_index): nothing was applied.413error envelope422An operation was refused (op_index and reason): nothing was applied.429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/twins/{twin}/history/{measure}Beta
Every change of one measure, oldest first (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
after_version | query | integer | no | |
limit | query | integer | no |
GET /v1/twins/{twin}/history/{measure}{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": "study.phase",
"data": [
{
"version": 1,
"op": "set",
"old_value": null,
"new_value": "baseline",
"actor": "starco_dk_45a64a58",
"transaction_id": "092300c2-b55d-4a98-b296-8f8c9228e82f",
"changed_at": "2026-11-19T09:00:00Z"
}
],
"next_after_version": null,
"kept": "The last 1000 changes of each measure."
}200The last 1000 changes of each measure are kept.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twins/{twin}/cmdBeta
Command mode, optional terminal sugar over the same operations (scope read; write commands need scope write)
GET, SET [IFVERSION n], MSET, DEL [IFVERSION n], INCRBY, EXISTS, MEASURES [glob], STATE, SERIES.ADD, SERIES.RANGE, HISTORY.
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes |
POST /v1/twins/{twin}/cmd
{
"cmd": "SET",
"args": [
"study.phase",
"follow_up",
"IFVERSION",
1
]
}{
"cmd": "SET",
"result": {
"op": "set",
"measure": "study.phase",
"value": "follow_up",
"version": 2,
"updated_at": "2026-11-19T09:00:00Z"
}
}200{cmd, result}401error envelope403error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Series
GET/v1/twins/{twin}/series/{measure}Beta
The observation series of a numeric measure, raw or in UTC buckets (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
from | query | string · date-time | no | |
to | query | string · date-time | no | |
bucket | query | string (1m, 5m, 15m, 1h, 6h, 1d, 7d) | no | |
agg | query | string (avg, min, max, sum, count, first, last) | no | |
limit | query | integer | no | |
fill | query | string (null) | no | With bucket, from and to: list empty buckets too, with v null and n 0. |
GET /v1/twins/{twin}/series/{measure}?from=2026-11-14T00:00:00Z&to=2026-11-19T00:00:00Z&bucket=1d&agg=avg&fill=null{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": "wellness.sleep_hours",
"unit": "h",
"from": "2026-11-14T00:00:00Z",
"to": "2026-11-19T00:00:00Z",
"bucket": "1d",
"agg": "avg",
"n": 3,
"buckets_expected": 5,
"buckets_missing": 2,
"points": [
{
"t": "2026-11-14T00:00:00Z",
"v": null,
"n": 0
},
{
"t": "2026-11-15T00:00:00Z",
"v": 7.2,
"n": 1
}
],
"truncated": false
}200Points [{t, v}] or buckets [{t, v, n}]; a bucket without points is absent (or v null with fill=null), never 0. n = points read; buckets_expected and buckets_missing with a bucket and both ends.401error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/twins/{twin}/series/{measure}Beta
Append points to the series of a numeric measure; they are observations of the twin (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
POST /v1/twins/{twin}/series/{measure}
{
"points": [
{
"t": "2026-11-17T07:00:00Z",
"v": 7.4
}
]
}{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": "wellness.sleep_hours",
"batch_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"accepted": 1,
"rejected": []
}200Accepted and refused points (index, reason); the same reasons as POST /observations.401error envelope403error envelope404error envelope413error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Scenarios
GET/v1/twins/{twin}/scenarios/{measure}Beta Experimental
Experimental: the illustrative scenario of a numeric measure, the twin's own days shifted by a change you declare (scope read)
Experimental, over synthetic data, computed on the server; it stores nothing. Label of every answer: "Illustrative scenario, not a prediction".
What it does: it takes the days of this twin that have a value of the measure inside a window of UTC days (a day's value is the mean of its observations), describes them (baseline: mean, min, max, P25, median, P75) and moves their middle half by declared_change (scenario: band.low, center, band.high), kept inside the accepted bounds of the measure (clamped_to_accepted_bounds says when that happened). The same series and the same change always give the same answer. The answer carries this summary in words (method).
What it does not do: it does not predict, it reads no other twin, it uses no reference range and it gives no score, interpretation or health outcome. With fewer than minimum_days (7) days with a value in the window, baseline and scenario are null and reason is not_enough_days: never 0, never a typical value.
input_sha256 and result_sha256 are the fingerprints of what was read and of what was answered (schema ComputedFingerprints); the audit row of the call holds result_sha256.
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
declared_change | query | number | yes | The change you declare, in the unit of the measure; negative to lower, 0 for the band as observed. Plain decimal, at most 6 decimals. |
window_days | query | integer | no | Days of the window. |
to | query | string · date | no | Last UTC day of the window (default: today). |
GET /v1/twins/{twin}/scenarios/{measure}?declared_change=0.5{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": "wellness.sleep_hours",
"unit": "h",
"experimental": true,
"kind": "illustrative_scenario",
"label": "Illustrative scenario, not a prediction",
"data_class": "synthetic",
"window": {
"from": "2026-10-23",
"to": "2026-11-19",
"days": 28
},
"minimum_days": 7,
"days_observed": 3,
"days_without_value": 25,
"accepted_min": 0,
"accepted_max": 24,
"reason": "not_enough_days",
"baseline": null,
"scenario": null,
"method": "Experimental, hosted by STARCO. A day is a UTC day, and its value is the mean of the observations of the measure on that day. The baseline describes the days of this twin that have a value inside the window. The scenario is the middle half of those days, moved by the change you declare and kept inside the accepted bounds of the measure. With fewer than 7 days with a value there is no baseline and no band. The same series and the same change always give the same answer: nothing is sampled, no other twin is read, and nothing is compared with a reference range, scored, interpreted or predicted.",
"input_sha256": "88d7120f6e83a0e0abc162b040225f74bcd78a333a238134c810cb0c83213457",
"result_sha256": "cd229035c6d00849218ef47ceb727cd1e401eae195b9ba21d24b6223a485399d"
}200The scenario, or baseline and scenario null with reason not_enough_days.401error envelope403error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Fits
GET/v1/twins/{twin}/fits/{measure}Beta Experimental
Experimental: statistical fits of a numeric measure, regression curves over the twin's own daily series, side by side and never ranked (scope read)
Experimental, over synthetic data, computed on the server; it stores nothing. Label of every answer: "Experimental. A statistical fit of this twin's own series: an extrapolation, not a health prediction."
What it does: it takes the days of this twin that have a value of the measure inside a window of UTC days (a day's value is the mean of its observations) and fits each model asked for by ordinary least squares. The predictor is time (x = the day number in the window, 1 for its first day) unless x names another numeric measure of the same twin, or up to three of them with model=linear (multiple linear regression); then a point is a day on which every measure involved has a value. Each fit carries its form, coefficients, statistics (n, parameters, degrees of freedom, R², adjusted R², residual standard error and the root mean squared error in the unit of the measure), the fitted value of every point, and estimates: the horizon_days days after the window (time), or the predictor values listed in at, each with a 95 % prediction interval for one new value (interval.t_quantile and interval.degrees_of_freedom say which Student t was used). Exponential and power are fitted to ln y (fitted_in: ln_y): their R², adjusted R² and residual standard error refer to ln y, their fitted values and estimates are the exponential of the fitted ln y, and their interval is the interval of ln y with its ends exponentiated. The same series and the same parameters always give the same answer. The answer carries this summary in words (method).
What it does not do: it does not choose. With model=all the six fits come in a fixed order (linear, quadratic, cubic, exponential, logarithmic, power), which is not a ranking, and no field marks one as preferable: comparing them and choosing is yours. It reads no other twin, uses no reference range and gives no score, interpretation or health outcome. An estimate is an extrapolation of the series and is never clamped: outside_accepted_bounds says when it leaves the accepted bounds of the measure. The intervals assume the linear model (independent errors of constant variance, normally distributed) and that is not checked.
Null with a reason, never 0 and never a typical value: with fewer than minimum_days (7) days, points and fits are null and reason is not_enough_days. A model that is not defined for the series has every figure null and its own reason: values_not_positive (exponential and power need every value above 0), predictor_not_positive (logarithmic and power need every predictor value above 0), constant_series, singular_system (a constant or collinear predictor, or too few distinct predictor values for the degree), not_enough_points or not_finite.
input_sha256 and result_sha256 are the fingerprints of what was read and of what was answered (schema ComputedFingerprints); the audit row of the call holds result_sha256.
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
twin | path | string · uuid | yes | |
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
model | query | string (linear, quadratic, cubic, exponential, logarithmic, power, all) | yes | The model to fit, or all for the six side by side in that fixed order. |
x | query | string | no | Predictor: one numeric measure of the same twin, or up to three separated by commas with model=linear. Left out: time. |
window_days | query | integer | no | Days of the window. |
to | query | string · date | no | Last UTC day of the window (default: today). |
horizon_days | query | integer | no | Future days to estimate, at most half the window. Only with time as the predictor. |
at | query | string | no | Only with x: up to 10 points to estimate at, separated by semicolons; a point is one plain decimal number per predictor, separated by commas. |
GET /v1/twins/{twin}/fits/{measure}?model=all{
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": "wellness.sleep_hours",
"unit": "h",
"experimental": true,
"kind": "statistical_fit",
"label": "Experimental. A statistical fit of this twin's own series: an extrapolation, not a health prediction.",
"data_class": "synthetic",
"window": {
"from": "2026-10-23",
"to": "2026-11-19",
"days": 28
},
"predictors": [
{
"kind": "time",
"measure": null,
"unit": "day"
}
],
"model": "all",
"horizon_days": 0,
"minimum_days": 7,
"days_observed": 3,
"days_without_value": 25,
"accepted_min": 0,
"accepted_max": 24,
"reason": "not_enough_days",
"points": null,
"fits": null,
"method": "Experimental, hosted by STARCO. Each model is fitted by ordinary least squares to the days of this twin that have a value in the window (a day is a UTC day; its value is the mean of its observations). With time as the predictor, x is the day number in the window: 1 for its first day. Exponential and power are fitted to ln(y): their r_squared, adjusted_r_squared and residual_standard_error refer to ln(y), and their fitted values and estimates are exp of the fitted ln(y). rmse_original_scale is in the unit of the measure for every model. An interval is a 95 % prediction interval for one new value, from Student t, under the assumptions of the linear model (independent errors of constant variance, normally distributed), which are not checked. The models are listed in a fixed order and none is ranked or recommended: choosing one is yours. An estimate is an extrapolation of this series and is never clamped to the accepted bounds of the measure. The same series and the same parameters always give the same answer: nothing is sampled, no other twin is read, and nothing is compared with a reference range, scored or interpreted. It is not a prediction about health.",
"input_sha256": "3695349c2e46e205d9018dde5cb409116b2adafa75ce4beac516ed297a7a092d",
"result_sha256": "78b6df77bae90e197d7c84ee5b63b73e2fca7f2a3882a43462e2a6f19a3aa2b4"
}200The fits, or points and fits null with reason not_enough_days.401error envelope403error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Cohort
GET/v1/cohort/{measure}Beta Experimental
Experimental: the cohort summary of a numeric measure, the per-twin means of the twins of the project and their distribution, never ranked (scope read)
Experimental, over synthetic data, computed on the server; it stores nothing. Label of every answer: "Experimental. A description of the twins of this project, in the order they were created: not a ranking, not a reference range and not a health assessment."
What it reads: the twins of the project of the key and no twin of any other project. With origin, only the twins created that way (api: through POST /twins; synthetic_cohort: the sample twins a project comes with). At most 200 twins in a call, the largest page of GET /twins: a selection of more than 200 is refused with 422 cohort_too_large, never cut short. This is the one experimental operation that reads several twins; scenarios and fits read one.
What it does: for each twin, in the order the twins were created, days_observed counts the days of the window of UTC days that have a value of the measure (a day's value is the mean of its observations) and mean is the mean of those daily values, to two decimals. For the cohort, distribution describes the means of the twins that have one, as the answer shows them: minimum, P25, median, P75, maximum and mean. histogram.bins splits the span from that minimum to that maximum into bins bins of equal width, with the count of twins in each: a twin is counted in bin floor((mean − min) ÷ (max − min) × bins), counted from 0, computed in double precision, and the maximum falls in the last bin; the edges are shown to two decimals; when every mean is the same there is one bin. Because the cohort figures are computed from the rows of twins as shown, whoever holds the answer can compute them again. The same data and the same parameters always give the same answer. The answer carries this summary in words (method).
What it does not do: it does not rank the twins, flag any of them or compare one with the rest, and the distribution is this project's own data: it is not a reference range. No score, no interpretation, no health outcome, no prediction.
Null with a reason, never 0 and never a typical value: a twin with fewer than minimum_days (7) days has a null mean and the reason not_enough_days; a twin without the measure has null days and mean and the reason measure_not_in_twin; a twin whose layer schema defines the measure with another unit or without a series has the reason measure_differs (the unit is the one of the first twin that has the measure with a series). When no twin has a mean, distribution and histogram are null and reason is no_twin_with_a_value. When no twin of the selection has the measure at all the answer is 404 unknown_measure.
input_sha256 and result_sha256 are the fingerprints of what was read and of what was answered (schema ComputedFingerprints); neither covers a twin id, and the audit row of the call holds result_sha256.
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
measure | path | string | yes | <layer>.<measure>, e.g. wellness.steps or study.phase. |
window_days | query | integer | no | Days of the window. |
to | query | string · date | no | Last UTC day of the window (default: today). |
bins | query | integer | no | Bins of the histogram. |
origin | query | string (api, synthetic_cohort) | no | Only the twins with this origin (as GET /twins shows it). Left out: every twin of the project. |
GET /v1/cohort/{measure}?bins=4{
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"measure": "wellness.steps",
"unit": "steps",
"experimental": true,
"kind": "cohort_summary",
"label": "Experimental. A description of the twins of this project, in the order they were created: not a ranking, not a reference range and not a health assessment.",
"data_class": "synthetic",
"window": {
"from": "2026-10-23",
"to": "2026-11-19",
"days": 28
},
"minimum_days": 7,
"selection": {
"origin": null,
"twins": 9,
"max_twins": 200
},
"twins": [
{
"twin_id": "0794937c-0b16-447a-84da-f99b4777cbec",
"label": "cohort-1",
"days_observed": 14,
"mean": 7723.57,
"reason": null
},
{
"twin_id": "0fbdae0e-0bf5-4428-8400-9b3b969b1328",
"label": "cohort-2",
"days_observed": 14,
"mean": 7723.57,
"reason": null
}
],
"twins_with_value": 8,
"reason": null,
"distribution": {
"min": 7723.57,
"p25": 7723.57,
"median": 7723.57,
"p75": 7723.57,
"max": 7723.57,
"mean": 7723.57
},
"histogram": {
"bins": [
{
"from": 7723.57,
"to": 7723.57,
"count": 8
}
]
},
"method": "Experimental, hosted by STARCO. It reads the twins of the project of the key (with origin, only those created that way), at most 200 in a call, and no twin of any other project; a selection of more than 200 twins is refused, never cut short. A day is a UTC day, and its value is the mean of the observations of the measure on that day. For each twin, days_observed counts the days of the window with a value and mean is the mean of those daily values, to two decimals; with fewer than 7 days it is null with a reason. The distribution describes the means of the twins that have one, as shown: minimum, P25, median, P75, maximum and mean. The histogram splits the span from that minimum to that maximum into bins of equal width: a twin is counted in bin floor((mean - min) / (max - min) * bins), counted from 0, and the maximum falls in the last bin; when every mean is the same there is one bin. The twins are listed in the order they were created: nothing is ranked, no twin is flagged, and the distribution is this project's own data, not a reference range. The same data and the same parameters always give the same answer: nothing is sampled, scored, interpreted or predicted.",
"input_sha256": "313d3f237ea44c7e487bf44ba68eb546192d7dd79b64b42ed780016588b5edb9",
"result_sha256": "42feca92feb50d41c375ba063239fe23b384ef44592ca1a046e0baca739a0eae"
}200The summary; distribution and histogram null with reason no_twin_with_a_value when no twin has a mean.401error envelope403error envelope404error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Events
GET/v1/eventsBeta
Events of the project after a cursor, with an optional long-poll (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
after | query | integer | no | The seq of the last event received (0 to start); then next_after. |
wait | query | integer | no | Seconds to wait for an event when there is none yet. |
types | query | string | no | Comma-separated event types. |
twin_id | query | string · uuid | no | |
limit | query | integer | no |
GET /v1/events?after=0&limit=3{
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"data": [
{
"id": "6aa14202-f403-4e9e-b124-eaa4f36e0ea1",
"seq": 1,
"type": "schema.created",
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"twin_id": null,
"measure": null,
"version": null,
"data": {
"schema_id": "05fc0485-2704-4bff-873f-55603e053e30",
"layer": "study",
"version": 1
},
"created_at": "2026-11-19T09:00:00Z"
},
{
"id": "3ca1fb20-5bd5-4c52-9a6e-5373a7aaee55",
"seq": 2,
"type": "twin.created",
"project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
"twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
"measure": null,
"version": null,
"data": {
"template": "daily_movement",
"layers": [
"wellness",
"biomarkers"
]
},
"created_at": "2026-11-19T09:00:00Z"
}
],
"next_after": 3,
"head_seq": 10,
"oldest_seq": 1,
"retention_days": 30
}200Events in commit order; a cursor never skips one. Kept 30 days (oldest_seq).401error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/webhooksBeta
Webhooks of the project (scope read)
Auth: Project key (starco_dk_…) with the read scope
GET /v1/webhooks{
"data": [
{
"id": "add077ab-83cb-41cc-ba96-13d4c4e272d6",
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed"
],
"secret_prefix": "whsec_PaNJ11",
"created_at": "2026-11-19T09:00:00Z",
"disabled_at": null,
"active": true
}
]
}200Webhooks, active and disabled.401error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/webhooksBeta
Add a webhook, an https endpoint that receives the events signed (scope write)
Only https:// on port 443 to a host name whose every address is public (no IP literals, local names, private, loopback, link-local or metadata addresses); checked now and before every delivery, the connection pinned to the checked address, redirects never followed. Each delivery carries X-Starco-Event, X-Starco-Delivery, X-Starco-Timestamp and X-Starco-Signature: t=<unix>,v1=hex(HMAC-SHA256(secret, "<t>.<raw body>")). Retries after 30 s, 2 min, 10 min, 1 h and 6 h; then failed.
Auth: Project key (starco_dk_…) with the write scope
POST /v1/webhooks
{
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed",
"series.appended"
]
}{
"webhook": {
"id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed",
"series.appended"
],
"secret_prefix": "whsec_K31Caz",
"created_at": "2026-11-19T09:00:00Z",
"disabled_at": null,
"active": true
},
"secret": "whsec_K31CazV0y2_7m1u21CDBsQ3-tcCPgg6IfMxkEW9G55q",
"note": "The secret is shown only now. Check every delivery: X-Starco-Signature = t=<unix>,v1=hex(HMAC-SHA256(secret, \"<t>.<raw body>\"))."
}201The webhook and its secret (shown only now).401error envelope403error envelope409error envelope422url_not_https, url_port_not_accepted, url_host_is_an_address, url_host_local, url_host_not_resolvable, url_resolves_to_a_private_address…429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/webhooks/{webhook}Beta
One webhook of the project, without its secret (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
webhook | path | string · uuid | yes |
GET /v1/webhooks/{webhook}{
"webhook": {
"id": "add077ab-83cb-41cc-ba96-13d4c4e272d6",
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed"
],
"secret_prefix": "whsec_PaNJ11",
"created_at": "2026-11-19T09:00:00Z",
"disabled_at": null,
"active": true
}
}200The webhook.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
DELETE/v1/webhooks/{webhook}Beta
Disable a webhook and cancel its pending deliveries (scope write)
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
webhook | path | string · uuid | yes |
DELETE /v1/webhooks/{webhook}{
"webhook": {
"id": "add077ab-83cb-41cc-ba96-13d4c4e272d6",
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed"
],
"secret_prefix": "whsec_PaNJ11",
"created_at": "2026-11-19T09:00:00Z",
"disabled_at": "2026-11-19T09:00:00Z",
"active": false
}
}200The webhook, disabled.401error envelope403error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/webhooks/{webhook}/secret/rotateBeta
Replace the signing secret of a webhook (scope write)
No body. The new secret is shown only in this answer. The previous secret stops signing for every send that starts after the rotation (a request already on the wire still carries the old signature): there is no period in which both are valid. Every attempt made from now on is signed with the new secret, including the retries of deliveries that were already waiting, so a receiver that rejects a delivery while it still holds the old secret gets it again on the retry schedule (30 s, 2 min, 10 min, 1 h, 6 h) and accepts it once it holds the new one. The webhook keeps its id, URL, event types and delivery log. A disabled webhook is refused (409 webhook_disabled). If this answer is lost, rotate again: the secret cannot be read back. Always allowed, whatever the plan of the account.
Auth: Project key (starco_dk_…) with the write scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
webhook | path | string · uuid | yes |
POST /v1/webhooks/{webhook}/secret/rotate{
"webhook": {
"id": "add077ab-83cb-41cc-ba96-13d4c4e272d6",
"url": "https://hooks.example.test/twin",
"event_types": [
"state.changed"
],
"secret_prefix": "whsec_H_VMru",
"created_at": "2026-11-19T09:00:00Z",
"disabled_at": null,
"active": true
},
"secret": "whsec_H_VMruHA9Ql_0Gt2K31CazV0y2_7m1u21CDBsQ3-tcC",
"note": "The new secret is shown only now. The previous secret no longer signs: every delivery from now on, retries included, is signed with the new one."
}200The webhook and its new secret (shown only now).401error envelope403error envelope404error envelope409error envelope422error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/webhooks/{webhook}/deliveriesBeta
Delivery log of a webhook, newest first (scope read)
Auth: Project key (starco_dk_…) with the read scope
| parameter | in | type | required | notes |
|---|---|---|---|---|
webhook | path | string · uuid | yes | |
limit | query | integer | no |
GET /v1/webhooks/{webhook}/deliveries{
"webhook_id": "add077ab-83cb-41cc-ba96-13d4c4e272d6",
"data": [
{
"id": "6d2379ec-d165-4ddc-ba5e-47639a841b7f",
"event_seq": 10,
"event_type": "state.changed",
"status": "delivered",
"attempts": 1,
"last_http_status": 200,
"last_error": null,
"next_attempt_at": null,
"delivered_at": "2026-11-19T09:00:00Z",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
}
]
}200Status, attempts, last HTTP status and stable error code; never the response body.401error envelope404error envelope429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
MCP
POST/v1/projects/{project}/mcp-tokensBeta
Issue a one-hour read-only project MCP token
Synthetic projects only. No configurable TTL or scopes. Shown once; list/revoke through project keys. Does not authorize REST or personal MCP.
Auth: Console token (starco_dc_…, from POST /sessions)
| parameter | in | type | required | notes |
|---|---|---|---|---|
project | path | string · uuid | yes |
POST /v1/projects/{project}/mcp-tokens
{}Cache-Control: private, no-store
{
"key": {
"id": "88dfccb1-6404-463d-86b9-39aa29ae82ab",
"name": "Read-only MCP",
"prefix": "starco_dm_c7bfd54c",
"scopes": [
"mcp:read"
],
"state": "active",
"expires_at": "2026-11-19T10:00:00Z",
"revoked_at": null,
"last_used_at": null,
"created_at": "2026-11-19T09:00:00Z"
},
"secret": "starco_dm_c7bfd54c_ruHA9Ql_0Gt2K31CazV0y2_7m1u21CDBsQ3-tcCPgg6",
"note": "Shown once. Read-only synthetic project MCP; expires in one hour. Revoke through the project keys endpoint."
}201One-time secret; Cache-Control no-store401Invalid console token403Requires an owned synthetic project or Origin not allowed404Project not found or API disabled409Active credential quota reached422Parameters are not configurable429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
GET/v1/mcpBeta
MCP SSE is not offered
Auth: Project MCP token (starco_dm_…, read-only, one hour, from POST /projects/{project}/mcp-tokens)
GET /v1/mcpAllow: POST
Cache-Control: private, no-store
(empty body)400query_not_allowed: query strings are refused401Invalid MCP token404API disabled405Stateless JSON POST transport only; Allow POST429too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
POST/v1/mcpBeta
Read-only synthetic project MCP JSON-RPC
Streamable HTTP JSON response subset, protocol 2025-06-18. Accept must include application/json and text/event-stream. Methods initialize, ping, tools/list and tools/call; initialized/cancelled notifications return empty202. Tools twins.list, twin.get, layer.get, series.range, history.get, audit.verify. No writes or batches. Origin absent for CLI or exactly allowlisted by operator. Query strings refused.64KiB request bound. Tool data returned as content and structuredContent; domain errors set isError. Large response errors are explicit. No OAuth discovery, SSE, resumability or server sessions. Do not claim automatic compatibility with every MCP client.
Auth: Project MCP token (starco_dm_…, read-only, one hour, from POST /projects/{project}/mcp-tokens)
POST /v1/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "twins.list",
"arguments": {
"limit": 2
}
}
}Cache-Control: private, no-store
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "{\"data\":[{\"id\":\"0794937c-0b16-447a-84da-f99b4777cbec\",\"template\":\"sports_performance\",\"layers\":[\"wellness\"],\"custom_layers\":[],\"label\":\"cohort-1\",\"origin\":\"synthetic_cohort\",\"data_class\":\"synthetic\",\"created_at\":\"2026-11-19T09:00:00Z\",\"updated_at\":\"2026-11-19T09:00:00Z\"},{\"id\":\"0fbdae0e-0bf5-4428-8400-9b3b969b1328\",\"template\":\"sleep_optimization\",\"layers\":[\"wellness\"],\"custom_layers\":[],\"label\":\"cohort-2\",\"origin\":\"synthetic_cohort\",\"data_class\":\"synthetic\",\"created_at\":\"2026-11-19T09:00:00Z\",\"updated_at\":\"2026-11-19T09:00:00Z\"}],\"next_after\":2}"
}
],
"structuredContent": {
"data": [
{
"id": "0794937c-0b16-447a-84da-f99b4777cbec",
"template": "sports_performance",
"layers": [
"wellness"
],
"custom_layers": [],
"label": "cohort-1",
"origin": "synthetic_cohort",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
},
{
"id": "0fbdae0e-0bf5-4428-8400-9b3b969b1328",
"template": "sleep_optimization",
"layers": [
"wellness"
],
"custom_layers": [],
"label": "cohort-2",
"origin": "synthetic_cohort",
"data_class": "synthetic",
"created_at": "2026-11-19T09:00:00Z",
"updated_at": "2026-11-19T09:00:00Z"
}
],
"next_after": 2
},
"isError": false
}
}200JSON-RPC result or error; application/json202Accepted notification; empty body400Malformed JSON-RPC or unsupported protocol401Invalid, expired or revoked MCP token403Origin not allowlisted404API disabled406Required response types not accepted413Request exceeds64KiB415Requires application/json429Project rate limit
Try it (simulated)
Error codes
Every code of the error envelope {"success": false, "code", "error"}, with its HTTP status. Per-line reasons of an observation batch are listed with the observations.
| code | status | meaning |
|---|---|---|
conflict | 409 | The requested Cloud link conflicts with the current state. Refresh both sides and review before retrying; no intent is consumed by a refused confirmation. |
forbidden | 403 | The current account or Cloud intent creator no longer has the authority required for this operation. Check current membership; changing token type does not grant access. |
validation_failed | 422 | Some fields or parameters are not valid; errors says which. |
unknown_field | 422 | A field the operation does not accept; field names it. |
identifier_field_not_accepted | 422 | A field named like a real identifier (email, phone, ssn…); synthetic data only. |
identifier_not_accepted | 422 | A text that looks like a real identifier; looks_like says what kind. |
terms_version_mismatch | 422 | accept_terms_version is not the version of GET /terms; expected has it. |
link_invalid | 422 | The verification or recovery link or token is unknown, already used or expired. |
invalid_credentials | 401 | Wrong address or password, or the address is not verified yet. |
too_many_sign_in_attempts | 429 | Too many failed sign-ins for this address, whatever the client address; wait Retry-After seconds. |
auth_rate_limited | 429 | Too many failed authentications (unknown, revoked or expired key or console token) from this address or for this key; wait Retry-After seconds. |
email_not_verified | 403 | The address of the account must be verified before subscribing. |
billing_not_configured | 503 | Billing is on but a setting is missing on the server; missing names it. Nothing is charged. |
billing_provider_error | 502 | Stripe did not accept or did not answer the request; nothing changed. |
billing_cancel_failed | 502 | The subscription or an open checkout could not be closed in Stripe, so the account was not erased. |
plan_unknown | 422 | No such paid plan or period; plans and periods list them. |
plan_not_available | 409 | The price of the plan cannot be read from Stripe or does not fit; reason says which. |
already_subscribed | 409 | The account has a subscription; change or cancel it in the portal. |
no_billing_customer | 404 | The account has never subscribed: there is no portal for it. |
no_subscription | 404 | The account has no subscription to cancel. |
plan_limit_read_only | 403 | The project or twin is over the limits of the account's plan: readable, exportable and erasable, not writable; over and limit say why. |
invalid_signature | 400 | Stripe webhook: the Stripe-Signature header does not verify the payload or is too old. |
malformed_event | 400 | Stripe webhook: the payload is not a Stripe event. |
password_required | 403 | Erasing the account or a project needs the account password. |
invalid_token | 401 | Missing or unknown console token. |
token_revoked | 401 | The console token was revoked. |
token_expired | 401 | The console token expired; sign in again. |
invalid_key | 401 | Missing or unknown project key. |
key_revoked | 401 | The project key was revoked. |
key_expired | 401 | The project key expired. |
insufficient_scope | 403 | The key lacks the scope the operation (or the command) needs; needs names it. |
not_found | 404 | No such resource in this account or project (another project's id is also not_found). |
project_limit_reached | 409 | The account has the maximum number of projects. |
project_has_study | 409 | A Studio study is built on the project; it is not erased from the Dev API. |
key_limit_reached | 409 | The project has the maximum number of active keys and MCP tokens. |
twin_limit_reached | 409 | The project has the maximum number of twins. |
schema_limit_reached | 409 | The project has the maximum number of layer schema versions. |
webhook_limit_reached | 409 | The project has the maximum number of active webhooks. |
webhook_disabled | 409 | The webhook is disabled: it is never called, so its secret cannot be rotated. |
unknown_template | 422 | Unknown template; expected lists them. |
template_missing | 422 | Built-in layers need a template. |
unknown_schema | 422 | No such layer schema in this project. |
schema_layer_duplicate | 422 | Two schemas of the same layer for one twin. |
layer_not_enabled | 404 | The twin does not have this layer. |
unknown_kind | 422 | Unknown observation kind. |
batch_too_large | 413 | Too many observations or points in one request; limit says how many. |
unknown_measure | 404 | The twin has no such measure (GET /twins/{twin}/measures). Cohort summaries (experimental): no twin of the selection has it. |
measure_is_derived | 422 | A derived measure is computed, never written. |
measure_has_no_series | 422 | Only number and integer measures have a series. |
measure_has_no_value | 409 | incr on a measure without a value. |
measure_not_numeric | 422 | incr on a measure that is not a number or an integer. |
increment_not_a_number | 422 | "by" is not a number. |
increment_not_an_integer | 422 | "by" is not a whole number for an integer measure. |
value_missing | 422 | PUT without "value". |
values_missing | 422 | PATCH /state without "values". |
value_not_a_number | 422 | The value is not a number. |
value_not_an_integer | 422 | The value is not a whole number. |
value_not_a_boolean | 422 | The value is not true or false. |
value_not_a_string | 422 | The value is not a string. |
value_not_in_enum | 422 | The value is not one of the measure's values. |
value_not_json_object_or_array | 422 | A json measure takes an object or an array. |
value_out_of_accepted_bounds | 422 | Outside the accepted bounds of the measure (what is recordable, never a reference range). |
value_too_long | 422 | A string longer than allowed. |
value_too_large | 422 | A json value larger than allowed once encoded. |
value_too_deep | 422 | A json value nested deeper than allowed. |
version_invalid | 422 | if_version or If-Match is not a strong version (e.g. "3"), or the two disagree. |
version_conflict | 409 | The measure is not at the version you sent; current_version has it. |
watch_invalid | 422 | "watch" is not an object {"<layer>.<measure>": version}. |
watch_failed | 409 | A watched measure changed; nothing was written. |
ops_missing | 422 | A transaction without "ops". |
op_invalid | 422 | An operation that is not an object {op, measure, …}. |
op_unknown | 422 | An operation other than set, incr, del or append. |
too_many_operations | 413 | More operations or measures than one transaction takes. |
points_missing | 422 | An append without points. |
points_rejected | 422 | Every point of an append was rejected; the reasons come per point. |
timestamp_invalid | 422 | A time that is not RFC 3339 or a date. |
range_invalid | 422 | from is not before to. |
range_too_many_buckets | 422 | The range asks for more buckets than one answer gives. |
bucket_invalid | 422 | Unknown bucket; expected lists them. |
agg_invalid | 422 | Unknown aggregation; expected lists them. |
agg_needs_bucket | 422 | An aggregation needs a bucket. |
fill_invalid | 422 | fill=null needs a bucket, from and to. |
limit_invalid | 422 | limit out of its range. |
declared_change_invalid | 422 | Scenarios (experimental): declared_change is missing or is not a plain decimal number. |
window_days_invalid | 422 | Scenarios, fits and cohort summaries (experimental): window_days is not a whole number of days in its range; expected has the range. |
model_invalid | 422 | Fits (experimental): model is missing or is not one of the models; expected lists them. |
predictors_invalid | 422 | Fits (experimental): x is not one to three distinct measure names other than the measure fitted, or names more than one with a model other than linear. |
horizon_days_invalid | 422 | Fits (experimental): horizon_days is not a whole number of days from 0 to half the window, or was sent with x; expected has the range. |
at_invalid | 422 | Fits (experimental): at was sent without x, or is not up to 10 points of one plain decimal number per predictor. |
bins_invalid | 422 | Cohort summaries (experimental): bins is not a whole number from 1 to 20; expected has the range. |
origin_invalid | 422 | Cohort summaries (experimental): origin is not one of the origins of a twin; expected lists them. |
cohort_too_large | 422 | Cohort summaries (experimental): the selection has more than 200 twins; limit has the number. Nothing is computed over part of a selection. |
command_unknown | 422 | Unknown command (POST /twins/{twin}/cmd). |
command_args_invalid | 422 | Wrong arguments for the command. |
cursor_invalid | 422 | "after" is not the seq of an event. |
wait_invalid | 422 | "wait" out of its range of seconds. |
types_invalid | 422 | Unknown event type. |
twin_id_invalid | 422 | twin_id is not a twin id. |
event_types_invalid | 422 | event_types is not a list of event types. |
url_invalid | 422 | The webhook URL is missing or not a URL. |
url_not_https | 422 | Webhooks only go to https URLs. |
url_port_not_accepted | 422 | Webhooks only go to port 443. |
url_credentials_not_accepted | 422 | A webhook URL with user or password. |
url_fragment_not_accepted | 422 | A webhook URL with a #fragment. |
url_host_invalid | 422 | The host of the webhook URL is not valid. |
url_host_is_an_address | 422 | IP literals are not accepted; use a host name. |
url_host_local | 422 | Local host names are not accepted. |
url_host_not_resolvable | 422 | The host name does not resolve. |
url_resolves_to_a_private_address | 422 | Some address of the host is not public. |
synthetic_project_required | 403 | MCP tokens only for a synthetic project. |
invalid_mcp_token | 401 | Missing, unknown, expired or revoked MCP token. |
origin_not_allowed | 403 | MCP: an Origin that is not allowlisted. |
query_not_allowed | 400 | MCP: query strings are refused. |
request_too_large | 413 | MCP: the request is larger than 64 KiB. |
mcp_auth_rate_limited | 429 | MCP: too many attempts with unknown tokens. |
too_many_attempts | 429 | Rate limit of the bucket reached; wait Retry-After seconds. |
service_unavailable | 503 | GET /status: the database did not reply. |