Documentation

API reference

Pro REST endpoints under /v1/ and Gem Finder scan feeds.

Authentication

Issue a key from Settings under the API tab. The raw key is shown exactly once; copy it before closing the dialog. You can have up to 5 active keys per account, and revoking a key takes effect immediately.

Authorization: Bearer ss_live_<your-key>

Free-tier accounts can issue keys but cannot call the endpoints under /api/v1/. Upgrade to Pro.

Rate limits

Under /api/v1/, keys allow 100 requests per minute in a sliding window. Exceeding the limit returns 429 RATE_LIMITED with Retry-After, X-RateLimit-Limit, and X-RateLimit-Remaining headers.

Analysis calls also share the account's UTC-day product budget with the web and iOS apps. Pro starts at 100 analyses per day, and an active referral bonus adds 7. Exhausting that separate budget returns 429 LIMIT_REACHED; GET /api/v1/usage reads the current effective limit without consuming it.

Response envelopes

Successful /api/v1/ responses use this envelope.

{ "data": <payload>, "meta": { ... } }

Errors return:

{ "error": { "code": "STRING", "message": "human-readable" } }

Common error codes:

UNAUTHORIZED
401: missing or malformed bearer
INVALID_KEY
401: key not found or revoked
FORBIDDEN
403: non-Pro tier
PRO_REQUIRED
403: the requested feature requires an active Pro entitlement
NOT_FOUND
404: resource does not exist or is not yours
VALIDATION_ERROR
400: bad request body
RATE_LIMITED
429: over the per-key limit
LIMIT_REACHED
403 resource cap / 429 analysis budget: enforced limit exhausted
STABLECOIN
400: analysis attempted on a pegged asset
DB_ERROR
500: backend persistence failure

Endpoints

Analysis Pro

  • POST/api/v1/analysisRun a new analysis. Supported types: exit_plan, health_check, market_brief. Returns 201 with the persisted analysis, also retrievable via the GET route.
  • GET/api/v1/analysis/:idFetch a previously stored analysis. Scoped to your own analyses.
  • GET/api/v1/usageRead the non-consuming user-level UTC-day analysis budget, including committed usage, remaining capacity, and reset time.

Positions Pro

  • GET/api/v1/positionsList your positions ordered newest first.
  • POST/api/v1/positionsCreate a position.
  • PATCH/api/v1/positions/:idUpdate entry_price, quantity, entry_date, or notes. Send only the fields you want to change.
  • DELETE/api/v1/positions/:idHard delete. Returns 204 on success.

Alerts Pro

  • GET/api/v1/alertsList your price alerts, active and historical.
  • POST/api/v1/alertsCreate an active price alert.
  • DELETE/api/v1/alerts/:idSoft cancel. The alert row is kept (status "cancelled") so triggered history stays intact.

Portfolio and market Pro

  • GET/api/v1/portfolioAggregate snapshot. Returns per-holding cost basis, market value, and P&L, plus a portfolio-wide summary. The priceCoverage field reports how many of your symbols had a live price (0 to 1); when below 1, totals are null rather than misleadingly partial.
  • GET/api/v1/market/snapshot/:symbolThe same data the dashboard uses: live price, 7, 30, 90, and 365 day price and volume history, 30-day OHLCV candles, global market metrics, the fear and greed index, and DefiLlama protocol fundamentals. Cached server-side; safe to poll.

Gem Finder scans

GET /api/gems/latest is public and returns the most recent successful scan as { scan, disclaimer }. The scan is null when none is available. The preview includes the top coin's thesis, summary, and risk notes.

GET /api/gems/full uses the same envelope and includes every coin's thesis, risk notes, signals, and scan price. Send a SellSignal session access token as Authorization: Bearer <token>. All signed-in tiers can use this endpoint.

GET /api/gems/history?limit=25 is public and returns { scans, next_cursor, disclaimer } in preview format, newest first. Set limit from 1 to 100. Pass next_cursor back as cursoruntil it is null. Pages can be short when stored scan data is invalid.

Use scan_id to deduplicate scans and scanned_at for the UTC scan time. Each coin has coingecko_id, which can be null for older scans.

coinbase_product_ids lists active spot pairs matched by ticker and asset name, with USDC first. coinbase_listed is true when there is a match. Read coinbase_listing_status for listed, unlisted, or unknown. Unknown means the asset or catalog could not be verified. coinbase_checked_at is the time of the catalog snapshot or null if unavailable. History uses the same current catalog. Check Coinbase for current order eligibility.

Each Gem Finder endpoint allows 60 requests per minute per IP, excluding cache hits. The full endpoint also limits each signed-in user to 60 requests per minute.

Example requests

Run an analysis

curl -X POST https://www.sellsignal.app/api/v1/analysis \
  -H "Authorization: Bearer $SS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "exit_plan",
    "symbol": "BTC",
    "position": { "entryPrice": 62000, "quantity": 1.0 }
  }'

Create a position

curl -X POST https://www.sellsignal.app/api/v1/positions \
  -H "Authorization: Bearer $SS_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "symbol": "ETH", "entry_price": 3200, "quantity": 2.5 }'

Create an alert

curl -X POST https://www.sellsignal.app/api/v1/alerts \
  -H "Authorization: Bearer $SS_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "symbol": "SOL", "target_price": 250, "direction": "above" }'

Quickstart: JavaScript

const SS_KEY = process.env.SS_KEY;

const res = await fetch("https://www.sellsignal.app/api/v1/portfolio", {
  headers: { Authorization: `Bearer ${SS_KEY}` },
});
if (!res.ok) {
  const { error } = await res.json();
  throw new Error(`${error.code}: ${error.message}`);
}
const { data } = await res.json();
console.log(data.summary);

Quickstart: Python

import os, requests

SS_KEY = os.environ["SS_KEY"]

r = requests.get(
    "https://www.sellsignal.app/api/v1/portfolio",
    headers={"Authorization": f"Bearer {SS_KEY}"},
)
r.raise_for_status()
print(r.json()["data"]["summary"])

Not in v1

  • Webhooks (will be its own version)
  • OpenAPI spec / SDK generation
  • Per-key scopes (read-only vs read-write)
  • Analysis types beyond exit_plan, health_check, and market_brief. Ask if you need comparison or scenario over the API.
API Reference | SellSignal