Beta. STARCO Dev works with synthetic data only: do not send real personal or health data. Every feature shows its real status (Available Beta Beta · in development Coming).

API explorer

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).

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)

Example requestillustrative · synthetic
GET /v1/status
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
}
  • 200 Answering, with the versions.
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 503 service_unavailable: the database did not reply; the versions come in the envelope.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/termsBeta

Developer terms in force

Auth: No credentials (rate limited per IP)

Example requestillustrative · synthetic
GET /v1/terms
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "version": "2026-11-27",
  "status": "in_force",
  "operator": "STARCO SYSTEMS EUROPE, S.L.",
  "data_policy": "Synthetic data only in the sandbox."
}
  • 200 Version to accept at sign-up.
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/accounts
{
  "email": "someone-else@example.test",
  "password": "tortuga-violeta-1119",
  "accept_terms_version": "2026-11-27"
}
Example response 202 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "status": "verification_required",
  "expires_in_minutes": 1440,
  "note": "Simulated: no message is sent. This sandbox keeps one synthetic account, already verified."
}
  • 202 Accepted; a message was sent to the address (the same answer for any address).
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/accounts/verify
{
  "token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "verified": true,
  "note": "Simulated: any well-formed token is accepted here. Sign in with POST /v1/sessions."
}
  • 200 Verified; the account can sign in.
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/password/forgot
{
  "email": "dev@example.test"
}
Example response 202 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "status": "sent_if_account_exists",
  "expires_in_minutes": 60,
  "note": "Simulated: no message is sent."
}
  • 202 Accepted (the same answer for any address).
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/password/reset
{
  "token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "password": "tortuga-violeta-1119"
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "password_changed": true,
  "sessions_closed": 0,
  "note": "Simulated: the password of the sandbox does not change."
}
  • 200 Password changed.
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
GET /v1/sessions
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Sessions.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

POST/v1/sessionsBeta

Sign in and get a console token (shown once)

Auth: No credentials (rate limited per IP)

Example requestillustrative · synthetic
POST /v1/sessions
{
  "email": "dev@example.test",
  "password": "synthetic-sandbox-1119"
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "token": "starco_dc_984197b5_-BPB9OjVTJ2cvM5VdUJEJCIK0F_WnLwxU16s7GYvAUt",
  "prefix": "starco_dc_984197b5",
  "expires_at": "2026-11-19T21:00:00Z",
  "note": "Shown once. Simulated sandbox token."
}
  • 201 Console token.
  • 401 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
sessionpathstringyesThe id of a session: the visible prefix of its console token.
Example requestillustrative · synthetic
DELETE /v1/sessions/{session}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "revoked": true,
  "id": "starco_dc_984197b5",
  "note": "Simulated: the sandbox signs you in again on the next request."
}
  • 200 Closed.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

DELETE/v1/sessions/currentBeta

Revoke the console token in use

Auth: Console token (starco_dc_…, from POST /sessions)

Example requestillustrative · synthetic
DELETE /v1/sessions/current
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "revoked": true,
  "note": "Simulated: the sandbox signs you in again on the next request."
}
  • 200 Revoked.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/accountBeta

The signed-in account

Auth: Console token (starco_dc_…, from POST /sessions)

Example requestillustrative · synthetic
GET /v1/account
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 200 Account.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
DELETE /v1/account
{
  "password": "synthetic-sandbox-1119"
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "receipt": {
    "projects_erased": 1,
    "twins_erased": 9,
    "erased_at": "2026-11-19T09:00:00Z"
  },
  "note": "Simulated: a fresh synthetic sandbox starts again."
}
  • 200 Erasure receipt.
  • 401 error envelope
  • 403 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
GET /v1/billing/plans
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
}
  • 200 Plans.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
GET /v1/billing/subscription
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Plan and subscription.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/billing/checkout
{
  "plan": "builder",
  "period": "month"
}
Example response 503 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  ]
}
  • 201 Checkout session.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
  • 503 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

POST/v1/billing/portalBeta

Open the Stripe customer portal (payment method, invoices, change plan, cancel)

Auth: Console token (starco_dc_…, from POST /sessions)

Example requestillustrative · synthetic
POST /v1/billing/portal
Example response 503 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  ]
}
  • 201 Portal session.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
  • 503 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/billing/invoices
Example response 503 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  ]
}
  • 200 Invoices.
  • 401 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
  • 503 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/billing/subscription/cancel
Example response 503 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  ]
}
  • 202 Asked to Stripe.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
  • 503 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
Stripe-Signatureheaderstringyes
Example requestillustrative · synthetic
POST /v1/billing/stripe/webhook
{
  "id": "evt_example",
  "type": "invoice.paid",
  "created": 1795078800,
  "livemode": false,
  "data": {
    "object": {
      "id": "in_example"
    }
  }
}
Example response 503 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  ]
}
  • 200 Received.
  • 400 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
  • 502 error envelope
  • 503 error envelope
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

Projects

GET/v1/projectsBeta

Projects of the account

Auth: Console token (starco_dc_…, from POST /sessions)

Example requestillustrative · synthetic
GET /v1/projects
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Projects.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

POST/v1/projectsBeta

Create a project (with its synthetic cohort of 8 twins)

Auth: Console token (starco_dc_…, from POST /sessions)

Example requestillustrative · synthetic
POST /v1/projects
{
  "name": "explorer"
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 201 Project created; its cohort is ready.
  • 401 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/projects/{project}Beta

One project

Auth: Console token (starco_dc_…, from POST /sessions)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/projects/{project}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 200 Project.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

PATCH/v1/projects/{project}Beta

Rename a project or change its rate limit

Auth: Console token (starco_dc_…, from POST /sessions)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
PATCH /v1/projects/{project}
{
  "rate_limit_per_minute": 120
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 200 Project.
  • 401 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
DELETE /v1/projects/{project}
{
  "password": "synthetic-sandbox-1119"
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
  }
}
  • 200 Erasure receipt.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/projects/{project}/usage
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
  }
}
  • 200 Usage and limits.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
POST /v1/cloud-link-intents/inspect
{
  "code": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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."
}
  • 200 Private, no-store. Inspect a manually shared Cloud association code.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
POST /v1/projects/{project}/cloud-links
{
  "code": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "alias": "explorer study",
  "confirm": true
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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."
}
  • 201 Private, no-store. Confirm a synthetic project's reference to the inspected Cloud destination.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
projectpathstring · uuidyes
limitqueryintegernoOut-of-range values are clamped.
afterqueryintegernoCursor: next_after of the previous page.
Example requestillustrative · synthetic
GET /v1/projects/{project}/keys
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Keys.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

POST/v1/projects/{project}/keysBeta

Create a key (the secret is shown once)

Auth: Console token (starco_dc_…, from POST /sessions)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
POST /v1/projects/{project}/keys
{
  "name": "explorer",
  "scopes": [
    "read",
    "write"
  ],
  "ttl_days": 30
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
}
  • 201 Key and its secret.
  • 401 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

DELETE/v1/projects/{project}/keys/{key}Beta

Revoke a key

Auth: Console token (starco_dc_…, from POST /sessions)

parameterintyperequirednotes
projectpathstring · uuidyes
keypathstring · uuidyes
Example requestillustrative · synthetic
DELETE /v1/projects/{project}/keys/{key}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 200 Revoked key.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

Twins

GET/v1/templatesBeta

Templates, layers and observation kinds with their units (scope read)

Auth: Project key (starco_dk_…) with the read scope

Example requestillustrative · synthetic
GET /v1/templates
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
    }
  ]
}
  • 200 Catalogue.
  • 401 error envelope
  • 403 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/twinsBeta

Twins of the key's project (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
limitqueryintegerno
afterqueryintegernoCursor: next_after of the previous page.
Example requestillustrative · synthetic
GET /v1/twins
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Page of twins.
  • 401 error envelope
  • 403 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

Example requestillustrative · synthetic
POST /v1/twins
{
  "template": "daily_movement",
  "layers": [
    "wellness",
    "biomarkers"
  ],
  "label": "explorer-02"
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 201 Twin created.
  • 401 error envelope
  • 403 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/twins/{twin}Beta

One twin (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/twins/{twin}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
  }
}
  • 200 Twin with the state of its layers.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

DELETE/v1/twins/{twin}Beta

Erase a twin with its observations and layers (scope write)

Auth: Project key (starco_dk_…) with the write scope

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
DELETE /v1/twins/{twin}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
  }
}
  • 200 Erasure receipt (also kept in the audit chain).
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/twins/{twin}/layers/{layer}Beta

Descriptive values of a layer (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
twinpathstring · uuidyes
layerpathstring (wellness, biomarkers)yes
Example requestillustrative · synthetic
GET /v1/twins/{twin}/layers/{layer}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
    }
  ]
}
  • 200 Layer.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/twins/{twin}/export
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
X-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"
    }
  ]
}
  • 200 The export; `X-Content-SHA256` is the SHA-256 of exactly the body bytes.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

Observations

GET/v1/twins/{twin}/observationsBeta

Series of observations (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
twinpathstring · uuidyes
kindquerystringno
fromquerystring · date-timenoInclusive.
toquerystring · date-timenoExclusive.
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/twins/{twin}/observations
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Observations in time order.
  • 401 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
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"
    }
  ]
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "batch_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
  "accepted": 1,
  "rejected": [
    {
      "index": 1,
      "reason": "unit_mismatch",
      "field": "unit",
      "expected": "h"
    }
  ],
  "recomputed_layers": [
    "wellness"
  ]
}
  • 200 Batch result.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 413 error envelope
  • 422 No line accepted (same body as 200), or the batch itself is malformed (error envelope).
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
after_seqqueryintegerno
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/audit
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Rows in chain order.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/audit/verifyBeta

Verify the project's audit chain on the server (scope read)

Auth: Project key (starco_dk_…) with the read scope

Example requestillustrative · synthetic
GET /v1/audit/verify
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "project_id": "70892ae9-38f6-4b38-942a-814505ed747b",
  "ok": true,
  "events": 7,
  "head_seq": 7,
  "head_hash": "f6d9a0118cba70e20f930a0137b3e92964afa27bc06c564f4831e6e21f69d899",
  "first_broken_seq": null,
  "reason": null
}
  • 200 Result of walking the chain.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

Layer schemas

GET/v1/schemasBeta

Layer schemas of the project, every version (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
layerquerystringno
Example requestillustrative · synthetic
GET /v1/schemas?layer=study
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Versions, oldest first per layer (without their measures).
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

Example requestillustrative · synthetic
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
    }
  ]
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
      }
    ]
  }
}
  • 201 The new version (never changed afterwards).
  • 401 error envelope
  • 403 error envelope
  • 409 error envelope
  • 422 validation_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…
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/schemas/{schema}Beta

One layer schema version with its measures (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
schemapathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/schemas/{schema}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
      }
    ]
  }
}
  • 200 The version.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/twins/{twin}/measures
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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": []
    }
  ]
}
  • 200 Measures, addressed as <layer>.<measure>.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/twins/{twin}/state
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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)."
}
  • 200 Measures without a value are absent (no default, no zero).
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
PATCH /v1/twins/{twin}/state
{
  "values": {
    "study.phase": "follow_up",
    "study.sessions_done": 4
  },
  "watch": {
    "study.phase": 1
  }
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Committed, with the result of each operation in order.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 413 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
Example requestillustrative · synthetic
GET /v1/twins/{twin}/state/{measure}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
ETag: "1"
{
  "measure": "study.phase",
  "has_value": true,
  "value": "baseline",
  "version": 1,
  "updated_at": "2026-11-19T09:00:00Z",
  "updated_by": "starco_dk_45a64a58"
}
  • 200 has_value false and value null when it has none (version 0 if it never had one).
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
If-MatchheaderstringnoThe ETag of a read; same as if_version.
Example requestillustrative · synthetic
PUT /v1/twins/{twin}/state/{measure}
{
  "value": "follow_up",
  "if_version": 1
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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"
}
  • 200 The new value and version (also as ETag), and the transaction id.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 version_conflict: current_version and has_value tell what is there now; nothing was changed.
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
if_versionqueryintegerno
If-MatchheaderstringnoStrong ETag of a read; the same as if_version (both must agree).
Example requestillustrative · synthetic
DELETE /v1/twins/{twin}/state/{measure}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
ETag: "2"
{
  "op": "del",
  "measure": "study.phase",
  "deleted": true,
  "version": 2,
  "transaction_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6"
}
  • 200 The new value and version (also as ETag), and the transaction id.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
Example requestillustrative · synthetic
POST /v1/twins/{twin}/state/{measure}/incr
{
  "by": 1
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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"
}
  • 200 The new value and version (also as ETag), and the transaction id.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 measure_has_no_value (set one first: no value is never taken as 0) or version_conflict.
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
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
        }
      ]
    }
  ]
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Committed, with the result of each operation in order.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 watch_failed (conflicts) or version_conflict (op_index): nothing was applied.
  • 413 error envelope
  • 422 An operation was refused (op_index and reason): nothing was applied.
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
after_versionqueryintegerno
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/twins/{twin}/history/{measure}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
}
  • 200 The last 1000 changes of each measure are kept.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
Example requestillustrative · synthetic
POST /v1/twins/{twin}/cmd
{
  "cmd": "SET",
  "args": [
    "study.phase",
    "follow_up",
    "IFVERSION",
    1
  ]
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "cmd": "SET",
  "result": {
    "op": "set",
    "measure": "study.phase",
    "value": "follow_up",
    "version": 2,
    "updated_at": "2026-11-19T09:00:00Z"
  }
}
  • 200 {cmd, result}
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
fromquerystring · date-timeno
toquerystring · date-timeno
bucketquerystring (1m, 5m, 15m, 1h, 6h, 1d, 7d)no
aggquerystring (avg, min, max, sum, count, first, last)no
limitqueryintegerno
fillquerystring (null)noWith bucket, from and to: list empty buckets too, with v null and n 0.
Example requestillustrative · synthetic
GET /v1/twins/{twin}/series/{measure}?from=2026-11-14T00:00:00Z&to=2026-11-19T00:00:00Z&bucket=1d&agg=avg&fill=null
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Points [{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.
  • 401 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
Example requestillustrative · synthetic
POST /v1/twins/{twin}/series/{measure}
{
  "points": [
    {
      "t": "2026-11-17T07:00:00Z",
      "v": 7.4
    }
  ]
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "twin_id": "141ab376-0216-47aa-991d-043bb545bbd4",
  "measure": "wellness.sleep_hours",
  "batch_id": "c7bfd54c-ab6e-47c0-bd90-e5bfb4466db6",
  "accepted": 1,
  "rejected": []
}
  • 200 Accepted and refused points (index, reason); the same reasons as POST /observations.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 413 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
declared_changequerynumberyesThe 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_daysqueryintegernoDays of the window.
toquerystring · datenoLast UTC day of the window (default: today).
Example requestillustrative · synthetic
GET /v1/twins/{twin}/scenarios/{measure}?declared_change=0.5
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
}
  • 200 The scenario, or baseline and scenario null with reason not_enough_days.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
twinpathstring · uuidyes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
modelquerystring (linear, quadratic, cubic, exponential, logarithmic, power, all)yesThe model to fit, or all for the six side by side in that fixed order.
xquerystringnoPredictor: one numeric measure of the same twin, or up to three separated by commas with model=linear. Left out: time.
window_daysqueryintegernoDays of the window.
toquerystring · datenoLast UTC day of the window (default: today).
horizon_daysqueryintegernoFuture days to estimate, at most half the window. Only with time as the predictor.
atquerystringnoOnly with x: up to 10 points to estimate at, separated by semicolons; a point is one plain decimal number per predictor, separated by commas.
Example requestillustrative · synthetic
GET /v1/twins/{twin}/fits/{measure}?model=all
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
}
  • 200 The fits, or points and fits null with reason not_enough_days.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
measurepathstringyes<layer>.<measure>, e.g. wellness.steps or study.phase.
window_daysqueryintegernoDays of the window.
toquerystring · datenoLast UTC day of the window (default: today).
binsqueryintegernoBins of the histogram.
originquerystring (api, synthetic_cohort)noOnly the twins with this origin (as GET /twins shows it). Left out: every twin of the project.
Example requestillustrative · synthetic
GET /v1/cohort/{measure}?bins=4
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
}
  • 200 The summary; distribution and histogram null with reason no_twin_with_a_value when no twin has a mean.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
afterqueryintegernoThe seq of the last event received (0 to start); then next_after.
waitqueryintegernoSeconds to wait for an event when there is none yet.
typesquerystringnoComma-separated event types.
twin_idquerystring · uuidno
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/events?after=0&limit=3
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
}
  • 200 Events in commit order; a cursor never skips one. Kept 30 days (oldest_seq).
  • 401 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/webhooksBeta

Webhooks of the project (scope read)

Auth: Project key (starco_dk_…) with the read scope

Example requestillustrative · synthetic
GET /v1/webhooks
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
    }
  ]
}
  • 200 Webhooks, active and disabled.
  • 401 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

Example requestillustrative · synthetic
POST /v1/webhooks
{
  "url": "https://hooks.example.test/twin",
  "event_types": [
    "state.changed",
    "series.appended"
  ]
}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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>\"))."
}
  • 201 The webhook and its secret (shown only now).
  • 401 error envelope
  • 403 error envelope
  • 409 error envelope
  • 422 url_not_https, url_port_not_accepted, url_host_is_an_address, url_host_local, url_host_not_resolvable, url_resolves_to_a_private_address…
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/webhooks/{webhook}Beta

One webhook of the project, without its secret (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
webhookpathstring · uuidyes
Example requestillustrative · synthetic
GET /v1/webhooks/{webhook}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
  }
}
  • 200 The webhook.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

DELETE/v1/webhooks/{webhook}Beta

Disable a webhook and cancel its pending deliveries (scope write)

Auth: Project key (starco_dk_…) with the write scope

parameterintyperequirednotes
webhookpathstring · uuidyes
Example requestillustrative · synthetic
DELETE /v1/webhooks/{webhook}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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
  }
}
  • 200 The webhook, disabled.
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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

parameterintyperequirednotes
webhookpathstring · uuidyes
Example requestillustrative · synthetic
POST /v1/webhooks/{webhook}/secret/rotate
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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."
}
  • 200 The webhook and its new secret (shown only now).
  • 401 error envelope
  • 403 error envelope
  • 404 error envelope
  • 409 error envelope
  • 422 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/webhooks/{webhook}/deliveriesBeta

Delivery log of a webhook, newest first (scope read)

Auth: Project key (starco_dk_…) with the read scope

parameterintyperequirednotes
webhookpathstring · uuidyes
limitqueryintegerno
Example requestillustrative · synthetic
GET /v1/webhooks/{webhook}/deliveries
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
{
  "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"
    }
  ]
}
  • 200 Status, attempts, last HTTP status and stable error code; never the response body.
  • 401 error envelope
  • 404 error envelope
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

parameterintyperequirednotes
projectpathstring · uuidyes
Example requestillustrative · synthetic
POST /v1/projects/{project}/mcp-tokens
{}
Example response 201 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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."
}
  • 201 One-time secret; Cache-Control no-store
  • 401 Invalid console token
  • 403 Requires an owned synthetic project or Origin not allowed
  • 404 Project not found or API disabled
  • 409 Active credential quota reached
  • 422 Parameters are not configurable
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

GET/v1/mcpBeta

MCP SSE is not offered

Auth: Project MCP token (starco_dm_…, read-only, one hour, from POST /projects/{project}/mcp-tokens)

Example requestillustrative · synthetic
GET /v1/mcp
Example response 405 · from the simulated sandbox, arrays shortenedillustrative · synthetic
Allow: POST
Cache-Control: private, no-store
(empty body)
  • 400 query_not_allowed: query strings are refused
  • 401 Invalid MCP token
  • 404 API disabled
  • 405 Stateless JSON POST transport only; Allow POST
  • 429 too_many_attempts: rate limit of the bucket reached. Wait Retry-After seconds.
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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)

Example requestillustrative · synthetic
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
    }
  }
}
Example response 200 · from the simulated sandbox, arrays shortenedillustrative · synthetic
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
  }
}
  • 200 JSON-RPC result or error; application/json
  • 202 Accepted notification; empty body
  • 400 Malformed JSON-RPC or unsupported protocol
  • 401 Invalid, expired or revoked MCP token
  • 403 Origin not allowlisted
  • 404 API disabled
  • 406 Required response types not accepted
  • 413 Request exceeds64KiB
  • 415 Requires application/json
  • 429 Project rate limit
Try it (simulated)
Runs in your browser against the simulated sandbox; nothing is sent anywhere.

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.

codestatusmeaning
conflict409The requested Cloud link conflicts with the current state. Refresh both sides and review before retrying; no intent is consumed by a refused confirmation.
forbidden403The 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_failed422Some fields or parameters are not valid; errors says which.
unknown_field422A field the operation does not accept; field names it.
identifier_field_not_accepted422A field named like a real identifier (email, phone, ssn…); synthetic data only.
identifier_not_accepted422A text that looks like a real identifier; looks_like says what kind.
terms_version_mismatch422accept_terms_version is not the version of GET /terms; expected has it.
link_invalid422The verification or recovery link or token is unknown, already used or expired.
invalid_credentials401Wrong address or password, or the address is not verified yet.
too_many_sign_in_attempts429Too many failed sign-ins for this address, whatever the client address; wait Retry-After seconds.
auth_rate_limited429Too many failed authentications (unknown, revoked or expired key or console token) from this address or for this key; wait Retry-After seconds.
email_not_verified403The address of the account must be verified before subscribing.
billing_not_configured503Billing is on but a setting is missing on the server; missing names it. Nothing is charged.
billing_provider_error502Stripe did not accept or did not answer the request; nothing changed.
billing_cancel_failed502The subscription or an open checkout could not be closed in Stripe, so the account was not erased.
plan_unknown422No such paid plan or period; plans and periods list them.
plan_not_available409The price of the plan cannot be read from Stripe or does not fit; reason says which.
already_subscribed409The account has a subscription; change or cancel it in the portal.
no_billing_customer404The account has never subscribed: there is no portal for it.
no_subscription404The account has no subscription to cancel.
plan_limit_read_only403The project or twin is over the limits of the account's plan: readable, exportable and erasable, not writable; over and limit say why.
invalid_signature400Stripe webhook: the Stripe-Signature header does not verify the payload or is too old.
malformed_event400Stripe webhook: the payload is not a Stripe event.
password_required403Erasing the account or a project needs the account password.
invalid_token401Missing or unknown console token.
token_revoked401The console token was revoked.
token_expired401The console token expired; sign in again.
invalid_key401Missing or unknown project key.
key_revoked401The project key was revoked.
key_expired401The project key expired.
insufficient_scope403The key lacks the scope the operation (or the command) needs; needs names it.
not_found404No such resource in this account or project (another project's id is also not_found).
project_limit_reached409The account has the maximum number of projects.
project_has_study409A Studio study is built on the project; it is not erased from the Dev API.
key_limit_reached409The project has the maximum number of active keys and MCP tokens.
twin_limit_reached409The project has the maximum number of twins.
schema_limit_reached409The project has the maximum number of layer schema versions.
webhook_limit_reached409The project has the maximum number of active webhooks.
webhook_disabled409The webhook is disabled: it is never called, so its secret cannot be rotated.
unknown_template422Unknown template; expected lists them.
template_missing422Built-in layers need a template.
unknown_schema422No such layer schema in this project.
schema_layer_duplicate422Two schemas of the same layer for one twin.
layer_not_enabled404The twin does not have this layer.
unknown_kind422Unknown observation kind.
batch_too_large413Too many observations or points in one request; limit says how many.
unknown_measure404The twin has no such measure (GET /twins/{twin}/measures). Cohort summaries (experimental): no twin of the selection has it.
measure_is_derived422A derived measure is computed, never written.
measure_has_no_series422Only number and integer measures have a series.
measure_has_no_value409incr on a measure without a value.
measure_not_numeric422incr on a measure that is not a number or an integer.
increment_not_a_number422"by" is not a number.
increment_not_an_integer422"by" is not a whole number for an integer measure.
value_missing422PUT without "value".
values_missing422PATCH /state without "values".
value_not_a_number422The value is not a number.
value_not_an_integer422The value is not a whole number.
value_not_a_boolean422The value is not true or false.
value_not_a_string422The value is not a string.
value_not_in_enum422The value is not one of the measure's values.
value_not_json_object_or_array422A json measure takes an object or an array.
value_out_of_accepted_bounds422Outside the accepted bounds of the measure (what is recordable, never a reference range).
value_too_long422A string longer than allowed.
value_too_large422A json value larger than allowed once encoded.
value_too_deep422A json value nested deeper than allowed.
version_invalid422if_version or If-Match is not a strong version (e.g. "3"), or the two disagree.
version_conflict409The measure is not at the version you sent; current_version has it.
watch_invalid422"watch" is not an object {"<layer>.<measure>": version}.
watch_failed409A watched measure changed; nothing was written.
ops_missing422A transaction without "ops".
op_invalid422An operation that is not an object {op, measure, …}.
op_unknown422An operation other than set, incr, del or append.
too_many_operations413More operations or measures than one transaction takes.
points_missing422An append without points.
points_rejected422Every point of an append was rejected; the reasons come per point.
timestamp_invalid422A time that is not RFC 3339 or a date.
range_invalid422from is not before to.
range_too_many_buckets422The range asks for more buckets than one answer gives.
bucket_invalid422Unknown bucket; expected lists them.
agg_invalid422Unknown aggregation; expected lists them.
agg_needs_bucket422An aggregation needs a bucket.
fill_invalid422fill=null needs a bucket, from and to.
limit_invalid422limit out of its range.
declared_change_invalid422Scenarios (experimental): declared_change is missing or is not a plain decimal number.
window_days_invalid422Scenarios, fits and cohort summaries (experimental): window_days is not a whole number of days in its range; expected has the range.
model_invalid422Fits (experimental): model is missing or is not one of the models; expected lists them.
predictors_invalid422Fits (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_invalid422Fits (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_invalid422Fits (experimental): at was sent without x, or is not up to 10 points of one plain decimal number per predictor.
bins_invalid422Cohort summaries (experimental): bins is not a whole number from 1 to 20; expected has the range.
origin_invalid422Cohort summaries (experimental): origin is not one of the origins of a twin; expected lists them.
cohort_too_large422Cohort summaries (experimental): the selection has more than 200 twins; limit has the number. Nothing is computed over part of a selection.
command_unknown422Unknown command (POST /twins/{twin}/cmd).
command_args_invalid422Wrong arguments for the command.
cursor_invalid422"after" is not the seq of an event.
wait_invalid422"wait" out of its range of seconds.
types_invalid422Unknown event type.
twin_id_invalid422twin_id is not a twin id.
event_types_invalid422event_types is not a list of event types.
url_invalid422The webhook URL is missing or not a URL.
url_not_https422Webhooks only go to https URLs.
url_port_not_accepted422Webhooks only go to port 443.
url_credentials_not_accepted422A webhook URL with user or password.
url_fragment_not_accepted422A webhook URL with a #fragment.
url_host_invalid422The host of the webhook URL is not valid.
url_host_is_an_address422IP literals are not accepted; use a host name.
url_host_local422Local host names are not accepted.
url_host_not_resolvable422The host name does not resolve.
url_resolves_to_a_private_address422Some address of the host is not public.
synthetic_project_required403MCP tokens only for a synthetic project.
invalid_mcp_token401Missing, unknown, expired or revoked MCP token.
origin_not_allowed403MCP: an Origin that is not allowlisted.
query_not_allowed400MCP: query strings are refused.
request_too_large413MCP: the request is larger than 64 KiB.
mcp_auth_rate_limited429MCP: too many attempts with unknown tokens.
too_many_attempts429Rate limit of the bucket reached; wait Retry-After seconds.
service_unavailable503GET /status: the database did not reply.