Skip to content

ReferenceREST API

Docs

Reference

REST API

Every tool is a POST at the API root, and the wallet, usage and keys have their own endpoints. There is no version prefix.

Basics#

Base URL
https://api.trysnow.ai
Authentication
Authorization: Bearer <API key or OAuth access token>
Format
JSON in, JSON out. Errors are application/problem+json.
OpenAPI
https://api.trysnow.ai/openapi.json
Your wallet
curl https://api.trysnow.ai/wallet \
  -H "Authorization: Bearer $SNOWAI_API_KEY"

REST and API keys shows how to make a key.

Endpoints#

Signed-in owner means your dashboard session. An API key or an OAuth token cannot change money settings or keys.

EndpointWhoWhat it does
GET /toolsAnyoneThe catalog: every tool with its toolset, price, cache time, deadline and input schema.
POST /tools/<name>Key or tokenRuns a tool. The arguments are the JSON body.
GET /meKey or tokenWho is calling, the organization and the wallet.
GET /walletKey or tokenBalance, holds, free and plan credits, the plan, this month's spend and the caps.
PATCH /walletSigned-in adminSets spend_cap_credits and approval_threshold_credits.
GET /wallet/entriesSigned-in adminThe wallet's journal, newest first. Takes limit, type, and page (the answer then has total) or before.
POST /wallet/topupsSigned-in adminStarts a Stripe Checkout for credits and answers its url, for a person to pay. A key or token with no person behind it is refused.
POST /wallet/planSigned-in adminStarts the monthly plan at credits, one of the plan sizes, and answers a Stripe Checkout url. With a plan already, a bigger size takes effect now and a smaller one at the next renewal; status says which.
DELETE /wallet/planSigned-in adminCancels the plan at the end of the month already paid for.
POST /wallet/billing-portalSigned-in adminAnswers the url of Stripe's page for the card, invoices and tax details.
GET /brandsKey or tokenThe organization's brands, each with its domain, market, language, profile and Google Search Console and Analytics properties, and which one tools use by default.
POST /brandsSigned-in adminAdds a brand from its website, with an optional name.
PATCH /brands/{id}Signed-in adminChanges a brand's name, country, language or profile: description, sector, audience, aliases, competitors, guidelines, tone, cta and images. Profile fields left out keep their value; an empty string or list clears one.
GET /brands/{id}/memorySigned-in personThe brand's memory documents with their status, and the organization's memory storage.
POST /brands/{id}/memory/text, /url and /fileSigned-in adminAdds a note (name, text), a page (url) or a file (filename, base64 data, up to 20 MB) to the brand's memory.
DELETE /brands/{id}/memory/{doc}Signed-in adminDeletes a document from the brand's memory.
DELETE /brands/{id}Signed-in adminDeletes a brand with its Google connection and memory. Its articles stay.
GET /usageKey or tokenCalls and spend per day, status and tool. Takes days, 1 to 366, or from and to as YYYY-MM-DD.
GET /callsKey or tokenCalls with what each cost. Takes limit, page (the answer then has total) or before, sort (when or cost), dir, tool, status, from, to and all.
GET /api-keysSigned-in personThe organization's API keys with this month's calls and spend.
POST /api-keysSigned-in adminCreates a key from name and an optional cap_credits. The key is in the answer once.
DELETE /api-keys/<id>Signed-in adminRevokes a key.
GET /oauth-appsSigned-in personThe apps you connected.
DELETE /oauth-apps/<clientId>Signed-in personDisconnects an app: its refresh tokens stop working.
GET /workspace/toolsetsKey or tokenThe toolsets agents may run, every toolset, and the MCP URL.
PUT /workspace/toolsetsSigned-in adminChooses the toolsets agents may run. null allows every toolset.
GET /workspacesSigned-in personYour organizations, your role in each, and which is open.
POST /workspaces/activeSigned-in personOpens the organization in workspace_id for this session.
PATCH /workspaceSigned-in adminRenames the open organization from name.
GET /teamSigned-in personThe members and pending invitations.
POST /team/invitationsSigned-in adminInvites email as admin or member. The link works for 7 days.
DELETE /team/invitations/<id>Signed-in adminCancels an invitation.
PATCH /team/members/<id>Signed-in adminChanges a member's role.
DELETE /team/members/<id>Signed-in admin, or yourselfRemoves a member, or leaves. Their API keys stop working.
POST /invitations/<id>/acceptSigned-in personJoins the organization. /decline turns it down.
GET /articlesKey or tokenArticles written for this organization, newest first.
GET /articles/<id>Key or tokenOne article: its progress while writing, its Markdown once done.
GET /openapi.jsonAnyoneThe OpenAPI 3.1 document for all of the above.

Tools#

GET /tools answers usd_per_credit, families, toolsets and tools. Each tool has name, toolset, source, title, description, example, price, cache_ttl_seconds, deadline_seconds, annotations and input_schema.

POST /tools/<name> answers 200 with the tool's fields and the billing fields, or 202 while the source is still working. Anything else is a problem object. A streamed call (Accept: text/event-stream or application/x-ndjson) always answers 200: a failure, a 402 included, arrives as its last error event. Tools has the shape, and each toolset page has a call to copy.

Headers#

HeaderDirectionMeaning
AuthorizationRequestBearer and an API key or an OAuth access token.
Idempotency-KeyRequestEight to 128 characters. A retry returns the first answer instead of charging twice.
AcceptRequesttext/event-stream or application/x-ndjson streams progress from tools that wait.
Snow-Call-IdResponseThe call's id.
Snow-Cost-Credits, Snow-Cost-USDResponseWhat the call cost.
Snow-Balance-CreditsResponseWhat the wallet holds afterwards.
Snow-CachedResponsetrue when the answer came from the cache.
WWW-AuthenticateResponseOn 401: Bearer and the URL of the protected resource metadata.
Retry-AfterResponseOn 429: seconds to wait.

Limits#

240 requests and 120 tool calls a minute per organization, across REST and MCP, with 10 calls running at once. Past a limit the answer is 429 rate-limited. The API answers browsers only from the SnowAI site, so call it from a server. Errors and limits has the rest.