{"components":{"schemas":{"Account":{"properties":{"created_at":{"format":"date-time","type":"string"},"external_user_id":{"description":"The auth-service user who owns the account; null for accounts made by an admin.","type":["string","null"]},"id":{"type":"string"},"max_wallets":{"description":"Distinct wallets the account may watch across its watchlists (default 100).","format":"int32","type":"integer"},"name":{"type":"string"},"notification_allowance":{"format":"int32","type":"integer"},"paid_through":{"description":"End of the paid period; null until the first payment.","format":"date-time","type":["string","null"]},"status":{"description":"`pending`, `active` or `suspended`.","type":"string"},"suspended_reason":{"description":"Why a `suspended` account is suspended: `admin` or `lapsed`; otherwise null.","type":["string","null"]}},"required":["id","name","status","notification_allowance","max_wallets","created_at"],"type":"object"},"AccountList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Account"},"type":"array"}},"required":["data"],"type":"object"},"Action":{"oneOf":[{"properties":{"base_amount":{"$ref":"#/components/schemas/Amount"},"base_mint":{"type":"string"},"fees":{"items":{"$ref":"#/components/schemas/Fee"},"type":"array"},"invoked_via":{"items":{"type":"string"},"type":"array"},"other_movements":{"items":{"$ref":"#/components/schemas/Movement"},"type":"array"},"price_excl_fees":{"type":"string"},"program":{"type":"string"},"program_name":{"type":["string","null"]},"quote_amount":{"$ref":"#/components/schemas/Amount"},"quote_mint":{"type":"string"},"sol_value":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"type":{"enum":["buy"],"type":"string"}},"required":["base_amount","base_mint","fees","invoked_via","other_movements","price_excl_fees","program","quote_amount","quote_mint","type"],"type":"object"},{"properties":{"base_amount":{"$ref":"#/components/schemas/Amount"},"base_mint":{"type":"string"},"fees":{"items":{"$ref":"#/components/schemas/Fee"},"type":"array"},"invoked_via":{"items":{"type":"string"},"type":"array"},"other_movements":{"items":{"$ref":"#/components/schemas/Movement"},"type":"array"},"price_excl_fees":{"type":"string"},"program":{"type":"string"},"program_name":{"type":["string","null"]},"quote_amount":{"$ref":"#/components/schemas/Amount"},"quote_mint":{"type":"string"},"sol_value":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"type":{"enum":["sell"],"type":"string"}},"required":["base_amount","base_mint","fees","invoked_via","other_movements","price_excl_fees","program","quote_amount","quote_mint","type"],"type":"object"},{"properties":{"amount":{"$ref":"#/components/schemas/Amount"},"counterparty":{"type":"string"},"mint":{"type":["string","null"]},"program":{"type":"string"},"sol_value":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"type":{"enum":["transfer_in"],"type":"string"}},"required":["amount","counterparty","program","type"],"type":"object"},{"properties":{"amount":{"$ref":"#/components/schemas/Amount"},"counterparty":{"type":"string"},"mint":{"type":["string","null"]},"program":{"type":"string"},"sol_value":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"type":{"enum":["transfer_out"],"type":"string"}},"required":["amount","counterparty","program","type"],"type":"object"},{"properties":{"invoked_via":{"items":{"type":"string"},"type":"array"},"movements":{"items":{"$ref":"#/components/schemas/Movement"},"type":"array"},"program":{"type":"string"},"reason":{"type":"string"},"type":{"enum":["unclassified"],"type":"string"}},"required":["invoked_via","movements","program","reason","type"],"type":"object"},{"properties":{"attempted":{"$ref":"#/components/schemas/AttemptKind"},"program":{"type":"string"},"type":{"enum":["attempt"],"type":"string"}},"required":["attempted","program","type"],"type":"object"}],"properties":{"instruction_path":{"items":{"format":"uint16","minimum":0.0,"type":"integer"},"type":"array"},"matched":{"type":["boolean","null"]}},"required":["instruction_path"],"type":"object"},"ActionType":{"enum":["buy","sell","transfer_in","transfer_out","unclassified","attempt"],"type":"string"},"AddWallet":{"additionalProperties":false,"properties":{"wallet":{"description":"Base58 wallet address (32 bytes).","type":"string"}},"required":["wallet"],"type":"object"},"Amount":{"description":"A token amount: raw integer as a string (never a JSON number) plus decimals.","properties":{"decimals":{"format":"uint8","minimum":0.0,"type":"integer"},"raw":{"type":"string"}},"required":["decimals","raw"],"type":"object"},"ApiKey":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"label":{"type":"string"},"prefix":{"description":"The key's first 8 characters.","type":"string"},"revoked_at":{"format":"date-time","type":["string","null"]}},"required":["id","prefix","label","created_at"],"type":"object"},"ApiKeyList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"}},"required":["data"],"type":"object"},"AttemptKind":{"description":"The action type a failed transaction attempted.","enum":["buy","sell","transfer_in","transfer_out"],"type":"string"},"Commitment":{"enum":["processed","confirmed","finalized"],"type":"string"},"Delivery":{"properties":{"attempted_at":{"format":"date-time","type":"string"},"duration_ms":{"format":"int32","type":"integer"},"error":{"type":["string","null"]},"id":{"type":"string"},"notification_id":{"type":"string"},"response_snippet":{"description":"First 4 KiB of the response body.","type":"string"},"status_code":{"format":"int32","type":["integer","null"]},"webhook_id":{"type":"string"}},"required":["id","notification_id","webhook_id","attempted_at","duration_ms","response_snippet"],"type":"object"},"DeliveryList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Delivery"},"type":"array"},"next_before":{"type":["string","null"]}},"required":["data"],"type":"object"},"EnabledWebhook":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"properties":{"released_notifications":{"description":"Held notifications made due again.","format":"int64","minimum":0,"type":"integer"}},"required":["released_notifications"],"type":"object"}]},"ErrorBody":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"required":["error"],"type":"object"},"ErrorDetail":{"properties":{"code":{"description":"Stable machine-readable code, e.g. `not_found`, `wallet_cap_reached`.","type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"Event":{"properties":{"first_observed_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"revision":{"format":"int32","type":"integer"},"signature":{"type":"string"},"state":{"$ref":"#/components/schemas/EventState"},"updated_at":{"format":"date-time","type":"string"},"wallet":{"type":"string"}},"required":["id","signature","wallet","revision","first_observed_at","updated_at","state"],"type":"object"},"EventDetail":{"allOf":[{"$ref":"#/components/schemas/Event"},{"properties":{"revisions":{"description":"Every stored revision, oldest first.","items":{"$ref":"#/components/schemas/Revision"},"type":"array"}},"required":["revisions"],"type":"object"}]},"EventList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Event"},"type":"array"},"next_before":{"description":"Pass as `before` for the next page; null on the last page.","type":["string","null"]}},"required":["data"],"type":"object"},"EventState":{"properties":{"actions":{"items":{"$ref":"#/components/schemas/Action"},"type":"array"},"bank_id":{"format":"uint64","minimum":0.0,"type":["integer","null"]},"block_time":{"format":"int64","type":["integer","null"]},"commitment":{"$ref":"#/components/schemas/Commitment"},"discovered_at":{"type":["string","null"]},"execution_status":{"$ref":"#/components/schemas/ExecutionStatus"},"is_backfill":{"type":"boolean"},"net_movements":{"$ref":"#/components/schemas/NetMovements"},"signature":{"type":"string"},"slot":{"format":"uint64","minimum":0.0,"type":"integer"},"tracking_end_reason":{"type":["string","null"]},"tracking_ended":{"type":"boolean"},"tracking_status":{"$ref":"#/components/schemas/TrackingStatus"},"wallet":{"type":"string"}},"required":["actions","commitment","execution_status","is_backfill","net_movements","signature","slot","tracking_ended","tracking_status","wallet"],"title":"EventState","type":"object"},"ExecutionStatus":{"enum":["succeeded","failed"],"type":"string"},"Fee":{"properties":{"amount":{"$ref":"#/components/schemas/Amount"},"kind":{"type":"string"},"mint":{"type":["string","null"]}},"required":["amount","kind"],"type":"object"},"Gap":{"properties":{"cause":{"type":"string"},"detected_at":{"format":"date-time","type":"string"},"from_slot":{"format":"int64","type":"integer"},"id":{"type":"string"},"recovery_method":{"type":["string","null"]},"recovery_result":{"description":"e.g. `recovered`, `unrecoverable`.","type":["string","null"]},"scope":{"description":"Always `global` in the MVP.","type":"string"},"to_slot":{"description":"Null while the gap is open.","format":"int64","type":["integer","null"]}},"required":["id","scope","from_slot","cause","detected_at"],"type":"object"},"GapList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Gap"},"type":"array"},"next_before":{"type":["string","null"]}},"required":["data"],"type":"object"},"Health":{"properties":{"disk_error":{"description":"Why the last disk sample failed; the disk state is then unknown (pause unchanged, 2-day observation retention).","type":["string","null"]},"disk_used_pct":{"description":"Used share of the Postgres volume, percent.","format":"double","type":["number","null"]},"feed_lag_p50_ms":{"format":"int64","type":["integer","null"]},"feed_lag_p99_ms":{"format":"int64","type":["integer","null"]},"ingestion_paused":{"description":"Ingestion is paused by disk pressure (>= 95% until < 90%).","type":"boolean"},"last_poison_at":{"format":"date-time","type":["string","null"]},"last_poison_code":{"description":"SQLSTATE of the last skipped transaction.","type":["string","null"]},"last_purge":{"description":"Rows deleted by the last retention purge.","type":["object","null"]},"last_purge_at":{"format":"date-time","type":["string","null"]},"max_watched_wallets":{"description":"The provider's cap on [`Self::watched_wallets`] (`MAX_WATCHED_WALLETS`).","format":"int64","type":"integer"},"open_gaps":{"description":"Gaps not yet closed, oldest first.","items":{"$ref":"#/components/schemas/Gap"},"type":"array"},"poison_tx_count":{"description":"Transactions the ingester skipped because of a per-row data error (SQLSTATE class 22/23).","format":"int64","type":"integer"},"queue":{"$ref":"#/components/schemas/QueueDepth","description":"Notifications waiting to be sent, across all accounts."},"stale":{"description":"True when the snapshot is missing or older than 3 minutes (the ingester is not reporting).","type":"boolean"},"streams":{"description":"`{\"a\": {\"state\": \"connected|gap|silent\", \"since\": ...}, \"b\": {...}}`.","type":["object","null"]},"updated_at":{"description":"When the ingester last wrote the snapshot.","format":"date-time","type":["string","null"]},"watched_wallets":{"description":"Distinct wallets watched across all accounts.","format":"int64","type":"integer"}},"required":["queue","open_gaps","watched_wallets","max_watched_wallets","stale","ingestion_paused","poison_tx_count"],"type":"object"},"Limits":{"additionalProperties":false,"properties":{"max_wallets":{"description":"Distinct wallets the account may watch (≥ 0), checked when a wallet is added;\nwallets already watched stay. Omit to keep it.","format":"int32","type":["integer","null"]},"notification_allowance":{"description":"Monthly notification allowance (≥ 0). Omit to keep it.","format":"int32","type":["integer","null"]}},"type":"object"},"Mode":{"enum":["fast","standard"],"type":"string"},"Movement":{"description":"A wallet asset movement inside a trade's call that is not part of the trade. Native SOL is `mint: null`.","properties":{"counterparty":{"type":["string","null"]},"decimals":{"format":"uint8","minimum":0.0,"type":"integer"},"mint":{"type":["string","null"]},"raw_delta":{"type":"string"}},"required":["decimals","raw_delta"],"type":"object"},"NetMovements":{"properties":{"rent":{"$ref":"#/components/schemas/RentNet"},"sol":{"$ref":"#/components/schemas/SolNet"},"tokens":{"items":{"$ref":"#/components/schemas/TokenNet"},"type":"array"},"wsol":{"$ref":"#/components/schemas/WsolNet"}},"required":["rent","sol","tokens","wsol"],"type":"object"},"NewApiKey":{"additionalProperties":false,"properties":{"label":{"description":"Up to 100 characters.","type":["string","null"]}},"type":"object"},"NewApiKeyResponse":{"allOf":[{"$ref":"#/components/schemas/ApiKey"},{"properties":{"key":{"description":"The key (`sw_…`), shown only now. Only its SHA-256 digest is stored.","type":"string"}},"required":["key"],"type":"object"}]},"NewWebhook":{"additionalProperties":false,"properties":{"action_types":{"description":"Only these action types (default: all but `attempt`).","items":{"$ref":"#/components/schemas/ActionType"},"type":["array","null"]},"allow_unknown_freshness":{"description":"Fast mode: deliver `unknown` freshness as `live` (default false).","type":["boolean","null"]},"include_backfill":{"description":"Receive backfilled events (default: false for fast, true for standard).","type":["boolean","null"]},"include_unpriced":{"description":"Let actions without a SOL value pass `min_sol_value` (default false).","type":["boolean","null"]},"max_signal_age_ms":{"description":"Fast mode: maximum chain age of a `live` signal, 1..=3,600,000 ms (default 60,000).","format":"int64","type":["integer","null"]},"min_sol_value":{"description":"Minimum SOL value of an action (SOL, up to 9 decimals).","type":["string","null"]},"mints":{"description":"Only actions involving these mints (native SOL matches the WSOL mint).","items":{"type":"string"},"type":["array","null"]},"mode":{"oneOf":[{"$ref":"#/components/schemas/Mode","description":"Default `fast`."},{"type":"null"}]},"notify_on":{"description":"Default: fast → processed, confirmed, failed_execution, unresolved; standard → confirmed.","items":{"$ref":"#/components/schemas/NotifyOn"},"type":["array","null"]},"url":{"description":"HTTPS URL resolving only to public addresses.","type":"string"},"wallets":{"description":"Only these wallets.","items":{"type":"string"},"type":["array","null"]},"watchlist_id":{"description":"Only wallets of this watchlist (yours).","type":["string","null"]}},"required":["url"],"type":"object"},"Notification":{"properties":{"attempts":{"format":"int64","type":"integer"},"created_at":{"format":"date-time","type":"string"},"delivery_kind":{"description":"`live`, `late_state_update`, `backfill` or `replay`.","type":"string"},"event_id":{"type":"string"},"first_attempt_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"matched":{"description":"Per-action filter result, aligned with the revision's actions.","items":{"type":"boolean"},"type":"array"},"next_attempt_at":{"format":"date-time","type":"string"},"replay_of":{"type":["string","null"]},"revision":{"format":"int32","type":"integer"},"status":{"description":"`pending`, `retrying`, `delivered`, `superseded`, `expired`, `failed` or `held`.","type":"string"},"webhook_id":{"type":"string"}},"required":["id","event_id","webhook_id","revision","delivery_kind","status","matched","created_at","next_attempt_at","attempts"],"type":"object"},"NotificationDetail":{"allOf":[{"$ref":"#/components/schemas/Notification"},{"properties":{"deliveries":{"description":"Attempts, newest first.","items":{"$ref":"#/components/schemas/Delivery"},"type":"array"},"payload":{"description":"The body as sent (stored at the first attempt), or null before it.","type":["object","null"]}},"required":["deliveries"],"type":"object"}]},"NotificationList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Notification"},"type":"array"},"next_before":{"type":["string","null"]}},"required":["data"],"type":"object"},"NotifyOn":{"enum":["processed","confirmed","finalized","failed_execution","unresolved"],"type":"string"},"Outcome":{"properties":{"at":{"format":"date-time","type":"string"},"event_id":{"type":"string"},"notification_id":{"description":"Null for `dropped_by_operational_limit` (no notification was created).","type":["string","null"]},"outcome":{"description":"`superseded`, `expired`, `expired_unsent` (held past retention), `failed`, `dropped_by_operational_limit`, ...","type":"string"},"reason":{"type":["string","null"]},"webhook_id":{"type":"string"}},"required":["event_id","webhook_id","outcome","at"],"type":"object"},"OutcomeList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Outcome"},"type":"array"},"next_before":{"description":"Opaque cursor: pass as `before` for the next page; null on the last page.","type":["string","null"]}},"required":["data"],"type":"object"},"QueueDepth":{"properties":{"held":{"format":"int64","type":"integer"},"pending":{"format":"int64","type":"integer"},"retrying":{"format":"int64","type":"integer"}},"required":["pending","retrying","held"],"type":"object"},"RentNet":{"properties":{"paid_lamports":{"type":"string"},"reclaimed_lamports":{"type":"string"}},"required":["paid_lamports","reclaimed_lamports"],"type":"object"},"Replay":{"properties":{"notification_id":{"description":"The new notification (`delivery_kind: replay`).","type":"string"},"replay_of":{"type":"string"}},"required":["notification_id","replay_of"],"type":"object"},"Revision":{"properties":{"revision":{"format":"int32","type":"integer"},"state":{"$ref":"#/components/schemas/EventState"},"trigger_received_at":{"format":"date-time","type":"string"}},"required":["revision","trigger_received_at","state"],"type":"object"},"SignUp":{"additionalProperties":false,"properties":{"name":{"description":"1 to 100 characters.","type":"string"}},"required":["name"],"type":"object"},"SolNet":{"properties":{"fee_paid":{"type":"string"},"lamports_delta":{"type":"string"}},"required":["fee_paid","lamports_delta"],"type":"object"},"TestResult":{"properties":{"duration_ms":{"format":"int64","minimum":0,"type":"integer"},"error":{"description":"Why there was no usable response (never names the resolved address).","type":["string","null"]},"response_snippet":{"description":"The first 4 KiB of the response body.","type":"string"},"status_code":{"format":"int32","minimum":0,"type":["integer","null"]},"success":{"description":"A 2xx within 10 s.","type":"boolean"}},"required":["success","duration_ms","response_snippet"],"type":"object"},"TokenNet":{"properties":{"decimals":{"format":"uint8","minimum":0.0,"type":"integer"},"mint":{"type":"string"},"raw_delta":{"type":"string"},"token_program":{"type":"string"}},"required":["decimals","mint","raw_delta","token_program"],"type":"object"},"TrackingStatus":{"enum":["tracking","resolved","unresolved"],"type":"string"},"Usage":{"properties":{"month":{"description":"`YYYY-MM` (UTC).","type":"string"},"notification_allowance":{"format":"int32","type":"integer"},"notifications_counted":{"description":"First notification of each event per webhook; revisions, retries and replays do not count.","format":"int32","type":"integer"},"pending_limit":{"description":"Operational limit on pending notifications.","format":"int64","type":"integer"},"pending_notifications":{"description":"Queued, retrying and held notifications.","format":"int64","type":"integer"},"watched_wallets":{"description":"Distinct wallets in your watchlists.","format":"int64","type":"integer"}},"required":["month","notifications_counted","notification_allowance","watched_wallets","pending_notifications","pending_limit"],"type":"object"},"WalletEntry":{"properties":{"added_at":{"format":"date-time","type":"string"},"wallet":{"description":"Base58 wallet address.","type":"string"}},"required":["wallet","added_at"],"type":"object"},"WalletList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WalletEntry"},"type":"array"}},"required":["data"],"type":"object"},"Watchlist":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"wallet_count":{"format":"int64","type":"integer"}},"required":["id","name","wallet_count","created_at"],"type":"object"},"WatchlistInput":{"additionalProperties":false,"properties":{"name":{"description":"1 to 100 characters.","type":"string"}},"required":["name"],"type":"object"},"WatchlistList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Watchlist"},"type":"array"}},"required":["data"],"type":"object"},"Webhook":{"properties":{"action_types":{"items":{"$ref":"#/components/schemas/ActionType"},"type":["array","null"]},"allow_unknown_freshness":{"type":"boolean"},"created_at":{"format":"date-time","type":"string"},"disabled_reason":{"description":"`disabled_by_customer`, or `failing_24h` when the endpoint failed for 24 h.","type":["string","null"]},"enabled":{"type":"boolean"},"failing_since":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"include_backfill":{"type":"boolean"},"include_unpriced":{"type":"boolean"},"max_signal_age_ms":{"format":"int32","type":"integer"},"min_sol_value":{"description":"Decimal SOL.","type":["string","null"]},"mints":{"items":{"type":"string"},"type":["array","null"]},"mode":{"$ref":"#/components/schemas/Mode"},"notify_on":{"items":{"$ref":"#/components/schemas/NotifyOn"},"type":"array"},"previous_secret_until":{"description":"After a rotation, the previous secret also signs until then.","format":"date-time","type":["string","null"]},"url":{"type":"string"},"wallets":{"items":{"type":"string"},"type":["array","null"]},"watchlist_id":{"type":["string","null"]}},"required":["id","url","mode","notify_on","include_unpriced","include_backfill","max_signal_age_ms","allow_unknown_freshness","enabled","created_at"],"type":"object"},"WebhookList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Webhook"},"type":"array"}},"required":["data"],"type":"object"},"WebhookPatch":{"additionalProperties":false,"properties":{"action_types":{"items":{"$ref":"#/components/schemas/ActionType"},"type":["array","null"]},"allow_unknown_freshness":{"type":["boolean","null"]},"include_backfill":{"type":["boolean","null"]},"include_unpriced":{"type":["boolean","null"]},"max_signal_age_ms":{"format":"int64","type":["integer","null"]},"min_sol_value":{"type":["string","null"]},"mints":{"items":{"type":"string"},"type":["array","null"]},"mode":{"oneOf":[{"$ref":"#/components/schemas/Mode"},{"type":"null"}]},"notify_on":{"items":{"$ref":"#/components/schemas/NotifyOn"},"type":["array","null"]},"url":{"type":["string","null"]},"wallets":{"items":{"type":"string"},"type":["array","null"]},"watchlist_id":{"type":["string","null"]}},"type":"object"},"WebhookWithSecret":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"properties":{"secret":{"description":"Signing secret, shown only now.","type":"string"}},"required":["secret"],"type":"object"}]},"WsolNet":{"properties":{"unwrapped":{"type":"string"},"wrapped":{"type":"string"}},"required":["unwrapped","wrapped"],"type":"object"}},"securitySchemes":{"api_key":{"description":"API key `sw_…`","scheme":"bearer","type":"http"},"assertion":{"description":"EdDSA JWT from the auth service: iss https://auth.solwatch.xyz, aud https://api.solwatch.xyz, claims sub, acc, role (user|admin), ev, exp (60 s)","in":"header","name":"X-Assertion","type":"apiKey"},"ops":{"description":"Scripts on the VPS only (stripped by Caddy); with X-Account-Id on account routes","in":"header","name":"X-Ops-Token","type":"apiKey"},"service_token":{"in":"header","name":"X-Service-Token","type":"apiKey"}}},"info":{"description":"Solana wallet-activity webhooks. `/v1` is the customer API (Bearer API key). `/internal` serves the same resources to the web app on behalf of a signed-in user (X-Service-Token + X-Assertion, a 60-second Ed25519 token from auth.solwatch.xyz whose claims name the account and role) plus provisioning and admin routes. Reads work in every account status; writes need an active account and a verified email. Errors are `{\"error\": {\"code\", \"message\"}}`; unknown or foreign ids are 404.","title":"solwatch API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/demo/stream":{"get":{"description":"Server-sent events (`event: activity`, JSON `{event_id, revision, updated_at, state}`) for the curated demo wallets only. At most 5 connections per address.","operationId":"demo_stream","responses":{"200":{"content":{"text/event-stream":{}},"description":"SSE stream"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"too_many_connections"}},"security":[],"tags":["demo"]}},"/internal/account":{"get":{"description":"The account the request acts for, in any status.","operationId":"internal_accounts_me","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal accounts"]}},"/internal/accounts":{"post":{"description":"Provisioning: creates the signed-in user's `pending` account (linked to the assertion's `sub`), or returns it if it exists. Writes are refused (403 account_pending) until it is activated. An assertion that already names an account is 409 already_provisioned.","operationId":"internal_accounts_provision","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUp"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]}],"tags":["internal accounts"]}},"/internal/admin/accounts":{"get":{"operationId":"internal_admin_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]},"post":{"description":"Creates a `pending` account linked to no user (for scripts and support).","operationId":"internal_admin_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUp"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]}},"/internal/admin/accounts/{id}/approve":{"post":{"description":"Makes the account `active` (also un-suspends it; its held notifications become due again).","operationId":"internal_admin_approve","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]}},"/internal/admin/accounts/{id}/limits":{"put":{"description":"Sets the given limits (at least one); omitted ones are kept.","operationId":"internal_admin_set_limits","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Limits"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]}},"/internal/admin/accounts/{id}/suspend":{"post":{"description":"Suspends the account: keys refused (403 account_suspended), wallets no longer matched, queued notifications held.","operationId":"internal_admin_suspend","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]}},"/internal/admin/health":{"get":{"operationId":"internal_admin_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"admin_required"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal admin"]}},"/internal/api-keys":{"get":{"operationId":"internal_api_keys_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal api-keys"]},"post":{"operationId":"internal_api_keys_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewApiKey"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewApiKeyResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal api-keys"]}},"/internal/api-keys/{id}":{"delete":{"description":"Revokes the key; requests with it get 401.","operationId":"internal_api_keys_revoke","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal api-keys"]},"get":{"operationId":"internal_api_keys_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal api-keys"]}},"/internal/deliveries":{"get":{"operationId":"internal_deliveries_list","parameters":[{"in":"query","name":"notification_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"description":"A delivery id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal deliveries"]}},"/internal/deliveries/{id}":{"get":{"operationId":"internal_deliveries_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal deliveries"]}},"/internal/events":{"get":{"description":"Events of your watched wallets, newest first.","operationId":"internal_events_search","parameters":[{"in":"query","name":"wallet","required":false,"schema":{"type":"string"}},{"description":"Transaction signature. No visible event: an empty list.","in":"query","name":"signature","required":false,"schema":{"type":"string"}},{"description":"An action type present in the event's current state.","in":"query","name":"type","required":false,"schema":{"$ref":"#/components/schemas/ActionType"}},{"description":"`first_observed_at` ≥ from (RFC 3339).","in":"query","name":"from","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`first_observed_at` < to (RFC 3339).","in":"query","name":"to","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"An event id: return older events (newest first).","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"description":"1..=200, default 50.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal events"]}},"/internal/events/{id}":{"get":{"operationId":"internal_events_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal events"]}},"/internal/gaps":{"get":{"operationId":"internal_gaps_list","parameters":[{"description":"A gap id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GapList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal gaps"]}},"/internal/notifications":{"get":{"operationId":"internal_notifications_list","parameters":[{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"event_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"A notification id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal notifications"]}},"/internal/notifications/outcomes":{"get":{"description":"Compact outcome records (kept 90 days) of notifications that were never delivered, including `dropped_by_operational_limit`.","operationId":"internal_notifications_outcomes","parameters":[{"in":"query","name":"outcome","required":false,"schema":{"type":"string"}},{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"event_id","required":false,"schema":{"type":"string"}},{"description":"The previous page's `next_before` (opaque).","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal notifications"]}},"/internal/notifications/{id}":{"get":{"operationId":"internal_notifications_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal notifications"]}},"/internal/notifications/{id}/replay":{"post":{"description":"Re-sends the notification as a new one (`delivery_kind: replay`, `replay_of`, header `X-Replay: true`) with the original's revision and filter results. Not counted as usage. Limited to 60/min and 2,000/day per account.","operationId":"internal_notifications_replay","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Replay"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unknown, foreign, past retention, or its webhook was deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"notification_pending or pending_limit_reached"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"rate_limited; see Retry-After"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal notifications"]}},"/internal/usage":{"get":{"operationId":"internal_usage_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal usage"]}},"/internal/watchlists":{"get":{"operationId":"internal_watchlists_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]},"post":{"operationId":"internal_watchlists_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]}},"/internal/watchlists/{id}":{"delete":{"description":"Deletes the watchlist and releases its wallets' cap slots. Refused (409 watchlist_in_use) while a webhook filters on it.","operationId":"internal_watchlists_delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]},"get":{"operationId":"internal_watchlists_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]},"patch":{"operationId":"internal_watchlists_update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]}},"/internal/watchlists/{id}/wallets":{"get":{"operationId":"internal_watchlists_list_wallets","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]},"post":{"description":"Adds a wallet (idempotent). Tracking starts now; there is no historical backfill.","operationId":"internal_watchlists_add_wallet","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWallet"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletEntry"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"wallet_cap_reached (service capacity, or the account's wallet limit)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]}},"/internal/watchlists/{id}/wallets/{wallet}":{"delete":{"operationId":"internal_watchlists_remove_wallet","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"wallet","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal watchlists"]}},"/internal/webhooks":{"get":{"operationId":"internal_webhooks_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]},"post":{"operationId":"internal_webhooks_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhook"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"watchlist_id not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"webhook_cap_reached"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/internal/webhooks/{id}":{"delete":{"description":"Deletes the webhook; its queued, retrying and held notifications become `failed` (history is kept).","operationId":"internal_webhooks_delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]},"get":{"operationId":"internal_webhooks_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]},"patch":{"description":"Changes only the fields given; `null` clears a filter. Changing `mode` keeps `notify_on` and `include_backfill` as they are.","operationId":"internal_webhooks_update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/internal/webhooks/{id}/disable":{"post":{"description":"Disables the webhook; its notifications are held until it is enabled again.","operationId":"internal_webhooks_disable","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/internal/webhooks/{id}/enable":{"post":{"description":"Enables the webhook, clears `disabled_reason` and `failing_since`, and makes its held notifications due now (freshness rules apply when they are sent).","operationId":"internal_webhooks_enable","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledWebhook"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/internal/webhooks/{id}/rotate-secret":{"post":{"description":"New secret (shown once); the previous one also signs for 24 h.","operationId":"internal_webhooks_rotate_secret","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/internal/webhooks/{id}/test":{"post":{"description":"Sends a signed `delivery_kind: test` payload now through the SSRF-safe client and reports the result. Nothing is stored. Limited to 10 per minute per account.","operationId":"internal_webhooks_test_send","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResult"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_id_required"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"rate_limited; see Retry-After"}},"security":[{"assertion":[],"service_token":[]},{"ops":[]}],"tags":["internal webhooks"]}},"/v1/api-keys":{"get":{"operationId":"api_keys_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"api_key":[]}],"tags":["api-keys"]},"post":{"operationId":"api_keys_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewApiKey"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewApiKeyResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["api-keys"]}},"/v1/api-keys/{id}":{"delete":{"description":"Revokes the key; requests with it get 401.","operationId":"api_keys_revoke","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["api-keys"]},"get":{"operationId":"api_keys_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["api-keys"]}},"/v1/deliveries":{"get":{"operationId":"deliveries_list","parameters":[{"in":"query","name":"notification_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"description":"A delivery id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["deliveries"]}},"/v1/deliveries/{id}":{"get":{"operationId":"deliveries_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["deliveries"]}},"/v1/events":{"get":{"description":"Events of your watched wallets, newest first.","operationId":"events_search","parameters":[{"in":"query","name":"wallet","required":false,"schema":{"type":"string"}},{"description":"Transaction signature. No visible event: an empty list.","in":"query","name":"signature","required":false,"schema":{"type":"string"}},{"description":"An action type present in the event's current state.","in":"query","name":"type","required":false,"schema":{"$ref":"#/components/schemas/ActionType"}},{"description":"`first_observed_at` ≥ from (RFC 3339).","in":"query","name":"from","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"`first_observed_at` < to (RFC 3339).","in":"query","name":"to","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"An event id: return older events (newest first).","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"description":"1..=200, default 50.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["events"]}},"/v1/events/{id}":{"get":{"operationId":"events_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["events"]}},"/v1/gaps":{"get":{"operationId":"gaps_list","parameters":[{"description":"A gap id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GapList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["gaps"]}},"/v1/notifications":{"get":{"operationId":"notifications_list","parameters":[{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"event_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"A notification id: older ones.","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["notifications"]}},"/v1/notifications/outcomes":{"get":{"description":"Compact outcome records (kept 90 days) of notifications that were never delivered, including `dropped_by_operational_limit`.","operationId":"notifications_outcomes","parameters":[{"in":"query","name":"outcome","required":false,"schema":{"type":"string"}},{"in":"query","name":"webhook_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"event_id","required":false,"schema":{"type":"string"}},{"description":"The previous page's `next_before` (opaque).","in":"query","name":"before","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["notifications"]}},"/v1/notifications/{id}":{"get":{"operationId":"notifications_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDetail"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["notifications"]}},"/v1/notifications/{id}/replay":{"post":{"description":"Re-sends the notification as a new one (`delivery_kind: replay`, `replay_of`, header `X-Replay: true`) with the original's revision and filter results. Not counted as usage. Limited to 60/min and 2,000/day per account.","operationId":"notifications_replay","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Replay"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unknown, foreign, past retention, or its webhook was deleted"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"notification_pending or pending_limit_reached"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"rate_limited; see Retry-After"}},"security":[{"api_key":[]}],"tags":["notifications"]}},"/v1/openapi.json":{"get":{"operationId":"meta_serve","responses":{"200":{"content":{"application/json":{}},"description":"This OpenAPI document"}},"security":[],"tags":["meta"]}},"/v1/usage":{"get":{"operationId":"usage_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"api_key":[]}],"tags":["usage"]}},"/v1/watchlists":{"get":{"operationId":"watchlists_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"api_key":[]}],"tags":["watchlists"]},"post":{"operationId":"watchlists_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]}},"/v1/watchlists/{id}":{"delete":{"description":"Deletes the watchlist and releases its wallets' cap slots. Refused (409 watchlist_in_use) while a webhook filters on it.","operationId":"watchlists_delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]},"get":{"operationId":"watchlists_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]},"patch":{"operationId":"watchlists_update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]}},"/v1/watchlists/{id}/wallets":{"get":{"operationId":"watchlists_list_wallets","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]},"post":{"description":"Adds a wallet (idempotent). Tracking starts now; there is no historical backfill.","operationId":"watchlists_add_wallet","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWallet"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletEntry"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"wallet_cap_reached (service capacity, or the account's wallet limit)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]}},"/v1/watchlists/{id}/wallets/{wallet}":{"delete":{"operationId":"watchlists_remove_wallet","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"wallet","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["watchlists"]}},"/v1/webhooks":{"get":{"operationId":"webhooks_list","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"}},"security":[{"api_key":[]}],"tags":["webhooks"]},"post":{"operationId":"webhooks_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewWebhook"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"watchlist_id not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"webhook_cap_reached"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]}},"/v1/webhooks/{id}":{"delete":{"description":"Deletes the webhook; its queued, retrying and held notifications become `failed` (history is kept).","operationId":"webhooks_delete","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]},"get":{"operationId":"webhooks_get","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]},"patch":{"description":"Changes only the fields given; `null` clears a filter. Changing `mode` keeps `notify_on` and `include_backfill` as they are.","operationId":"webhooks_update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]}},"/v1/webhooks/{id}/disable":{"post":{"description":"Disables the webhook; its notifications are held until it is enabled again.","operationId":"webhooks_disable","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]}},"/v1/webhooks/{id}/enable":{"post":{"description":"Enables the webhook, clears `disabled_reason` and `failing_since`, and makes its held notifications due now (freshness rules apply when they are sent).","operationId":"webhooks_enable","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledWebhook"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]}},"/v1/webhooks/{id}/rotate-secret":{"post":{"description":"New secret (shown once); the previous one also signs for 24 h.","operationId":"webhooks_rotate_secret","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}],"tags":["webhooks"]}},"/v1/webhooks/{id}/test":{"post":{"description":"Sends a signed `delivery_kind: test` payload now through the SSRF-safe client and reports the result. Nothing is stored. Limited to 10 per minute per account.","operationId":"webhooks_test_send","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResult"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"unauthorized: missing or invalid credentials"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"account_pending or account_suspended"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"rate_limited; see Retry-After"}},"security":[{"api_key":[]}],"tags":["webhooks"]}}}}