castomAPI
Odbierz klucz

Automatyzacja i własne · 22 operacji

Konto i portfel — API

Klucze, saldo i księga portfela, analityka, afiliacja, health.

Narzędzia Klucz API

Operacje

MetodaŚcieżkaOpis
GET/affiliates/commissionsGet commission history and payouts for the user
GET/affiliates/meFetch or initialize the authenticated user affiliate referral profile
GET/affiliates/referralsGet list of users referred by the current user
GET/analytics/endpointsGet request volume and token costs broken down by endpoint
GET/analytics/logsGet granular real-time execution logs for the authenticated user
GET/analytics/summaryGet aggregated API usage statistics for the current user over a given timeframe
GET/auth/keysRetrieve all active and revoked API keys for the current user
POST/auth/keysGenerate a new API key for external gateway requests
POST/auth/keys/castomoMint a castomAPI key for a caller already signed in to castomo (castomapi-auth)
DELETE/auth/keys/{id}Revoke an active API key immediately
POST/auth/loginAuthenticate with email and password to obtain a JWT token
POST/auth/registerRegister a new user account and initialize a wallet
POST/auth/session/castomoExchange a castomo access token for a short-lived castomAPI session (JWT, 15 minutes) on the castomAPI account matching the verified castomo email
GET/healthDeep health check verifying connectivity to PostgreSQL, Redis, and ClickHouse
GET/health/livenessLiveness check indicating if the Node.js process is running
GET/helloPublic Hello World endpoint (Free & unauthenticated, recorded in telemetry)
GET/productsList active purchasable token bundles/subscriptions
POST/stripe/checkoutCreate a Stripe Checkout session for purchasing a token bundle or subscription
POST/stripe/webhookStripe webhook receiver for handling asynchronous payment completions
POST/v1/feedbackSubmit a bug report or feedback from a first-party client (free, no tokens)
GET/wallet/balanceGet current wallet token balance for authenticated user
GET/wallet/ledgerGet paginated audit ledger of wallet transactions (credits & debits)

Koszt i limity

Ta operacja kosztuje rozliczany. Nieudane wywołanie nigdy nie jest rozliczane. Każde konto dostaje 1000 darmowych tokenów miesięcznie; opłacone saldo nie wygasa.

Limity żądań na minutę

Bez klucza 10 · Free 60 · Pro 300 · Enterprise 1200 ·

Automatyzacja i własne