API documentation
Quickstart
From nothing to a first response in five minutes. You need API access enabled for your workspace (see Keys and access management) and an admin seat in the dashboard.
1. Create a key
In the dashboard, a workspace admin creates an API key and copies the full key at creation. It is shown once and cannot be retrieved later. Put it in an environment variable:
export STONEWAKE_API_KEY="swk_live_EXAMPLExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"The value above is a placeholder; use your own key.
2. Call the API
Send the key as a Bearer token in the Authorization header:
curl https://api.stonewake.ai/v1/portfolio \
-H "Authorization: Bearer $STONEWAKE_API_KEY"3. Parse the JSON
Every endpoint returns plain JSON, so any JSON tooling works:
curl -s https://api.stonewake.ai/v1/portfolio \
-H "Authorization: Bearer $STONEWAKE_API_KEY" | jq .A 401 here means the key was not accepted; the response does not say why, see Authentication. A 403 or 429 is explained under Errors and rate limits. The live endpoints are listed in the API reference.
For AI agents
Working through an agent instead of writing code? Paste this into its context:
Stonewake API
Base URL: https://api.stonewake.ai
Auth: send an API key on every request as "Authorization: Bearer <key>".
Keys start with swk_live_ and are read-only.
Endpoints: read-only GETs under /v1 (portfolio, entity risk, rubrics,
registry, search), listed at https://docs.stonewake.ai/v1.md
List endpoints page with limit/offset and answer
{items, limit, offset, total}.
Docs: https://docs.stonewake.ai
Docs index for machines: https://docs.stonewake.ai/llms.txt
Full docs as one file: https://docs.stonewake.ai/llms-full.txt
Every docs page is also plain markdown at its path plus ".md".
Errors: 4xx bodies are JSON with a stable error.code; 401 means the
credential was refused (no reason is given). Traffic refusals:
rate_limited, daily_quota_exceeded, quota_unavailable.
Respect Retry-After on 429 responses.An MCP endpoint for the API is planned and will be documented here when it ships.