Keys, quota, bundles.

Five base downloads a day per account, shared across all your keys, plus one more for every distinct game you donate. Detail reads are free and unlimited, only the download endpoint spends quota.

01

Authentication

Create a key at /dashboard/api. The plaintext is shown once, only a sha256 hash is stored, so a lost key cannot be recovered. Revoke it and mint a new one.

Send it as a bearer token or the x-api-key header. Missing, unknown, or revoked keys get 401 { error }.

curl -H "Authorization: Bearer shino_..." \
  https://shino.example.com/api/v1/usage

curl -H "x-api-key: shino_..." \
  https://shino.example.com/api/v1/usage
02

Quota: 5 base + 1 per game donated

Each account gets 5 base download requests per rolling 24 hours, shared across all keys on the account, minting extra keys does not add quota. Every distinct game you donate permanently adds 1 to the limit, whether it came from a dump zip or a redeemed Steam key. Donating a game you already donated refreshes its manifests but adds nothing. Each request's credit returns exactly 24h after that request, so there is no fixed reset time. Detail and usage reads are logged but never rejected.

  • Quota is checked before storage is touched, a rejected call spends nothing.
  • A download only counts after the bundle resolves, 404/502s are free.
  • Every v1 response carries X-RateLimit-Limit / Remaining / Reset.
  • The JSON quota.bonus field is the number of extra requests earned from donations.
  • Over quota returns 429 with Retry-After and a resetAt timestamp.
HTTP/1.1 429 Too Many Requests
Retry-After: 41233
X-RateLimit-Limit: 8
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1782345600

{
  "error": "Download quota exceeded - credits return 24h after each request",
  "limit": 8,
  "used": 8,
  "bonus": 3,
  "resetAt": "2026-10-19T10:00:00.000Z"
}
03

GET /api/v1/games/:appid

Game detail plus cache status, plus your current quota. Free, does not spend the rolling budget.

curl -H "Authorization: Bearer $KEY" \
  https://shino.example.com/api/v1/games/730

{
  "game": {
    "appid": 730,
    "name": "Counter-Strike 2",
    "headerImageUrl": "https://...",
    "shortDescription": "...",
    "genres": ["Action", "Free to Play"],
    "releaseDate": "21 Aug, 2012",
    "isFree": true,
    "reviews": { "score": 8, "label": "Very Positive", "...": "..." }
  },
  "cache": {
    "state": "fresh | stale | missing",
    "bytes": 123456,
    "fetchedAt": "2026-10-18T10:00:00.000Z",
    "refreshableAt": "2026-10-19T10:00:00.000Z",
    "versionId": "abc123...",
    "versions": [
      { "id": "cm3...", "versionId": "abc123...", "bytes": 123456, "fingerprint": "public:730=...", "fetchedAt": "2026-10-18T10:00:00.000Z", "isCurrent": true }
    ]
  },
  "quota": { "limit": 8, "used": 2, "remaining": 6, "bonus": 3, "resetAt": 1782345600000 }
}
04

GET /api/v1/games/:appid/download

Resolves (or builds) the manifest zip, then returns a presigned URL valid for 5 minutes. Spends 1 of your rolling downloads. Fetch the URL yourself, the API returns JSON, it does not redirect. Pass ?versionId=... to download a pinned older version instead of the current head; pinned downloads never trigger a rebuild.

curl -H "Authorization: Bearer $KEY" \
  https://shino.example.com/api/v1/games/730/download

curl -H "Authorization: Bearer $KEY" \
  "https://shino.example.com/api/v1/games/730/download?versionId=abc123..."

{
  "appid": 730,
  "download_url": "https://s3.example.com/bundles/730.zip?X-Amz-...",
  "expires_in": 300,
  "bytes": 123456,
  "versionId": "abc123...",
  "quota": { "limit": 8, "used": 3, "remaining": 5, "bonus": 3, "resetAt": 1782345600000 }
}

curl -o 730.zip "$DOWNLOAD_URL"

The presigned URL forces Content-Disposition: attachment with filename {appid}.zip.

05

GET /api/v1/games/:appid/versions

Version history for one bundle. Newest first, capped at MANIFEST_VERSIONS_RETAIN (default 10). A refresh whose upstream manifestinfo depot GIDs are unchanged creates no new row. Free, does not spend quota.

curl -H "Authorization: Bearer $KEY" \
  https://shino.example.com/api/v1/games/730/versions

{
  "appid": 730,
  "versions": [
    { "id": "cm3...", "versionId": "abc123...", "bytes": 123456, "fingerprint": "public:730=...", "fetchedAt": "2026-10-18T10:00:00.000Z", "isCurrent": true }
  ]
}
06

GET /api/v1/usage

Current quota for the calling key. Free.

curl -H "Authorization: Bearer $KEY" \
  https://shino.example.com/api/v1/usage

{
  "key_id": "cm3...",
  "prefix": "shino_Ab12...",
  "quota": { "limit": 8, "used": 3, "remaining": 5, "bonus": 3, "resetAt": 1782345600000 },
  "reset_at": "2026-10-19T10:00:00.000Z"
}
07

Donation uploads

Upload a zip for verification in three calls. The Shino CLI and TUI authenticate with the same bearer token or x-api-key header as above. The website uses a signed-in browser session. Uploads do not spend download quota. Starting an upload is limited to 5 per hour per account.

Zips are capped at 2 GiB and sent in 8 MiB parts, 16 MiB maximum per part, 10000 parts at most.

# 1. start, size in bytes
POST /api/donations/uploads
{ "fileName": "shino-donation.zip", "size": 734003200 }

201 { "id": "cm...", "uploadId": "2~...", "partSize": 8388608 }
# 2. one call per part, raw bytes in the body
POST /api/donations/uploads/:id/part?uploadId=...&partNumber=1
Content-Type: application/octet-stream
<part bytes>

200 { "etag": "abc..." }
# 3. complete with every etag, in part order
POST /api/donations/uploads/:id/complete
{ "uploadId": "...", "parts": [ { "partNumber": 1, "etag": "abc..." } ] }

201 { "id": "cm..." }

Completion returns immediately, verification runs in the background, and the donation appears under /donate. A part call answers 409 once the donation leaves the pending state. Shino runs this flow with -upload or the u key on the done screen.

Every new game in a verified donation adds 1 to your rolling 24h download limit. Games you have already donated are stored and refreshed but add no quota. Redeemed Steam keys count per appid.

08

Errors

401  { "error": "Missing API key. Send Authorization: Bearer <key> or x-api-key." }
401  { "error": "Invalid or revoked API key." }
400  { "error": "Invalid appid" }
404  { "error": "Game not found" } / { "error": "Manifest bundle unavailable" } / { "error": "Manifest version unavailable" }
429  { "error": "Download quota exceeded - credits return 24h after each request", "limit": 8, "used": 8, "bonus": 3, "resetAt": "..." }
502  { "error": "Upstream unavailable" }

429s include Retry-After (seconds until the next credit returns) and the same X-RateLimit-* headers as success responses. Back off until resetAt.

09

Key hygiene

  • One key per script or device, the dashboard shows per-key usage against the shared account quota.
  • Max 10 active keys per Discord account.
  • Treat keys like passwords: env vars or a secret manager, never client-side JS or git.
  • Revoking is immediate and permanent. Usage history is kept.