{"openapi":"3.1.0","info":{"title":"TTF Data API","version":"1.1.0","summary":"Token data, security scans, wallets and signals from TTF, for bots and dashboards.","description":"TTF token data API. Every answer is {\"data\", \"meta\"} or {\"error\"}; every call is charged in credits (meta.cost, X-Credits-Cost). A refused call (400 / 401 / 402 / 403 / 429 / 503) costs nothing. A failed group costs 1 credit (the attempt fee) when a provider was asked and the group is core or uses a paid provider (security, holders, bubbles, deployer, resolve); candles and a busy group (no provider asked) cost nothing. When every asked group failed and one of them says the token does not exist or cannot be scanned, the request is a 404 and costs ONE attempt fee in total.\n\nThe /v1/webhooks routes manage your webhook endpoints and rules: they cost 0 credits, need a key created with webhook access (read or write), take JSON bodies and are the only routes that write. Their fields are the dashboard's: times there are unix seconds.\n\nFormat: keys are snake_case. Money is never a float: aggregates (market cap, liquidity, volume) are whole US dollars as integers (`*_usd`, also the candle volume); anything that can be fractional (prices, candle prices, USD values of transfers, token amounts) is a decimal string; raw on-chain amounts (`value`) are integer strings. Percentages and ratios are numbers with the unit in the key (`_pct`, `multiple`). A point in time outside a list is ISO-8601 UTC (`*_at`, \"2026-11-28T10:00:00Z\"); inside lists, series and events it is unix milliseconds (`*_ms`, the event `ts`, the first candle column, the webhook body's created_ms, and the wallet watch window that bounds transfer rows). A value that is unknown or none is absent (never null); lists that are the answer are always present, also empty. Pages: `next_cursor` only when there is a next page. Answers are gzip / br compressed on request (Accept-Encoding) and carry an ETag of their data.\n\nChanges: new routes, optional parameters, response keys and values of open vocabularies (`x-ttf-known-values`) may come at any time, so ignore what you do not know. Removing or renaming something, changing a type, unit or meaning, raising the credit cost of a call or a group, or charging for a failure that was free needs a new version or an announced deprecation (a security fix may be immediate). Every change is listed in the changelog of the API reference."},"jsonSchemaDialect":"https://spec.openapis.org/oas/3.1/dialect/base","servers":[{"url":"https://api.ttf.bot"}],"tags":[{"name":"Tokens","description":"Everything about one token: price, market, security scan, holders, candles, bubble map, deployer."},{"name":"Discovery","description":"Find tokens: resolve an address or a ticker, see what TTF users are scanning most."},{"name":"Wallets","description":"What a wallet is doing: its recent transfers, watched live by TTF."},{"name":"Signals","description":"TTF's own signals: ATH breakouts and call milestones."},{"name":"Service","description":"Free routes without a key: the chain / group / price catalogue and the health check."},{"name":"Webhook management","description":"Create and manage your webhook endpoints and rules with an API key that has webhook access. 0 credits. These are the only routes that write. Their account limits are their own: calls here never use up the dashboard's."},{"name":"Webhooks","description":"What TTF POSTs to your endpoint when one of your rules fires (signed, retried)."}],"paths":{"/v1/token/{chain}/{address}":{"get":{"operationId":"getToken","summary":"Token data by field groups","description":"The one-stop call for a token: ask only the groups you need (`fields=price,security,holders`) and pay only for those. Built for trading bots, Telegram bots, dashboards and quick \"is this safe?\" checks before you ape. Same answer for everyone for a few seconds (shared cache): polling faster than that only costs credits.\n\nThe asked field groups of one token (`fields`; default core). Costs the sum of the asked groups' credits; a group answered from the cache costs its cached weight. A failed group costs 1 credit (the attempt fee) when a provider was asked and the group is core or uses a paid provider (security, holders, bubbles, deployer, resolve); candles and a busy group (no provider asked) cost nothing. When every asked group failed and one of them says the token does not exist or cannot be scanned, the request is a 404 and costs ONE attempt fee in total.","tags":["Tokens"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"chain","in":"path","required":true,"description":"Chain id. Launch chains: abstract, arbitrumnova, arc, base, berachain, bsc, bttc, celo, cronos, elysium, eth, flare, fraxtal, gnosis, hedera, injective, ink, katana, linea, mantle, megaeth, merlinchain, monad, moonbeam, moonriver, opbnb, plasma, polygonzkevm, pulsechain, robinhood, scroll, seiv2, sol, sophon, stable, swellchain, taiko, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"eth"},{"name":"address","in":"path","required":true,"description":"Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).","schema":{"type":"string","maxLength":64},"example":"0x6982508145454ce325ddbe47a25d4ec3d2311933"},{"name":"fields","in":"query","required":false,"description":"Comma-separated group or field names (at most 200 characters, at most 8 groups). Default: `core`. A group name asks for the whole group; a field name asks for that field only, and its group is charged once however many of its fields are asked. data is keyed by group.\n\nGroups (credits for a live answer, for a cached one) and their fields:\n- core (1 credit live, 1 cached): price, market, liquidity, socials, token\n- security (4 credits live, 1 cached): verdict, score, flags, checks, tax, lp_lock, contract\n- holders (4 credits live, 1 cached)\n- candles (1 credit live, 1 cached)\n- bubbles (4 credits live, 1 cached)\n- deployer (3 credits live, 1 cached)\n- resolve (1 credit live, 1 cached)\n\nWhich chains serve which group: GET /v1/chains. A group that fails is listed in meta.partial; A failed group costs 1 credit (the attempt fee) when a provider was asked and the group is core or uses a paid provider (security, holders, bubbles, deployer, resolve); candles and a busy group (no provider asked) cost nothing. When every asked group failed and one of them says the token does not exist or cannot be scanned, the request is a 404 and costs ONE attempt fee in total.\n\nOn eth, bsc, base and sol a security answer is a rating (score, verdict.known) only together with its holder data: ask `security,holders`. On the other EVM chains security always lacks holders and liquidity (complete false).","schema":{"type":"string","maxLength":200},"example":"price,liquidity,security"},{"name":"interval","in":"query","required":false,"description":"Candle interval (only with the candles group). Default 15m.","schema":{"type":"string","enum":["1m","5m","15m","1h","4h","1d"],"default":"15m"},"example":"15m"},{"name":"limit","in":"query","required":false,"description":"Holders rows (only with the holders group), 1-30. Default 20.","schema":{"type":"integer","minimum":1,"maximum":30,"default":20},"example":20}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenAnswer"},"examples":{"default":{"summary":"Token data by field groups","value":{"data":{"core":{"token":{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE"},"price":{"usd":"0.0000092","change_pct":{"m5":0.1,"h1":-0.4,"h6":1.2,"h24":3.5}},"market":{"market_cap_usd":3870000000,"volume_24h_usd":512000000,"txns_24h":{"buys":4120,"sells":3980}},"liquidity":{"usd":41200000,"pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","dex":"uniswap","pair_created_at":"2023-04-14T19:10:23Z"},"socials":{"website":"https://www.pepe.vip","twitter":"https://x.com/pepecoineth"}},"security":{"verdict":{"level":"ok","label":"No honeypot, no red flags","known":true,"sellable":true,"reasons":["Sell tax 0%","Owner renounced","Liquidity locked"]},"score":92,"flags":[{"id":"owner_active","severity":"info","title":"Owner is not renounced","detail":"The owner keeps contract privileges."}],"checks":[{"id":"honeypot","label":"Honeypot test","state":"ok","value":"sellable"},{"id":"tax","label":"Buy / sell tax","state":"ok","value":"0% / 0%"},{"id":"holders","label":"Holder concentration","state":"ok","value":"top 10: 31%"}],"tax":{"buy_pct":0,"sell_pct":0,"honeypot":false},"lp_lock":{"locked":true,"locked_pct":100,"burned_pct":100},"contract":{"owner_renounced":true,"verified_source":true,"proxy":false},"complete":true,"missing":[]},"holders":{"holder_count":482113,"top10_pct":31.42,"holders":[{"address":"0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3","pct":6.513,"amount":"27394538220371.5"},{"address":"0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a","pct":3.121,"amount":"13125994823417","fresh":false}]},"candles":{"interval":"1h","pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","change_pct":2.31,"columns":["time_ms","open_usd","high_usd","low_usd","close_usd","volume_usd"],"candles":[[1794996000000,"0.00000898","0.00000921","0.00000894","0.0000092",1842212],[1794999600000,"0.0000092","0.00000925","0.00000911","0.00000919",1311090]]},"bubbles":{"mode":"clusters","total_cluster_pct":12.4,"clusters":[{"id":1,"pct":8.2,"size":3,"tags":["cex"],"holders":[{"address":"0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3","pct":6.513,"balance":"27394538220371.5","tags":["cex"]}]}],"stats":{"wallets":30,"in_view_pct":41.07,"largest_pct":6.51,"top10_pct":31.42,"linked_groups":4},"tag_text":{"cex":"Exchange"}},"deployer":{"address":"0xd1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1","tx":"0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d","created_at":"2023-04-14T19:05:11Z"},"resolve":{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE","listed":true,"pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","dex":"uniswap"}},"meta":{"cost":18,"cached":["candles"],"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"core_only":{"summary":"No fields: the core group (price, market, liquidity, socials), 1 credit.","value":{"data":{"core":{"token":{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE"},"price":{"usd":"0.0000092","change_pct":{"m5":0.1,"h1":-0.4,"h6":1.2,"h24":3.5}},"market":{"market_cap_usd":3870000000,"volume_24h_usd":512000000,"txns_24h":{"buys":4120,"sells":3980}},"liquidity":{"usd":41200000,"pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","dex":"uniswap","pair_created_at":"2023-04-14T19:10:23Z"},"socials":{"website":"https://www.pepe.vip","twitter":"https://x.com/pepecoineth"}}},"meta":{"cost":1,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"partial":{"summary":"fields=price,holders where the holders provider failed: core answers, holders is an error entry listed in meta.partial (only the attempt fee for holders).","value":{"data":{"core":{"token":{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE"},"price":{"usd":"0.0000092","change_pct":{"m5":0.1,"h1":-0.4,"h6":1.2,"h24":3.5}}},"holders":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream"}}},"meta":{"cost":2,"partial":["holders"],"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"This chain is not supported.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_address":{"summary":"bad_request: That does not look like a token address on this chain.","value":{"error":{"code":"bad_request","message":"That does not look like a token address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_params":{"summary":"bad_request: The request parameters are not valid.","value":{"error":{"code":"bad_request","message":"The request parameters are not valid.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No data is available for this token.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"422":{"description":"This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"refused":{"summary":"refused: Token cannot be scanned","value":{"error":{"code":"refused","message":"This token cannot be scanned.","doc_url":"https://ttf.bot/docs/errors/#refused","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["refused"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"504":{"description":"The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"timeout":{"summary":"timeout: Took too long","value":{"error":{"code":"timeout","message":"This took too long. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["timeout"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"by_group":{"core":{"live":1,"cached":1,"tag":"free","plan_minimum":"free","attempt_fee":1},"security":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"holders":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"candles":{"live":1,"cached":1,"tag":"free","plan_minimum":"free","attempt_fee":0},"bubbles":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"deployer":{"live":3,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"resolve":{"live":1,"cached":1,"tag":"paid","plan_minimum":"free","attempt_fee":1}},"attempt_fee":1,"live":1,"cached":1},"x-ttf-groups":["core","security","holders","candles","bubbles","deployer","resolve"],"x-ttf-plan-minimum":"free"}},"/v1/token/{chain}/{address}/{group}":{"get":{"operationId":"getTokenGroup","summary":"One group or field of a token","description":"One group or one field of a token as its own call: `/security` before you buy, `/price` for a ticker bot, `/holders` for a top-holders view, `/candles` for a chart. Same answer for everyone for a few seconds (shared cache): polling faster than that only costs credits.\n\nOne group (core, security, holders, candles, bubbles, deployer, resolve) or one field of a group (price, market, liquidity, tax ...). data is that group's answer (only the field, for a field). Costs that group's credits.","tags":["Tokens"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"chain","in":"path","required":true,"description":"Chain id. Launch chains: abstract, arbitrumnova, arc, base, berachain, bsc, bttc, celo, cronos, elysium, eth, flare, fraxtal, gnosis, hedera, injective, ink, katana, linea, mantle, megaeth, merlinchain, monad, moonbeam, moonriver, opbnb, plasma, polygonzkevm, pulsechain, robinhood, scroll, seiv2, sol, sophon, stable, swellchain, taiko, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"eth"},{"name":"address","in":"path","required":true,"description":"Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).","schema":{"type":"string","maxLength":64},"example":"0x6982508145454ce325ddbe47a25d4ec3d2311933"},{"name":"group","in":"path","required":true,"description":"One group, or one field of a group (see the fields parameter of GET /v1/token/{chain}/{address}). data is that group's answer, or only the field.","schema":{"type":"string","enum":["bubbles","candles","checks","contract","core","deployer","flags","holders","liquidity","lp_lock","market","price","resolve","score","security","socials","tax","token","verdict"]},"example":"security"},{"name":"interval","in":"query","required":false,"description":"Candle interval (only with the candles group). Default 15m.","schema":{"type":"string","enum":["1m","5m","15m","1h","4h","1d"],"default":"15m"},"example":"15m"},{"name":"limit","in":"query","required":false,"description":"Holders rows (only with the holders group), 1-30. Default 20.","schema":{"type":"integer","minimum":1,"maximum":30,"default":20},"example":20}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenGroupAnswer"},"examples":{"default":{"summary":"One group or field of a token","value":{"data":{"verdict":{"level":"ok","label":"No honeypot, no red flags","known":true,"sellable":true,"reasons":["Sell tax 0%","Owner renounced","Liquidity locked"]},"score":92,"flags":[{"id":"owner_active","severity":"info","title":"Owner is not renounced","detail":"The owner keeps contract privileges."}],"checks":[{"id":"honeypot","label":"Honeypot test","state":"ok","value":"sellable"},{"id":"tax","label":"Buy / sell tax","state":"ok","value":"0% / 0%"},{"id":"holders","label":"Holder concentration","state":"ok","value":"top 10: 31%"}],"tax":{"buy_pct":0,"sell_pct":0,"honeypot":false},"lp_lock":{"locked":true,"locked_pct":100,"burned_pct":100},"contract":{"owner_renounced":true,"verified_source":true,"proxy":false},"complete":true,"missing":[]},"meta":{"cost":1,"cached":["security"],"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"holders":{"summary":"/holders?limit=2: the top holders.","value":{"data":{"holder_count":482113,"top10_pct":31.42,"holders":[{"address":"0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3","pct":6.513,"amount":"27394538220371.5"},{"address":"0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a","pct":3.121,"amount":"13125994823417","fresh":false}]},"meta":{"cost":4,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"price_field":{"summary":"/price: only the price field (plus the token identity) of the core group.","value":{"data":{"token":{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE"},"price":{"usd":"0.0000092","change_pct":{"m5":0.1,"h1":-0.4,"h6":1.2,"h24":3.5}}},"meta":{"cost":1,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"This chain is not supported.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_address":{"summary":"bad_request: That does not look like a token address on this chain.","value":{"error":{"code":"bad_request","message":"That does not look like a token address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_params":{"summary":"bad_request: The request parameters are not valid.","value":{"error":{"code":"bad_request","message":"The request parameters are not valid.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No data is available for this token.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"422":{"description":"This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"refused":{"summary":"refused: Token cannot be scanned","value":{"error":{"code":"refused","message":"This token cannot be scanned.","doc_url":"https://ttf.bot/docs/errors/#refused","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["refused"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"504":{"description":"The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"timeout":{"summary":"timeout: Took too long","value":{"error":{"code":"timeout","message":"This took too long. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["timeout"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"by_group":{"core":{"live":1,"cached":1,"tag":"free","plan_minimum":"free","attempt_fee":1},"security":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"holders":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"candles":{"live":1,"cached":1,"tag":"free","plan_minimum":"free","attempt_fee":0},"bubbles":{"live":4,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"deployer":{"live":3,"cached":1,"tag":"paid","plan_minimum":"starter","attempt_fee":1},"resolve":{"live":1,"cached":1,"tag":"paid","plan_minimum":"free","attempt_fee":1}},"attempt_fee":1},"x-ttf-groups":["core","security","holders","candles","bubbles","deployer","resolve"],"x-ttf-plan-minimum":"free"}},"/v1/resolve":{"get":{"operationId":"resolveToken","summary":"Resolve an address or a symbol","description":"Got a contract address or just a $TICKER from a Telegram chat? This tells you which chain and pool an address trades on, or the best-matching tokens for a symbol or name (most liquid first).\n\ndata.matches: for an address, ONE match (the chain and main pair it trades on; `listed` false = no market lists it, true with no pair = listed but the pair address is unknown); for a symbol or name, the best matching tokens (up to 5, with liquidity_usd and volume_24h_usd; the same search is shared for 10 s). Costs 1 credit (1 from the cache); a symbol with no match costs nothing, an address with no match costs 1 credit (the attempt fee).","tags":["Discovery"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":true,"description":"A token address, or a symbol / name (at most 40 characters; at most 100 for an address).","schema":{"type":"string","maxLength":100},"example":"PEPE"},{"name":"chain","in":"query","required":false,"description":"Only this chain (optional). Chain id. Launch chains: abstract, arbitrumnova, arc, base, berachain, bsc, bttc, celo, cronos, elysium, eth, flare, fraxtal, gnosis, hedera, injective, ink, katana, linea, mantle, megaeth, merlinchain, monad, moonbeam, moonriver, opbnb, plasma, polygonzkevm, pulsechain, robinhood, scroll, seiv2, sol, sophon, stable, swellchain, taiko, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"eth"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveAnswer"},"examples":{"default":{"summary":"Resolve an address or a symbol","value":{"data":{"matches":[{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE","listed":true,"pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","dex":"uniswap","liquidity_usd":41200000,"volume_24h_usd":512000000}]},"meta":{"cost":1,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"address":{"summary":"q=<address>: one match, the chain and main pair it trades on.","value":{"data":{"matches":[{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","name":"Pepe","symbol":"PEPE","listed":true,"pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","dex":"uniswap"}]},"meta":{"cost":1,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"no_match":{"summary":"q=<a symbol nobody lists>: no match, costs nothing.","value":{"data":{"matches":[]},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"This chain is not supported.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_address":{"summary":"bad_request: That does not look like a token address on this chain.","value":{"error":{"code":"bad_request","message":"That does not look like a token address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_params":{"summary":"bad_request: The request parameters are not valid.","value":{"error":{"code":"bad_request","message":"The request parameters are not valid.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No data is available for this token.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"422":{"description":"This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"refused":{"summary":"refused: Token cannot be scanned","value":{"error":{"code":"refused","message":"This token cannot be scanned.","doc_url":"https://ttf.bot/docs/errors/#refused","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["refused"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"504":{"description":"The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"timeout":{"summary":"timeout: Took too long","value":{"error":{"code":"timeout","message":"This took too long. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["timeout"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":1,"cached":1,"attempt_fee":1},"x-ttf-groups":["resolve"],"x-ttf-plan-minimum":"free"}},"/v1/trending":{"get":{"operationId":"getTrending","summary":"Most scanned tokens","description":"What TTF users are scanning right now: the most scanned tokens of a window with market cap, price and quick security badges. Perfect for a \"hot right now\" feed or a trending channel.\n\nThe tokens people scanned most with TTF in the window, optionally on one chain, most distinct scanners first. Per token: scans, scanners, chat_groups (Telegram groups it was scanned in), the first and last scan of the window, the latest scanned market cap / price / liquidity, the market cap change over the hourly spark (last 24 h, market_cap_spark_usd) and security badges when TTF scanned it lately. `fields` keeps only the asked row keys (plus chain and address). Costs 2 credits (1 from the cache).","tags":["Discovery"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"chain","in":"query","required":false,"description":"Only this chain (optional). Chain id. Launch chains: abstract, arbitrumnova, arc, base, berachain, bsc, bttc, celo, cronos, elysium, eth, flare, fraxtal, gnosis, hedera, injective, ink, katana, linea, mantle, megaeth, merlinchain, monad, moonbeam, moonriver, opbnb, plasma, polygonzkevm, pulsechain, robinhood, scroll, seiv2, sol, sophon, stable, swellchain, taiko, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"sol"},{"name":"window","in":"query","required":false,"description":"Time window: the board is counted over the scans of that window. Default 1d; 24h = 1d.","schema":{"type":"string","enum":["5m","1h","4h","6h","1d","24h"],"default":"1d"},"example":"1d"},{"name":"limit","in":"query","required":false,"description":"Rows, 1-40. Default 30.","schema":{"type":"integer","minimum":1,"maximum":40,"default":30},"example":30},{"name":"fields","in":"query","required":false,"description":"Comma-separated keys each token row keeps (default all; chain and address are always kept): chain, address, symbol, name, scans, scanners, chat_groups, first_scan_ms, last_scan_ms, market_cap_usd, price_usd, liquidity_usd, market_cap_change_pct, market_cap_spark_usd, badges.","schema":{"type":"string","maxLength":200},"example":"chain,address,symbol,scans"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendingAnswer"},"examples":{"default":{"summary":"Most scanned tokens","value":{"data":{"window":"1d","chain":"eth","generated_at":"2026-11-28T10:00:00Z","tokens":[{"chain":"eth","address":"0x6982508145454ce325ddbe47a25d4ec3d2311933","symbol":"PEPE","name":"Pepe","scans":412,"scanners":96,"chat_groups":31,"first_scan_ms":1794913600000,"last_scan_ms":1794999990000,"market_cap_usd":3870000000,"price_usd":"0.0000092","liquidity_usd":41200000,"market_cap_change_pct":2.3,"market_cap_spark_usd":[3781000000,3802000000,3870000000],"badges":{"level":"ok","honeypot":false,"buy_tax_pct":0,"sell_tax_pct":0,"flag_count":0}}]},"meta":{"cost":2,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"This chain is not supported.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_address":{"summary":"bad_request: That does not look like a token address on this chain.","value":{"error":{"code":"bad_request","message":"That does not look like a token address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_params":{"summary":"bad_request: The request parameters are not valid.","value":{"error":{"code":"bad_request","message":"The request parameters are not valid.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"504":{"description":"The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"timeout":{"summary":"timeout: Took too long","value":{"error":{"code":"timeout","message":"This took too long. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["timeout"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":2,"cached":1,"attempt_fee":0},"x-ttf-groups":["trending"],"x-ttf-plan-minimum":"starter"}},"/v1/wallet/{chain}/{address}/activity":{"get":{"operationId":"getWalletActivity","summary":"Recent transfers of a wallet","description":"Follow a wallet (a whale, a dev, a smart-money wallet, your own): its latest transfers in and out, and TTF keeps watching it live for your account after each call.\n\nThe wallet's recent ERC-20 transfers, in and out, newest first: public chain history (the latest 100 transfers, shared for 15 s) merged with what TTF's real-time watcher recorded for this address since YOUR account first asked about it. A call whose history answered starts (or renews) a 24 h watch of the address (at most your plan's max_watch_addresses together with your wallet webhook rules, e.g. 2,500 on Pro; the least recently asked one is dropped first, never a rule address); native-coin transfers come with token 0xeeee...eeee; data.watch says when it started (started_ms) and ends (expires_ms, unix ms like the transfers' time_ms, absent while no watch exists), whether real-time watching is configured on the chain (configured), the watcher is running and keeping up now (live) and whether the address was dropped for moving on most blocks (hot). Burn, router, wrapped-coin and exchange addresses are refused (400). Pages: data.next_cursor -> ?cursor=. Group `wallet`. Costs 3 credits (1 from the cache); a wallet with no transfers or a provider that did not answer costs 1 credit (the attempt fee); busy costs nothing.","tags":["Wallets"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"chain","in":"path","required":true,"description":"Chain id. Chains with wallet history: abstract, arb, arc, avax, base, berachain, bsc, bttc, celo, eth, fraxtal, gnosis, hyperevm, linea, mantle, megaeth, monad, opt, polygon, pulsechain, robinhood, scroll, sonic, taiko, unichain, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"eth"},{"name":"address","in":"path","required":true,"description":"Wallet address (0x + 40 hex).","schema":{"type":"string","maxLength":64},"example":"0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a"},{"name":"limit","in":"query","required":false,"description":"Transfers per page, 1-50. Default 20.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20},"example":20},{"name":"cursor","in":"query","required":false,"description":"data.next_cursor of the previous page (opaque). Omit for the newest page.","schema":{"type":"string","maxLength":200},"example":"MjE0MDAwMDA6MTI6MHg1ZDVk"},{"name":"fields","in":"query","required":false,"description":"Comma-separated keys each transfer keeps (default all): tx, block, time_ms, log_index, token, symbol, decimals, value, from, to, direction, source.","schema":{"type":"string","maxLength":200},"example":"tx,token,value,direction"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletActivityAnswer"},"examples":{"default":{"summary":"Recent transfers of a wallet","value":{"data":{"transfers":[{"tx":"0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d","block":21400000,"time_ms":1795000000000,"log_index":12,"token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","symbol":"PEPE","decimals":18,"value":"1500000000000000000000","from":"0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a","to":"0x4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b","direction":"out","source":"history"}],"next_cursor":"MjE0MDAwMDA6MTI6MHg1ZDVk","watch":{"started_ms":1794990000123,"expires_ms":1795076400123,"configured":true,"live":true,"hot":false}},"meta":{"cost":3,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"That does not look like a wallet address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_chain":{"summary":"bad_request: 'wallet' is not available on this chain.","value":{"error":{"code":"bad_request","message":"'wallet' is not available on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_denied":{"summary":"bad_request: This is a burn, router, wrapped-coin or exchange address: its activity is not served.","value":{"error":{"code":"bad_request","message":"This is a burn, router, wrapped-coin or exchange address: its activity is not served.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"504":{"description":"The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"timeout":{"summary":"timeout: Took too long","value":{"error":{"code":"timeout","message":"This took too long. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["timeout"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":3,"cached":1,"attempt_fee":1},"x-ttf-groups":["wallet"],"x-ttf-plan-minimum":"starter"}},"/v1/signals":{"get":{"operationId":"listSignals","summary":"Recent TTF signals","description":"TTF's own alpha feed: ATH breakouts and call milestones from TTF's calls bot, newest first: the same events a `signal` webhook rule pushes to you. Poll it, or let a webhook do it.\n\nThe newest TTF signals, newest first: ATH breakouts (kind breakout: multiple = market cap / the all-time high it broke) and call milestones (kind call: multiple = the milestone reached since the call), with called_at_ms (unix ms of the call), the plan line and, for signals since 2026-11-30, what the TTF Signals post shows (symbol, name, tier, market cap, liquidity, volume, price ...). Each item is the same event a webhook rule of type `signal` receives. A call reads at most 500 signals: with a filter, a page can be short and still have a data.next_cursor; no next_cursor = the end. data.live says whether the signals feed is running. Group `signals`. Costs 1 credit; a failed read costs nothing.","tags":["Signals"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":false,"description":"Only signals of this kind: breakout (a new all-time high), call (a call reached a milestone), trending. Default all.","schema":{"type":"string","enum":["breakout","trending","call"]},"example":"breakout"},{"name":"chain","in":"query","required":false,"description":"Only this chain (optional). Chain id. Launch chains: abstract, arbitrumnova, arc, base, berachain, bsc, bttc, celo, cronos, elysium, eth, flare, fraxtal, gnosis, hedera, injective, ink, katana, linea, mantle, megaeth, merlinchain, monad, moonbeam, moonriver, opbnb, plasma, polygonzkevm, pulsechain, robinhood, scroll, seiv2, sol, sophon, stable, swellchain, taiko, worldchain, xdc, zksync.","schema":{"type":"string","maxLength":16},"example":"eth"},{"name":"limit","in":"query","required":false,"description":"Signals per page, 1-50. Default 20.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20},"example":20},{"name":"cursor","in":"query","required":false,"description":"data.next_cursor of the previous page. Omit for the newest page.","schema":{"type":"string","maxLength":32},"example":"1795000000000-0"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalsAnswer"},"examples":{"default":{"summary":"Recent TTF signals","value":{"data":{"signals":[{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0VW","type":"signal","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"kind":"breakout","multiple":1.04,"called_at_ms":1795000000000,"plan_text":"if it holds 24h -> enter, sell 50% at 2x, sell 50% every 3x after","symbol":"ORBIT","name":"Orbit Cat","tier":"daily","grade":"strong","dex":"uniswap","pair_created_ms":1794222400000,"prev_ath_mc_usd":"18860000","prev_ath_ms":1794827200000,"market_cap_usd":"19614400","liquidity_usd":"1240000","volume_24h_usd":"3870000","price_change_24h_pct":31.4,"buys_24h":4210,"sells_24h":2960,"price_usd":"0.0196144"}}],"next_cursor":"1795000000000-0","live":true},"meta":{"cost":1,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"This chain is not supported.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_address":{"summary":"bad_request: That does not look like a token address on this chain.","value":{"error":{"code":"bad_request","message":"That does not look like a token address on this chain.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_params":{"summary":"bad_request: The request parameters are not valid.","value":{"error":{"code":"bad_request","message":"The request parameters are not valid.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Not charged. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Not charged. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_group":{"summary":"forbidden: This API key does not include 'security' endpoints.","value":{"error":{"code":"forbidden","message":"This API key does not include 'security' endpoints.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"API key credits used up per minute.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_month":{"summary":"rate_limited: API key credits used up this month.","value":{"error":{"code":"rate_limited","message":"API key credits used up this month.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"502":{"description":"A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"upstream":{"summary":"upstream: Provider did not answer","value":{"error":{"code":"upstream","message":"This data is not available right now. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#upstream","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["upstream"]},"503":{"description":"Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"capacity":{"summary":"capacity: At capacity","value":{"error":{"code":"capacity","message":"The API is at capacity for today. Try again later.","doc_url":"https://ttf.bot/docs/errors/#capacity","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"The API is busy right now. Try again shortly.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["capacity","busy","unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":1,"cached":1,"attempt_fee":0},"x-ttf-groups":["signals"],"x-ttf-plan-minimum":"starter"}},"/v1/chains":{"get":{"operationId":"listChains","summary":"Chains, groups and credits","description":"Start here: which chains are supported, which groups each serves and what every group costs. Free, no key needed: read it once at start-up.\n\nThe launch chains, the groups each one serves and what each group costs (`groups`: the field groups of GET /v1/token, `route_groups`: the routes of their own; all_chains true = served on every launch chain, false = only on the listed `chains`; tag free = no paid provider, paid = a failed answer keeps the attempt fee). /v1/resolve costs the resolve group's credits; /v1/chains and /v1/health are free. No key, no charge.","tags":["Service"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainsAnswer"},"examples":{"default":{"summary":"Chains, groups and credits","value":{"data":{"chains":[{"id":"eth","name":"Ethereum","family":"evm","groups":["core","security","holders"]}],"groups":[{"name":"core","credits":1,"cached_credits":1,"tag":"free","fields":["price","market","liquidity","socials","token"],"all_chains":true},{"name":"holders","credits":4,"cached_credits":1,"tag":"paid","fields":["holders"],"all_chains":false,"chains":["base","bsc","eth","sol"]}],"route_groups":[{"name":"trending","credits":2,"cached_credits":1,"tag":"free","route":"/v1/trending","all_chains":true},{"name":"wallet","credits":3,"cached_credits":1,"tag":"paid","route":"/v1/wallet/{chain}/{address}/activity","all_chains":false,"chains":["arb","eth"]},{"name":"signals","credits":1,"cached_credits":1,"tag":"paid","route":"/v1/signals","all_chains":true}],"intervals":["1m","5m","15m","1h","4h","1d"],"trending_windows":["5m","1h","4h","6h","1d"]},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"404":{"description":"Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[]}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Service health","description":"Is the API up? Free, no key, never charged: use it for your own uptime checks.\n\nLiveness of the service and its limits store. No key, no charge; answers even while the API is off.","tags":["Service"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"ETag":{"$ref":"#/components/headers/ETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthAnswer"},"examples":{"default":{"summary":"Service health","value":{"data":{"redis":true,"enabled":true,"checked_at":"2026-11-28T10:00:00Z"},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"405":{"description":"Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"500":{"description":"Unexpected error. Not charged. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[]}},"/v1/webhooks/schema":{"get":{"operationId":"getWebhookSchema","summary":"Rule types, fields and bounds","description":"Read this first when you build a rule form: every rule type, the settings it takes, their limits and the chains you can name.\n\nThe same description of the rule types, their settings, bounds and chains the dashboard builds its form from. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookSchemaAnswer"},"examples":{"default":{"summary":"Rule types, fields and bounds","value":{"data":{"event_types":["price","trending","wallet","signal"],"chains":[{"id":"eth","name":"Ethereum"},{"id":"sol","name":"Solana"}],"coverage_notes":{"full":"","not_watched":"This chain is not watched for webhook wallets yet.","never":"This rule cannot fire.","partial":"Some addresses are not read at the moment.","pending":"The watcher has not loaded this address yet.","denied":"This address is not watched.","native_only":"On this chain only native coin moves are watched.","no_source":"No TTF signals are coming in yet."},"rule_types":{"price_cross":{"event":"price","required":["chain","token","above | below"],"optional":["fire_if_already_past"],"price_bounds":[1e-18,1000000000000],"hint":"Fires once when the price moves past the level."},"pct_move":{"event":"price","required":["chain","token","window","percent"],"windows":["15m","1h","4h","24h"],"percent_bounds":[-99,10000],"percent_min_abs":0.1,"hint":"Fires when the price moved at least percent within the window."},"trending_enter":{"event":"trending","required":["chain (or all)","min_scans"],"min_scans_bounds":[1,100000],"optional":["chain","chains","exclude_honeypot","max_per_hour","min_liquidity_usd","per_chain","repeat","unknown"],"filters":{"min_liquidity_usd":{"value":"liquidity_usd","op":"min","kind":"usd","label":"liquidity","group":"market","bounds":[0,10000000000000]},"exclude_honeypot":{"value":"honeypot","op":"false","kind":"flag","label":"honeypot check","group":"simulation"}},"modifiers":["whole_words"],"repeats":["1h","6h","24h","never"],"never_days":180,"unknown_modes":["skip","mark"],"max_per_hour_bounds":[1,1000],"words_max":50,"word_len":32,"chains_max":64,"board_size":30,"enter_window_s":900,"coverage":{"groups":{"market":{"values":["liquidity_usd"],"note":"Market lookup of the board tokens: every chain it lists.","chains":["eth","sol"]},"simulation":{"values":["honeypot"],"note":"The scan's buy / sell simulation: Ethereum-type (EVM) chains only.","chains":["eth"]}},"chains":{"eth":["honeypot","liquidity_usd"],"sol":["liquidity_usd"]},"filters":{"min_liquidity_usd":{"value":"liquidity_usd","group":"market"},"exclude_honeypot":{"value":"honeypot","group":"simulation"}}},"hint":"Fires when a token enters the trending board."},"wallet_activity":{"event":"wallet","required":["chain","address"],"optional":["min_usd","direction"],"min_usd_max":1000000000000,"directions":["out","in","any"],"coverage":"full","full_chains":["base","bsc","eth"],"native_only_chains":[],"all_evm":{"id":"evm","name":"All EVMs","chains":["base","bsc","eth"],"chain_names":["Base","BSC","Ethereum"],"native_only_chains":[],"not_covered":["arb"],"coverage":"full"},"hint":"Fires on a transfer of the wallet."},"signal":{"event":"signal","required":["kind"],"kinds":["breakout","trending","call"],"coverage":"full","hint":"Fires on every TTF signal of that kind."}},"plan_groups":{"price_cross":"core","pct_move":"core","trending_enter":"trending","wallet_activity":"wallet","signal":"signals"},"limits":{"description_max":120,"test_per_minute":5,"rotate_overlap_s":86400}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"}},"/v1/webhooks/usage":{"get":{"operationId":"getWebhookUsage","summary":"Webhook usage and limits","description":"How much room is left: endpoints, rules, watched wallets and deliveries of this month against what your plan allows.\n\nEndpoints, rules, watched wallets and this month's deliveries against your plan. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookUsageAnswer"},"examples":{"default":{"summary":"Webhook usage and limits","value":{"data":{"plan":{"plan_id":"pro","plan_name":"Pro","state":"ok","groups":["core","security","signals","wallet"]},"watch":{"used":12,"limit":2500},"endpoints":{"used":2,"limit":10,"over_limit":0},"rules":{"used":7,"limit":100,"active":6,"over_limit":0},"deliveries":{"used":1840,"limit":250000,"resets":1796000000,"over_quota":false},"partial":[]},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"}},"/v1/webhooks/endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"List your endpoints","description":"All the places TTF delivers to for your account, with their state, so your tool can show or repair them.\n\nEvery endpoint of the account, newest first. A signing secret is never part of it. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointListAnswer"},"examples":{"default":{"summary":"List your endpoints","value":{"data":{"endpoints":[{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","trending","wallet","signal"],"status":"active","enabled":true,"over_limit":false,"secret_version":1,"created":1795000000,"updated":1795000000}],"max_endpoints":10},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"},"post":{"operationId":"createWebhookEndpoint","summary":"Create an endpoint","description":"Register the https URL TTF should POST to. Do it from your own deploy script and store the signing secret it returns.\n\nThe signing secret is in this answer only. A URL is unique per account: creating it again answers 409 duplicate_url. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"201":{"description":"Created","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointCreatedAnswer"},"examples":{"default":{"summary":"Create an endpoint","value":{"data":{"endpoint":{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","trending","wallet","signal"],"status":"active","enabled":true,"over_limit":false,"secret_version":1,"created":1795000000,"updated":1795000000},"secret":"whsec_EXAMPLE","notice":"Copy this signing secret now: it is shown only once. Verify each delivery with it (HMAC-SHA256 of \"<timestamp>.<body>\")."},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"Send a JSON object of valid text.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_json":{"summary":"bad_request: Send a JSON object.","value":{"error":{"code":"bad_request","message":"Send a JSON object.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"quota_exceeded":{"summary":"quota_exceeded: Plan limit reached","value":{"error":{"code":"quota_exceeded","message":"Your plan allows 3 webhook endpoint(s). Delete one first or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#quota_exceeded","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","limit":3}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","quota_exceeded","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"408":{"description":"The request body did not arrive in time. Nothing changed. Codes: request_timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"request_timeout":{"summary":"request_timeout: Body not received","value":{"error":{"code":"request_timeout","message":"The request body did not arrive in time. Send it again.","doc_url":"https://ttf.bot/docs/errors/#request_timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["request_timeout"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: duplicate_url.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"duplicate_url":{"summary":"duplicate_url: URL already used","value":{"error":{"code":"duplicate_url","message":"This account already has an endpoint with that URL.","doc_url":"https://ttf.bot/docs/errors/#duplicate_url","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["duplicate_url"]},"413":{"description":"The body is too large. Codes: too_large.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"too_large":{"summary":"too_large: Body too large","value":{"error":{"code":"too_large","message":"Request body too large.","doc_url":"https://ttf.bot/docs/errors/#too_large","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["too_large"]},"415":{"description":"The body is not declared as JSON. Codes: unsupported_media_type.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unsupported_media_type":{"summary":"unsupported_media_type: Send JSON","value":{"error":{"code":"unsupported_media_type","message":"Send the body with Content-Type: application/json.","doc_url":"https://ttf.bot/docs/errors/#unsupported_media_type","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unsupported_media_type"]},"422":{"description":"The URL or the rule was refused. Nothing changed. Codes: url_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"url_not_allowed":{"summary":"url_not_allowed: Webhook URL refused","value":{"error":{"code":"url_not_allowed","message":"URL must start with https://","doc_url":"https://ttf.bot/docs/errors/#url_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["url_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_configured":{"summary":"not_configured: Webhooks not set up","value":{"error":{"code":"not_configured","message":"Webhooks are not set up on this server yet. Try again later.","doc_url":"https://ttf.bot/docs/errors/#not_configured","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable","not_configured"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"requestBody":{"required":true,"description":"JSON object, Content-Type: application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointCreate"},"examples":{"default":{"summary":"An endpoint for price and wallet alerts.","value":{"url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","wallet"]}},"all_events":{"summary":"Every event type: only the URL.","value":{"url":"https://bot.example.com/ttf"}}}}}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/endpoints/{endpoint_id}":{"get":{"operationId":"getWebhookEndpoint","summary":"Get an endpoint","description":"Look at one endpoint: its URL, the event types it receives and whether it is receiving.\n\nOne endpoint. An id of another account answers like an unknown one. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointAnswer"},"examples":{"default":{"summary":"Get an endpoint","value":{"data":{"endpoint":{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","trending","wallet","signal"],"status":"active","enabled":true,"over_limit":false,"secret_version":1,"created":1795000000,"updated":1795000000}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"},"patch":{"operationId":"updateWebhookEndpoint","summary":"Update an endpoint","description":"Change where deliveries go, which events they carry, or pause and resume an endpoint without losing its rules.\n\nSend only what changes. A new URL is checked again; pausing keeps the rules and stops deliveries. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointUpdatedAnswer"},"examples":{"default":{"summary":"Update an endpoint","value":{"data":{"endpoint":{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","trending","wallet","signal"],"status":"paused","enabled":false,"over_limit":false,"secret_version":1,"created":1795000000,"updated":1795000000}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"Send a JSON object of valid text.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_json":{"summary":"bad_request: Send a JSON object.","value":{"error":{"code":"bad_request","message":"Send a JSON object.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"408":{"description":"The request body did not arrive in time. Nothing changed. Codes: request_timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"request_timeout":{"summary":"request_timeout: Body not received","value":{"error":{"code":"request_timeout","message":"The request body did not arrive in time. Send it again.","doc_url":"https://ttf.bot/docs/errors/#request_timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["request_timeout"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: duplicate_url, types_in_use.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"duplicate_url":{"summary":"duplicate_url: URL already used","value":{"error":{"code":"duplicate_url","message":"This account already has an endpoint with that URL.","doc_url":"https://ttf.bot/docs/errors/#duplicate_url","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"types_in_use":{"summary":"types_in_use: Event types in use","value":{"error":{"code":"types_in_use","message":"Rules of this endpoint use price events: delete those rules first.","doc_url":"https://ttf.bot/docs/errors/#types_in_use","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["duplicate_url","types_in_use"]},"413":{"description":"The body is too large. Codes: too_large.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"too_large":{"summary":"too_large: Body too large","value":{"error":{"code":"too_large","message":"Request body too large.","doc_url":"https://ttf.bot/docs/errors/#too_large","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["too_large"]},"415":{"description":"The body is not declared as JSON. Codes: unsupported_media_type.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unsupported_media_type":{"summary":"unsupported_media_type: Send JSON","value":{"error":{"code":"unsupported_media_type","message":"Send the body with Content-Type: application/json.","doc_url":"https://ttf.bot/docs/errors/#unsupported_media_type","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unsupported_media_type"]},"422":{"description":"The URL or the rule was refused. Nothing changed. Codes: url_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"url_not_allowed":{"summary":"url_not_allowed: Webhook URL refused","value":{"error":{"code":"url_not_allowed","message":"URL must start with https://","doc_url":"https://ttf.bot/docs/errors/#url_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["url_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: busy, unavailable, not_configured.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"Another change of your wallet rules is in progress. Try again.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_configured":{"summary":"not_configured: Webhooks not set up","value":{"error":{"code":"not_configured","message":"Webhooks are not set up on this server yet. Try again later.","doc_url":"https://ttf.bot/docs/errors/#not_configured","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["busy","unavailable","not_configured"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"requestBody":{"required":true,"description":"JSON object, Content-Type: application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointUpdate"},"examples":{"default":{"summary":"Pause the endpoint.","value":{"enabled":false}},"url":{"summary":"Move it to another URL.","value":{"url":"https://bot.example.com/ttf-v2"}}}}}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"},"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete an endpoint","description":"Remove an endpoint you no longer need, together with everything attached to it.\n\nRemoves the endpoint with its rules, its delivery log and what was still queued for it. This cannot be undone. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookEndpointDeletedAnswer"},"examples":{"default":{"summary":"Delete an endpoint","value":{"data":{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","deleted":true,"rules_deleted":3,"deliveries_deleted":128},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/endpoints/{endpoint_id}/rotate":{"post":{"operationId":"rotateWebhookSecret","summary":"Rotate the signing secret","description":"Replace the signing secret, for example after it showed up in a log. Your receiver can accept both for a day.\n\nTakes no body. The new secret is in this answer only; the previous one keeps signing for 24 hours, so you can switch without a gap. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookSecretRotatedAnswer"},"examples":{"default":{"summary":"Rotate the signing secret","value":{"data":{"endpoint":{"id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","url":"https://bot.example.com/ttf","description":"Trading bot","event_types":["price","trending","wallet","signal"],"status":"active","enabled":true,"over_limit":false,"secret_version":2,"created":1795000000,"updated":1795000000,"previous_secret_until":1795086400},"secret":"whsec_EXAMPLE","notice":"Copy the new signing secret now: it is shown only once. The previous secret keeps working for 24 hours; rotating again within that time ends the oldest one at once (only the two newest are kept)."},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: conflict.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"conflict":{"summary":"conflict: Changed meanwhile","value":{"error":{"code":"conflict","message":"The secret was changed meanwhile. Reload and try again.","doc_url":"https://ttf.bot/docs/errors/#conflict","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["conflict"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_configured":{"summary":"not_configured: Webhooks not set up","value":{"error":{"code":"not_configured","message":"Webhooks are not set up on this server yet. Try again later.","doc_url":"https://ttf.bot/docs/errors/#not_configured","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable","not_configured"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/endpoints/{endpoint_id}/test":{"post":{"operationId":"sendWebhookTest","summary":"Send a test delivery","description":"Check your receiver end to end: a signed test delivery goes through the same path as a real alert.\n\nTakes no body. Queues a synthetic ping (at most 5 a minute per endpoint); its result shows in the delivery log under the event id. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"202":{"description":"Queued","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookTestAnswer"},"examples":{"default":{"summary":"Send a test delivery","value":{"data":{"event_id":"01JDZ8Q7X3M4N5P6Q7R8S9T0PE","queued":true},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"quota_exceeded":{"summary":"quota_exceeded: Plan limit reached","value":{"error":{"code":"quota_exceeded","message":"This month's delivery quota is used up: test deliveries work again when the next period starts or after an upgrade.","doc_url":"https://ttf.bot/docs/errors/#quota_exceeded","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","limit":3}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","quota_exceeded","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: endpoint_paused, over_limit.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"endpoint_paused":{"summary":"endpoint_paused: Endpoint paused","value":{"error":{"code":"endpoint_paused","message":"Resume the endpoint first: a paused or disabled endpoint gets nothing.","doc_url":"https://ttf.bot/docs/errors/#endpoint_paused","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"over_limit":{"summary":"over_limit: Endpoint over the plan limit","value":{"error":{"code":"over_limit","message":"This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#over_limit","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["endpoint_paused","over_limit"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_configured":{"summary":"not_configured: Webhooks not set up","value":{"error":{"code":"not_configured","message":"Webhooks are not set up on this server yet. Try again later.","doc_url":"https://ttf.bot/docs/errors/#not_configured","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable","not_configured"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/endpoints/{endpoint_id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"Delivery log of an endpoint","description":"Debug a receiver: what was sent, how many tries it took and what your server answered.\n\nWhat was sent to the endpoint, newest first, with your receiver's answer. Pages: data.next_cursor -> ?cursor=. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"description":"Endpoint id (data.endpoint.id).","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"},{"name":"cursor","in":"query","required":false,"description":"data.next_cursor of the previous page. Omit for the newest page.","schema":{"type":"string","maxLength":64},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1-100. Default 25.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"example":25},{"name":"event_id","in":"query","required":false,"description":"Only the rows of this event (the event_id of a test).","schema":{"type":"string","maxLength":64},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0PE"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookDeliveryListAnswer"},"examples":{"default":{"summary":"Delivery log of an endpoint","value":{"data":{"deliveries":[{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","event_id":"01JDZ8Q7X3M4N5P6Q7R8S9T0PE","rule_id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"price_cross","status":"delivered","attempts":1,"response_status":200,"latency_ms":84,"ts":1795000000,"response_snippet":"ok","snippet_truncated":false}],"next_cursor":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"limit: 1..100.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_cursor":{"summary":"bad_request: cursor: the next_cursor of the previous page.","value":{"error":{"code":"bad_request","message":"cursor: the next_cursor of the previous page.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"}},"/v1/webhooks/rules":{"get":{"operationId":"listWebhookRules","summary":"List your rules","description":"Everything that can fire for your account, with the reason when a rule is not firing.\n\nEvery rule of the account (or of one endpoint), newest first, each with its status and coverage. Wallet addresses and labels are not in the list (address_count and label_count say how many): get one rule for them. A watchlist shows coverage partial whenever its chain is over capacity; the rule itself says exactly. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"query","required":false,"description":"Only the rules of this endpoint.","schema":{"type":"string","maxLength":64},"example":"whe_8b1f0c2d9a7e4f3b5c6d1e2a"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleListAnswer"},"examples":{"default":{"summary":"List your rules","value":{"data":{"rules":[{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"price_cross","name":"PEPE breakout","params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05},"enabled":true,"active":true,"over_limit":false,"status":"active","coverage":"full","coverage_note":"","created":1795000000,"updated":1795000000},{"id":"whr_0c4e8a2f6b1d9e3a5f7c2b41","endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"wallet_activity","name":"Whales","params":{"chain":"eth","min_usd":1000,"direction":"any"},"enabled":true,"active":true,"over_limit":false,"status":"active","coverage":"full","coverage_note":"","created":1795000000,"updated":1795000000,"address_count":25,"label_count":3}],"max_rules":100,"max_watch_addresses":2500},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden","account_suspended"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"},"post":{"operationId":"createWebhookRule","summary":"Create a rule","description":"Ask TTF to tell you when a price crosses a level, a wallet moves, a token starts trending or a signal appears.\n\nThere is no idempotency key: after a timeout, list your rules before creating it again, or you may get it twice. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"201":{"description":"Created","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleCreatedAnswer"},"examples":{"default":{"summary":"Create a rule","value":{"data":{"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"price_cross","name":"PEPE breakout","labels":{},"params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05},"enabled":true,"active":true,"over_limit":false,"status":"active","coverage":"full","coverage_note":"","created":1795000000,"updated":1795000000}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"Send a JSON object of valid text.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_json":{"summary":"bad_request: Send a JSON object.","value":{"error":{"code":"bad_request","message":"Send a JSON object.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"quota_exceeded":{"summary":"quota_exceeded: Plan limit reached","value":{"error":{"code":"quota_exceeded","message":"Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#quota_exceeded","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","limit":3}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"plan_required":{"summary":"plan_required: Plan group needed","value":{"error":{"code":"plan_required","message":"Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.","doc_url":"https://ttf.bot/docs/errors/#plan_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","group":"signals","field":"type"}}}}}},"x-ttf-error-codes":["forbidden","quota_exceeded","account_suspended","plan_required"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"408":{"description":"The request body did not arrive in time. Nothing changed. Codes: request_timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"request_timeout":{"summary":"request_timeout: Body not received","value":{"error":{"code":"request_timeout","message":"The request body did not arrive in time. Send it again.","doc_url":"https://ttf.bot/docs/errors/#request_timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["request_timeout"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: over_limit.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"over_limit":{"summary":"over_limit: Endpoint over the plan limit","value":{"error":{"code":"over_limit","message":"This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#over_limit","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["over_limit"]},"413":{"description":"The body is too large. Codes: too_large.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"too_large":{"summary":"too_large: Body too large","value":{"error":{"code":"too_large","message":"Request body too large.","doc_url":"https://ttf.bot/docs/errors/#too_large","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["too_large"]},"415":{"description":"The body is not declared as JSON. Codes: unsupported_media_type.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unsupported_media_type":{"summary":"unsupported_media_type: Send JSON","value":{"error":{"code":"unsupported_media_type","message":"Send the body with Content-Type: application/json.","doc_url":"https://ttf.bot/docs/errors/#unsupported_media_type","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unsupported_media_type"]},"422":{"description":"The URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"invalid_rule":{"summary":"invalid_rule: Invalid rule","value":{"error":{"code":"invalid_rule","message":"percent: percent out of range","doc_url":"https://ttf.bot/docs/errors/#invalid_rule","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","field":"percent"}}},"type_not_subscribed":{"summary":"type_not_subscribed: Event type not subscribed","value":{"error":{"code":"type_not_subscribed","message":"This endpoint does not receive price events: add the type to the endpoint first.","doc_url":"https://ttf.bot/docs/errors/#type_not_subscribed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","field":"type"}}}}}},"x-ttf-error-codes":["invalid_rule","type_not_subscribed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"Another change of your wallet rules is in progress. Try again.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["busy","unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"requestBody":{"required":true,"description":"JSON object, Content-Type: application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleCreate"},"examples":{"default":{"summary":"A price alert.","value":{"endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"price_cross","params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05},"name":"PEPE breakout"}},"watchlist":{"summary":"A watchlist of wallets with labels.","value":{"endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"wallet_activity","params":{"chain":"eth","addresses":["0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a"],"min_usd":1000,"direction":"any"},"labels":{"0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a":"Whale"}}}}}}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/rules/check":{"post":{"operationId":"checkWebhookRule","summary":"Check a rule without saving","description":"Validate what a user typed before you create an endpoint or a rule for it. Nothing is saved.\n\nValidates a rule exactly as a create would (the watched-wallet quota is only checked by a create) and saves nothing. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleCheckAnswer"},"examples":{"default":{"summary":"Check a rule without saving","value":{"data":{"ok":true,"coverage":"full","coverage_note":""},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"Send a JSON object of valid text.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_json":{"summary":"bad_request: Send a JSON object.","value":{"error":{"code":"bad_request","message":"Send a JSON object.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"quota_exceeded":{"summary":"quota_exceeded: Plan limit reached","value":{"error":{"code":"quota_exceeded","message":"Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#quota_exceeded","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","limit":3}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"plan_required":{"summary":"plan_required: Plan group needed","value":{"error":{"code":"plan_required","message":"Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.","doc_url":"https://ttf.bot/docs/errors/#plan_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","group":"signals","field":"type"}}}}}},"x-ttf-error-codes":["forbidden","quota_exceeded","account_suspended","plan_required"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such endpoint.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"408":{"description":"The request body did not arrive in time. Nothing changed. Codes: request_timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"request_timeout":{"summary":"request_timeout: Body not received","value":{"error":{"code":"request_timeout","message":"The request body did not arrive in time. Send it again.","doc_url":"https://ttf.bot/docs/errors/#request_timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["request_timeout"]},"409":{"description":"The change conflicts with the current state. Nothing changed. Codes: over_limit.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"over_limit":{"summary":"over_limit: Endpoint over the plan limit","value":{"error":{"code":"over_limit","message":"This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#over_limit","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["over_limit"]},"413":{"description":"The body is too large. Codes: too_large.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"too_large":{"summary":"too_large: Body too large","value":{"error":{"code":"too_large","message":"Request body too large.","doc_url":"https://ttf.bot/docs/errors/#too_large","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["too_large"]},"415":{"description":"The body is not declared as JSON. Codes: unsupported_media_type.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unsupported_media_type":{"summary":"unsupported_media_type: Send JSON","value":{"error":{"code":"unsupported_media_type","message":"Send the body with Content-Type: application/json.","doc_url":"https://ttf.bot/docs/errors/#unsupported_media_type","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unsupported_media_type"]},"422":{"description":"The URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"invalid_rule":{"summary":"invalid_rule: Invalid rule","value":{"error":{"code":"invalid_rule","message":"percent: percent out of range","doc_url":"https://ttf.bot/docs/errors/#invalid_rule","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","field":"percent"}}},"type_not_subscribed":{"summary":"type_not_subscribed: Event type not subscribed","value":{"error":{"code":"type_not_subscribed","message":"This endpoint does not receive price events: add the type to the endpoint first.","doc_url":"https://ttf.bot/docs/errors/#type_not_subscribed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","field":"type"}}}}}},"x-ttf-error-codes":["invalid_rule","type_not_subscribed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"requestBody":{"required":true,"description":"JSON object, Content-Type: application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleCheckInput"},"examples":{"default":{"summary":"Check a price alert.","value":{"type":"price_cross","params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05}}}}}}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}},"/v1/webhooks/rules/{rule_id}":{"get":{"operationId":"getWebhookRule","summary":"Get a rule","description":"Look at one rule: its settings, whether it is active and what coverage it has.\n\nOne rule with its status and coverage. An id of another account answers like an unknown one. Needs an API key with `webhooks: read` (write includes read). Costs 0 credits; counted in your account's webhook read limit.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"description":"Rule id (data.rule.id).","schema":{"type":"string","maxLength":64},"example":"whr_6f1c0a9e2b7d4c3a1e0f9b8d"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleAnswer"},"examples":{"default":{"summary":"Get a rule","value":{"data":{"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"price_cross","name":"PEPE breakout","labels":{},"params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05},"enabled":true,"active":true,"over_limit":false,"status":"active","coverage":"full","coverage_note":"","created":1795000000,"updated":1795000000}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such rule.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"read"},"patch":{"operationId":"updateWebhookRule","summary":"Update a rule","description":"Change the threshold, the wallets or the name of a rule, or switch it off for a while.\n\nSend only what changes; `params` replaces all settings of the rule. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"description":"Rule id (data.rule.id).","schema":{"type":"string","maxLength":64},"example":"whr_6f1c0a9e2b7d4c3a1e0f9b8d"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleUpdatedAnswer"},"examples":{"default":{"summary":"Update a rule","value":{"data":{"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","endpoint_id":"whe_8b1f0c2d9a7e4f3b5c6d1e2a","type":"price_cross","name":"PEPE breakout","labels":{},"params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1e-05},"enabled":false,"active":false,"over_limit":false,"status":"disabled","coverage":"full","coverage_note":"","created":1795000000,"updated":1795000000}},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"400":{"description":"Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"bad_request":{"summary":"bad_request: Bad request","value":{"error":{"code":"bad_request","message":"Send a JSON object of valid text.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"bad_request_json":{"summary":"bad_request: Send a JSON object.","value":{"error":{"code":"bad_request","message":"Send a JSON object.","doc_url":"https://ttf.bot/docs/errors/#bad_request","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["bad_request"]},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"quota_exceeded":{"summary":"quota_exceeded: Plan limit reached","value":{"error":{"code":"quota_exceeded","message":"Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.","doc_url":"https://ttf.bot/docs/errors/#quota_exceeded","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","limit":3}}},"account_suspended":{"summary":"account_suspended: Account suspended","value":{"error":{"code":"account_suspended","message":"This account is suspended. Contact support.","doc_url":"https://ttf.bot/docs/errors/#account_suspended","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"plan_required":{"summary":"plan_required: Plan group needed","value":{"error":{"code":"plan_required","message":"Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.","doc_url":"https://ttf.bot/docs/errors/#plan_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","group":"signals","field":"type"}}}}}},"x-ttf-error-codes":["forbidden","quota_exceeded","account_suspended","plan_required"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such rule.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"408":{"description":"The request body did not arrive in time. Nothing changed. Codes: request_timeout.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"request_timeout":{"summary":"request_timeout: Body not received","value":{"error":{"code":"request_timeout","message":"The request body did not arrive in time. Send it again.","doc_url":"https://ttf.bot/docs/errors/#request_timeout","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["request_timeout"]},"413":{"description":"The body is too large. Codes: too_large.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"too_large":{"summary":"too_large: Body too large","value":{"error":{"code":"too_large","message":"Request body too large.","doc_url":"https://ttf.bot/docs/errors/#too_large","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["too_large"]},"415":{"description":"The body is not declared as JSON. Codes: unsupported_media_type.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unsupported_media_type":{"summary":"unsupported_media_type: Send JSON","value":{"error":{"code":"unsupported_media_type","message":"Send the body with Content-Type: application/json.","doc_url":"https://ttf.bot/docs/errors/#unsupported_media_type","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unsupported_media_type"]},"422":{"description":"The URL or the rule was refused. Nothing changed. Codes: invalid_rule.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"invalid_rule":{"summary":"invalid_rule: Invalid rule","value":{"error":{"code":"invalid_rule","message":"percent: percent out of range","doc_url":"https://ttf.bot/docs/errors/#invalid_rule","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6","field":"percent"}}}}}},"x-ttf-error-codes":["invalid_rule"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"Another change of your wallet rules is in progress. Try again.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["busy","unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"requestBody":{"required":true,"description":"JSON object, Content-Type: application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleUpdate"},"examples":{"default":{"summary":"Switch the rule off.","value":{"enabled":false}},"params":{"summary":"New settings.","value":{"params":{"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","above":1.2e-05}}}}}}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"},"delete":{"operationId":"deleteWebhookRule","summary":"Delete a rule","description":"Stop an alert for good: the rule is removed and its place in your plan is free again.\n\nTakes no body. The rule stops firing at once. Needs an API key with `webhooks: write`. Costs 0 credits; counted in your account's webhook change and read limits.","tags":["Webhook management"],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"description":"Rule id (data.rule.id).","schema":{"type":"string","maxLength":64},"example":"whr_6f1c0a9e2b7d4c3a1e0f9b8d"}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookRuleDeletedAnswer"},"examples":{"default":{"summary":"Delete a rule","value":{"data":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","deleted":true},"meta":{"cost":0,"request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}}},"401":{"description":"The API key is missing or not valid. Codes: unauthorized.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"unauthorized":{"summary":"unauthorized: Missing or invalid key","value":{"error":{"code":"unauthorized","message":"An API key is required (Authorization: Bearer <key>).","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unauthorized_invalid":{"summary":"unauthorized: This API key is not valid.","value":{"error":{"code":"unauthorized","message":"This API key is not valid.","doc_url":"https://ttf.bot/docs/errors/#unauthorized","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["unauthorized"]},"402":{"description":"The subscription of this API key has ended. Codes: payment_required.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"payment_required":{"summary":"payment_required: Subscription ended","value":{"error":{"code":"payment_required","message":"This API key subscription has ended. Renew it to continue.","doc_url":"https://ttf.bot/docs/errors/#payment_required","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["payment_required"]},"403":{"description":"The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"forbidden":{"summary":"forbidden: Not included in your plan","value":{"error":{"code":"forbidden","message":"This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_ip":{"summary":"forbidden: This API key may not be used from this address.","value":{"error":{"code":"forbidden","message":"This API key may not be used from this address.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"forbidden_plan":{"summary":"forbidden: This API key does not include the developer plan.","value":{"error":{"code":"forbidden","message":"This API key does not include the developer plan.","doc_url":"https://ttf.bot/docs/errors/#forbidden","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["forbidden"]},"404":{"description":"No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"not_found":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"No such rule.","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"not_found_off":{"summary":"not_found: Not found","value":{"error":{"code":"not_found","message":"Not found","doc_url":"https://ttf.bot/docs/errors/#not_found","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["not_found"]},"405":{"description":"Wrong HTTP method for this route. Codes: method_not_allowed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"method_not_allowed":{"summary":"method_not_allowed: Method not allowed","value":{"error":{"code":"method_not_allowed","message":"Method not allowed","doc_url":"https://ttf.bot/docs/errors/#method_not_allowed","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["method_not_allowed"]},"429":{"description":"Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"rate_limited":{"summary":"rate_limited: Slow down","value":{"error":{"code":"rate_limited","message":"Too many requests for this account. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_rps":{"summary":"rate_limited: Too many requests per second for this account. Slow down and retry.","value":{"error":{"code":"rate_limited","message":"Too many requests per second for this account. Slow down and retry.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_inflight":{"summary":"rate_limited: Too many requests of this account at once. Wait for one to finish.","value":{"error":{"code":"rate_limited","message":"Too many requests of this account at once. Wait for one to finish.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"rate_limited_network":{"summary":"rate_limited: Too many invalid API keys from this network. Try again later.","value":{"error":{"code":"rate_limited","message":"Too many invalid API keys from this network. Try again later.","doc_url":"https://ttf.bot/docs/errors/#rate_limited","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["rate_limited"]},"500":{"description":"Unexpected error. Codes: internal.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"internal":{"summary":"internal: Internal error","value":{"error":{"code":"internal","message":"Something went wrong. Try again in a moment.","doc_url":"https://ttf.bot/docs/errors/#internal","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["internal"]},"503":{"description":"The service cannot answer right now. See Retry-After. Codes: busy, unavailable.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"busy":{"summary":"busy: Busy","value":{"error":{"code":"busy","message":"Another change of your wallet rules is in progress. Try again.","doc_url":"https://ttf.bot/docs/errors/#busy","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable":{"summary":"unavailable: Temporarily unavailable","value":{"error":{"code":"unavailable","message":"The API cannot check its limits right now. Try again in a few seconds.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}},"unavailable_service":{"summary":"unavailable: The webhook service is busy. Try again in a minute.","value":{"error":{"code":"unavailable","message":"The webhook service is busy. Try again in a minute.","doc_url":"https://ttf.bot/docs/errors/#unavailable","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["busy","unavailable"]},"default":{"description":"Any other refusal of the HTTP layer (rare): the status says which. Codes: error.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-Credits-Cost":{"$ref":"#/components/headers/X-Credits-Cost"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorAnswer"},"examples":{"error":{"summary":"error: Request refused","value":{"error":{"code":"error","message":"Request refused","doc_url":"https://ttf.bot/docs/errors/#error","request_id":"3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"}}}}}},"x-ttf-error-codes":["error"]}},"x-ttf-credits":{"live":0,"cached":0,"attempt_fee":0},"x-ttf-groups":[],"x-ttf-plan-minimum":"free","x-ttf-permission":"write"}}},"webhooks":{"price":{"post":{"operationId":"webhookPrice","tags":["Webhooks"],"summary":"Webhook: price","description":"Sent when a `price_cross`, `pct_move` rule fired on a `price` event. TTF sends an HTTPS POST with a JSON body to your endpoint when a rule fires (and when you press Test in the dashboard). Answer any 2xx within 10 seconds (queue the work on your side); anything else, a timeout or a redirect is retried after 1 min, 5 min, 30 min, 2 h and 12 h. Delivery is AT LEAST ONCE: dedupe on X-TTF-Delivery (= body.id). Deliveries are not ordered: order by created_ms / event.ts. Verify X-TTF-Signature over the RAW body before you trust it. Deliveries come from changing proxy addresses: never allowlist IPs, verify the signature.","parameters":[{"name":"X-TTF-Event","in":"header","required":true,"description":"The event type of the body's `event`: price, trending, wallet, signal or ping.","schema":{"type":"string"},"example":"price"},{"name":"X-TTF-Event-Id","in":"header","required":true,"description":"The event id (a ULID). One event can fire several of your rules: each is its own delivery.","schema":{"type":"string"},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0PA"},{"name":"X-TTF-Delivery","in":"header","required":true,"description":"The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.","schema":{"type":"string"},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"X-TTF-Attempt","in":"header","required":true,"description":"1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).","schema":{"type":"integer","minimum":1},"example":1},{"name":"X-TTF-Timestamp","in":"header","required":true,"description":"Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).","schema":{"type":"integer"},"example":1795000000},{"name":"X-TTF-Signature","in":"header","required":true,"description":"v1=<hex>: HMAC-SHA256(key = your endpoint secret \"whsec_...\", message = X-TTF-Timestamp + \".\" + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: \"v1=<new>,v1=<old>\". Compare in constant time; accept if any value matches.","schema":{"type":"string"},"example":"v1=0000000000000000000000000000000000000000000000000000000000000000"},{"name":"User-Agent","in":"header","required":true,"description":"Always TTF-Webhooks/1.0.","schema":{"type":"string"},"example":"TTF-Webhooks/1.0"}],"requestBody":{"required":true,"description":"The delivery body (identical on every attempt).","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WebhookPriceCross"},{"$ref":"#/components/schemas/WebhookPctMove"}]},"examples":{"price_cross":{"summary":"price_cross delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"rule.fired","created_ms":1795000000000,"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"price_cross"},"reason":"crossed","detail":{"threshold_usd":"0.000009","side":"above","price_usd":"0.0000092","change_pct":2.22},"event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0PA","type":"price","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"price_usd":"0.0000092"}}}},"pct_move":{"summary":"pct_move delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"rule.fired","created_ms":1795000000000,"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"pct_move"},"reason":"moved","detail":{"window":"1h","threshold_pct":5,"change_pct":6.98,"base_price_usd":"0.0000086","base_ms":1794996500000,"price_usd":"0.0000092"},"event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0PA","type":"price","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"price_usd":"0.0000092"}}}}}}}},"responses":{"2XX":{"description":"Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log."},"default":{"description":"Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried."}},"security":[],"x-ttf-rule-kinds":["price_cross","pct_move"],"x-ttf-signature":{"algorithm":"HMAC-SHA256","header":"X-TTF-Signature","format":"v1=<64 lower-case hex>[,v1=<hex>]","signed_payload":"<X-TTF-Timestamp>.<raw request body bytes>","secret":"the endpoint secret, the whole whsec_... string as UTF-8","timestamp_header":"X-TTF-Timestamp","tolerance_s":300,"rotation":"for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches"}}},"trending":{"post":{"operationId":"webhookTrending","tags":["Webhooks"],"summary":"Webhook: trending","description":"Sent when a `trending_enter` rule fired on a `trending` event. TTF sends an HTTPS POST with a JSON body to your endpoint when a rule fires (and when you press Test in the dashboard). Answer any 2xx within 10 seconds (queue the work on your side); anything else, a timeout or a redirect is retried after 1 min, 5 min, 30 min, 2 h and 12 h. Delivery is AT LEAST ONCE: dedupe on X-TTF-Delivery (= body.id). Deliveries are not ordered: order by created_ms / event.ts. Verify X-TTF-Signature over the RAW body before you trust it. Deliveries come from changing proxy addresses: never allowlist IPs, verify the signature.","parameters":[{"name":"X-TTF-Event","in":"header","required":true,"description":"The event type of the body's `event`: price, trending, wallet, signal or ping.","schema":{"type":"string"},"example":"trending"},{"name":"X-TTF-Event-Id","in":"header","required":true,"description":"The event id (a ULID). One event can fire several of your rules: each is its own delivery.","schema":{"type":"string"},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0TB"},{"name":"X-TTF-Delivery","in":"header","required":true,"description":"The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.","schema":{"type":"string"},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"X-TTF-Attempt","in":"header","required":true,"description":"1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).","schema":{"type":"integer","minimum":1},"example":1},{"name":"X-TTF-Timestamp","in":"header","required":true,"description":"Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).","schema":{"type":"integer"},"example":1795000000},{"name":"X-TTF-Signature","in":"header","required":true,"description":"v1=<hex>: HMAC-SHA256(key = your endpoint secret \"whsec_...\", message = X-TTF-Timestamp + \".\" + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: \"v1=<new>,v1=<old>\". Compare in constant time; accept if any value matches.","schema":{"type":"string"},"example":"v1=0000000000000000000000000000000000000000000000000000000000000000"},{"name":"User-Agent","in":"header","required":true,"description":"Always TTF-Webhooks/1.0.","schema":{"type":"string"},"example":"TTF-Webhooks/1.0"}],"requestBody":{"required":true,"description":"The delivery body (identical on every attempt).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTrendingEnter"},"examples":{"trending_enter":{"summary":"trending_enter delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"rule.fired","created_ms":1795000000000,"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"trending_enter"},"reason":"entered","detail":{"scans":41,"min_scans":25,"first_seen_ms":1794999880000,"filters":["min_liquidity_usd","exclude_honeypot"]},"event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0TB","type":"trending","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"rank":3,"scans":41,"interval_min":5,"symbol":"PEPE","name":"Pepe","pair":"0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","first_seen_ms":1794999880000,"liquidity_usd":"38200000","market_cap_usd":"3870000000","volume_24h_usd":"51200000","price_change_1h_pct":1.8,"buys_1h":412,"pair_created_ms":1681900000000,"pair_with":"native","has_website":true,"has_x":true,"has_telegram":true,"honeypot":false,"buy_tax_pct":0.0,"sell_tax_pct":0.0,"locked_pct":100.0,"holders":400000,"top10_pct":41.2,"renounced":true,"verified_source":true}}}}}}}},"responses":{"2XX":{"description":"Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log."},"default":{"description":"Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried."}},"security":[],"x-ttf-rule-kinds":["trending_enter"],"x-ttf-signature":{"algorithm":"HMAC-SHA256","header":"X-TTF-Signature","format":"v1=<64 lower-case hex>[,v1=<hex>]","signed_payload":"<X-TTF-Timestamp>.<raw request body bytes>","secret":"the endpoint secret, the whole whsec_... string as UTF-8","timestamp_header":"X-TTF-Timestamp","tolerance_s":300,"rotation":"for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches"}}},"wallet":{"post":{"operationId":"webhookWallet","tags":["Webhooks"],"summary":"Webhook: wallet","description":"Sent when a `wallet_activity` rule fired on a `wallet` event. TTF sends an HTTPS POST with a JSON body to your endpoint when a rule fires (and when you press Test in the dashboard). Answer any 2xx within 10 seconds (queue the work on your side); anything else, a timeout or a redirect is retried after 1 min, 5 min, 30 min, 2 h and 12 h. Delivery is AT LEAST ONCE: dedupe on X-TTF-Delivery (= body.id). Deliveries are not ordered: order by created_ms / event.ts. Verify X-TTF-Signature over the RAW body before you trust it. Deliveries come from changing proxy addresses: never allowlist IPs, verify the signature.","parameters":[{"name":"X-TTF-Event","in":"header","required":true,"description":"The event type of the body's `event`: price, trending, wallet, signal or ping.","schema":{"type":"string"},"example":"wallet"},{"name":"X-TTF-Event-Id","in":"header","required":true,"description":"The event id (a ULID). One event can fire several of your rules: each is its own delivery.","schema":{"type":"string"},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0WC"},{"name":"X-TTF-Delivery","in":"header","required":true,"description":"The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.","schema":{"type":"string"},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"X-TTF-Attempt","in":"header","required":true,"description":"1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).","schema":{"type":"integer","minimum":1},"example":1},{"name":"X-TTF-Timestamp","in":"header","required":true,"description":"Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).","schema":{"type":"integer"},"example":1795000000},{"name":"X-TTF-Signature","in":"header","required":true,"description":"v1=<hex>: HMAC-SHA256(key = your endpoint secret \"whsec_...\", message = X-TTF-Timestamp + \".\" + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: \"v1=<new>,v1=<old>\". Compare in constant time; accept if any value matches.","schema":{"type":"string"},"example":"v1=0000000000000000000000000000000000000000000000000000000000000000"},{"name":"User-Agent","in":"header","required":true,"description":"Always TTF-Webhooks/1.0.","schema":{"type":"string"},"example":"TTF-Webhooks/1.0"}],"requestBody":{"required":true,"description":"The delivery body (identical on every attempt).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWalletActivity"},"examples":{"wallet_activity":{"summary":"wallet_activity delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"rule.fired","created_ms":1795000000000,"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"wallet_activity"},"reason":"activity","detail":{"value_usd":"13.8","min_value_usd":"10"},"event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0WC","type":"wallet","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"address":"0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a","tx":"0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d","to":"0x4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b","value":"1500000000000000000000","decimals":18,"symbol":"PEPE","value_usd":"13.8","log_index":12,"block":21400000,"from":"0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a","direction":"out"}}}}}}}},"responses":{"2XX":{"description":"Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log."},"default":{"description":"Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried."}},"security":[],"x-ttf-rule-kinds":["wallet_activity"],"x-ttf-signature":{"algorithm":"HMAC-SHA256","header":"X-TTF-Signature","format":"v1=<64 lower-case hex>[,v1=<hex>]","signed_payload":"<X-TTF-Timestamp>.<raw request body bytes>","secret":"the endpoint secret, the whole whsec_... string as UTF-8","timestamp_header":"X-TTF-Timestamp","tolerance_s":300,"rotation":"for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches"}}},"signal":{"post":{"operationId":"webhookSignal","tags":["Webhooks"],"summary":"Webhook: signal","description":"Sent when a `signal` rule fired on a `signal` event. TTF sends an HTTPS POST with a JSON body to your endpoint when a rule fires (and when you press Test in the dashboard). Answer any 2xx within 10 seconds (queue the work on your side); anything else, a timeout or a redirect is retried after 1 min, 5 min, 30 min, 2 h and 12 h. Delivery is AT LEAST ONCE: dedupe on X-TTF-Delivery (= body.id). Deliveries are not ordered: order by created_ms / event.ts. Verify X-TTF-Signature over the RAW body before you trust it. Deliveries come from changing proxy addresses: never allowlist IPs, verify the signature.","parameters":[{"name":"X-TTF-Event","in":"header","required":true,"description":"The event type of the body's `event`: price, trending, wallet, signal or ping.","schema":{"type":"string"},"example":"signal"},{"name":"X-TTF-Event-Id","in":"header","required":true,"description":"The event id (a ULID). One event can fire several of your rules: each is its own delivery.","schema":{"type":"string"},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0SD"},{"name":"X-TTF-Delivery","in":"header","required":true,"description":"The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.","schema":{"type":"string"},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"X-TTF-Attempt","in":"header","required":true,"description":"1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).","schema":{"type":"integer","minimum":1},"example":1},{"name":"X-TTF-Timestamp","in":"header","required":true,"description":"Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).","schema":{"type":"integer"},"example":1795000000},{"name":"X-TTF-Signature","in":"header","required":true,"description":"v1=<hex>: HMAC-SHA256(key = your endpoint secret \"whsec_...\", message = X-TTF-Timestamp + \".\" + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: \"v1=<new>,v1=<old>\". Compare in constant time; accept if any value matches.","schema":{"type":"string"},"example":"v1=0000000000000000000000000000000000000000000000000000000000000000"},{"name":"User-Agent","in":"header","required":true,"description":"Always TTF-Webhooks/1.0.","schema":{"type":"string"},"example":"TTF-Webhooks/1.0"}],"requestBody":{"required":true,"description":"The delivery body (identical on every attempt).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSignal"},"examples":{"signal":{"summary":"signal delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"rule.fired","created_ms":1795000000000,"rule":{"id":"whr_6f1c0a9e2b7d4c3a1e0f9b8d","kind":"signal"},"reason":"signal","detail":{"kind":"breakout"},"event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0SD","type":"signal","ts":1795000000000,"chain":"eth","token":"0x6982508145454ce325ddbe47a25d4ec3d2311933","data":{"kind":"breakout","multiple":1.04,"called_at_ms":1794996400000,"plan_text":"if it holds 24h -> enter, sell 50% at 2x, sell 50% every 3x after","symbol":"ORBIT","name":"Orbit Cat","tier":"daily","grade":"strong","dex":"uniswap","pair_created_ms":1794222400000,"prev_ath_mc_usd":"18860000","prev_ath_ms":1794827200000,"market_cap_usd":"19614400","liquidity_usd":"1240000","volume_24h_usd":"3870000","price_change_24h_pct":31.4,"buys_24h":4210,"sells_24h":2960,"price_usd":"0.0196144"}}}}}}}},"responses":{"2XX":{"description":"Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log."},"default":{"description":"Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried."}},"security":[],"x-ttf-rule-kinds":["signal"],"x-ttf-signature":{"algorithm":"HMAC-SHA256","header":"X-TTF-Signature","format":"v1=<64 lower-case hex>[,v1=<hex>]","signed_payload":"<X-TTF-Timestamp>.<raw request body bytes>","secret":"the endpoint secret, the whole whsec_... string as UTF-8","timestamp_header":"X-TTF-Timestamp","tolerance_s":300,"rotation":"for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches"}}},"ping":{"post":{"operationId":"webhookPing","tags":["Webhooks"],"summary":"Webhook: ping (test)","description":"Sent when the dashboard's Test button. TTF sends an HTTPS POST with a JSON body to your endpoint when a rule fires (and when you press Test in the dashboard). Answer any 2xx within 10 seconds (queue the work on your side); anything else, a timeout or a redirect is retried after 1 min, 5 min, 30 min, 2 h and 12 h. Delivery is AT LEAST ONCE: dedupe on X-TTF-Delivery (= body.id). Deliveries are not ordered: order by created_ms / event.ts. Verify X-TTF-Signature over the RAW body before you trust it. Deliveries come from changing proxy addresses: never allowlist IPs, verify the signature.","parameters":[{"name":"X-TTF-Event","in":"header","required":true,"description":"The event type of the body's `event`: price, trending, wallet, signal or ping.","schema":{"type":"string"},"example":"ping"},{"name":"X-TTF-Event-Id","in":"header","required":true,"description":"The event id (a ULID). One event can fire several of your rules: each is its own delivery.","schema":{"type":"string"},"example":"01JDZ8Q7X3M4N5P6Q7R8S9T0PE"},{"name":"X-TTF-Delivery","in":"header","required":true,"description":"The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.","schema":{"type":"string"},"example":"01JDR4Q7Z2N8M5K3X9V6B4C2HA"},{"name":"X-TTF-Attempt","in":"header","required":true,"description":"1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).","schema":{"type":"integer","minimum":1},"example":1},{"name":"X-TTF-Timestamp","in":"header","required":true,"description":"Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).","schema":{"type":"integer"},"example":1795000000},{"name":"X-TTF-Signature","in":"header","required":true,"description":"v1=<hex>: HMAC-SHA256(key = your endpoint secret \"whsec_...\", message = X-TTF-Timestamp + \".\" + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: \"v1=<new>,v1=<old>\". Compare in constant time; accept if any value matches.","schema":{"type":"string"},"example":"v1=0000000000000000000000000000000000000000000000000000000000000000"},{"name":"User-Agent","in":"header","required":true,"description":"Always TTF-Webhooks/1.0.","schema":{"type":"string"},"example":"TTF-Webhooks/1.0"}],"requestBody":{"required":true,"description":"The delivery body (identical on every attempt).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPing"},"examples":{"ping":{"summary":"ping delivery","value":{"id":"01JDR4Q7Z2N8M5K3X9V6B4C2HA","type":"ping","created_ms":1795000000000,"reason":"test","event":{"v":1,"id":"01JDZ8Q7X3M4N5P6Q7R8S9T0PE","type":"ping","ts":1795000000000,"data":{"text":"Test delivery from TTF"}}}}}}}},"responses":{"2XX":{"description":"Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log."},"default":{"description":"Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried."}},"security":[],"x-ttf-rule-kinds":["ping"],"x-ttf-signature":{"algorithm":"HMAC-SHA256","header":"X-TTF-Signature","format":"v1=<64 lower-case hex>[,v1=<hex>]","signed_payload":"<X-TTF-Timestamp>.<raw request body bytes>","secret":"the endpoint secret, the whole whsec_... string as UTF-8","timestamp_header":"X-TTF-Timestamp","tolerance_s":300,"rotation":"for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches"}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"ttfk_<id>_<secret>","description":"Authorization: Bearer ttfk_... (an API key of the developer plan). Never in the URL."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"The same key in the X-API-Key header instead of Authorization."}},"headers":{"X-Request-Id":{"description":"Id of this request (32 hex); also meta.request_id / error.request_id. Quote it to support.","schema":{"type":"string"}},"X-Credits-Cost":{"description":"Credits this call finally spent (0 for every refused or failed call).","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Credits per minute of the account (answers to a recognised key).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Credits left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the minute window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying (429 and 503).","schema":{"type":"integer"}},"ETag":{"description":"Weak validator of the answer's data (W/\"...\"). Send it back as If-None-Match: the same data answers 304 without a body (computed and billed like the 200; only the bytes are saved).","schema":{"type":"string"}}},"schemas":{"Meta":{"type":"object","description":"What the call cost and what it lacks.","properties":{"cost":{"type":"integer","description":"Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.","minimum":0},"cached":{"type":"array","description":"The groups answered from the shared answer cache (charged at their cached weight). Absent when none.","items":{"type":"string"}},"partial":{"type":"array","description":"Something is missing. A bare group name (\"holders\"): that group failed, its entry in data is {\"error\": {...}} and only the attempt fee can apply. A dotted \"<group>.<part>\" (\"security.holders\"): a part of a group that DID answer is missing (see its complete / missing); that group is still billed. Absent when nothing is missing.","items":{"type":"string"}},"request_id":{"type":"string","description":"Id of this request (= the X-Request-Id header). Quote it to support.","pattern":"^[0-9a-f]{32}$"}},"required":["cost","request_id"]},"Answer":{"type":"object","description":"Every successful answer: the data and its meta.","properties":{"data":{"description":"The answer: see each operation (keyed by group for GET /v1/token/{chain}/{address})."},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"ErrorBody":{"type":"object","description":"What went wrong. Branch on `code` (stable), show `message` (fixed text, may be reworded).","properties":{"code":{"type":"string","description":"Stable machine code: bad_request, unauthorized, payment_required, forbidden, quota_exceeded, account_suspended, plan_required, not_found, method_not_allowed, request_timeout, duplicate_url, types_in_use, endpoint_paused, over_limit, conflict, too_large, unsupported_media_type, refused, url_not_allowed, invalid_rule, type_not_subscribed, rate_limited, capacity, busy, unavailable, not_configured, upstream, timeout, internal, error. Each one is explained at doc_url.","enum":["bad_request","unauthorized","payment_required","forbidden","quota_exceeded","account_suspended","plan_required","not_found","method_not_allowed","request_timeout","duplicate_url","types_in_use","endpoint_paused","over_limit","conflict","too_large","unsupported_media_type","refused","url_not_allowed","invalid_rule","type_not_subscribed","rate_limited","capacity","busy","unavailable","not_configured","upstream","timeout","internal","error"]},"message":{"type":"string","description":"A fixed human-readable text (never a provider's text, never your key)."},"doc_url":{"type":"string","description":"The reference page of this code (the errors page, anchor = the code).","format":"uri"},"request_id":{"type":"string","description":"Id of this request (= X-Request-Id). Quote it to support.","pattern":"^[0-9a-f]{32}$"},"limit":{"type":"integer","description":"Webhook routes, quota_exceeded: the plan limit that was reached.","minimum":0},"field":{"type":"string","description":"Webhook routes: the setting that was refused (invalid_rule and some other refusals)."},"group":{"type":"string","description":"Webhook routes, plan_required: the data group your plan lacks."}},"required":["code","message","doc_url","request_id"]},"ErrorAnswer":{"type":"object","description":"Every error answer.","properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"required":["error"]},"GroupError":{"type":"object","description":"A group of GET /v1/token that failed while others answered (listed in meta.partial).","properties":{"error":{"type":"object","description":"Why this group has no data.","properties":{"code":{"type":"string","description":"Why: not_found, refused, timeout, upstream, busy (the error codes of the same name).","enum":["not_found","refused","timeout","upstream","busy"]},"message":{"type":"string","description":"A fixed human-readable text."},"doc_url":{"type":"string","description":"The reference page of this code.","format":"uri"}},"required":["code","message","doc_url"]}},"required":["error"]},"TokenCore":{"type":"object","description":"The market basics of a token: one DEX market lookup (cheap, fast, no scan). Use it for prices, market cap and liquidity; `fields=price` (or market, liquidity, socials, token) narrows it.","properties":{"token":{"type":"object","description":"Which token this is (always kept, whatever `fields` asks).","properties":{"chain":{"type":"string","description":"Chain id (GET /v1/chains)."},"address":{"type":"string","description":"Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana."},"name":{"type":"string","description":"Token name, as the market lists it."},"symbol":{"type":"string","description":"Ticker, as the market lists it."}},"required":["chain","address"]},"price":{"type":"object","description":"The price.","properties":{"usd":{"type":"string","description":"Price of one token in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},"change_pct":{"type":"object","description":"Price change per window (percent). A window the market does not report is absent.","properties":{"m5":{"type":"number","description":"Price change over the last 5 minutes. Percent (5.2 = 5.2 %)."},"h1":{"type":"number","description":"Price change over the last hour. Percent (5.2 = 5.2 %)."},"h6":{"type":"number","description":"Price change over the last 6 hours. Percent (5.2 = 5.2 %)."},"h24":{"type":"number","description":"Price change over the last 24 hours. Percent (5.2 = 5.2 %)."}}}}},"market":{"type":"object","description":"Market size.","properties":{"market_cap_usd":{"type":"integer","description":"Market cap (or fully diluted value when the market reports only that). Whole US dollars (integer).","minimum":0},"volume_24h_usd":{"type":"integer","description":"Traded volume over the last 24 hours. Whole US dollars (integer).","minimum":0},"txns_24h":{"type":"object","description":"Trades over the last 24 hours.","properties":{"buys":{"type":"integer","description":"Buy trades.","minimum":0},"sells":{"type":"integer","description":"Sell trades.","minimum":0}},"required":["buys","sells"]}}},"liquidity":{"type":"object","description":"The main pool.","properties":{"usd":{"type":"integer","description":"Liquidity of the main pool. Whole US dollars (integer).","minimum":0},"pair":{"type":"string","description":"Pair (pool) address of the main pool."},"dex":{"type":"string","description":"DEX of the main pool (\"uniswap\", \"raydium\", ...)."},"pair_created_at":{"type":"string","description":"When the main pool was created. ISO-8601 UTC (\"2026-11-28T10:00:00Z\").","format":"date-time"}}},"socials":{"type":"object","description":"The project's links, keyed by site (\"website\", \"twitter\", \"telegram\", ...). Only https URLs.","additionalProperties":{"type":"string","description":"The https URL.","format":"uri","pattern":"^https://"}}},"required":["token"]},"TokenSecurity":{"type":"object","description":"Is it safe to touch? TTF's security scan (honeypot simulation, taxes, liquidity lock, ownership, source analysis, holder concentration), narrowed to what this group needs. An incomplete answer is never a rating: check complete / missing. `fields=tax` (or verdict, score, flags, checks, lp_lock, contract) narrows it; complete and missing are always kept.","properties":{"verdict":{"type":"object","description":"The one-line answer.","properties":{"level":{"type":"string","description":"ok = nothing bad found, warn = look closer, danger = red flag (honeypot, critical finding).","enum":["ok","warn","danger"]},"label":{"type":"string","description":"The verdict in words (\"No honeypot, no red flags\", \"Honeypot\", \"2 warnings\", ...)."},"known":{"type":"boolean","description":"true = enough checks answered to rate the token; false = not a rating, check it yourself."},"sellable":{"type":"boolean","description":"true = the sell simulation passed, false = it failed (honeypot). Absent = not simulated."},"reasons":{"type":"array","description":"Short reasons behind the verdict (at most a few), most important first.","items":{"type":"string"}}},"required":["level","label","known","reasons"]},"score":{"type":"integer","description":"Safety score 0-100 (higher is safer). Absent when the answer is not a rating (verdict.known false or something missing).","minimum":0,"maximum":100},"flags":{"type":"array","description":"Findings, worst first. Empty = nothing found.","items":{"type":"object","description":"One finding.","properties":{"id":{"type":"string","description":"Stable id of the finding.","x-ttf-known-values":["buy_tax_extreme","sell_tax_extreme","buy_tax_high","sell_tax_high","holders_concentrated","liquidity_dust","liquidity_low","very_new","mint_authority","freeze_authority","owner_active"]},"severity":{"type":"string","description":"critical (a red flag), warn (risky), info (good to know).","enum":["critical","warn","info"]},"title":{"type":"string","description":"The finding in a few words."},"detail":{"type":"string","description":"One more sentence about it."}},"required":["id","severity","title"]}},"checks":{"type":"array","description":"Every check the scan ran, with its outcome.","items":{"type":"object","description":"One check of the scan.","properties":{"id":{"type":"string","description":"Stable id of the check.","x-ttf-known-values":["honeypot","tax","lp_lock","mint","freeze","owner","source","contract","holders","liquidity"]},"label":{"type":"string","description":"The check in words."},"state":{"type":"string","description":"ok, warn, bad, or na (not answered).","enum":["ok","warn","bad","na"]},"value":{"type":"string","description":"What it found, in words (\"0% / 0%\", \"top 10: 31%\")."}},"required":["id","label","state"]}},"tax":{"type":"object","description":"Trading taxes from the buy / sell simulation.","properties":{"buy_pct":{"type":"number","description":"Buy tax. Percent (5.2 = 5.2 %)."},"sell_pct":{"type":"number","description":"Sell tax. Percent (5.2 = 5.2 %)."},"transfer_pct":{"type":"number","description":"Tax on a plain transfer between wallets. Percent (5.2 = 5.2 %)."},"honeypot":{"type":"boolean","description":"true = buying works but selling fails."},"max_tx_amount":{"type":"string","description":"Largest amount one transaction may move, in tokens (absent = no limit found). Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"}}},"lp_lock":{"type":"object","description":"Is the liquidity locked or burned?","properties":{"locked":{"type":"boolean","description":"true = (part of) the liquidity is locked or burned."},"locked_pct":{"type":"number","description":"Share of the liquidity that is locked. Percent (5.2 = 5.2 %)."},"burned_pct":{"type":"number","description":"Share of the liquidity that is burned. Percent (5.2 = 5.2 %)."},"unlock_in_days":{"type":"number","description":"Days until the lock ends."},"locker":{"type":"string","description":"Who holds the lock (a locker service or contract)."}}},"contract":{"type":"object","description":"Contract facts (true / false; unknown = absent).","properties":{"owner_renounced":{"type":"boolean","description":"true = nobody owns the contract any more."},"verified_source":{"type":"boolean","description":"true = the source code is verified on the explorer."},"proxy":{"type":"boolean","description":"true = the contract is a proxy (its code can be swapped)."},"mint_authority":{"type":"boolean","description":"Solana: true = the mint authority is still set (more tokens can be created)."},"freeze_authority":{"type":"boolean","description":"Solana: true = the freeze authority is still set (wallets can be frozen)."}}},"complete":{"type":"boolean","description":"true = every part of the scan answered. false = see missing; the answer is then not a rating."},"missing":{"type":"array","description":"The parts of the scan that have no data (also in meta.partial as \"security.<part>\"). Empty when complete. On eth, bsc, base and sol ask `security,holders` to fill \"holders\". \"market\": no market lists a pool for the token, so its liquidity is unknown and the low / dust liquidity checks could not run (verdict \"Liquidity unknown: not rated\").","items":{"type":"string","description":"A part without data.","x-ttf-known-values":["holders","tax","liquidity","contract","market"]}}},"required":["complete","missing"],"x-ttf-required-full":["verdict","flags","checks"]},"TokenHolders":{"type":"object","description":"Who holds the token: the top holders, biggest first.","properties":{"holder_count":{"type":"integer","description":"Number of holders (when the source reports it).","minimum":0},"top10_pct":{"type":"number","description":"Share of the supply the 10 biggest holders own. Percent (5.2 = 5.2 %)."},"holders":{"type":"array","description":"The top holders (`limit` rows, default 20).","items":{"type":"object","description":"One holder (the list order is the rank).","properties":{"address":{"type":"string","description":"Holder wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana."},"pct":{"type":"number","description":"Share of the supply it holds. Percent (5.2 = 5.2 %)."},"amount":{"type":"string","description":"Tokens it holds (human units: decimals applied). Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},"fresh":{"type":"boolean","description":"true = a fresh wallet (new, little history): a common sign of insiders or bundles."}},"required":["address"]}}},"required":["top10_pct","holders"]},"TokenCandles":{"type":"object","description":"Price candles (OHLCV) of the main pool, oldest first. Quiet periods without trades may be missing.","properties":{"interval":{"type":"string","description":"The candle interval.","enum":["1m","5m","15m","1h","4h","1d"]},"pair":{"type":"string","description":"The pool the candles are from."},"change_pct":{"type":"number","description":"Price change from the first candle's open to the last close. Percent (5.2 = 5.2 %)."},"columns":{"type":"array","description":"The meaning of each cell of a candle row: time_ms, open_usd, high_usd, low_usd, close_usd, volume_usd.","items":{"type":"string","description":"A column name.","enum":["time_ms","open_usd","high_usd","low_usd","close_usd","volume_usd"]},"x-ttf-fixed-value":["time_ms","open_usd","high_usd","low_usd","close_usd","volume_usd"]},"candles":{"type":"array","description":"The candles, oldest first.","items":{"type":"array","description":"One candle: [time_ms, open_usd, high_usd, low_usd, close_usd, volume_usd].","prefixItems":[{"type":"integer","description":"Candle open time. Unix time in milliseconds.","minimum":0},{"type":"string","description":"Open price in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},{"type":"string","description":"High price in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},{"type":"string","description":"Low price in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},{"type":"string","description":"Close price in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},{"type":"integer","description":"Volume of the candle. Whole US dollars (integer).","minimum":0}],"minItems":6,"maxItems":6}}},"required":["interval","columns","candles"]},"TokenBubbles":{"type":"object","description":"The bubble map: linked holder groups (wallets funded from the same source), or the top holders as one group when no links are known.","properties":{"mode":{"type":"string","description":"clusters = linked groups were found; holders = no links known, the top holders are shown as one group (never \"linked\").","enum":["clusters","holders"]},"total_cluster_pct":{"type":"number","description":"Share of the supply held by all linked groups together. Percent (5.2 = 5.2 %)."},"clusters":{"type":"array","description":"The groups, biggest first.","items":{"type":"object","description":"One group of linked wallets.","properties":{"id":{"type":"integer","description":"Group number in this answer.","minimum":0},"pct":{"type":"number","description":"Share of the supply the group holds. Percent (5.2 = 5.2 %)."},"size":{"type":"integer","description":"Wallets in the group.","minimum":0},"tags":{"type":"array","description":"Tags of this wallet or group (what tag_text explains).","items":{"type":"string","description":"A tag.","x-ttf-known-values":["cex","dex","contract","burn","team","sniper","bundler","insider","dev"]}},"holders":{"type":"array","description":"The wallets of the group.","items":{"type":"object","description":"One wallet of the group.","properties":{"address":{"type":"string","description":"Wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana."},"pct":{"type":"number","description":"Share of the supply it holds. Percent (5.2 = 5.2 %)."},"balance":{"type":"string","description":"Tokens it holds (human units). Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},"label":{"type":"string","description":"A public name of the wallet (an exchange, a contract) when known. Third-party text: escape it."},"tags":{"type":"array","description":"Tags of this wallet or group (what tag_text explains).","items":{"type":"string","description":"A tag.","x-ttf-known-values":["cex","dex","contract","burn","team","sniper","bundler","insider","dev"]}},"marks":{"type":"array","description":"Behaviour marks of the wallet.","items":{"type":"string","description":"A mark.","x-ttf-known-values":["sniper","bundler","insider","dev"]}}},"required":["address","pct"]}}},"required":["id","size","holders"]}},"stats":{"type":"object","description":"Totals over the map (a value the source does not give is absent).","properties":{"wallets":{"type":"integer","description":"Wallets on the map.","minimum":0},"in_view_pct":{"type":"number","description":"Share of the supply the wallets on the map hold. Percent (5.2 = 5.2 %)."},"largest_pct":{"type":"number","description":"Share of the biggest single wallet. Percent (5.2 = 5.2 %)."},"top10_pct":{"type":"number","description":"Share of the 10 biggest wallets. Percent (5.2 = 5.2 %)."},"linked_groups":{"type":"integer","description":"Linked groups found.","minimum":0},"half_supply_wallets":{"type":"integer","description":"How few wallets hold half the supply.","minimum":0},"snipers_pct":{"type":"number","description":"Share held by sniper wallets. Percent (5.2 = 5.2 %)."},"bundlers_pct":{"type":"number","description":"Share held by bundler wallets. Percent (5.2 = 5.2 %)."},"insiders_pct":{"type":"number","description":"Share held by insider wallets. Percent (5.2 = 5.2 %)."},"dev_pct":{"type":"number","description":"Share held by the developer. Percent (5.2 = 5.2 %)."}}},"tag_text":{"type":"object","description":"What each tag means, keyed by tag.","additionalProperties":{"type":"string","description":"The tag explained."}}},"required":["mode","clusters"]},"TokenDeployer":{"type":"object","description":"Who deployed the contract (EVM chains).","properties":{"address":{"type":"string","description":"Deployer wallet (0x + 40 hex)."},"tx":{"type":"string","description":"The creation transaction hash."},"created_at":{"type":"string","description":"When the contract was created. ISO-8601 UTC (\"2026-11-28T10:00:00Z\").","format":"date-time"}},"required":["address"]},"ResolveMatch":{"type":"object","description":"Where a token trades.","properties":{"chain":{"type":"string","description":"Chain id."},"address":{"type":"string","description":"Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana."},"name":{"type":"string","description":"Token name."},"symbol":{"type":"string","description":"Ticker."},"listed":{"type":"boolean","description":"true = a market lists the token; false = no market lists it (then there is no pair)."},"pair":{"type":"string","description":"Main pair (pool) address. A listed token can lack it (unknown)."},"dex":{"type":"string","description":"DEX of the main pair."},"liquidity_usd":{"type":"integer","description":"Symbol / name search only (always there): liquidity over the token's pairs. Whole US dollars (integer).","minimum":0},"volume_24h_usd":{"type":"integer","description":"Symbol / name search only (always there): 24 h volume over the token's pairs. Whole US dollars (integer).","minimum":0}},"required":["chain","address","listed"]},"TokenData":{"type":"object","description":"The asked groups, keyed by group name (only the asked ones). A group that failed while others answered is {\"error\": {...}} and is listed in meta.partial.","properties":{"core":{"anyOf":[{"$ref":"#/components/schemas/TokenCore"},{"$ref":"#/components/schemas/GroupError"}],"description":"The core group (1 credits live, 1 cached)."},"security":{"anyOf":[{"$ref":"#/components/schemas/TokenSecurity"},{"$ref":"#/components/schemas/GroupError"}],"description":"The security group (4 credits live, 1 cached)."},"holders":{"anyOf":[{"$ref":"#/components/schemas/TokenHolders"},{"$ref":"#/components/schemas/GroupError"}],"description":"The holders group (4 credits live, 1 cached)."},"candles":{"anyOf":[{"$ref":"#/components/schemas/TokenCandles"},{"$ref":"#/components/schemas/GroupError"}],"description":"The candles group (1 credits live, 1 cached)."},"bubbles":{"anyOf":[{"$ref":"#/components/schemas/TokenBubbles"},{"$ref":"#/components/schemas/GroupError"}],"description":"The bubbles group (4 credits live, 1 cached)."},"deployer":{"anyOf":[{"$ref":"#/components/schemas/TokenDeployer"},{"$ref":"#/components/schemas/GroupError"}],"description":"The deployer group (3 credits live, 1 cached)."},"resolve":{"anyOf":[{"$ref":"#/components/schemas/ResolveMatch"},{"$ref":"#/components/schemas/GroupError"}],"description":"The resolve group (1 credits live, 1 cached)."}}},"TokenGroupData":{"description":"One group's answer (only the asked field and the always-kept keys, for a field).","anyOf":[{"$ref":"#/components/schemas/TokenCore"},{"$ref":"#/components/schemas/TokenSecurity"},{"$ref":"#/components/schemas/TokenHolders"},{"$ref":"#/components/schemas/TokenCandles"},{"$ref":"#/components/schemas/TokenBubbles"},{"$ref":"#/components/schemas/TokenDeployer"},{"$ref":"#/components/schemas/ResolveMatch"}]},"ResolveMatches":{"type":"object","description":"The tokens an address or a symbol / name points to.","properties":{"matches":{"type":"array","description":"For an address: ONE match. For a symbol / name: the best matches (up to 5, most liquid first). Empty = no match.","items":{"$ref":"#/components/schemas/ResolveMatch"}}},"required":["matches"]},"Trending":{"type":"object","description":"What TTF users are scanning most right now: the board of a time window.","properties":{"window":{"type":"string","description":"The window the board counts."},"chain":{"type":"string","description":"The chain filter, when one was asked."},"generated_at":{"type":"string","description":"When the board was built (it is shared for about a minute). ISO-8601 UTC (\"2026-11-28T10:00:00Z\").","format":"date-time"},"tokens":{"type":"array","description":"The tokens, most distinct scanners first.","items":{"$ref":"#/components/schemas/TrendingRow"}}},"required":["window","generated_at","tokens"]},"TrendingRow":{"type":"object","description":"One token of the board. With `fields=` a row keeps only the asked keys plus chain and address.","properties":{"chain":{"type":"string","description":"Chain id."},"address":{"type":"string","description":"Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana."},"symbol":{"type":"string","description":"Ticker."},"name":{"type":"string","description":"Token name."},"scans":{"type":"integer","description":"TTF scans of the token in the window.","minimum":0},"scanners":{"type":"integer","description":"Distinct people who scanned it in the window.","minimum":0},"chat_groups":{"type":"integer","description":"Telegram groups it was scanned in during the window.","minimum":0},"first_scan_ms":{"type":"integer","description":"First scan in the window. Unix time in milliseconds.","minimum":0},"last_scan_ms":{"type":"integer","description":"Latest scan in the window. Unix time in milliseconds.","minimum":0},"market_cap_usd":{"type":"integer","description":"Market cap at the latest scan. Whole US dollars (integer).","minimum":0},"price_usd":{"type":"string","description":"Price at the latest scan, in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$"},"liquidity_usd":{"type":"integer","description":"Liquidity at the latest scan. Whole US dollars (integer).","minimum":0},"market_cap_change_pct":{"type":"number","description":"Market cap change over the spark (last 24 h). Percent (5.2 = 5.2 %)."},"market_cap_spark_usd":{"type":"array","description":"Hourly market cap over the last 24 h, oldest first (whole US dollars).","items":{"type":"integer","description":"Market cap. Whole US dollars (integer).","minimum":0}},"badges":{"type":"object","description":"Security badges from TTF's latest scan of the token (absent when not scanned lately).","properties":{"level":{"type":"string","description":"ok, warn or danger (the scan verdict).","enum":["ok","warn","danger"]},"honeypot":{"type":"boolean","description":"true = the sell simulation failed."},"buy_tax_pct":{"type":"number","description":"Buy tax. Percent (5.2 = 5.2 %)."},"sell_tax_pct":{"type":"number","description":"Sell tax. Percent (5.2 = 5.2 %)."},"flag_count":{"type":"integer","description":"Findings of the scan.","minimum":0}},"required":["level","flag_count"]}},"required":["chain","address"],"x-ttf-required-full":["symbol","scans","scanners","chat_groups","first_scan_ms","last_scan_ms"]},"WalletActivity":{"type":"object","description":"A wallet's recent transfers plus the state of TTF's live watch of it.","properties":{"transfers":{"type":"array","description":"Transfers in and out, newest first.","items":{"$ref":"#/components/schemas/WalletTransfer"}},"next_cursor":{"type":"string","description":"Pass it as ?cursor= for the next (older) page. Absent = the last page."},"watch":{"type":"object","description":"TTF's real-time watch of this address for your account.","properties":{"started_ms":{"type":"integer","description":"When your watch of the address started. Unix time in milliseconds.","minimum":0},"expires_ms":{"type":"integer","description":"When it ends unless you ask again (absent while no watch exists). Unix time in milliseconds.","minimum":0},"configured":{"type":"boolean","description":"true = real-time watching is set up on this chain."},"live":{"type":"boolean","description":"true = the watcher is running and keeping up right now."},"hot":{"type":"boolean","description":"true = dropped from live watching because it moves on most blocks (history still works)."}},"required":["configured","live","hot"]}},"required":["transfers","watch"]},"WalletTransfer":{"type":"object","description":"One ERC-20 (or native-coin) transfer of the wallet. With `fields=` a row keeps only the asked keys.","properties":{"tx":{"type":"string","description":"Transaction hash."},"block":{"type":"integer","description":"Block number.","minimum":0},"time_ms":{"type":"integer","description":"Block time (absent when the source did not give it). Unix time in milliseconds.","minimum":0},"log_index":{"type":"integer","description":"Position of the transfer in its transaction's logs.","minimum":0},"token":{"type":"string","description":"Token contract (0x + 40 hex); native-coin transfers use 0xeeee...eeee."},"symbol":{"type":"string","description":"Token ticker (third-party text: escape it)."},"decimals":{"type":"integer","description":"Token decimals (value / 10^decimals = tokens).","minimum":0,"maximum":255},"value":{"type":"string","description":"Raw amount (integer string; divide by 10^decimals).","pattern":"^[0-9]{1,80}$"},"from":{"type":"string","description":"Sender (0x + 40 hex)."},"to":{"type":"string","description":"Receiver (0x + 40 hex)."},"direction":{"type":"string","description":"out = the wallet sent it, in = it received it, self = to itself.","enum":["in","out","self"]},"source":{"type":"string","description":"history = public chain history, watch = recorded live by TTF's watcher.","enum":["history","watch"]}},"x-ttf-required-full":["tx","block","log_index","token","value","from","to","direction","source"]},"Signals":{"type":"object","description":"A page of TTF signals, newest first.","properties":{"signals":{"type":"array","description":"The signals (the same events a `signal` webhook rule receives).","items":{"$ref":"#/components/schemas/EventSignal"}},"next_cursor":{"type":"string","description":"Pass it as ?cursor= for the next (older) page. Absent = the end."},"live":{"type":"boolean","description":"true = the signals feed is running."}},"required":["signals","live"]},"Chains":{"type":"object","description":"The chains, groups and prices: what you can ask where, and what it costs.","properties":{"chains":{"type":"array","description":"The launch chains.","items":{"type":"object","description":"A launch chain.","properties":{"id":{"type":"string","description":"Chain id (use it in paths)."},"name":{"type":"string","description":"Display name."},"family":{"type":"string","description":"Chain family: evm, solana, ..."},"groups":{"type":"array","description":"The field groups of GET /v1/token it serves.","items":{"type":"string"}}},"required":["id","name","family","groups"]}},"groups":{"type":"array","description":"The field groups.","items":{"type":"object","description":"A field group of GET /v1/token.","properties":{"name":{"type":"string","description":"Group name (use it in `fields`)."},"credits":{"type":"integer","description":"Credits of a live answer.","minimum":0},"cached_credits":{"type":"integer","description":"Credits of an answer from the shared cache.","minimum":0},"tag":{"type":"string","description":"free = no paid provider behind it; paid = a failed answer keeps the attempt fee.","enum":["free","paid"]},"fields":{"type":"array","description":"Its field names (a group of one field lists itself).","items":{"type":"string"}},"all_chains":{"type":"boolean","description":"true = served on every launch chain; false = only on `chains`."},"chains":{"type":"array","description":"The chains it is served on (only when all_chains is false).","items":{"type":"string"}}},"required":["name","credits","cached_credits","tag","fields","all_chains"]}},"route_groups":{"type":"array","description":"The routes that are groups of their own (trending, wallet, signals).","items":{"type":"object","description":"A route of its own.","properties":{"name":{"type":"string","description":"Group name (use it in `fields`)."},"credits":{"type":"integer","description":"Credits of a live answer.","minimum":0},"cached_credits":{"type":"integer","description":"Credits of an answer from the shared cache.","minimum":0},"tag":{"type":"string","description":"free = no paid provider behind it; paid = a failed answer keeps the attempt fee.","enum":["free","paid"]},"route":{"type":"string","description":"Its path."},"all_chains":{"type":"boolean","description":"true = served on every launch chain; false = only on `chains`."},"chains":{"type":"array","description":"The chains it is served on (only when all_chains is false).","items":{"type":"string"}}},"required":["name","credits","cached_credits","tag","route","all_chains"]}},"intervals":{"type":"array","description":"Candle intervals.","items":{"type":"string"}},"trending_windows":{"type":"array","description":"Trending windows.","items":{"type":"string"}}},"required":["chains","groups","route_groups","intervals","trending_windows"]},"Health":{"type":"object","description":"Is the API up?","properties":{"redis":{"type":"boolean","description":"true = the limits store answers."},"enabled":{"type":"boolean","description":"true = the API is switched on (paid routes answer)."},"checked_at":{"type":"string","description":"When this was checked. ISO-8601 UTC (\"2026-11-28T10:00:00Z\").","format":"date-time"}},"required":["redis","enabled","checked_at"]},"TokenAnswer":{"type":"object","description":"The answer of getToken: data (TokenData) and meta.","properties":{"data":{"$ref":"#/components/schemas/TokenData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"TokenGroupAnswer":{"type":"object","description":"The answer of getTokenGroup: data (TokenGroupData) and meta.","properties":{"data":{"$ref":"#/components/schemas/TokenGroupData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"ResolveAnswer":{"type":"object","description":"The answer of resolveToken: data (ResolveMatches) and meta.","properties":{"data":{"$ref":"#/components/schemas/ResolveMatches"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"TrendingAnswer":{"type":"object","description":"The answer of getTrending: data (Trending) and meta.","properties":{"data":{"$ref":"#/components/schemas/Trending"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"WalletActivityAnswer":{"type":"object","description":"The answer of getWalletActivity: data (WalletActivity) and meta.","properties":{"data":{"$ref":"#/components/schemas/WalletActivity"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"SignalsAnswer":{"type":"object","description":"The answer of listSignals: data (Signals) and meta.","properties":{"data":{"$ref":"#/components/schemas/Signals"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"ChainsAnswer":{"type":"object","description":"The answer of listChains: data (Chains) and meta.","properties":{"data":{"$ref":"#/components/schemas/Chains"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HealthAnswer":{"type":"object","description":"The answer of getHealth: data (Health) and meta.","properties":{"data":{"$ref":"#/components/schemas/Health"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookSchemaAnswer":{"type":"object","description":"The answer of getWebhookSchema: data (HookSchema) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookSchema"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookUsageAnswer":{"type":"object","description":"The answer of getWebhookUsage: data (HookUsage) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookUsage"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookEndpointListAnswer":{"type":"object","description":"The answer of listWebhookEndpoints: data (HookEndpointList) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointList"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookEndpointCreatedAnswer":{"type":"object","description":"The answer of createWebhookEndpoint: data (HookEndpointSecret) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointSecret"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookEndpointAnswer":{"type":"object","description":"The answer of getWebhookEndpoint: data (HookEndpointOne) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointOne"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookEndpointUpdatedAnswer":{"type":"object","description":"The answer of updateWebhookEndpoint: data (HookEndpointOne) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointOne"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookEndpointDeletedAnswer":{"type":"object","description":"The answer of deleteWebhookEndpoint: data (HookEndpointDeleted) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointDeleted"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookSecretRotatedAnswer":{"type":"object","description":"The answer of rotateWebhookSecret: data (HookEndpointSecret) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookEndpointSecret"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookTestAnswer":{"type":"object","description":"The answer of sendWebhookTest: data (HookTestQueued) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookTestQueued"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookDeliveryListAnswer":{"type":"object","description":"The answer of listWebhookDeliveries: data (HookDeliveryList) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookDeliveryList"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleListAnswer":{"type":"object","description":"The answer of listWebhookRules: data (HookRuleList) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleList"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleCreatedAnswer":{"type":"object","description":"The answer of createWebhookRule: data (HookRuleOne) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleOne"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleCheckAnswer":{"type":"object","description":"The answer of checkWebhookRule: data (HookRuleCheck) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleCheck"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleAnswer":{"type":"object","description":"The answer of getWebhookRule: data (HookRuleOne) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleOne"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleUpdatedAnswer":{"type":"object","description":"The answer of updateWebhookRule: data (HookRuleOne) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleOne"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"HookRuleDeletedAnswer":{"type":"object","description":"The answer of deleteWebhookRule: data (HookRuleDeleted) and meta.","properties":{"data":{"$ref":"#/components/schemas/HookRuleDeleted"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Event":{"type":"object","description":"The event envelope (v1): the same on the bus, in GET /v1/signals and in every webhook body's `event`. Text inside (names, symbols, signal text) comes from third parties: escape it before you show it.","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","enum":["price","trending","wallet","signal","ping"]},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"chain":{"type":"string","description":"Chain id. Absent for a signal about no chain."},"token":{"type":"string","description":"Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token."},"data":{"type":"object","description":"The data of the type: see Event<Type>."}},"required":["v","id","type","ts","data"]},"EventPriceData":{"type":"object","description":"A price update of a token your rule watches. The event data (the keys of this type; unknown = absent).","properties":{"price_usd":{"type":"string","description":"Price of one token in US dollars. Absent only for an absurd price (more than 64 characters). Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"liquidity_usd":{"type":"integer","description":"Liquidity of the pool the price comes from. Whole US dollars (integer).","minimum":0},"symbol":{"type":"string","description":"Ticker (third-party text: escape it).","maxLength":64},"name":{"type":"string","description":"Token name (third-party text: escape it).","maxLength":64},"pair":{"type":"string","description":"The pair (pool) the price comes from.","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}},"EventPrice":{"type":"object","description":"A price update of a token your rule watches.","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","const":"price"},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"chain":{"type":"string","description":"Chain id. Absent for a signal about no chain."},"token":{"type":"string","description":"Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token."},"data":{"$ref":"#/components/schemas/EventPriceData"}},"required":["v","id","type","ts","chain","token","data"]},"EventTrendingData":{"type":"object","description":"A token on TTF's trending board (the most scanned tokens). The event data (the keys of this type; unknown = absent).","properties":{"rank":{"type":"integer","description":"Position on the board (1 = most scanned).","minimum":0,"maximum":9223372036854775807},"scans":{"type":"integer","description":"TTF scans of the token in the board window.","minimum":0,"maximum":9223372036854775807},"interval_min":{"type":"integer","description":"The board window, in minutes.","minimum":0,"maximum":9223372036854775807},"symbol":{"type":"string","description":"Ticker (third-party text: escape it).","maxLength":64},"name":{"type":"string","description":"Token name (third-party text: escape it).","maxLength":64},"pair":{"type":"string","description":"The main pair (pool).","pattern":"^[A-Za-z0-9_.:-]{1,128}$"},"first_seen_ms":{"type":"integer","description":"When the token entered the board. Absent when its entry was not observed (after a gap). Unix time in milliseconds.","minimum":1},"liquidity_usd":{"type":"string","description":"Liquidity of its most liquid pool, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"market_cap_usd":{"type":"string","description":"Market cap (or the fully diluted value when no market cap is known), US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"volume_24h_usd":{"type":"string","description":"Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"price_change_1h_pct":{"type":"number","description":"Price change of the last hour, percent (negative = down)."},"buys_1h":{"type":"integer","description":"Buys in the last hour.","minimum":0,"maximum":9223372036854775807},"pair_created_ms":{"type":"integer","description":"When its pool was created (the token age).","minimum":0,"maximum":9223372036854775807},"pair_with":{"type":"string","description":"What the pool pairs it with: native (the chain coin), stable (a stablecoin) or other.","enum":["native","stable","other"]},"has_website":{"type":"boolean","description":"true = a website is listed for the token."},"has_x":{"type":"boolean","description":"true = an X account is listed for the token."},"has_telegram":{"type":"boolean","description":"true = a Telegram group is listed for the token."},"honeypot":{"type":"boolean","description":"The TTF scan's buy / sell simulation: true = selling failed or was blocked. Absent when no simulation ran (never false for a check that failed). EVM chains only."},"buy_tax_pct":{"type":"number","description":"Buy tax measured by that simulation, percent.","minimum":0},"sell_tax_pct":{"type":"number","description":"Sell tax measured by that simulation, percent.","minimum":0},"locked_pct":{"type":"number","description":"Share of the liquidity that is locked or burned, percent.","minimum":0},"holders":{"type":"integer","description":"Number of holders the TTF scan read.","minimum":0,"maximum":9223372036854775807},"top10_pct":{"type":"number","description":"Share of the supply the 10 largest holders hold, percent.","minimum":0},"renounced":{"type":"boolean","description":"true = the contract owner is renounced (EVM chains)."},"verified_source":{"type":"boolean","description":"true = the contract source code is verified."},"mint_disabled":{"type":"boolean","description":"Solana: true = the mint authority is off."},"freeze_disabled":{"type":"boolean","description":"Solana: true = the freeze authority is off."},"launchpad":{"type":"boolean","description":"Solana: true = the token comes from a launchpad; false = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still be false)."}},"required":["rank","scans"]},"EventTrending":{"type":"object","description":"A token on TTF's trending board (the most scanned tokens).","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","const":"trending"},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"chain":{"type":"string","description":"Chain id. Absent for a signal about no chain."},"token":{"type":"string","description":"Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token."},"data":{"$ref":"#/components/schemas/EventTrendingData"}},"required":["v","id","type","ts","chain","token","data"]},"EventWalletData":{"type":"object","description":"A transfer of a wallet your rule watches (in or out). The event data (the keys of this type; unknown = absent).","properties":{"address":{"type":"string","description":"The watched wallet (the subject of your rule). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.","minLength":1,"maxLength":200},"tx":{"type":"string","description":"Transaction hash.","pattern":"^[A-Za-z0-9_.:-]{1,128}$"},"to":{"type":"string","description":"Receiver (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.","maxLength":200},"value":{"type":"string","description":"Raw amount (integer string; divide by 10^decimals).","pattern":"^[0-9]{1,80}$"},"decimals":{"type":"integer","description":"Token decimals.","minimum":0,"maximum":9223372036854775807},"symbol":{"type":"string","description":"Token ticker (third-party text: escape it).","maxLength":64},"value_usd":{"type":"string","description":"US dollar value of the transfer, when known. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"kind":{"type":"string","description":"transfer, sell (Solana: a swap out) or native (the chain's own coin; token 0xeeee...eeee).","enum":["sell","transfer","native"]},"log_index":{"type":"integer","description":"Position of the transfer in its transaction's logs.","minimum":0,"maximum":9223372036854775807},"block":{"type":"integer","description":"Block number.","minimum":0,"maximum":9223372036854775807},"from":{"type":"string","description":"Sender (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.","maxLength":200},"direction":{"type":"string","description":"out = the wallet sent it, in = it received it. Absent = out.","enum":["out","in"]},"late":{"type":"integer","description":"1 = recorded by a catch-up round long after its block (not a live transfer).","minimum":0,"maximum":9223372036854775807}},"required":["address","tx","value"]},"EventWallet":{"type":"object","description":"A transfer of a wallet your rule watches (in or out).","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","const":"wallet"},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"chain":{"type":"string","description":"Chain id. Absent for a signal about no chain."},"token":{"type":"string","description":"Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token."},"data":{"$ref":"#/components/schemas/EventWalletData"}},"required":["v","id","type","ts","chain","token","data"]},"EventSignalData":{"type":"object","description":"A TTF signal: an ATH breakout or a call milestone. The event data (the keys of this type; unknown = absent).","properties":{"kind":{"type":"string","description":"breakout = a new all-time high was broken, call = a call reached a milestone, trending = a trending signal.","enum":["breakout","trending","call"]},"text":{"type":"string","description":"The signal in words (third-party text: escape it).","maxLength":1000},"score":{"type":"number","description":"Strength of the signal (higher = stronger), when given.","minimum":0},"ref":{"type":"string","description":"An id of the signal.","pattern":"^[A-Za-z0-9_.:-]{1,128}$"},"multiple":{"type":"number","description":"breakout: market cap / the all-time high it broke; call: the milestone reached since the call (2 = 2x).","exclusiveMinimum":0},"called_at_ms":{"type":"integer","description":"When the call was made. Unix time in milliseconds.","minimum":1},"plan_text":{"type":"string","description":"The plan line of the call (\"if it holds 24h -> enter, sell 50% at 2x ...\").","maxLength":280},"symbol":{"type":"string","description":"Ticker (third-party text: escape it).","maxLength":64},"name":{"type":"string","description":"Token name (third-party text: escape it).","maxLength":64},"tier":{"type":"string","description":"Which all-time high: daily (the daily ATH) or 1h (the hourly ATH).","enum":["daily","1h"]},"grade":{"type":"string","description":"The signal grade: strong (daily ATH) or early (hourly ATH).","enum":["strong","early"]},"dex":{"type":"string","description":"The exchange of the main pool (third-party text: escape it).","maxLength":32},"pair_created_ms":{"type":"integer","description":"When its main pool was created (the token age).","minimum":0,"maximum":9223372036854775807},"prev_ath_mc_usd":{"type":"string","description":"breakout: the all-time high it broke, as a market cap in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"prev_ath_ms":{"type":"integer","description":"breakout: when that all-time high was set.","minimum":0,"maximum":9223372036854775807},"market_cap_usd":{"type":"string","description":"Market cap now, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"liquidity_usd":{"type":"string","description":"Liquidity of its main pool, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"volume_24h_usd":{"type":"string","description":"Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"price_change_24h_pct":{"type":"number","description":"Price change of the last 24 hours, percent (negative = down)."},"buys_24h":{"type":"integer","description":"Buys in the last 24 hours.","minimum":0,"maximum":9223372036854775807},"sells_24h":{"type":"integer","description":"Sells in the last 24 hours.","minimum":0,"maximum":9223372036854775807},"price_usd":{"type":"string","description":"Price of one token now, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"entry_mc_usd":{"type":"string","description":"call: the market cap when the call was made, US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64}},"required":["kind"]},"EventSignal":{"type":"object","description":"A TTF signal: an ATH breakout or a call milestone.","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","const":"signal"},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"chain":{"type":"string","description":"Chain id. Absent for a signal about no chain."},"token":{"type":"string","description":"Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token."},"data":{"$ref":"#/components/schemas/EventSignalData"}},"required":["v","id","type","ts","data"]},"EventPingData":{"type":"object","description":"The test delivery's data.","properties":{"text":{"type":"string","description":"A fixed text (\"Test delivery from TTF\").","maxLength":200}},"required":["text"]},"EventPing":{"type":"object","description":"The dashboard's test delivery (webhooks only, never on the bus).","properties":{"v":{"type":"integer","description":"Envelope version (1).","const":1},"id":{"type":"string","description":"Event id: a ULID (26 characters, sorts by time). One event can fire several rules.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"The event type.","const":"ping"},"ts":{"type":"integer","description":"When the event happened. Unix time in milliseconds.","minimum":0},"data":{"$ref":"#/components/schemas/EventPingData"}},"required":["v","id","type","ts","data"]},"WebhookRule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex), as the dashboard and the rules API show it."},"kind":{"type":"string","description":"The rule type.","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]}},"required":["id","kind"]},"DetailPriceCross":{"type":"object","description":"Why a price_cross rule fired.","properties":{"threshold_usd":{"type":"string","description":"Your threshold price in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"side":{"type":"string","description":"above = the price rose to / past it, below = it fell to / past it.","enum":["above","below"]},"price_usd":{"type":"string","description":"The price that crossed it, in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"change_pct":{"type":"number","description":"How far the price is past the threshold. Percent (5.2 = 5.2 %)."}},"required":["threshold_usd","side","change_pct"]},"WebhookPriceCross":{"type":"object","description":"A `price_cross` rule fired. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"rule.fired","const":"rule.fired"},"created_ms":{"type":"integer","description":"When the rule fired. Unix time in milliseconds.","minimum":0},"rule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex)."},"kind":{"type":"string","description":"The rule type.","const":"price_cross"}},"required":["id","kind"]},"reason":{"type":"string","description":"Why it fired.","enum":["crossed","already_past"]},"detail":{"$ref":"#/components/schemas/DetailPriceCross"},"event":{"$ref":"#/components/schemas/EventPrice"}},"required":["id","type","created_ms","rule","reason","detail","event"]},"DetailPctMove":{"type":"object","description":"Why a pct_move rule fired.","properties":{"window":{"type":"string","description":"Your window.","enum":["1m","5m","15m","1h","4h","24h"]},"threshold_pct":{"type":"number","description":"Your move threshold (negative = a drop). Percent (5.2 = 5.2 %)."},"change_pct":{"type":"number","description":"The move seen over the window. Percent (5.2 = 5.2 %)."},"base_price_usd":{"type":"string","description":"The price at the start of the window, in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"base_ms":{"type":"integer","description":"When that start price was seen. Unix time in milliseconds.","minimum":0},"price_usd":{"type":"string","description":"The price now, in US dollars. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64}},"required":["window","threshold_pct","change_pct","base_ms"]},"WebhookPctMove":{"type":"object","description":"A `pct_move` rule fired. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"rule.fired","const":"rule.fired"},"created_ms":{"type":"integer","description":"When the rule fired. Unix time in milliseconds.","minimum":0},"rule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex)."},"kind":{"type":"string","description":"The rule type.","const":"pct_move"}},"required":["id","kind"]},"reason":{"type":"string","description":"Why it fired.","enum":["moved"]},"detail":{"$ref":"#/components/schemas/DetailPctMove"},"event":{"$ref":"#/components/schemas/EventPrice"}},"required":["id","type","created_ms","rule","reason","detail","event"]},"DetailTrendingEnter":{"type":"object","description":"Why a trending_enter rule fired.","properties":{"scans":{"type":"integer","description":"Scans of the token on the board.","minimum":0},"min_scans":{"type":"integer","description":"Your minimum (on the token's chain, when that chain has its own).","minimum":0},"first_seen_ms":{"type":"integer","description":"When the token entered the board. Unix time in milliseconds.","minimum":0},"filters":{"type":"array","description":"The filters of your rule that applied on this chain and passed (besides min_scans). Absent for a rule without filters.","items":{"type":"string"}},"unknown":{"type":"array","description":"With unknown: mark, the values a filter needed that are unknown (event data keys, e.g. holders). Absent when every value was known.","items":{"type":"string"}},"not_applied":{"type":"array","description":"Filters of your rule that did not apply on this chain because TTF never has their value there (e.g. a tax filter on Solana). Absent when every filter applied.","items":{"type":"string"}}},"required":["scans","min_scans","first_seen_ms"]},"WebhookTrendingEnter":{"type":"object","description":"A `trending_enter` rule fired. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"rule.fired","const":"rule.fired"},"created_ms":{"type":"integer","description":"When the rule fired. Unix time in milliseconds.","minimum":0},"rule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex)."},"kind":{"type":"string","description":"The rule type.","const":"trending_enter"}},"required":["id","kind"]},"reason":{"type":"string","description":"Why it fired.","enum":["entered"]},"detail":{"$ref":"#/components/schemas/DetailTrendingEnter"},"event":{"$ref":"#/components/schemas/EventTrending"}},"required":["id","type","created_ms","rule","reason","detail","event"]},"DetailWalletActivity":{"type":"object","description":"Why a wallet_activity rule fired.","properties":{"value_usd":{"type":"string","description":"US dollar value of the transfer, when known. Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64},"min_value_usd":{"type":"string","description":"Your minimum value in US dollars (\"0\" = every transfer). Decimal string (never a float, no exponent).","pattern":"^[0-9]+(\\.[0-9]+)?$","maxLength":64}},"required":["min_value_usd"]},"WebhookWalletActivity":{"type":"object","description":"A `wallet_activity` rule fired. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"rule.fired","const":"rule.fired"},"created_ms":{"type":"integer","description":"When the rule fired. Unix time in milliseconds.","minimum":0},"rule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex)."},"kind":{"type":"string","description":"The rule type.","const":"wallet_activity"}},"required":["id","kind"]},"reason":{"type":"string","description":"Why it fired.","enum":["activity"]},"detail":{"$ref":"#/components/schemas/DetailWalletActivity"},"event":{"$ref":"#/components/schemas/EventWallet"}},"required":["id","type","created_ms","rule","reason","detail","event"]},"DetailSignal":{"type":"object","description":"Why a signal rule fired.","properties":{"kind":{"type":"string","description":"The signal kind your rule asked for.","enum":["breakout","trending","call"]}},"required":["kind"]},"WebhookSignal":{"type":"object","description":"A `signal` rule fired. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"rule.fired","const":"rule.fired"},"created_ms":{"type":"integer","description":"When the rule fired. Unix time in milliseconds.","minimum":0},"rule":{"type":"object","description":"The rule that fired.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex)."},"kind":{"type":"string","description":"The rule type.","const":"signal"}},"required":["id","kind"]},"reason":{"type":"string","description":"Why it fired.","enum":["signal"]},"detail":{"$ref":"#/components/schemas/DetailSignal"},"event":{"$ref":"#/components/schemas/EventSignal"}},"required":["id","type","created_ms","rule","reason","detail","event"]},"WebhookPing":{"type":"object","description":"The dashboard's test button. Delivery body (POST, application/json). Dedupe on `id` (= X-TTF-Delivery: the same on every retry); order by created_ms / event.ts (deliveries are not ordered). Verify X-TTF-Signature over the RAW body first.","properties":{"id":{"type":"string","description":"Delivery id (a ULID) = the X-TTF-Delivery header.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"type":{"type":"string","description":"ping","const":"ping"},"created_ms":{"type":"integer","description":"When the test was queued. Unix time in milliseconds.","minimum":0},"reason":{"type":"string","description":"Always test.","const":"test"},"event":{"$ref":"#/components/schemas/EventPing"}},"required":["id","type","created_ms","reason","event"]},"HookEndpoint":{"type":"object","description":"A webhook endpoint: where deliveries go. Its signing secret is never part of it.","properties":{"id":{"type":"string","description":"Endpoint id (whe_ + 24 hex).","pattern":"^whe_[0-9a-f]{24}$"},"url":{"type":"string","description":"Where deliveries are POSTed."},"description":{"type":"string","description":"Your note (empty text when none)."},"event_types":{"type":"array","description":"The event types it receives.","items":{"type":"string","enum":["price","trending","wallet","signal"]}},"status":{"type":"string","description":"active = receiving; failing = receiving, recent deliveries failed; paused = switched off by you; disabled = switched off by TTF after repeated failures; paused_over_limit = above your plan.","x-ttf-known-values":["active","paused","failing","disabled","paused_over_limit"]},"enabled":{"type":"boolean","description":"true = switched on."},"over_limit":{"type":"boolean","description":"true = above the number of endpoints of your plan, so it gets nothing."},"secret_version":{"type":"integer","description":"How many signing secrets this endpoint has had (1 = never rotated).","minimum":0},"previous_secret_until":{"type":"integer","description":"After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.","minimum":0},"created":{"type":"integer","description":"When it was created. Unix time in SECONDS.","minimum":0},"updated":{"type":"integer","description":"When it was last changed. Unix time in SECONDS.","minimum":0}},"required":["id","url","description","event_types","status","enabled","over_limit","secret_version","created","updated"]},"HookEndpointOne":{"type":"object","description":"One endpoint.","properties":{"endpoint":{"$ref":"#/components/schemas/HookEndpoint"}},"required":["endpoint"]},"HookEndpointList":{"type":"object","description":"Your endpoints, newest first.","properties":{"endpoints":{"type":"array","description":"The endpoints.","items":{"$ref":"#/components/schemas/HookEndpoint"}},"max_endpoints":{"type":"integer","description":"How many endpoints your plan allows.","minimum":0}},"required":["endpoints","max_endpoints"]},"HookEndpointSecret":{"type":"object","description":"An endpoint with its new signing secret.","properties":{"endpoint":{"$ref":"#/components/schemas/HookEndpoint"},"secret":{"type":"string","description":"The signing secret (whsec_...). It is in this answer ONLY: store it now.","pattern":"^whsec_"},"notice":{"type":"string","description":"What to do with the secret, in words."}},"required":["endpoint","secret","notice"]},"HookEndpointDeleted":{"type":"object","description":"What the delete removed.","properties":{"id":{"type":"string","description":"The deleted endpoint.","pattern":"^whe_[0-9a-f]{24}$"},"deleted":{"type":"boolean","description":"true."},"rules_deleted":{"type":"integer","description":"Rules of the endpoint deleted with it.","minimum":0},"deliveries_deleted":{"type":"integer","description":"Delivery log rows deleted with it.","minimum":0}},"required":["id","deleted","rules_deleted","deliveries_deleted"]},"HookTestQueued":{"type":"object","description":"A test delivery (a synthetic ping) was queued.","properties":{"event_id":{"type":"string","description":"The event id of the test: look it up with ?event_id= in the delivery log.","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"queued":{"type":"boolean","description":"true."}},"required":["event_id","queued"]},"HookDelivery":{"type":"object","description":"One row of the delivery log.","properties":{"id":{"type":"string","description":"Delivery id (= the X-TTF-Delivery header)."},"event_id":{"type":"string","description":"The event it delivered."},"rule_id":{"type":"string","description":"The rule that fired (empty text for a test ping)."},"kind":{"type":"string","description":"The rule type, or ping.","x-ttf-known-values":["price_cross","pct_move","trending_enter","wallet_activity","signal","ping"]},"status":{"type":"string","description":"pending = being sent; delivered = a 2xx answer; retrying = it will be tried again; dead = every try failed; delayed_expired = it waited too long to be sent; lost = its data was lost on our side.","x-ttf-known-values":["pending","delivered","retrying","dead","delayed_expired","lost"]},"attempts":{"type":"integer","description":"Attempts made.","minimum":0},"response_status":{"type":"integer","description":"The HTTP status your receiver answered, when it answered."},"latency_ms":{"type":"integer","description":"How long your receiver took, in milliseconds.","minimum":0},"error":{"type":"string","description":"A short reason code of the last failure."},"ts":{"type":"integer","description":"When the rule fired. Unix time in SECONDS.","minimum":0},"next_attempt":{"type":"integer","description":"When the next attempt is due, while one is. Unix time in SECONDS.","minimum":0},"response_snippet":{"type":"string","description":"The first 1 KB of your receiver's answer (empty text when none)."},"snippet_truncated":{"type":"boolean","description":"true = the answer was longer."}},"required":["id","event_id","rule_id","kind","status","attempts","ts","response_snippet","snippet_truncated"]},"HookDeliveryList":{"type":"object","description":"A page of the delivery log, newest first.","properties":{"deliveries":{"type":"array","description":"The rows.","items":{"$ref":"#/components/schemas/HookDelivery"}},"next_cursor":{"type":"string","description":"Pass as ?cursor= for the older page. Absent on the last page."}},"required":["deliveries"]},"HookRuleParams":{"type":"object","description":"The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).","properties":{"chain":{"type":"string","description":"Chain id (price_cross, pct_move, wallet_activity; trending_enter also takes \"all\"; wallet_activity also takes \"evm\" = All EVMs: the wallets on every EVM chain TTF watches, chains added later included, each event naming the chain it happened on)."},"token":{"type":"string","description":"Token address (price_cross, pct_move)."},"above":{"type":"number","description":"price_cross: fire when the price rises to this many US dollars (give above or below)."},"below":{"type":"number","description":"price_cross: fire when the price falls to this many US dollars."},"fire_if_already_past":{"type":"boolean","description":"price_cross: fire at once when the price is already past the level."},"window":{"type":"string","description":"pct_move: the time window.","enum":["1m","5m","15m","1h","4h","24h"]},"percent":{"type":"number","description":"pct_move: the move in percent (negative = a drop)."},"min_scans":{"type":"integer","description":"trending_enter: scans a token needs on the board."},"address":{"type":"string","description":"wallet_activity: the wallet to watch (give address or addresses)."},"addresses":{"type":"array","description":"wallet_activity: a watchlist of up to 1000 wallets.","items":{"type":"string"}},"min_usd":{"type":"number","description":"wallet_activity: smallest transfer in US dollars (0 = every transfer)."},"direction":{"type":"string","description":"wallet_activity: out (default) = sent by the wallet, in = received, any = both.","enum":["out","in","any"]},"kind":{"type":"string","description":"signal: the signal kind.","enum":["breakout","trending","call","cmd"]},"chains":{"type":"array","description":"trending_enter: a list of chains (instead of chain).","items":{"type":"string"}},"max_rank":{"type":"integer","description":"trending_enter: at most this place (1 to 30)."},"min_liquidity_usd":{"type":"number","description":"trending_enter: at least this liquidity in US dollars (0 to 1e+13)."},"max_liquidity_usd":{"type":"number","description":"trending_enter: at most this liquidity in US dollars (0 to 1e+13)."},"min_market_cap_usd":{"type":"number","description":"trending_enter: at least this market cap in US dollars (0 to 1e+13)."},"max_market_cap_usd":{"type":"number","description":"trending_enter: at most this market cap in US dollars (0 to 1e+13)."},"min_volume_24h_usd":{"type":"number","description":"trending_enter: at least this 24 h volume in US dollars (0 to 1e+13)."},"min_price_change_1h_pct":{"type":"number","description":"trending_enter: at least this 1 h change in percent (-100 to 1e+06)."},"max_price_change_1h_pct":{"type":"number","description":"trending_enter: at most this 1 h change in percent (-100 to 1e+06)."},"min_buys_1h":{"type":"integer","description":"trending_enter: at least this 1 h buys (0 to 1e+09)."},"min_age_hours":{"type":"number","description":"trending_enter: at least this age in hours (0 to 87600)."},"max_age_hours":{"type":"number","description":"trending_enter: at most this age in hours (0 to 87600)."},"pair_with":{"type":"string","description":"trending_enter: pair coin.","enum":["native","stable"]},"name_include":{"type":"array","description":"trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"name_exclude":{"type":"array","description":"trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"exclude_honeypot":{"type":"boolean","description":"trending_enter: true = only tokens that pass the honeypot check check (not a honeypot)."},"max_buy_tax_pct":{"type":"number","description":"trending_enter: at most this buy tax in percent (0 to 100)."},"max_sell_tax_pct":{"type":"number","description":"trending_enter: at most this sell tax in percent (0 to 100)."},"min_locked_pct":{"type":"number","description":"trending_enter: at least this locked or burned liquidity in percent (0 to 100)."},"min_holders":{"type":"integer","description":"trending_enter: at least this holders (0 to 1e+09)."},"max_top10_pct":{"type":"number","description":"trending_enter: at most this top 10 share in percent (0 to 100)."},"require_renounced":{"type":"boolean","description":"trending_enter: true = only tokens that pass the ownership check (required)."},"require_verified_source":{"type":"boolean","description":"trending_enter: true = only tokens that pass the source code check (required)."},"require_mint_disabled":{"type":"boolean","description":"trending_enter: true = only tokens that pass the mint authority check (required)."},"require_freeze_disabled":{"type":"boolean","description":"trending_enter: true = only tokens that pass the freeze authority check (required)."},"launchpad":{"type":"string","description":"trending_enter (Solana): only = launchpad tokens, none = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still pass none).","enum":["only","none"]},"require_website":{"type":"boolean","description":"trending_enter: true = only tokens that pass the website check (required)."},"require_x":{"type":"boolean","description":"trending_enter: true = only tokens that pass the X account check (required)."},"require_telegram":{"type":"boolean","description":"trending_enter: true = only tokens that pass the Telegram group check (required)."},"whole_words":{"type":"boolean","description":"trending_enter: true = the words match whole words only."},"per_chain":{"type":"object","description":"trending_enter: per chain, its own filter values: an absent key inherits the value above, a present one is that chain's own, null = no limit on that chain. Only filters the chain has.","additionalProperties":{"type":"object","description":"The chain's own values: filter -> value, or null = no limit on this chain.","properties":{"max_rank":{"type":"integer","description":"at most this place (1 to 30)."},"min_liquidity_usd":{"type":"number","description":"at least this liquidity in US dollars (0 to 1e+13)."},"max_liquidity_usd":{"type":"number","description":"at most this liquidity in US dollars (0 to 1e+13)."},"min_market_cap_usd":{"type":"number","description":"at least this market cap in US dollars (0 to 1e+13)."},"max_market_cap_usd":{"type":"number","description":"at most this market cap in US dollars (0 to 1e+13)."},"min_volume_24h_usd":{"type":"number","description":"at least this 24 h volume in US dollars (0 to 1e+13)."},"min_price_change_1h_pct":{"type":"number","description":"at least this 1 h change in percent (-100 to 1e+06)."},"max_price_change_1h_pct":{"type":"number","description":"at most this 1 h change in percent (-100 to 1e+06)."},"min_buys_1h":{"type":"integer","description":"at least this 1 h buys (0 to 1e+09)."},"min_age_hours":{"type":"number","description":"at least this age in hours (0 to 87600)."},"max_age_hours":{"type":"number","description":"at most this age in hours (0 to 87600)."},"pair_with":{"type":"string","description":"pair coin.","enum":["native","stable"]},"name_include":{"type":"array","description":"words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"name_exclude":{"type":"array","description":"words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"exclude_honeypot":{"type":"boolean","description":"true = only tokens that pass the honeypot check check (not a honeypot)."},"max_buy_tax_pct":{"type":"number","description":"at most this buy tax in percent (0 to 100)."},"max_sell_tax_pct":{"type":"number","description":"at most this sell tax in percent (0 to 100)."},"min_locked_pct":{"type":"number","description":"at least this locked or burned liquidity in percent (0 to 100)."},"min_holders":{"type":"integer","description":"at least this holders (0 to 1e+09)."},"max_top10_pct":{"type":"number","description":"at most this top 10 share in percent (0 to 100)."},"require_renounced":{"type":"boolean","description":"true = only tokens that pass the ownership check (required)."},"require_verified_source":{"type":"boolean","description":"true = only tokens that pass the source code check (required)."},"require_mint_disabled":{"type":"boolean","description":"true = only tokens that pass the mint authority check (required)."},"require_freeze_disabled":{"type":"boolean","description":"true = only tokens that pass the freeze authority check (required)."},"launchpad":{"type":"string","description":"trending_enter (Solana): only = launchpad tokens, none = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still pass none).","enum":["only","none"]},"require_website":{"type":"boolean","description":"true = only tokens that pass the website check (required)."},"require_x":{"type":"boolean","description":"true = only tokens that pass the X account check (required)."},"require_telegram":{"type":"boolean","description":"true = only tokens that pass the Telegram group check (required)."},"whole_words":{"type":"boolean","description":"true = the words match whole words only."},"min_scans":{"type":"integer","description":"scans a token needs on the board."}}}},"repeat":{"type":"string","description":"trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days).","enum":["1h","6h","24h","never"]},"max_per_hour":{"type":"integer","description":"trending_enter: at most this many alerts in any 60 minutes.","minimum":1,"maximum":1000},"unknown":{"type":"string","description":"trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown.","enum":["skip","mark"]}}},"HookRuleSummaryParams":{"type":"object","description":"The settings of a rule in the list: as HookRuleParams without the wallet addresses (address_count says how many; GET /v1/webhooks/rules/{id} returns them).","properties":{"chain":{"type":"string","description":"Chain id (price_cross, pct_move, wallet_activity; trending_enter also takes \"all\"; wallet_activity also takes \"evm\" = All EVMs: the wallets on every EVM chain TTF watches, chains added later included, each event naming the chain it happened on)."},"token":{"type":"string","description":"Token address (price_cross, pct_move)."},"above":{"type":"number","description":"price_cross: fire when the price rises to this many US dollars (give above or below)."},"below":{"type":"number","description":"price_cross: fire when the price falls to this many US dollars."},"fire_if_already_past":{"type":"boolean","description":"price_cross: fire at once when the price is already past the level."},"window":{"type":"string","description":"pct_move: the time window.","enum":["1m","5m","15m","1h","4h","24h"]},"percent":{"type":"number","description":"pct_move: the move in percent (negative = a drop)."},"min_scans":{"type":"integer","description":"trending_enter: scans a token needs on the board."},"min_usd":{"type":"number","description":"wallet_activity: smallest transfer in US dollars (0 = every transfer)."},"direction":{"type":"string","description":"wallet_activity: out (default) = sent by the wallet, in = received, any = both.","enum":["out","in","any"]},"kind":{"type":"string","description":"signal: the signal kind.","enum":["breakout","trending","call","cmd"]},"chains":{"type":"array","description":"trending_enter: a list of chains (instead of chain).","items":{"type":"string"}},"max_rank":{"type":"integer","description":"trending_enter: at most this place (1 to 30)."},"min_liquidity_usd":{"type":"number","description":"trending_enter: at least this liquidity in US dollars (0 to 1e+13)."},"max_liquidity_usd":{"type":"number","description":"trending_enter: at most this liquidity in US dollars (0 to 1e+13)."},"min_market_cap_usd":{"type":"number","description":"trending_enter: at least this market cap in US dollars (0 to 1e+13)."},"max_market_cap_usd":{"type":"number","description":"trending_enter: at most this market cap in US dollars (0 to 1e+13)."},"min_volume_24h_usd":{"type":"number","description":"trending_enter: at least this 24 h volume in US dollars (0 to 1e+13)."},"min_price_change_1h_pct":{"type":"number","description":"trending_enter: at least this 1 h change in percent (-100 to 1e+06)."},"max_price_change_1h_pct":{"type":"number","description":"trending_enter: at most this 1 h change in percent (-100 to 1e+06)."},"min_buys_1h":{"type":"integer","description":"trending_enter: at least this 1 h buys (0 to 1e+09)."},"min_age_hours":{"type":"number","description":"trending_enter: at least this age in hours (0 to 87600)."},"max_age_hours":{"type":"number","description":"trending_enter: at most this age in hours (0 to 87600)."},"pair_with":{"type":"string","description":"trending_enter: pair coin.","enum":["native","stable"]},"name_include":{"type":"array","description":"trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"name_exclude":{"type":"array","description":"trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"exclude_honeypot":{"type":"boolean","description":"trending_enter: true = only tokens that pass the honeypot check check (not a honeypot)."},"max_buy_tax_pct":{"type":"number","description":"trending_enter: at most this buy tax in percent (0 to 100)."},"max_sell_tax_pct":{"type":"number","description":"trending_enter: at most this sell tax in percent (0 to 100)."},"min_locked_pct":{"type":"number","description":"trending_enter: at least this locked or burned liquidity in percent (0 to 100)."},"min_holders":{"type":"integer","description":"trending_enter: at least this holders (0 to 1e+09)."},"max_top10_pct":{"type":"number","description":"trending_enter: at most this top 10 share in percent (0 to 100)."},"require_renounced":{"type":"boolean","description":"trending_enter: true = only tokens that pass the ownership check (required)."},"require_verified_source":{"type":"boolean","description":"trending_enter: true = only tokens that pass the source code check (required)."},"require_mint_disabled":{"type":"boolean","description":"trending_enter: true = only tokens that pass the mint authority check (required)."},"require_freeze_disabled":{"type":"boolean","description":"trending_enter: true = only tokens that pass the freeze authority check (required)."},"launchpad":{"type":"string","description":"trending_enter (Solana): only = launchpad tokens, none = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still pass none).","enum":["only","none"]},"require_website":{"type":"boolean","description":"trending_enter: true = only tokens that pass the website check (required)."},"require_x":{"type":"boolean","description":"trending_enter: true = only tokens that pass the X account check (required)."},"require_telegram":{"type":"boolean","description":"trending_enter: true = only tokens that pass the Telegram group check (required)."},"whole_words":{"type":"boolean","description":"trending_enter: true = the words match whole words only."},"per_chain":{"type":"object","description":"trending_enter: per chain, its own filter values: an absent key inherits the value above, a present one is that chain's own, null = no limit on that chain. Only filters the chain has.","additionalProperties":{"type":"object","description":"The chain's own values: filter -> value, or null = no limit on this chain.","properties":{"max_rank":{"type":"integer","description":"at most this place (1 to 30)."},"min_liquidity_usd":{"type":"number","description":"at least this liquidity in US dollars (0 to 1e+13)."},"max_liquidity_usd":{"type":"number","description":"at most this liquidity in US dollars (0 to 1e+13)."},"min_market_cap_usd":{"type":"number","description":"at least this market cap in US dollars (0 to 1e+13)."},"max_market_cap_usd":{"type":"number","description":"at most this market cap in US dollars (0 to 1e+13)."},"min_volume_24h_usd":{"type":"number","description":"at least this 24 h volume in US dollars (0 to 1e+13)."},"min_price_change_1h_pct":{"type":"number","description":"at least this 1 h change in percent (-100 to 1e+06)."},"max_price_change_1h_pct":{"type":"number","description":"at most this 1 h change in percent (-100 to 1e+06)."},"min_buys_1h":{"type":"integer","description":"at least this 1 h buys (0 to 1e+09)."},"min_age_hours":{"type":"number","description":"at least this age in hours (0 to 87600)."},"max_age_hours":{"type":"number","description":"at most this age in hours (0 to 87600)."},"pair_with":{"type":"string","description":"pair coin.","enum":["native","stable"]},"name_include":{"type":"array","description":"words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"name_exclude":{"type":"array","description":"words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).","items":{"type":"string"}},"exclude_honeypot":{"type":"boolean","description":"true = only tokens that pass the honeypot check check (not a honeypot)."},"max_buy_tax_pct":{"type":"number","description":"at most this buy tax in percent (0 to 100)."},"max_sell_tax_pct":{"type":"number","description":"at most this sell tax in percent (0 to 100)."},"min_locked_pct":{"type":"number","description":"at least this locked or burned liquidity in percent (0 to 100)."},"min_holders":{"type":"integer","description":"at least this holders (0 to 1e+09)."},"max_top10_pct":{"type":"number","description":"at most this top 10 share in percent (0 to 100)."},"require_renounced":{"type":"boolean","description":"true = only tokens that pass the ownership check (required)."},"require_verified_source":{"type":"boolean","description":"true = only tokens that pass the source code check (required)."},"require_mint_disabled":{"type":"boolean","description":"true = only tokens that pass the mint authority check (required)."},"require_freeze_disabled":{"type":"boolean","description":"true = only tokens that pass the freeze authority check (required)."},"launchpad":{"type":"string","description":"trending_enter (Solana): only = launchpad tokens, none = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still pass none).","enum":["only","none"]},"require_website":{"type":"boolean","description":"true = only tokens that pass the website check (required)."},"require_x":{"type":"boolean","description":"true = only tokens that pass the X account check (required)."},"require_telegram":{"type":"boolean","description":"true = only tokens that pass the Telegram group check (required)."},"whole_words":{"type":"boolean","description":"true = the words match whole words only."},"min_scans":{"type":"integer","description":"scans a token needs on the board."}}}},"repeat":{"type":"string","description":"trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days).","enum":["1h","6h","24h","never"]},"max_per_hour":{"type":"integer","description":"trending_enter: at most this many alerts in any 60 minutes.","minimum":1,"maximum":1000},"unknown":{"type":"string","description":"trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown.","enum":["skip","mark"]}}},"HookRule":{"type":"object","description":"A webhook rule: when it matches, its event is sent to its endpoint.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex).","pattern":"^whr_[0-9a-f]{24}$"},"endpoint_id":{"type":"string","description":"The endpoint it delivers to.","pattern":"^whe_[0-9a-f]{24}$"},"type":{"type":"string","description":"The rule type.","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"name":{"type":"string","description":"Your name for it (empty text when none)."},"labels":{"type":"object","description":"Your wallet labels: address -> text (empty when none).","additionalProperties":{"type":"string","description":"The label of that address."}},"params":{"$ref":"#/components/schemas/HookRuleParams"},"enabled":{"type":"boolean","description":"Your switch."},"active":{"type":"boolean","description":"true = it can fire now."},"over_limit":{"type":"boolean","description":"true = above your plan, so it does not fire."},"status":{"type":"string","description":"active, or why it does not fire: disabled (your switch), endpoint_paused, paused_plan (your plan lacks its data), paused_over_limit, invalid, inactive_denied (an address that is never watched), over_quota (this month's deliveries are used up), inactive.","x-ttf-known-values":["active","inactive","disabled","endpoint_paused","paused_plan","paused_over_limit","invalid","inactive_denied","over_quota"]},"coverage":{"type":"string","description":"What the sources deliver for this rule (coverage_note says it in words).","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"coverage_note":{"type":"string","description":"The coverage in words (empty text when full)."},"created":{"type":"integer","description":"When it was created. Unix time in SECONDS.","minimum":0},"updated":{"type":"integer","description":"When it was last changed. Unix time in SECONDS.","minimum":0}},"required":["id","endpoint_id","type","name","labels","params","enabled","active","over_limit","status","coverage","coverage_note","created","updated"]},"HookRuleSummary":{"type":"object","description":"A rule as the list shows it: without wallet addresses and labels, with their counts. The coverage of a watchlist is partial here whenever its chain is over capacity; the rule itself says exactly.","properties":{"id":{"type":"string","description":"Rule id (whr_ + 24 hex).","pattern":"^whr_[0-9a-f]{24}$"},"endpoint_id":{"type":"string","description":"The endpoint it delivers to.","pattern":"^whe_[0-9a-f]{24}$"},"type":{"type":"string","description":"The rule type.","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"name":{"type":"string","description":"Your name for it (empty text when none)."},"params":{"$ref":"#/components/schemas/HookRuleSummaryParams"},"enabled":{"type":"boolean","description":"Your switch."},"active":{"type":"boolean","description":"true = it can fire now."},"over_limit":{"type":"boolean","description":"true = above your plan, so it does not fire."},"status":{"type":"string","description":"active, or why it does not fire: disabled (your switch), endpoint_paused, paused_plan (your plan lacks its data), paused_over_limit, invalid, inactive_denied (an address that is never watched), over_quota (this month's deliveries are used up), inactive.","x-ttf-known-values":["active","inactive","disabled","endpoint_paused","paused_plan","paused_over_limit","invalid","inactive_denied","over_quota"]},"coverage":{"type":"string","description":"What the sources deliver for this rule (coverage_note says it in words).","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"coverage_note":{"type":"string","description":"The coverage in words (empty text when full)."},"created":{"type":"integer","description":"When it was created. Unix time in SECONDS.","minimum":0},"updated":{"type":"integer","description":"When it was last changed. Unix time in SECONDS.","minimum":0},"address_count":{"type":"integer","description":"wallet_activity: how many wallets the rule watches. Absent for other rules.","minimum":0},"label_count":{"type":"integer","description":"wallet_activity: how many of them have a label. Absent for other rules.","minimum":0}},"required":["id","endpoint_id","type","name","params","enabled","active","over_limit","status","coverage","coverage_note","created","updated"]},"HookRuleOne":{"type":"object","description":"One rule.","properties":{"rule":{"$ref":"#/components/schemas/HookRule"}},"required":["rule"]},"HookRuleList":{"type":"object","description":"Your rules, newest first.","properties":{"rules":{"type":"array","description":"The rules.","items":{"$ref":"#/components/schemas/HookRuleSummary"}},"max_rules":{"type":"integer","description":"How many rules your plan allows.","minimum":0},"max_watch_addresses":{"type":"integer","description":"How many wallet addresses your plan may watch at once.","minimum":0}},"required":["rules","max_rules","max_watch_addresses"]},"HookRuleDeleted":{"type":"object","description":"The rule was deleted.","properties":{"id":{"type":"string","description":"The deleted rule.","pattern":"^whr_[0-9a-f]{24}$"},"deleted":{"type":"boolean","description":"true."}},"required":["id","deleted"]},"HookRuleCheck":{"type":"object","description":"The rule would be accepted (nothing was saved).","properties":{"ok":{"type":"boolean","description":"true."},"coverage":{"type":"string","description":"What the sources deliver for this rule (coverage_note says it in words).","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"coverage_note":{"type":"string","description":"The coverage in words (empty text when full)."}},"required":["ok","coverage","coverage_note"]},"HookSchema":{"type":"object","description":"What a rule may look like: types, settings, bounds and chains.","properties":{"event_types":{"type":"array","description":"Every event type.","items":{"type":"string","enum":["price","trending","wallet","signal"]}},"chains":{"type":"array","description":"Chains a rule may name.","items":{"type":"object","description":"A chain.","properties":{"id":{"type":"string","description":"Chain id."},"name":{"type":"string","description":"Its name."}},"required":["id","name"]}},"coverage_notes":{"type":"object","description":"Every coverage value in words.","properties":{"full":{"type":"string","description":"The note of coverage full."},"not_watched":{"type":"string","description":"The note of coverage not_watched."},"never":{"type":"string","description":"The note of coverage never."},"partial":{"type":"string","description":"The note of coverage partial."},"pending":{"type":"string","description":"The note of coverage pending."},"denied":{"type":"string","description":"The note of coverage denied."},"native_only":{"type":"string","description":"The note of coverage native_only."},"no_source":{"type":"string","description":"The note of coverage no_source."}},"required":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"rule_types":{"type":"object","description":"Per rule type: the event it sends, its params and bounds.","properties":{"price_cross":{"type":"object","description":"Price crosses a level.","properties":{"event":{"type":"string","description":"The event type a rule of this kind sends."},"required":{"type":"array","description":"The params a rule of this kind needs.","items":{"type":"string"}},"optional":{"type":"array","description":"The optional params.","items":{"type":"string"}},"price_bounds":{"type":"array","description":"Smallest and largest price.","items":{"type":"number"}},"hint":{"type":"string","description":"When it fires, in words."}},"required":["event","required","optional","price_bounds","hint"]},"pct_move":{"type":"object","description":"Price moves by a percentage.","properties":{"event":{"type":"string","description":"The event type a rule of this kind sends."},"required":{"type":"array","description":"The params a rule of this kind needs.","items":{"type":"string"}},"windows":{"type":"array","description":"Windows available now.","items":{"type":"string"}},"percent_bounds":{"type":"array","description":"Smallest and largest percent.","items":{"type":"number"}},"percent_min_abs":{"type":"number","description":"Smallest size of a move."},"hint":{"type":"string","description":"When it fires, in words."}},"required":["event","required","windows","percent_bounds","percent_min_abs","hint"]},"trending_enter":{"type":"object","description":"A token enters the trending board.","properties":{"event":{"type":"string","description":"The event type a rule of this kind sends."},"required":{"type":"array","description":"The params a rule of this kind needs.","items":{"type":"string"}},"min_scans_bounds":{"type":"array","description":"Smallest and largest min_scans.","items":{"type":"integer"}},"optional":{"type":"array","description":"The optional params (the filters, per_chain, repeat, max_per_hour, unknown).","items":{"type":"string"}},"filters":{"type":"object","description":"Every filter, by param name.","additionalProperties":{"type":"object","description":"One filter.","properties":{"value":{"type":"string","description":"The event data value it reads."},"op":{"type":"string","description":"min, max, eq, words_any, words_none, true, false or pad."},"kind":{"type":"string","description":"int, usd, pct, hours, enum, words or flag."},"label":{"type":"string","description":"The value in words."},"group":{"type":"string","description":"Its coverage group."},"bounds":{"type":"array","description":"Smallest and largest value (numbers).","items":{"type":"integer"}},"choices":{"type":"array","description":"The values it takes (enum).","items":{"type":"string"}}},"required":["value","op","kind","label","group"]}},"modifiers":{"type":"array","description":"Params that change how filters match (whole_words).","items":{"type":"string"}},"repeats":{"type":"array","description":"repeat values.","items":{"type":"string"}},"never_days":{"type":"integer","description":"How long repeat: never remembers a token, days.","minimum":0},"unknown_modes":{"type":"array","description":"unknown values.","items":{"type":"string"}},"max_per_hour_bounds":{"type":"array","description":"Smallest and largest max_per_hour.","items":{"type":"integer"}},"words_max":{"type":"integer","description":"Most words in a word list.","minimum":0},"word_len":{"type":"integer","description":"Longest word.","minimum":0},"chains_max":{"type":"integer","description":"Most chains in chains / per_chain.","minimum":0},"board_size":{"type":"integer","description":"Places on the trending board.","minimum":0},"enter_window_s":{"type":"integer","description":"Seconds after entering the board a token may still pass.","minimum":0},"coverage":{"type":"object","description":"Which value each chain has: a filter on a value a chain does not have does not apply there.","properties":{"groups":{"type":"object","description":"Coverage groups, by name.","additionalProperties":{"type":"object","description":"A group.","properties":{"values":{"type":"array","description":"Its values.","items":{"type":"string"}},"note":{"type":"string","description":"Where the values come from, in words."},"chains":{"type":"array","description":"The chains that have them.","items":{"type":"string"}}},"required":["values","note","chains"]}},"chains":{"type":"object","description":"Per chain id, the values it has.","additionalProperties":{"type":"array","items":{"type":"string"},"description":"Value keys."}},"filters":{"type":"object","description":"Per filter, its value and group.","additionalProperties":{"type":"object","description":"A filter.","properties":{"value":{"type":"string","description":"The value it reads."},"group":{"type":"string","description":"Its coverage group."}},"required":["value","group"]}}},"required":["groups","chains","filters"]},"hint":{"type":"string","description":"When it fires, in words."}},"required":["event","required","min_scans_bounds","optional","filters","modifiers","repeats","never_days","unknown_modes","max_per_hour_bounds","words_max","word_len","chains_max","board_size","enter_window_s","coverage","hint"]},"wallet_activity":{"type":"object","description":"A watched wallet makes a transfer.","properties":{"event":{"type":"string","description":"The event type a rule of this kind sends."},"required":{"type":"array","description":"The params a rule of this kind needs.","items":{"type":"string"}},"optional":{"type":"array","description":"The optional params.","items":{"type":"string"}},"min_usd_max":{"type":"number","description":"Largest min_usd."},"directions":{"type":"array","description":"Direction values.","items":{"type":"string"}},"coverage":{"type":"string","description":"full when wallets are watched on at least one chain.","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"full_chains":{"type":"array","description":"Chains where wallet rules fire now.","items":{"type":"string"}},"native_only_chains":{"type":"array","description":"Chains where only native coin moves are watched (no token transfers): rules there have coverage native_only.","items":{"type":"string"}},"all_evm":{"type":"object","description":"All EVMs: a wallet rule with chain \"evm\" watches its wallets on every chain listed here (chains switched on later are added by themselves).","properties":{"id":{"type":"string","description":"The chain value of an All EVMs rule: evm."},"name":{"type":"string","description":"Its name."},"chains":{"type":"array","description":"The chains an All EVMs rule watches now.","items":{"type":"string"}},"chain_names":{"type":"array","description":"Their names, in the same order.","items":{"type":"string"}},"native_only_chains":{"type":"array","description":"Of them, the chains where only native coin moves are seen.","items":{"type":"string"}},"not_covered":{"type":"array","description":"EVM chains a rule may name that are not watched yet (Solana and other non-EVM chains are never part of All EVMs).","items":{"type":"string"}},"coverage":{"type":"string","description":"full when at least one chain is watched.","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]}},"required":["id","name","chains","chain_names","native_only_chains","not_covered","coverage"]},"hint":{"type":"string","description":"When it fires, in words."}},"required":["event","required","optional","min_usd_max","directions","coverage","full_chains","native_only_chains","all_evm","hint"]},"signal":{"type":"object","description":"A TTF signal.","properties":{"event":{"type":"string","description":"The event type a rule of this kind sends."},"required":{"type":"array","description":"The params a rule of this kind needs.","items":{"type":"string"}},"kinds":{"type":"array","description":"Signal kinds a rule may name.","items":{"type":"string"}},"coverage":{"type":"string","description":"full while TTF signals are coming in; no_source while the signal feed is off.","x-ttf-known-values":["full","not_watched","never","partial","pending","denied","native_only","no_source"]},"hint":{"type":"string","description":"When it fires, in words."}},"required":["event","required","kinds","coverage","hint"]}},"required":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"plan_groups":{"type":"object","description":"The plan data group each rule type needs.","properties":{"price_cross":{"type":"string","description":"The group a price_cross rule needs."},"pct_move":{"type":"string","description":"The group a pct_move rule needs."},"trending_enter":{"type":"string","description":"The group a trending_enter rule needs."},"wallet_activity":{"type":"string","description":"The group a wallet_activity rule needs."},"signal":{"type":"string","description":"The group a signal rule needs."}},"required":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"limits":{"type":"object","description":"Fixed limits.","properties":{"description_max":{"type":"integer","description":"Longest endpoint description.","minimum":0},"test_per_minute":{"type":"integer","description":"Test deliveries a minute per endpoint.","minimum":0},"rotate_overlap_s":{"type":"integer","description":"Seconds the previous secret keeps signing after a rotation.","minimum":0}},"required":["description_max","test_per_minute","rotate_overlap_s"]}},"required":["event_types","chains","coverage_notes","rule_types","plan_groups","limits"]},"HookUsage":{"type":"object","description":"What your account uses of its webhook limits.","properties":{"plan":{"type":"object","description":"Your plan.","properties":{"plan_id":{"type":"string","description":"Plan id."},"plan_name":{"type":"string","description":"Plan name."},"state":{"type":"string","description":"ok, or why paid terms do not apply (expired = the Free terms)."},"groups":{"type":"array","description":"Data groups of the plan.","items":{"type":"string"}}},"required":["plan_id","plan_name","state","groups"]},"watch":{"type":"object","description":"Watched wallet addresses.","properties":{"used":{"type":"integer","description":"In use.","minimum":0},"limit":{"type":"integer","description":"Allowed.","minimum":0}},"required":["used","limit"]},"endpoints":{"type":"object","description":"Endpoints.","properties":{"used":{"type":"integer","description":"In use.","minimum":0},"limit":{"type":"integer","description":"Allowed.","minimum":0},"over_limit":{"type":"integer","description":"Above the plan (paused).","minimum":0}},"required":["used","limit","over_limit"]},"rules":{"type":"object","description":"Rules.","properties":{"used":{"type":"integer","description":"In use.","minimum":0},"limit":{"type":"integer","description":"Allowed.","minimum":0},"active":{"type":"integer","description":"Switched on and inside the plan.","minimum":0},"over_limit":{"type":"integer","description":"Above the plan (paused).","minimum":0}},"required":["used","limit","active","over_limit"]},"deliveries":{"type":"object","description":"Deliveries of the running subscription month.","properties":{"used":{"type":"integer","description":"Sent.","minimum":0},"limit":{"type":"integer","description":"Allowed.","minimum":0},"resets":{"type":"integer","description":"When the count starts again. Unix time in SECONDS.","minimum":0},"over_quota":{"type":"boolean","description":"true = used up: rules do not fire until the reset or an upgrade."}},"required":["used","limit","resets","over_quota"]},"partial":{"type":"array","description":"Parts that could not be read just now (empty when everything was).","items":{"type":"string"}}},"required":["plan","watch","endpoints","rules","deliveries","partial"]},"HookEndpointCreate":{"type":"object","description":"The body of a new endpoint.","properties":{"url":{"type":"string","description":"Public https URL (port 443 or 8443, a host name that resolves, no user name or password)."},"description":{"type":"string","description":"A note, up to 120 characters.","maxLength":120},"event_types":{"type":"array","description":"Event types to receive (default: all).","items":{"type":"string","enum":["price","trending","wallet","signal"]}},"enabled":{"type":"boolean","description":"false = create it paused (default true)."}},"required":["url"]},"HookEndpointUpdate":{"type":"object","description":"The fields to change (at least one).","properties":{"url":{"type":"string","description":"Public https URL (port 443 or 8443, a host name that resolves, no user name or password)."},"description":{"type":"string","description":"A note, up to 120 characters.","maxLength":120},"event_types":{"type":"array","description":"Event types to receive.","items":{"type":"string","enum":["price","trending","wallet","signal"]}},"enabled":{"type":"boolean","description":"false = pause, true = resume."}}},"HookRuleCreate":{"type":"object","description":"The body of a new rule.","properties":{"endpoint_id":{"type":"string","description":"The endpoint it delivers to.","pattern":"^whe_[0-9a-f]{24}$"},"type":{"type":"string","description":"The rule type.","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"params":{"$ref":"#/components/schemas/HookRuleParams"},"enabled":{"type":"boolean","description":"false = create it switched off (default true)."},"name":{"type":"string","description":"A name, up to 60 characters.","maxLength":60},"labels":{"type":"object","description":"Wallet labels: address -> text (wallet rules only).","additionalProperties":{"type":"string","description":"The label of that address."}}},"required":["endpoint_id","type","params"]},"HookRuleCheckInput":{"type":"object","description":"A rule to validate without saving it.","properties":{"type":{"type":"string","description":"The rule type.","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]},"params":{"$ref":"#/components/schemas/HookRuleParams"},"endpoint_id":{"type":"string","description":"Also check this endpoint's event types and plan limit.","pattern":"^whe_[0-9a-f]{24}$"},"enabled":{"type":"boolean","description":"As in a new rule."},"name":{"type":"string","description":"A name.","maxLength":60},"labels":{"type":"object","description":"Wallet labels: address -> text.","additionalProperties":{"type":"string","description":"The label of that address."}}},"required":["type","params"]},"HookRuleUpdate":{"type":"object","description":"The fields to change (at least one).","properties":{"enabled":{"type":"boolean","description":"Switch the rule on or off."},"params":{"$ref":"#/components/schemas/HookRuleParams"},"name":{"type":"string","description":"A new name.","maxLength":60},"labels":{"type":"object","description":"Wallet labels: address -> text.","additionalProperties":{"type":"string","description":"The label of that address."}},"type":{"type":"string","description":"Only for a price rule: switch between price_cross and pct_move (send the new params too).","enum":["price_cross","pct_move","trending_enter","wallet_activity","signal"]}}}}}}