CrowNest
API reference

Projects and usage

List the projects in your organization and read compute usage, credits, and quotas.

Projects group your sandboxes, artifacts, and previews inside an organization, and the usage endpoint reports how much compute your organization has consumed in the current billing period.

List projects

GET /v1/projects

Returns a paginated list of the projects your API key can access, newest first. Standard limit and cursor parameters apply.

FieldTypeDescription
idstringProject ID, prefixed prj_
orgIdstringOwning organization, prefixed org_
namestringProject name
createdAtstringISO 8601 creation timestamp
Terminal
curl https://api.crownest.dev/v1/projects \
  -H "Authorization: Bearer $CROWNEST_API_KEY"
{
  "data": [
    {
      "id": "prj_abc123",
      "orgId": "org_abc123",
      "name": "default",
      "createdAt": "2026-06-11T13:00:00.000Z"
    }
  ],
  "hasMore": false
}

Pass a project's id as projectId when you create a sandbox or filter a sandbox list.

Get usage

GET /v1/usage — requires scope usage:read.

Returns compute usage, credit balance, and quota information for the current billing period.

Terminal
curl https://api.crownest.dev/v1/usage \
  -H "Authorization: Bearer $CROWNEST_API_KEY"
{
  "period": {
    "start": "2026-06-01T00:00:00.000Z",
    "end": "2026-07-01T00:00:00.000Z",
    "resetAt": "2026-07-01T00:00:00.000Z"
  },
  "pricingVersion": "2026-01",
  "computeUnitSecondsPerCredit": 3600,
  "computeUnitSeconds": { "used": 18250 },
  "credits": { "used": 5.07, "remaining": 94.93 },
  "quotas": {}
}

Response fields:

FieldTypeDescription
period.startstringISO 8601 start of the current billing period
period.endstringISO 8601 end of the current billing period
period.resetAtstringISO 8601 time usage counters reset
pricingVersionstringPricing scheme the figures are computed under
computeUnitSecondsPerCreditintegerHow many compute unit seconds one credit buys
computeUnitSeconds.usednumberCompute unit seconds consumed this period
credits.usednumberCredits consumed this period
credits.remainingnumberCredits left this period, when your plan has a cap
quotasobjectYour plan's quotas, such as concurrency and TTL ceilings

[!NOTE] Quota values are configurable beta defaults. They depend on your plan and may change.

Next steps

  • Watch for quota_exceeded responses in Errors.
  • Restrict keys to specific projects in Authentication.

On this page