TTFDocs Dashboard

TTF docs: what do you want to do?

TTF scans crypto tokens in Telegram. Here you learn how to get its alerts in your own Telegram or Discord, and how to use its data in the apps and bots you build yourself. Pick what you want to do.

Get alerts, no code needed

Build with the API

Your account

Words used in these pages

WordWhat it means
AlertWhat to watch (a price, the trending board, a wallet) and where to send it. The API calls it a rule.
DestinationWhere alerts go: your Telegram, a Telegram group or channel, a Discord channel, or your own server. The API calls it an endpoint. Telegram and Discord messages are posted by the TTF bot: you never make a bot or give us a bot token.
DeliveryOne alert message on its way to one destination. The delivery log shows each one.
API keyYour password for the data API. Only needed for code: alerts in Telegram or Discord need none.
CreditsWhat a data API call costs. Alerts do not use credits; they have their own monthly allowance (Plans).

TTF shows facts and checks, never advice. A token that passes every filter can still lose its value: always do your own research.

Questions? Ask in the TTF Telegram channel.

Build with AI: use the TTF API with an AI assistant

Give these docs to ChatGPT, Claude or the coding assistant in your editor, and let it write the code. Everything it needs is public text: no sign-in, no scraping.

What an assistant can read

WhatWhereUse it for
One page as MarkdownCopy page at the top of every page, or View as Markdown in the Build with AI menu beside it. Each page also has its own address: https://ttf.bot/developers/docs/md/<page>.mdA question about one endpoint, one alert type or one error.
The whole referencehttps://ttf.bot/developers/docs/llms-full.txt (the Build with AI menu copies it for you too)Building a whole app: every endpoint, field, error and webhook in one text.
The site in shorthttps://ttf.bot/llms.txt and https://ttf.bot/llms-full.txtWhat TTF is, which pages exist and the plain-language guides.
The OpenAPI contracthttps://api.ttf.bot/openapi.json (OpenAPI 3.1, JSON; the menu can download it too)Tools that import a contract, typed clients, exact field names and limits.
Open in ChatGPT or ClaudeIn the Build with AI menu of every pageStarts a new chat in a new tab that already asks about that page (it sends the page's public address, nothing else).

Three steps

  1. Get a key

    Sign in to the dashboard (free), tab Overview, panel API keys, Create key. Keep it out of the chat with the assistant: let the code read it from an environment variable such as TTF_API_KEY.

  2. Give the assistant the docs

    Paste the address of the whole reference (https://ttf.bot/developers/docs/llms-full.txt) or of the page you need, or press Copy page and paste the text. An assistant that cannot open links needs the pasted text.

  3. Ask for what you want

    Say the language, what the program does and what it must not do. Start from a prompt below.

Prompts to paste

Each one tells the assistant where the facts are, so it does not guess endpoint names.

Check a token from a script

Read https://ttf.bot/developers/docs/md/token-security.md and https://ttf.bot/developers/docs/md/authentication.md.
Write a Python 3 script that takes a chain and a token address on the command line, calls the TTF API security check
with the key from the TTF_API_KEY environment variable, and prints the verdict, the score, the buy and sell tax and
every flag. Handle the error format from https://ttf.bot/developers/docs/md/errors.md and wait the Retry-After
seconds on 429. Use only the endpoints in those pages.

Receive webhooks and check the signature

Read https://ttf.bot/developers/docs/md/webhooks.md, https://ttf.bot/developers/docs/md/webhook-signatures.md and
https://ttf.bot/developers/docs/md/webhook-retries.md.
Write a small Node.js (Express) server with one POST route for TTF webhooks. Verify X-TTF-Signature on the raw body
with the secret from the TTF_WEBHOOK_SECRET environment variable, refuse timestamps older than 5 minutes, answer 200
at once, drop duplicates by X-TTF-Delivery and log the event type. Test it with the signature vectors on that page.

A typed client from the contract

Use the OpenAPI 3.1 contract at https://api.ttf.bot/openapi.json. Write a small typed TypeScript client for the
token endpoints I use (security, market, holders), with the key in the Authorization: Bearer header, retries only on
429 and 503 honouring Retry-After, and no other dependencies.

Explain an error

The TTF API answered this error (pasted below). Read https://ttf.bot/developers/docs/md/errors.md and tell me in
plain words what it means, whether it cost credits, and what to change.

End to end: a trending alert in your Telegram group and on your server

This example uses the API for data, a webhook for your own code, and a Telegram group for people. Only the first two need code.

  1. Data from the API

    Ask the assistant for the script of the first prompt. The call it makes looks like this:

    curl -sS 'https://api.ttf.bot/v1/token/eth/0x6982508145454ce325ddbe47a25d4ec3d2311933/security' \
      -H 'Authorization: Bearer YOUR_KEY'
  2. A webhook to your server

    Run the receiver of the second prompt on a public https address. In the dashboard, tab Destinations, add that address and copy the signing secret (whsec_..., shown once) into TTF_WEBHOOK_SECRET. Code can do the same with a key that has webhook access: Manage webhooks from code.

  3. An alert

    Tab Alerts: Trending tokens, pick the chains and filters (Trending alerts and filters), send it to your server, and press Send test alert. The test arrives as a ping. Trending alerts need a paid plan or the trial (Plans).

  4. The same alert in a Telegram group, no code

    Tab Destinations, Telegram, A group. The page gives you a one-time code; with the TTF bot already in the group, send the command it shows in the group, for example /hooklink@TTFBotBot YOUR-ONE-TIME-CODE with your own code at the end. Then Make an alert for it (Alerts in Telegram). You never create a bot and never give TTF a bot token: the TTF bot posts the messages.

Good to know

  • Never paste your API key or a webhook secret into a chat with an assistant. Use YOUR_KEY in the prompt and an environment variable in the code.
  • Telegram and Discord destinations are connected in the dashboard only: the API cannot create them, because only you can prove that a chat is yours.
  • There is no official SDK package yet: an assistant writes plain HTTPS calls, or makes a client from the OpenAPI contract.
  • Data calls cost credits (Credits and limits); webhook management calls and alerts do not.
  • An assistant can be wrong. When its code and these pages disagree, these pages are right; the error page says what each error code means.

Plans, limits and paying

Free costs nothing: price alerts and light data. Bigger plans add trending, wallet and signal alerts, more destinations, more messages and more credits.

The plans

FreeStarterProScale
Price per month$0$49$200$600
Alert kindspriceallallall
Destinations (Telegram, Discord, webhook)131025
Alerts320100500
Alert messages per month1,00025,000250,0002,000,000
Watched wallets105002,50010,000
Credits per month50025,000100,000250,000
Credits per day5005,0008,00025,000
Credits per minute603003001,000
Requests per second131025
API keys23510
Data groupscore, candles, resolveallallall

Your own numbers can differ from this table (for example during a trial, or with a special offer): the dashboard shows yours on the Overview and Usage tabs, with what you used today and this month.

What each line means

  • Destinations: how many places alerts can go to. Every Telegram chat, Discord channel and https endpoint takes one.
  • Alerts: how many alerts (rules) you can have. A wallet list of up to 1,000 wallets is one alert.
  • Alert messages per month: messages sent to your destinations, counted from the day your plan period started. Test messages count too. A message we could not send costs nothing.
  • Watched wallets: wallets that wallet alerts follow at the same time, counted once per chain and address.
  • Data groups: which kinds of data your API key may read, and which alerts you can make. Free has price data (core), price candles and token search, so on Free you can make price alerts. Trending, wallet and signal alerts need a paid plan (or the trial).
  • Credits: the cost of data API calls (Credits and limits). Alerts do not use credits.

Trial

A new account can get a free trial with more credits and every kind of alert, no card needed. The dashboard shows when it ends; after that the account is on Free again unless you pick a plan.

How to pay

  1. Open Billing

    In the dashboard, tab Billing, pick a plan and how long you want it.

  2. Pick how to pay

    The page lists only the ways that are open right now. A card renews by itself each period until you cancel. The other ways (for example crypto, or Telegram Stars) pay once for the period you picked: nothing renews by itself: pay again before the period ends to keep the plan.

  3. Done

    The plan starts as soon as the payment is confirmed. Invoices are on the same tab.

Opened the dashboard inside Telegram? There only Telegram Stars can be offered (Telegram's rule for apps inside Telegram). Open it in a normal browser to see every way to pay.

When you go over a limit, or a plan ends

  • Nothing is deleted. Alerts and destinations above the new limits are paused (the dashboard says Over your plan limit or Needs a bigger plan); the oldest ones keep working.
  • When the monthly alert messages are used up, alerts stop until the next period (Monthly alerts used up).
  • After an upgrade, paused alerts come back by themselves within a few minutes.
  • Data API calls over a limit answer 429 rate_limited and cost nothing (Credits and limits).

Alerts: how they work

An alert watches something for you and sends a message the moment it happens: to your Telegram, your Discord or your own server. You set it up in the dashboard. No code needed.

Two parts: what and where

  • The alert says what to watch: a price, the trending board or a wallet.
  • The destination says where the message goes: Telegram, Discord or your own server. One destination can take many alerts.

Here is what a price alert looks like in Telegram:

Telegram, price alert
🔔 Price alert
DEMO · Ethereum
Crossed above $2.00: now $2.04
Open · Scan
via TTF

What you can watch

AlertYou get a message when...Read more
Price alertsa token crosses your price, or moves up or down by your percent within a time window.Price alerts
Trending tokensa token enters TTF trending (what people scan with TTF right now), on the chains you pick and only when it passes your filters.Trending alerts
Wallet alertsa wallet you watch buys, sells, sends or receives tokens.Wallet alerts
TTF signalsthe TTF signals bot posts a new call, an all-time-high breakout or a trending signal. When the signal feed is not on yet, the dashboard says so next to the alert.Signal rules

Where it can go

DestinationGood forHow
TelegramYour own chat with the TTF bot, a group, or a channel you run.Alerts in Telegram
DiscordYour DMs, or a channel of a server you manage.Alerts in Discord
Your serverA server or app you run: a signed HTTPS call with all the data.Webhooks

In the dashboard's Destinations tab, a choice that says Not available right now is switched off for the moment; the others work.

Your first alert in 3 steps

  1. Sign in

    Open the dashboard and sign in with Telegram or your email. Free, no card.

  2. Follow the guide

    The Overview tab starts a short guide: pick a ready-made alert (Wallet alerts, Trending tokens, Price alerts or TTF signals), fill in the token or wallet, then pick where it goes. When your Telegram is linked, Use my Telegram sends alerts to your chat with the TTF bot in one tap.

  3. Send a test

    Press Send test alert. A test message arrives within a minute, and the page tells you in plain words if it did not.

Later, the tabs do the same with more choices: Alerts (make, edit, pause and delete alerts), Wallets (paste wallets) and Destinations (connect chats, change how messages look, see what was sent).

What the status of an alert means

The dashboard saysWhat it means
OnWorking: you get a message when it happens.
PausedYou paused it. Press Resume on the Alerts tab.
Destination pausedIts destination is paused or turned off: resume the destination.
Needs a bigger planYour plan does not include this kind of alert (any more). It comes back by itself after an upgrade.
Over your plan limitYou have more alerts than your plan allows: the newest ones rest. Delete one or upgrade.
Monthly alerts used upThis month's alert messages are used up. It goes on in the next period or after an upgrade.
Cannot runA setting is no longer possible (for example a time window): edit it or delete it.
Address cannot be watchedAn exchange, router or burn address: pause or delete this alert.
Not runningSaved, but it could not be switched on just now. Press Pause, then Resume; ask us if it stays like this.

Good to know

  • How many alerts, destinations and messages a month you get depends on your plan; on Free you can make price alerts (Plans).
  • Telegram and Discord messages are never held back for later: one that could not be sent within 15 minutes is dropped, because an old alert is not useful.
  • A Telegram or Discord destination receives at most 600 messages an hour; the rest of that hour is dropped and the delivery log says so.
  • Alerts show facts, never advice: an alert never means a token is safe.

Alerts in Telegram

Get your alerts as messages from the TTF bot: in your own chat with the bot, in a group, or in a channel you run. No server and no code.

Before you start

  • A TTF developer account (free): sign in with Telegram or your email.
  • Your Telegram linked to that account. It proves the chat is yours. Signed in with Telegram? Then it is linked already. Otherwise: tab Security, panel Telegram sign-in, press Link Telegram (the TTF bot sends you a code to type in). The connect steps also offer the button when it is needed.
  • For a group or a channel: you are its creator or an administrator.
  • A free destination on your plan (Free has one).

Connect it

  1. Open Destinations

    In the dashboard, tab Destinations, under Where should alerts go? pick Telegram. For your safety, we may ask you to sign in again first: connecting a chat needs a sign-in from the last 10 minutes.

  2. Pick where

    My Telegram (a private chat with the TTF bot), A group or A channel.

  3. Confirm it in Telegram

    The page gives you a link with a one-time code that works for 10 minutes:

    • My Telegram: press Open Telegram. It opens your chat with @TTFBotBot (it sends /start with the code for you). Tap Allow.
    • A group, three ways: Add the bot to a group (Telegram asks which group, adds the bot and sends the code for you); or, when the bot is already there, copy the command the page shows and send it in the group, as yourself (with "Remain anonymous" off). It looks like this, with your own code at the end: /hooklink@TTFBotBot YOUR-ONE-TIME-CODE. Or Pick from my groups (a button in your chat with the bot lists the groups it is in).
    • A channel: press Open Telegram, tap Choose a channel, pick yours, and accept adding the bot as an admin that may post.

    The page shows what was found (the chat's name, that you are an admin, that the bot can post). Press Continue.

  4. Name it and pick what it takes

    Back on the page: give it a name (only you see it), tick the alert types it takes (price, trending, wallet, signals; your plan decides which you can tick), and choose the options (below). Press Create destination.

  5. Test it

    Press Send a test message. Then Make an alert for it, or open Design the message to change how it looks.

Here is a trending alert in a Telegram group:

Telegram group, trending alert with filters
🔥 DEMO just entered trending · Ethereum
Rank 3 · 12 scans
Liquidity $62K · MC $480K · 1 h +38.5%
Tax 0% / 5% · locked 100% · 900 holders
Unknown: source code
Passed your filters.
Open · Scan
via TTF

Options

  • Send quietly: the message arrives without a notification sound.
  • Scan button: a button under each message that opens the token in the TTF bot.
  • Token page button: a button that opens the token's page on ttf.bot.

Change them any time: on the destination's card press Settings.

It keeps checking

Before it sends, and every few minutes, TTF checks that you are still an administrator of the chat and that the bot may still post there. If not, the destination stops and shows Needs attention with the reason and a button to fix it:

The card saysWhat to do
You are no longer an admin of the chat.Become an admin again (or ask the owner to connect it), then press Re-check.
The bot was removed from the chat.Press Add the bot back, add it in Telegram, then Re-check.
The bot is blocked in that chat.Unblock the TTF bot in Telegram, then Re-check.
The bot may not post there.Give the bot the right to send messages (in a channel: to post), then Re-check.
The group was upgraded: connect it again.Telegram turned the group into a new one: press Connect again.
The chat cannot be found any more.The chat was deleted, or the bot cannot see it: connect another chat.

The one-time code

  • It works for 10 minutes and only once. A used or expired code does nothing: start again in the dashboard.
  • Only you can use it: the bot checks that the Telegram account that sends it is the one linked to your TTF account, and that it is an admin of that chat. Anyone else who sees it in the group gets nothing from it.
  • The bot deletes the command message in a group when it has the right to; otherwise delete it yourself.
  • In a group with topics, you may send the command in any topic. Alerts are posted in the group's General topic.

Safety

  • TTF never asks for a Telegram bot token. You do not make a bot in BotFather and you do not give us a chat id or a password: the alerts are posted by the TTF bot, @TTFBotBot. Anyone who asks you for a bot token "for TTF alerts" is not us.
  • Only an admin can connect a chat, and only through the TTF bot: nobody can type in a chat id.
  • When a destination is connected, the TTF bot sends you a private message about it with a Disconnect button (it works for 24 hours). Did not do it yourself? Press it: it signs your account out everywhere and removes the destination.
  • Alerts never ping anyone: no @all, no @name.

Stop it

On the destination's card: Pause stops alerts until you press Resume (nothing is saved up meanwhile). Disconnect removes the destination: it asks whether to delete its alerts or move them to another destination.

Every answer the bot can give while you connect, and what to do about it, is in the Telegram and Discord alerts guide.

Alerts in Discord

Get your alerts in your Discord DMs or in a channel of a server you manage, posted by the TTF bot. No server and no code.

Before you start

  • A TTF developer account (free), opened in a normal web browser (not inside Telegram): Discord sends you back to the same browser.
  • For a server channel: you own the server, or have Administrator or Manage Server, or a role above the bot's role.
  • For DMs: you share a server with the TTF bot and allow DMs from server members (Discord's rule for bots).
  • A free destination on your plan.

Connect it

  1. Open Destinations

    In the dashboard, tab Destinations, under Where should alerts go? pick Discord. Then My DMs or A server channel.

  2. Continue with Discord

    Discord opens and asks you to approve. TTF reads your Discord name and your server list, nothing else, and does not keep the access. Back on the page, check the name: Yes, that is me.

  3. Pick the server and channel

    Servers you manage are listed. Not there yet? Press Add the bot, add it in Discord, come back and press Check again. Then pick the channel. A channel is missing when the bot cannot see it or post in it, when you cannot, or when it is age-restricted.

  4. Name it and pick what it takes

    Give it a name, tick the alert types, choose the options (below), press Create destination.

  5. Test it

    Press Send a test message, then Make an alert for it.

Options

  • Use an embed (card look): the message shows as a card with a coloured edge. Embed colour: automatic (green when the price went up, red when it went down) or a fixed colour. A channel marked "no card look" does not let the bot embed links: there the plain message is sent.
  • Send quietly, Scan button and Token page button: as in Telegram.

The message text is the same as in Telegram, turned into Discord's formatting by TTF (Design the message).

It keeps checking

Before it sends, and every few minutes, TTF checks that you still have the rights above and that the bot can still post. If not, the destination stops and shows Needs attention: fix the channel's permissions (the bot needs View Channel and Send Messages) and press Re-check. Alerts never ping anyone: @everyone, @here and names are refused in messages.

Your Discord account

Your connected Discord account shows on the Destinations tab. Unlink my Discord account stops every Discord destination until you connect Discord again.

What TTF asks for

  • Only your approval on Discord's own page. TTF never asks for a Discord bot token, a webhook URL or your password: the alerts are posted by the TTF bot.
  • Discord destinations are switched on separately from Telegram: when the Discord choice says Not available right now, they are off for the moment; use Telegram or your own server meanwhile.

More help, in plain words: the Telegram and Discord alerts guide.

Wallet alerts

Get a message when a wallet you watch buys, sells, sends or receives tokens. Paste one wallet or a list of up to 1,000, with a name for each.

Add wallets

  1. Open Wallets

    Dashboard, tab Wallets, panel Add wallets.

  2. Paste them

    One wallet per line, optionally a name after it (up to 40 characters):

    0x1111111111111111111111111111111111111111 Whale one
    0x2222222222222222222222222222222222222222 Dev wallet

    The page marks lines it cannot read and duplicates before you save.

  3. Pick the chain and what counts

    The chain (or All EVMs, below), and the direction: Everything (buys, sells and transfers), Only tokens coming in or Only tokens going out. Optional: a Minimum value in USD (smaller transfers send nothing; with a minimum set, a transfer whose dollar value is not known sends nothing either).

  4. Pick where it goes and press Start watching

    The first alert can arrive within a minute of the next move.

The list is one alert, so 1,000 wallets use one alert of your plan; each wallet counts as a watched wallet (Plans). Rename or remove a wallet in the Watched wallets table.

All EVMs

Pick All EVMs as the chain and one alert watches the wallets on every EVM chain where wallet alerts are live, chains switched on later included. Each message says which chain it happened on. Solana and the other non-EVM chains are not part of it. The dashboard lists the live chains. On a few chains only coin moves are seen, not token transfers: the dashboard says which.

One swap, one message

A swap moves two tokens (you pay one, you get the other), and often more transfers on the way. In Telegram and Discord you get one message per swap: what was paid, what was received and the network fee.

A swap: one message
👛 Whale one · Ethereum
Swapped 0.5 ETH → 1250 DEMO
Network fee 0.00042 ETH
Transaction · Wallet · Scan
via TTF
  • A swap is a transaction the wallet itself sent that both paid and received. A transfer someone else made is shown as a transfer.
  • When a sell pays out the chain's own coin, that amount is read from the transaction and shown with "≈".
  • A plain transfer is one message per transfer:
A transfer
👛 Whale one · Ethereum
Received 1.25 DEMO (≈ $2.5K)
Transaction · Wallet · Scan
via TTF
  • A failed transaction moved nothing, so it sends no message.
  • An amount whose token decimals are unknown is left out rather than printed wrong.
  • A custom message design that does not use the swap values (is_swap, swap_sent, swap_received) keeps one message per transfer (Design the message).
  • Webhooks are not merged: your server gets one delivery per transfer, with the transaction id to group them (Wallet rules).

What cannot be watched

Exchange, router and burn addresses are refused: they move on every block. A wallet alert on a chain where wallet alerts are not live yet is saved, and the dashboard says it starts when the chain is switched on.

Price alerts

Get a message when a token crosses your price, or when it pumps or dumps by your percent. Price alerts work on every plan, Free included.

Two kinds

KindFires whenExample
Crosses a priceThe price goes up through your price (above) or down through it (below). Once per crossing; it is ready again after the price moved 0.5 % back."Tell me when PEPE goes above $0.00002."
Moves by a percentThe price changed by your percent within a time window: 15 minutes, 1 hour, 4 hours or 24 hours. A negative percent watches for a drop. After it fires it stays quiet for one window."Tell me when it drops 10 % within 1 hour."

Set it up

  1. Make the alert

    Dashboard, tab Alerts, Price alerts, Set up.

  2. Pick the token

    The chain and the token's contract address (on Solana the mint address).

  3. Pick crosses or moves

    Type the price or the percent and window. You can switch an existing alert between the two kinds later with Edit.

  4. Pick where it goes

    Then send a test.

Telegram, price move alert
📈 Price move
DEMO · Ethereum
+4.5% in 1h: $1.95 → $2.04
Open
via TTF

Good to know

  • Prices are checked every few minutes, so a spike shorter than that can be missed.
  • A new "crosses" alert first notes which side of your price the token is on and fires on the next crossing. Already past your price when you make it? Tick Also alert right away if the price is already past the level to be told at once.
  • A "moves" alert needs half a window of price history first: a new 24 hour alert can fire after about 12 hours.

Design the message

Every Telegram and Discord destination has its own look for each kind of alert: a ready-made look, or your own text with the values you pick.

Open the designer

Dashboard, tab Destinations, on a Telegram or Discord destination press Edit message (right after you connect one: Design the message). Each kind of alert has its own tab: price cross, price move, trending entry, wallet activity, signal and the test message.

Ready-made looks

Standard (the default, with links), Compact (one line) and Minimal (one line, no emoji). The preview on the right shows the message with an example event (Normal price, Very small price, Rising, Falling, With filters, Received, Sent ...), as Telegram or as Discord. The standard looks:

Price cross, standard
🔔 Price alert
DEMO · Ethereum
Crossed above $2.00: now $2.04
Open · Scan
via TTF
Price cross, compact
🔔 DEMO crossed above $2.00 → $2.04 · eth
via TTF
Price cross, minimal
DEMO crossed above $2.00, now $2.04 (eth)
via TTF
Price move, falling
📉 Price move
DEMO · Ethereum
-4.5% in 1h: $2.14 → $2.04
Open
via TTF
Wallet activity, sent
👛 0x0000…beef · Ethereum
Sent 1.25 DEMO (≈ $2.5K)
Transaction · Wallet · Scan
via TTF
Signal
🟢 NEW Daily ATH · STRONG

📌 Demo Token (DEMO)
🔸 Ethereum · age 9d · uniswap

🚀 Broke ATH by +2.5% (prev ATH $18.86M · 2d ago)
💰 MC $19.33M · Liq $1.24M · Price $0.01933
📈 24h +31.4% · Vol $3.87M · B 4,210 / S 2,960 (1.42)

0x000000000000000000000000000000000000dead

Plan: if it holds 24h → enter · sell 50% at 2x · sell 50% every 3x after
Token page · Scan
DYOR / NFA
via TTF
Test message
✅ TTF test message. Hello from TTF
via TTF

Your own text

Press Customise and edit the text. The buttons above the box help: Insert value (a list of every value with an example), Insert logic, Bold, Italic, Code and Link to TTF. Then Save, or Save and send a test. History brings back one of your last 20 saved versions, Reset goes back to the standard look, and Copy to other kinds uses the same text for other alert kinds.

A small example for a price alert:

🔔 <b>{token_symbol}</b> {if is_up}up{else}down{/if} to {price|price}
{if rule_name}Alert: {rule_name}{/if}
<a href="{link_token}">Open on TTF</a>

The rules of the text

  • {name} prints a value. {name|format} prints it in another format (table below).
  • {if name}...{/if} prints the middle only when the value exists or is true; add {else}... for the other case. Every optional value of the standard looks sits inside an {if}, so a missing value never leaves an empty line.
  • Formatting: <b> bold, <i> italic, <u> underline, <s> strike, <code> and <pre>. Discord gets the same text in its own formatting.
  • Links: <a href="{link_token}">text</a>. A link may only go to TTF and the block explorers TTF supports, so use the ready-made link values.
  • No mentions: @everyone, @here, @name and Discord's <@...> are refused, so an alert can never ping a whole group.
  • Length: the text up to 1,500 characters and 60 values. The longest message it can make must fit Telegram (3,900 characters) and Discord (1,900; 3,900 as a card): the designer warns you before you save.
  • TTF adds a small via TTF line at the end of every message.
  • Names of tokens and wallet labels are written by other people: TTF cleans them (no links, no pings, no hidden characters) before they are printed.

If a saved design cannot be built for one event (for example a value is far too long), that message goes out in the standard look instead, so you never miss an alert.

Every value

"As shown" values are already formatted by TTF and take no format. The examples come from the designer's example events.

ValueWhatAlertsTypeExample
{rule_name}Alert nameevery alerttext, cleanedDemo alert
{kind_label}Alert typeevery alert and the testas shownPrice cross
{chain}Chain keyevery alerttexteth
{chain_name}Chainevery alertas shownEthereum
{time}Timeevery alert and the testas shown2026-11-18 11:06 UTC
{time_hm}Time (short)every alert and the testas shown11:06 UTC
{token}Token addressevery alerttext0x000000000000000000000000000000000000dead
{token_short}Token (short)every alertas shown0x0000…dead
{token_symbol}Token symbolprice cross, price movetext, cleanedDEMO
{symbol}Symboltrending, wallet, signaltext, cleanedDEMO
{name}Token nametrending, signaltext, cleanedDemo Token
{price}Priceprice cross, price move, signalnumber$2.04
{threshold}Thresholdprice crossnumber$2.00
{side}Directionprice crosstextabove
{change_pct}Change %price cross, price movenumber2
{window}Windowprice movetext1h
{threshold_pct}Target %price movenumber4
{base_price}Base priceprice movenumber$1.95
{base_time}Base timeprice moveas shown2026-11-18 10:06 UTC
{rank}Ranktrendingnumber3
{scans}Scanstrendingnumber12
{min_scans}Min scanstrendingnumber5
{first_seen}First seentrendingas shown2026-11-18 11:04 UTC
{liquidity}Liquiditytrending, signalnumber$62K
{market_cap}Market captrending, signalnumber$480K
{change_1h}Change 1 h %trendingnumber38.5
{buy_tax}Buy tax %trendingnumber0
{sell_tax}Sell tax %trendingnumber5
{locked_pct}Locked or burned %trendingnumber100
{holders}Holderstrendingnumber900
{top10_pct}Top 10 share %trendingnumber22.5
{market_line}Market linetrending, signalas shownLiquidity $62K · MC $480K · 1 h +38.5%
{checks_line}Checks linetrendingas shownTax 0% / 5% · locked 100% · 900 holders
{unknown_values}Unknown valuestrendingas shownsource code
{filters_note}Filters notetrendingas shownPassed your filters.
{wallet}Walletwallettext0x000000000000000000000000000000000000beef
{wallet_short}Wallet (short)walletas shown0x0000…beef
{wallet_label}Wallet labelwallettext, cleaned-
{amount}Amountwalletas shown1.25
{swap_sent}Swap: paidwalletas shown-
{swap_received}Swap: receivedwalletas shown-
{network_fee}Network feewalletas shown-
{value_usd}Valuewalletnumber$2.5K
{direction}Directionwallettextin
{from}Senderwalletas shown0x0000…cafe
{to}Receiverwalletas shown0x0000…beef
{tx}Transactionwallettext0xabababababababababababababababababababababababababababababababab
{signal_kind}Signalsignaltextbreakout
{signal_text}Signal textsignaltext, cleanedDemo signal: this is a sample
{score}Scoresignalnumber87
{multiple}Multiplesignalnumber1x
{plan_text}Plansignaltext, cleanedif it holds 24h → enter · sell 50% at 2x · sell 50% every 3x after
{plan_short}Plan (short)signaltext, cleanedif it holds 24h → enter · sell 50% at 2x · sell 50% every 3x after
{called_at}Called atsignalas shown2026-11-18 11:06 UTC
{tier_name}Signal tiersignalas shownDaily ATH
{grade}Signal gradesignalas shownSTRONG
{dex}DEXsignaltext, cleaneduniswap
{age}Token agesignalas shown9d
{breakout_pct}Above the old ATH %signalnumber2.5
{prev_ath}Previous ATH (market cap)signalnumber$18.86M
{prev_ath_age}Previous ATH agesignalas shown2d
{volume_24h}Volume 24 hsignalnumber$3.87M
{change_24h}Change 24 h %signalnumber31.4
{buys_24h}Buys 24 hsignalnumber4,210
{sells_24h}Sells 24 hsignalnumber2,960
{buy_sell_ratio}Buys / sellssignalnumber1.42
{entry_mc}Market cap at the callsignalnumber-
{called_ago}Called (ago)signalas shown0m
{move_line}Move linesignalas shownBroke ATH by +2.5% (prev ATH $18.86M · 2d ago)
{activity_line}Activity linesignalas shown24h +31.4% · Vol $3.87M · B 4,210 / S 2,960 (1.42)
{ping_text}Test texttesttext, cleanedHello from TTF
{endpoint_name}Destination nameevery alert and the testtext, cleanedDemo destination
{delivery_short}Delivery idevery alert and the testas shownDEMO000P
{link_token}Token pageevery alerta link, for href-
{link_scan}Scan in TTF Botevery alerta link, for href-
{link_tx}Transactionwalleta link, for href-
{link_wallet}Wallet pagewalleta link, for href-
{is_up}Price went upprice cross, price moveyes / no, for {if}-
{is_down}Price went downprice cross, price moveyes / no, for {if}-
{is_out}Sent from the walletwalletyes / no, for {if}-
{is_in}Received by the walletwalletyes / no, for {if}-
{has_label}Wallet has a labelwalletyes / no, for {if}-
{is_swap}The transaction is a swapwalletyes / no, for {if}-
{has_unknown}Some values unknowntrendingyes / no, for {if}-
{is_breakout}The signal is an ATH breakoutsignalyes / no, for {if}-
{is_call}The signal is a call milestonesignalyes / no, for {if}-
{has_trades}Buys or sells are knownsignalyes / no, for {if}-

Formats

FormatWhat it doesWorks onExample
|usdDollars, shortnumbers2550000 → $2.55M
|priceA price, with small prices written outnumbers1.23e-05 → $0.00001230
|numA number, shortnumbers2550000 → 2.55M
|intA whole number with separatorsnumbers2550000 → 2,550,000
|pctPercent, 2 decimalsnumbers4.5 → 4.50%
|pct1Percent, 1 decimalnumbers4.5 → 4.5%
|pct0Percent, no decimalsnumbers4.5 → 5%
|signedPercent with + or -numbers4.5 → +4.5%
|xA multiplenumbers3 → 3x
|rawThe value as it isnumbers, yes / no values4.5 → 4.5
|upperText in capitalstextDemo → DEMO
|lowerText in small letterstextDemo → demo
|shortA long address, shortenedtext0x000000000000000000000000000000000000dead → 0x00…dead
|yesnoA true / false value as Yes or Noyes / no valuesTrue → Yes
|tickA true / false value as a signyes / no valuesFalse → ✅

Buttons and other options

On the destination's card, Settings: Send quietly (no notification sound), the Scan button (opens the token in the TTF bot) and the Token page button; for Discord also Use an embed (card look) and its colour. Buttons only link to TTF.

Delivery log: did my alert arrive?

Every message to a destination is written in its delivery log for 30 days: when, which alert, and what happened. Here is what each word means and what to do.

Where to look

  • Telegram and Discord: tab Destinations, open Delivery log on the destination's card.
  • Your server (webhook): the same tab, the endpoint's log shows the status, the HTTP answer of your server and how long it took.
  • From code: Delivery log of the API.

Status of a delivery

StatusWhat it means
pendingSending now.
deliveredIt arrived. For your server: it answered with a 2xx status.
retryingNot delivered yet. TTF tries again by itself (your server: after 1 min, 5 min, 30 min, 2 h and 12 h).
deadGiven up. The reason next to it says why: for example your server kept failing, the chat no longer accepts the bot, the alert was too old, or a plan limit.
delayed_expiredCould not be tried in time because our sending side was busy. Not your fault and not counted.
lostLost on our side. Not counted against your destination.

Telegram and Discord: the reasons

A chat delivery that did not go out normally says why, in these words:

ReasonWhat it means
okSent.
tg_blockedThe bot is blocked in that chat. Unblock it in Telegram, then press Re-check.
tg_kickedThe bot was removed from the chat. Add it back, then press Re-check.
tg_chat_goneTelegram cannot find that chat any more. Check that it still exists, then press Re-check.
dc_50013Discord says the bot may not post there: fix the channel permissions and press Re-check.
dc_50001Discord says the bot cannot see that channel: fix its permissions and press Re-check.
dc_10003Discord cannot find that channel any more. Check it, then press Re-check.
dc_50007Discord did not let the bot message you: allow DMs from server members, then press Re-check.
staleThe message waited more than 15 minutes and was dropped, because old alerts are not useful.
access_lostTTF could not confirm that this chat is still yours. Press Re-check.
rate_cappedThis destination got more than 600 alerts in an hour, so this one was not sent.
render_failedThe message could not be built from your design. Check it in Edit message.
render_rejectedThe chat app did not accept the message design. Check it in Edit message.
too_longThe message was too long for the chat app. Shorten it in Edit message.
provider_unavailableThe chat app was not answering. TTF tried again while the alert was still useful.
tg_forbiddenTelegram says the bot cannot post: fix its permissions and press Re-check.
dc_missing_accessDiscord says the bot cannot see that channel: fix its permissions and press Re-check.
dc_missing_permsDiscord says the bot may not post there: fix the channel permissions and press Re-check.
dc_cannot_dmDiscord did not let the bot message you: share a server with it and allow DMs, then press Re-check.
verify_unavailableTTF could not check the chat just then (it never sends without checking).
chat_offChat delivery was switched off for the moment.
pacedHeld for a moment to stay within the chat app's speed limit.
timeoutThe chat app took too long to answer.
tg_floodwaitTelegram asked TTF to slow down. The message goes out shortly.
tx_waitWaiting a moment for the transaction details.
tx_mergeWaiting for the message about the same swap.
tx_failedThe transaction failed on-chain, so nothing moved and no message was sent.
mergedThis transfer was part of a swap that got one message.
tg_<status>Telegram refused the message with that status. Check the chat, then press Re-check.
dc_<status>Discord refused the message with that status. Check the channel, then press Re-check.

Status of a destination

The dashboard saysWhat it means
WorkingMessages arrive.
Having troubleThe latest messages did not arrive. TTF keeps trying: look at the delivery log.
PausedYou paused it. Nothing is sent or saved up until you press Resume.
Turned off after failuresMessages kept failing for over an hour. Fix the cause, send a test, then Resume.
Over your plan limitYou have more destinations than your plan allows: delete one or upgrade.
Needs attentionTelegram or Discord: TTF could no longer confirm the chat is yours or that the bot may post. The card says why and offers the fix (Re-check, Add the bot back or Connect again).

A test that does not arrive

  1. Wait a minute: a test is queued like a real alert.
  2. Open the delivery log: the reason is there.
  3. Telegram or Discord: press Re-check on the card; it says what is wrong with the chat.
  4. Your server: it must answer with a 2xx status within 10 seconds, on a public https address (Retries and limits).

Quickstart: your first call in 60 seconds

No coding needed to try it. Three steps, all in your browser.

Only want alerts in Telegram or Discord? You need no key and no code for that: see Alerts.

  1. Sign in (free)

    Open the developer dashboard and sign in with Telegram or your email. The Free plan costs nothing and needs no card. New accounts get a 14-day trial with more credits.

  2. Get a key

    On this page, press Use my account in the Try it panel: we make a key just for this page (it ends after 24 hours). Or make a permanent key in the dashboard: tab Overview, panel API keys, type a name and press Create key. Then paste it.

    A key is like a password: keep it out of public code, screenshots and group chats.

  3. Press Send

    Open Price & market (every plan includes it, 1 credit). The form is already filled with a real token. Press Send and the answer appears right under it, with the credits it cost.

Now use it from your own code

Every page shows the same call ready to copy in cURL, Windows, PowerShell, Python, JavaScript, Node.js and Go. It always follows what you typed in the form. The simplest one, for a terminal:

curl -sS 'https://api.ttf.bot/v1/token/eth/0x6982508145454ce325ddbe47a25d4ec3d2311933/core' \
  -H 'Authorization: Bearer YOUR_KEY'

Swap YOUR_KEY for your key. On Windows, use the Windows CMD or PowerShell tab: they quote the command the way Windows wants (single quotes do not work in CMD).

What to read next

Authentication: your API key

Every data call carries your API key in a header. That is all.

Send the key in the Authorization header:

Authorization: Bearer ttfk_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

If your tool cannot set Authorization, use X-API-Key: YOUR_KEY instead. Never put the key in the address (URL): addresses end up in logs and browser history.

Where do I get a key?

In the dashboard, tab Overview, panel API keys: type a name (for example my bot) and press Create key. The full key is shown once: copy it then. Lost it? Revoke it and make a new one, it takes a second. Your plan decides how many keys you can have.

Keep it safe

  • Put it in an environment variable or a secret store, not in your code.
  • Never in a web page or a Telegram mini app that users can open: anyone could read it there. Call the API from your server or your bot.
  • Give each app its own key, so you can revoke one without stopping the others.
  • Optional, under Options when you make the key: an end date (Expires), its own Monthly credit cap, and Allowed IPs (only your server's addresses may use it).
  • A key can only read data, unless you gave it webhook access when you made it.

No key needed

Chains & prices and Service health are open and free.

Response format

Every answer has the same shape, so you write the parsing once.

A good answer is {"data": ..., "meta": ...}. data is what you asked for; meta says what it cost:

{
  "data": { "...": "..." },
  "meta": { "cost": 1, "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6" }
}

An error is {"error": {"code", "message", "doc_url", "request_id"}}. The code never changes, so your code can check it; see Errors.

Numbers and money

  • Big dollar amounts (market cap, liquidity, volume) are whole numbers: "market_cap_usd": 3870000000.
  • Prices and token amounts are text, so no digit is lost: "usd": "0.0000092". Convert with a decimal type if you do maths.
  • Percentages are numbers and the key ends in _pct.
  • Raw on-chain amounts (value) are integers as text; divide by 10 to the power decimals.

Times

  • A single time is ISO 8601 in UTC, key ending in _at: "2026-11-28T10:00:00Z".
  • Times inside lists and events are unix milliseconds, key ending in _ms (or ts).

Missing values

A value we do not know is simply left out, never null. Lists that are the answer are always there, also when empty. So check "is the key there?" before you use it.

Pages

Lists that have more pages return next_cursor. Send it back as cursor for the next page. No next_cursor = last page.

Saving bandwidth

  • Ask for compression with Accept-Encoding: gzip (most tools do this by themselves).
  • Each data answer has an ETag. Send it back as If-None-Match: when nothing changed you get an empty 304. It is billed like a normal answer, it only saves bytes.
  • Ask only the fields you need (fields=price,security).

Credits and limits

Each call costs a few credits. Your plan gives you credits per month, per day and per minute.

What a call costs

Light data costs 1 credit, heavy data (security check, holders, bubble map) costs more. When the same data was asked moments ago by anyone, it comes from the cache and costs less. Every answer tells you the exact price in meta.cost and the X-Credits-Cost header.

GroupWhatCreditsFrom cacheFrom planChains
corePrice & market (core)11Freeall
securitySecurity check41Starter33 chains
holdersTop holders41Startereth, sol, base, bsc
candlesPrice candles11Freeall
bubblesBubble map41Starter8 chains
deployerDeployer31Starter39 chains
resolveChain and main pair11Freeall
trendingTrending tokens21Starterall
walletWallet activity31Starterall
signalsSignals11Starterall
resolveFind a token11Freeall
chains, healthLists and status00no key-

Refused calls cost nothing: a bad request, a missing key, a limit hit, a busy API. When a data source fails, the paid groups keep a 1 credit attempt fee (we did ask the source).

Plans

FreeStarterProScale
Price per month$0$49$200$600
Alert kindspriceallallall
Destinations (Telegram, Discord, webhook)131025
Alerts320100500
Alert messages per month1,00025,000250,0002,000,000
Watched wallets105002,50010,000
Credits per month50025,000100,000250,000
Credits per day5005,0008,00025,000
Credits per minute603003001,000
Requests per second131025
API keys23510
Data groupscore, candles, resolveallallall

Your own numbers (they can differ from this table, for example during a trial) are in the dashboard, together with what you used today and this month.

Hitting a limit

Over a limit you get 429 rate_limited with a Retry-After header in seconds. Wait that long and try again. Every answer to a valid key also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (credits per minute), so your code can slow down before it hits the wall.

Full token report

GET/v1/token/{chain}/{address}
Cost Sum of the groups you askPlan depends on the groupChains 40 chainsKey required

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.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • New here? Start with fields=core: price and market data, 1 credit, on every plan. Add security (the honeypot and tax check) with the trial or a paid plan.
  • On eth, bsc, base and sol a security answer is only a full rating together with its holder data: ask security,holders.
  • If one part fails (a data source is slow), you still get the rest. The failed part is listed in meta.partial.
Exact rules

The 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

Query parameters

string

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.

More

Groups (credits for a live answer, for a cached one) and their fields:
- core (1 credit live, 1 cached): price, market, liquidity, socials, token
- security (4 credits live, 1 cached): verdict, score, flags, checks, tax, lp_lock, contract
- holders (4 credits live, 1 cached)
- candles (1 credit live, 1 cached)
- bubbles (4 credits live, 1 cached)
- deployer (3 credits live, 1 cached)
- resolve (1 credit live, 1 cached)

Which 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.

On 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).

enumdefault 15m

Candle interval (only with the candles group). Default 15m.

integerdefault 20 · 1 to 30

Holders rows (only with the holders group), 1-30. Default 20.

What you get back

A 200 answer is {"data", "meta"} (TokenAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • bubblesobject (or a group error)

    The bubbles group (4 credits live, 1 cached).

    26 fields inside
    • clustersarray of objectsalways

      The groups, biggest first.

      11 fields inside
      • holdersarray of objectsalways

        The wallets of the group.

        6 fields inside
        • addressstringalways

          Wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

        • pctnumberalways

          Share of the supply it holds. Percent (5.2 = 5.2 %).

        • balancestring

          Tokens it holds (human units). Decimal string (never a float, no exponent).

        • labelstring

          A public name of the wallet (an exchange, a contract) when known. Third-party text: escape it.

        • marksarray of strings

          Behaviour marks of the wallet. Known values: sniper, bundler, insider, dev (more may come: handle unknown ones).

        • tagsarray of strings

          Tags of this wallet or group (what tag_text explains). Known values: cex, dex, contract, burn, team, sniper, bundler, insider, dev (more may come: handle unknown ones).

      • idintegeralways

        Group number in this answer.

      • sizeintegeralways

        Wallets in the group.

      • pctnumber

        Share of the supply the group holds. Percent (5.2 = 5.2 %).

      • tagsarray of strings

        Tags of this wallet or group (what tag_text explains). Known values: cex, dex, contract, burn, team, sniper, bundler, insider, dev (more may come: handle unknown ones).

    • modestringalways

      clusters = linked groups were found; holders = no links known, the top holders are shown as one group (never "linked"). One of: clusters, holders.

    • statsobject

      Totals over the map (a value the source does not give is absent).

      10 fields inside
      • bundlers_pctnumber

        Share held by bundler wallets. Percent (5.2 = 5.2 %).

      • dev_pctnumber

        Share held by the developer. Percent (5.2 = 5.2 %).

      • half_supply_walletsinteger

        How few wallets hold half the supply.

      • in_view_pctnumber

        Share of the supply the wallets on the map hold. Percent (5.2 = 5.2 %).

      • insiders_pctnumber

        Share held by insider wallets. Percent (5.2 = 5.2 %).

      • largest_pctnumber

        Share of the biggest single wallet. Percent (5.2 = 5.2 %).

      • linked_groupsinteger

        Linked groups found.

      • snipers_pctnumber

        Share held by sniper wallets. Percent (5.2 = 5.2 %).

      • top10_pctnumber

        Share of the 10 biggest wallets. Percent (5.2 = 5.2 %).

      • walletsinteger

        Wallets on the map.

    • tag_textmap of strings

      What each tag means, keyed by tag.

    • total_cluster_pctnumber

      Share of the supply held by all linked groups together. Percent (5.2 = 5.2 %).

  • candlesobject (or a group error)

    The candles group (1 credits live, 1 cached).

    columns
    • candlesarray of rowsalways

      The candles, oldest first.

      columns
      • #ColumnTypeMeaning
        0time_msintegerCandle open time. Unix time in milliseconds.
        1open_usdstringOpen price in US dollars. Decimal string (never a float, no exponent).
        2high_usdstringHigh price in US dollars. Decimal string (never a float, no exponent).
        3low_usdstringLow price in US dollars. Decimal string (never a float, no exponent).
        4close_usdstringClose price in US dollars. Decimal string (never a float, no exponent).
        5volume_usdintegerVolume of the candle. Whole US dollars (integer).
    • columnsarray of stringsalways

      The meaning of each cell of a candle row: time_ms, open_usd, high_usd, low_usd, close_usd, volume_usd. Always ["time_ms", "open_usd", "high_usd", "low_usd", "close_usd", "volume_usd"].

    • intervalstringalways

      The candle interval. One of: 1m, 5m, 15m, 1h, 4h, 1d.

    • change_pctnumber

      Price change from the first candle's open to the last close. Percent (5.2 = 5.2 %).

    • pairstring

      The pool the candles are from.

  • coreobject (or a group error)

    The core group (1 credits live, 1 cached).

    24 fields inside
    • tokenobjectalways

      Which token this is (always kept, whatever fields asks).

      4 fields inside
      • addressstringalways

        Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • chainstringalways

        Chain id (GET /v1/chains).

      • namestring

        Token name, as the market lists it.

      • symbolstring

        Ticker, as the market lists it.

    • liquidityobject

      The main pool.

      4 fields inside
      • dexstring

        DEX of the main pool ("uniswap", "raydium", ...).

      • pairstring

        Pair (pool) address of the main pool.

      • pair_created_atstring (date-time)

        When the main pool was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").

      • usdinteger

        Liquidity of the main pool. Whole US dollars (integer).

    • marketobject

      Market size.

      5 fields inside
      • market_cap_usdinteger

        Market cap (or fully diluted value when the market reports only that). Whole US dollars (integer).

      • txns_24hobject

        Trades over the last 24 hours.

        2 fields inside
        • buysintegeralways

          Buy trades.

        • sellsintegeralways

          Sell trades.

      • volume_24h_usdinteger

        Traded volume over the last 24 hours. Whole US dollars (integer).

    • priceobject

      The price.

      6 fields inside
      • change_pctobject

        Price change per window (percent). A window the market does not report is absent.

        4 fields inside
        • h1number

          Price change over the last hour. Percent (5.2 = 5.2 %).

        • h24number

          Price change over the last 24 hours. Percent (5.2 = 5.2 %).

        • h6number

          Price change over the last 6 hours. Percent (5.2 = 5.2 %).

        • m5number

          Price change over the last 5 minutes. Percent (5.2 = 5.2 %).

      • usdstring

        Price of one token in US dollars. Decimal string (never a float, no exponent).

    • socialsmap of strings

      The project's links, keyed by site ("website", "twitter", "telegram", ...). Only https URLs.

  • deployerobject (or a group error)

    The deployer group (3 credits live, 1 cached).

    3 fields inside
    • addressstringalways

      Deployer wallet (0x + 40 hex).

    • created_atstring (date-time)

      When the contract was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").

    • txstring

      The creation transaction hash.

  • holdersobject (or a group error)

    The holders group (4 credits live, 1 cached).

    7 fields inside
    • holdersarray of objectsalways

      The top holders (limit rows, default 20).

      4 fields inside
      • addressstringalways

        Holder wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • amountstring

        Tokens it holds (human units: decimals applied). Decimal string (never a float, no exponent).

      • freshboolean

        true = a fresh wallet (new, little history): a common sign of insiders or bundles.

      • pctnumber

        Share of the supply it holds. Percent (5.2 = 5.2 %).

    • top10_pctnumberalways

      Share of the supply the 10 biggest holders own. Percent (5.2 = 5.2 %).

    • holder_countinteger

      Number of holders (when the source reports it).

  • resolveobject (or a group error)

    The resolve group (1 credits live, 1 cached).

    9 fields inside
    • addressstringalways

      Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

    • chainstringalways

      Chain id.

    • listedbooleanalways

      true = a market lists the token; false = no market lists it (then there is no pair).

    • dexstring

      DEX of the main pair.

    • liquidity_usdinteger

      Symbol / name search only (always there): liquidity over the token's pairs. Whole US dollars (integer).

    • namestring

      Token name.

    • pairstring

      Main pair (pool) address. A listed token can lack it (unknown).

    • symbolstring

      Ticker.

    • volume_24h_usdinteger

      Symbol / name search only (always there): 24 h volume over the token's pairs. Whole US dollars (integer).

  • securityobject (or a group error)

    The security group (4 credits live, 1 cached).

    37 fields inside
    • completebooleanalways

      true = every part of the scan answered. false = see missing; the answer is then not a rating.

    • missingarray of stringsalways

      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"). Known values: holders, tax, liquidity, contract, market (more may come: handle unknown ones).

    • checksarray of objectsalways*

      Every check the scan ran, with its outcome.

      4 fields inside
      • idstringalways

        Stable id of the check. Known values: honeypot, tax, lp_lock, mint, freeze, owner, source, contract, holders, liquidity (more may come: handle unknown ones).

      • labelstringalways

        The check in words.

      • statestringalways

        ok, warn, bad, or na (not answered). One of: ok, warn, bad, na.

      • valuestring

        What it found, in words ("0% / 0%", "top 10: 31%").

    • flagsarray of objectsalways*

      Findings, worst first. Empty = nothing found.

      4 fields inside
      • idstringalways

        Stable id of the finding. 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 (more may come: handle unknown ones).

      • severitystringalways

        critical (a red flag), warn (risky), info (good to know). One of: critical, warn, info.

      • titlestringalways

        The finding in a few words.

      • detailstring

        One more sentence about it.

    • verdictobjectalways*

      The one-line answer.

      5 fields inside
      • knownbooleanalways

        true = enough checks answered to rate the token; false = not a rating, check it yourself.

      • labelstringalways

        The verdict in words ("No honeypot, no red flags", "Honeypot", "2 warnings", ...).

      • levelstringalways

        ok = nothing bad found, warn = look closer, danger = red flag (honeypot, critical finding). One of: ok, warn, danger.

      • reasonsarray of stringsalways

        Short reasons behind the verdict (at most a few), most important first.

      • sellableboolean

        true = the sell simulation passed, false = it failed (honeypot). Absent = not simulated.

    • contractobject

      Contract facts (true / false; unknown = absent).

      5 fields inside
      • freeze_authorityboolean

        Solana: true = the freeze authority is still set (wallets can be frozen).

      • mint_authorityboolean

        Solana: true = the mint authority is still set (more tokens can be created).

      • owner_renouncedboolean

        true = nobody owns the contract any more.

      • proxyboolean

        true = the contract is a proxy (its code can be swapped).

      • verified_sourceboolean

        true = the source code is verified on the explorer.

    • lp_lockobject

      Is the liquidity locked or burned?

      5 fields inside
      • burned_pctnumber

        Share of the liquidity that is burned. Percent (5.2 = 5.2 %).

      • lockedboolean

        true = (part of) the liquidity is locked or burned.

      • locked_pctnumber

        Share of the liquidity that is locked. Percent (5.2 = 5.2 %).

      • lockerstring

        Who holds the lock (a locker service or contract).

      • unlock_in_daysnumber

        Days until the lock ends.

    • scoreinteger

      Safety score 0-100 (higher is safer). Absent when the answer is not a rating (verdict.known false or something missing).

    • taxobject

      Trading taxes from the buy / sell simulation.

      5 fields inside
      • buy_pctnumber

        Buy tax. Percent (5.2 = 5.2 %).

      • honeypotboolean

        true = buying works but selling fails.

      • max_tx_amountstring

        Largest amount one transaction may move, in tokens (absent = no limit found). Decimal string (never a float, no exponent).

      • sell_pctnumber

        Sell tax. Percent (5.2 = 5.2 %).

      • transfer_pctnumber

        Tax on a plain transfer between wallets. Percent (5.2 = 5.2 %).

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

27 examples

Token data by field groups

{
  "data": {
    "bubbles": {
      "clusters": [
        {
          "holders": [
            {
              "address": "0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3",
              "balance": "27394538220371.5",
              "pct": 6.513,
              "tags": [
                "cex"
              ]
            }
          ],
          "id": 1,
          "pct": 8.2,
          "size": 3,
          "tags": [
            "cex"
          ]
        }
      ],
      "mode": "clusters",
      "stats": {
        "in_view_pct": 41.07,
        "largest_pct": 6.51,
        "linked_groups": 4,
        "top10_pct": 31.42,
        "wallets": 30
      },
      "tag_text": {
        "cex": "Exchange"
      },
      "total_cluster_pct": 12.4
    },
    "candles": {
      "candles": [
        [
          1794996000000,
          "0.00000898",
          "0.00000921",
          "0.00000894",
          "0.0000092",
          1842212
        ],
        [
          1794999600000,
          "0.0000092",
          "0.00000925",
          "0.00000911",
          "0.00000919",
          1311090
        ]
      ],
      "change_pct": 2.31,
      "columns": [
        "time_ms",
        "open_usd",
        "high_usd",
        "low_usd",
        "close_usd",
        "volume_usd"
      ],
      "interval": "1h",
      "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f"
    },
    "core": {
      "liquidity": {
        "dex": "uniswap",
        "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
        "pair_created_at": "2023-04-14T19:10:23Z",
        "usd": 41200000
      },
      "market": {
        "market_cap_usd": 3870000000,
        "txns_24h": {
          "buys": 4120,
          "sells": 3980
        },
        "volume_24h_usd": 512000000
      },
      "price": {
        "change_pct": {
          "h1": -0.4,
          "h24": 3.5,
          "h6": 1.2,
          "m5": 0.1
        },
        "usd": "0.0000092"
      },
      "socials": {
        "twitter": "https://x.com/pepecoineth",
        "website": "https://www.pepe.vip"
      },
      "token": {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "chain": "eth",
        "name": "Pepe",
        "symbol": "PEPE"
      }
    },
    "deployer": {
      "address": "0xd1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1",
      "created_at": "2023-04-14T19:05:11Z",
      "tx": "0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d"
    },
    "holders": {
      "holder_count": 482113,
      "holders": [
        {
          "address": "0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3",
          "amount": "27394538220371.5",
          "pct": 6.513
        },
        {
          "address": "0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
          "amount": "13125994823417",
          "fresh": false,
          "pct": 3.121
        }
      ],
      "top10_pct": 31.42
    },
    "resolve": {
      "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
      "chain": "eth",
      "dex": "uniswap",
      "listed": true,
      "name": "Pepe",
      "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
      "symbol": "PEPE"
    },
    "security": {
      "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%"
        }
      ],
      "complete": true,
      "contract": {
        "owner_renounced": true,
        "proxy": false,
        "verified_source": true
      },
      "flags": [
        {
          "detail": "The owner keeps contract privileges.",
          "id": "owner_active",
          "severity": "info",
          "title": "Owner is not renounced"
        }
      ],
      "lp_lock": {
        "burned_pct": 100,
        "locked": true,
        "locked_pct": 100
      },
      "missing": [],
      "score": 92,
      "tax": {
        "buy_pct": 0,
        "honeypot": false,
        "sell_pct": 0
      },
      "verdict": {
        "known": true,
        "label": "No honeypot, no red flags",
        "level": "ok",
        "reasons": [
          "Sell tax 0%",
          "Owner renounced",
          "Liquidity locked"
        ],
        "sellable": true
      }
    }
  },
  "meta": {
    "cached": [
      "candles"
    ],
    "cost": 18,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

No fields: the core group (price, market, liquidity, socials), 1 credit.

{
  "data": {
    "core": {
      "liquidity": {
        "dex": "uniswap",
        "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
        "pair_created_at": "2023-04-14T19:10:23Z",
        "usd": 41200000
      },
      "market": {
        "market_cap_usd": 3870000000,
        "txns_24h": {
          "buys": 4120,
          "sells": 3980
        },
        "volume_24h_usd": 512000000
      },
      "price": {
        "change_pct": {
          "h1": -0.4,
          "h24": 3.5,
          "h6": 1.2,
          "m5": 0.1
        },
        "usd": "0.0000092"
      },
      "socials": {
        "twitter": "https://x.com/pepecoineth",
        "website": "https://www.pepe.vip"
      },
      "token": {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "chain": "eth",
        "name": "Pepe",
        "symbol": "PEPE"
      }
    }
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

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).

{
  "data": {
    "core": {
      "price": {
        "change_pct": {
          "h1": -0.4,
          "h24": 3.5,
          "h6": 1.2,
          "m5": 0.1
        },
        "usd": "0.0000092"
      },
      "token": {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "chain": "eth",
        "name": "Pepe",
        "symbol": "PEPE"
      }
    },
    "holders": {
      "error": {
        "code": "upstream",
        "doc_url": "https://ttf.bot/docs/errors/#upstream",
        "message": "This data is not available right now. Try again in a moment."
      }
    }
  },
  "meta": {
    "cost": 2,
    "partial": [
      "holders"
    ],
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Security check

GET/v1/token/{chain}/{address}/security
Cost 4 credits · 1 if cachedRequires StarterChains 33 chainsKey required

The honeypot and tax test, liquidity lock, owner powers and red flags of a token, with a score out of 100 and a one-line verdict. This is the same check the TTF bot runs in Telegram.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • verdict.level is ok, warn or danger: use it for a quick green / yellow / red badge.
  • When complete is false, some checks could not run (see missing); never show such an answer as a final rating.
Exact rules

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.

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • completebooleanalways

    true = every part of the scan answered. false = see missing; the answer is then not a rating.

  • missingarray of stringsalways

    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"). Known values: holders, tax, liquidity, contract, market (more may come: handle unknown ones).

  • checksarray of objectsalways*

    Every check the scan ran, with its outcome.

    4 fields inside
    • idstringalways

      Stable id of the check. Known values: honeypot, tax, lp_lock, mint, freeze, owner, source, contract, holders, liquidity (more may come: handle unknown ones).

    • labelstringalways

      The check in words.

    • statestringalways

      ok, warn, bad, or na (not answered). One of: ok, warn, bad, na.

    • valuestring

      What it found, in words ("0% / 0%", "top 10: 31%").

  • flagsarray of objectsalways*

    Findings, worst first. Empty = nothing found.

    4 fields inside
    • idstringalways

      Stable id of the finding. 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 (more may come: handle unknown ones).

    • severitystringalways

      critical (a red flag), warn (risky), info (good to know). One of: critical, warn, info.

    • titlestringalways

      The finding in a few words.

    • detailstring

      One more sentence about it.

  • verdictobjectalways*

    The one-line answer.

    5 fields inside
    • knownbooleanalways

      true = enough checks answered to rate the token; false = not a rating, check it yourself.

    • labelstringalways

      The verdict in words ("No honeypot, no red flags", "Honeypot", "2 warnings", ...).

    • levelstringalways

      ok = nothing bad found, warn = look closer, danger = red flag (honeypot, critical finding). One of: ok, warn, danger.

    • reasonsarray of stringsalways

      Short reasons behind the verdict (at most a few), most important first.

    • sellableboolean

      true = the sell simulation passed, false = it failed (honeypot). Absent = not simulated.

  • contractobject

    Contract facts (true / false; unknown = absent).

    5 fields inside
    • freeze_authorityboolean

      Solana: true = the freeze authority is still set (wallets can be frozen).

    • mint_authorityboolean

      Solana: true = the mint authority is still set (more tokens can be created).

    • owner_renouncedboolean

      true = nobody owns the contract any more.

    • proxyboolean

      true = the contract is a proxy (its code can be swapped).

    • verified_sourceboolean

      true = the source code is verified on the explorer.

  • lp_lockobject

    Is the liquidity locked or burned?

    5 fields inside
    • burned_pctnumber

      Share of the liquidity that is burned. Percent (5.2 = 5.2 %).

    • lockedboolean

      true = (part of) the liquidity is locked or burned.

    • locked_pctnumber

      Share of the liquidity that is locked. Percent (5.2 = 5.2 %).

    • lockerstring

      Who holds the lock (a locker service or contract).

    • unlock_in_daysnumber

      Days until the lock ends.

  • scoreinteger

    Safety score 0-100 (higher is safer). Absent when the answer is not a rating (verdict.known false or something missing).

  • taxobject

    Trading taxes from the buy / sell simulation.

    5 fields inside
    • buy_pctnumber

      Buy tax. Percent (5.2 = 5.2 %).

    • honeypotboolean

      true = buying works but selling fails.

    • max_tx_amountstring

      Largest amount one transaction may move, in tokens (absent = no limit found). Decimal string (never a float, no exponent).

    • sell_pctnumber

      Sell tax. Percent (5.2 = 5.2 %).

    • transfer_pctnumber

      Tax on a plain transfer between wallets. Percent (5.2 = 5.2 %).

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

25 examples

The security group

{
  "data": {
    "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%"
      }
    ],
    "complete": true,
    "contract": {
      "owner_renounced": true,
      "proxy": false,
      "verified_source": true
    },
    "flags": [
      {
        "detail": "The owner keeps contract privileges.",
        "id": "owner_active",
        "severity": "info",
        "title": "Owner is not renounced"
      }
    ],
    "lp_lock": {
      "burned_pct": 100,
      "locked": true,
      "locked_pct": 100
    },
    "missing": [],
    "score": 92,
    "tax": {
      "buy_pct": 0,
      "honeypot": false,
      "sell_pct": 0
    },
    "verdict": {
      "known": true,
      "label": "No honeypot, no red flags",
      "level": "ok",
      "reasons": [
        "Sell tax 0%",
        "Owner renounced",
        "Liquidity locked"
      ],
      "sellable": true
    }
  },
  "meta": {
    "cost": 4,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Price and market data

GET/v1/token/{chain}/{address}/core
Cost 1 creditPlan FreeChains 40 chainsKey required

Price in US dollars, market cap, liquidity, 24 h volume and buys / sells, price change over 5 min to 24 h, and the project's socials. Cheap and fast: 1 credit.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • Want just the price? Ask the field instead of the group: /v1/token/eth/<address>/price. It costs the same, the answer is smaller.
Exact rules

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.

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • tokenobjectalways

    Which token this is (always kept, whatever fields asks).

    4 fields inside
    • addressstringalways

      Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

    • chainstringalways

      Chain id (GET /v1/chains).

    • namestring

      Token name, as the market lists it.

    • symbolstring

      Ticker, as the market lists it.

  • liquidityobject

    The main pool.

    4 fields inside
    • dexstring

      DEX of the main pool ("uniswap", "raydium", ...).

    • pairstring

      Pair (pool) address of the main pool.

    • pair_created_atstring (date-time)

      When the main pool was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").

    • usdinteger

      Liquidity of the main pool. Whole US dollars (integer).

  • marketobject

    Market size.

    5 fields inside
    • market_cap_usdinteger

      Market cap (or fully diluted value when the market reports only that). Whole US dollars (integer).

    • txns_24hobject

      Trades over the last 24 hours.

      2 fields inside
      • buysintegeralways

        Buy trades.

      • sellsintegeralways

        Sell trades.

    • volume_24h_usdinteger

      Traded volume over the last 24 hours. Whole US dollars (integer).

  • priceobject

    The price.

    6 fields inside
    • change_pctobject

      Price change per window (percent). A window the market does not report is absent.

      4 fields inside
      • h1number

        Price change over the last hour. Percent (5.2 = 5.2 %).

      • h24number

        Price change over the last 24 hours. Percent (5.2 = 5.2 %).

      • h6number

        Price change over the last 6 hours. Percent (5.2 = 5.2 %).

      • m5number

        Price change over the last 5 minutes. Percent (5.2 = 5.2 %).

    • usdstring

      Price of one token in US dollars. Decimal string (never a float, no exponent).

  • socialsmap of strings

    The project's links, keyed by site ("website", "twitter", "telegram", ...). Only https URLs.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

26 examples

The core group

{
  "data": {
    "liquidity": {
      "dex": "uniswap",
      "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
      "pair_created_at": "2023-04-14T19:10:23Z",
      "usd": 41200000
    },
    "market": {
      "market_cap_usd": 3870000000,
      "txns_24h": {
        "buys": 4120,
        "sells": 3980
      },
      "volume_24h_usd": 512000000
    },
    "price": {
      "change_pct": {
        "h1": -0.4,
        "h24": 3.5,
        "h6": 1.2,
        "m5": 0.1
      },
      "usd": "0.0000092"
    },
    "socials": {
      "twitter": "https://x.com/pepecoineth",
      "website": "https://www.pepe.vip"
    },
    "token": {
      "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
      "chain": "eth",
      "name": "Pepe",
      "symbol": "PEPE"
    }
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

/price: only the price field (plus the token identity) of the core group.

{
  "data": {
    "price": {
      "change_pct": {
        "h1": -0.4,
        "h24": 3.5,
        "h6": 1.2,
        "m5": 0.1
      },
      "usd": "0.0000092"
    },
    "token": {
      "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
      "chain": "eth",
      "name": "Pepe",
      "symbol": "PEPE"
    }
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Top holders

GET/v1/token/{chain}/{address}/holders
Cost 4 credits · 1 if cachedRequires StarterChains eth, sol, base, bscKey required

The biggest wallets of a token with their share of the supply, the top 10 total and the holder count. fresh marks new wallets that only ever got this token.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • A high top10_pct means a few wallets can move the price a lot.
Exact rules

Who holds the token: the top holders, biggest first.

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

Query parameters

integerdefault 20 · 1 to 30

Holders rows (only with the holders group), 1-30. Default 20.

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • holdersarray of objectsalways

    The top holders (limit rows, default 20).

    4 fields inside
    • addressstringalways

      Holder wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

    • amountstring

      Tokens it holds (human units: decimals applied). Decimal string (never a float, no exponent).

    • freshboolean

      true = a fresh wallet (new, little history): a common sign of insiders or bundles.

    • pctnumber

      Share of the supply it holds. Percent (5.2 = 5.2 %).

  • top10_pctnumberalways

    Share of the supply the 10 biggest holders own. Percent (5.2 = 5.2 %).

  • holder_countinteger

    Number of holders (when the source reports it).

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

25 examples

/holders?limit=2: the top holders.

{
  "data": {
    "holder_count": 482113,
    "holders": [
      {
        "address": "0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3",
        "amount": "27394538220371.5",
        "pct": 6.513
      },
      {
        "address": "0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
        "amount": "13125994823417",
        "fresh": false,
        "pct": 3.121
      }
    ],
    "top10_pct": 31.42
  },
  "meta": {
    "cost": 4,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Price candles (chart)

GET/v1/token/{chain}/{address}/candles
Cost 1 creditPlan FreeChains 40 chainsKey required

Open, high, low, close and volume of the token's main pool, ready for a chart. Pick the candle size with interval.

A refused or failed call costs nothing.

  • Each candle is a short list in the order of columns: time in unix milliseconds, then the four prices as text (so no digits are lost), then the volume in whole dollars.
  • Quiet tokens only have candles for minutes with trades: draw the gaps as flat candles.
Exact rules

Price candles (OHLCV) of the main pool, oldest first. Quiet periods without trades may be missing.

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

Query parameters

enumdefault 15m

Candle interval (only with the candles group). Default 15m.

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • candlesarray of rowsalways

    The candles, oldest first.

    columns
    • #ColumnTypeMeaning
      0time_msintegerCandle open time. Unix time in milliseconds.
      1open_usdstringOpen price in US dollars. Decimal string (never a float, no exponent).
      2high_usdstringHigh price in US dollars. Decimal string (never a float, no exponent).
      3low_usdstringLow price in US dollars. Decimal string (never a float, no exponent).
      4close_usdstringClose price in US dollars. Decimal string (never a float, no exponent).
      5volume_usdintegerVolume of the candle. Whole US dollars (integer).
  • columnsarray of stringsalways

    The meaning of each cell of a candle row: time_ms, open_usd, high_usd, low_usd, close_usd, volume_usd. Always ["time_ms", "open_usd", "high_usd", "low_usd", "close_usd", "volume_usd"].

  • intervalstringalways

    The candle interval. One of: 1m, 5m, 15m, 1h, 4h, 1d.

  • change_pctnumber

    Price change from the first candle's open to the last close. Percent (5.2 = 5.2 %).

  • pairstring

    The pool the candles are from.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

25 examples

The candles group

{
  "data": {
    "candles": [
      [
        1794996000000,
        "0.00000898",
        "0.00000921",
        "0.00000894",
        "0.0000092",
        1842212
      ],
      [
        1794999600000,
        "0.0000092",
        "0.00000925",
        "0.00000911",
        "0.00000919",
        1311090
      ]
    ],
    "change_pct": 2.31,
    "columns": [
      "time_ms",
      "open_usd",
      "high_usd",
      "low_usd",
      "close_usd",
      "volume_usd"
    ],
    "interval": "1h",
    "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f"
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Bubble map (linked wallets)

GET/v1/token/{chain}/{address}/bubbles
Cost 4 credits · 1 if cachedRequires StarterChains 8 chainsKey required

Groups of top holders that are linked to each other (they funded each other or trade together), with the share each group holds. The data behind a bubble map picture.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • mode is clusters when linked groups were found, and holders when the map shows the top holders as one group (big tokens are often not mapped). Never call the second one "linked".
Exact rules

The bubble map: linked holder groups (wallets funded from the same source), or the top holders as one group when no links are known.

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • clustersarray of objectsalways

    The groups, biggest first.

    11 fields inside
    • holdersarray of objectsalways

      The wallets of the group.

      6 fields inside
      • addressstringalways

        Wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • pctnumberalways

        Share of the supply it holds. Percent (5.2 = 5.2 %).

      • balancestring

        Tokens it holds (human units). Decimal string (never a float, no exponent).

      • labelstring

        A public name of the wallet (an exchange, a contract) when known. Third-party text: escape it.

      • marksarray of strings

        Behaviour marks of the wallet. Known values: sniper, bundler, insider, dev (more may come: handle unknown ones).

      • tagsarray of strings

        Tags of this wallet or group (what tag_text explains). Known values: cex, dex, contract, burn, team, sniper, bundler, insider, dev (more may come: handle unknown ones).

    • idintegeralways

      Group number in this answer.

    • sizeintegeralways

      Wallets in the group.

    • pctnumber

      Share of the supply the group holds. Percent (5.2 = 5.2 %).

    • tagsarray of strings

      Tags of this wallet or group (what tag_text explains). Known values: cex, dex, contract, burn, team, sniper, bundler, insider, dev (more may come: handle unknown ones).

  • modestringalways

    clusters = linked groups were found; holders = no links known, the top holders are shown as one group (never "linked"). One of: clusters, holders.

  • statsobject

    Totals over the map (a value the source does not give is absent).

    10 fields inside
    • bundlers_pctnumber

      Share held by bundler wallets. Percent (5.2 = 5.2 %).

    • dev_pctnumber

      Share held by the developer. Percent (5.2 = 5.2 %).

    • half_supply_walletsinteger

      How few wallets hold half the supply.

    • in_view_pctnumber

      Share of the supply the wallets on the map hold. Percent (5.2 = 5.2 %).

    • insiders_pctnumber

      Share held by insider wallets. Percent (5.2 = 5.2 %).

    • largest_pctnumber

      Share of the biggest single wallet. Percent (5.2 = 5.2 %).

    • linked_groupsinteger

      Linked groups found.

    • snipers_pctnumber

      Share held by sniper wallets. Percent (5.2 = 5.2 %).

    • top10_pctnumber

      Share of the 10 biggest wallets. Percent (5.2 = 5.2 %).

    • walletsinteger

      Wallets on the map.

  • tag_textmap of strings

    What each tag means, keyed by tag.

  • total_cluster_pctnumber

    Share of the supply held by all linked groups together. Percent (5.2 = 5.2 %).

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

25 examples

The bubbles group

{
  "data": {
    "clusters": [
      {
        "holders": [
          {
            "address": "0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3",
            "balance": "27394538220371.5",
            "pct": 6.513,
            "tags": [
              "cex"
            ]
          }
        ],
        "id": 1,
        "pct": 8.2,
        "size": 3,
        "tags": [
          "cex"
        ]
      }
    ],
    "mode": "clusters",
    "stats": {
      "in_view_pct": 41.07,
      "largest_pct": 6.51,
      "linked_groups": 4,
      "top10_pct": 31.42,
      "wallets": 30
    },
    "tag_text": {
      "cex": "Exchange"
    },
    "total_cluster_pct": 12.4
  },
  "meta": {
    "cost": 4,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Deployer

GET/v1/token/{chain}/{address}/deployer
Cost 3 credits · 1 if cachedRequires StarterChains 39 chainsKey required

The wallet that created the token contract, the creation transaction and when it happened. EVM chains only.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

Exact rules

Who deployed the contract (EVM chains).

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • addressstringalways

    Deployer wallet (0x + 40 hex).

  • created_atstring (date-time)

    When the contract was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").

  • txstring

    The creation transaction hash.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

25 examples

The deployer group

{
  "data": {
    "address": "0xd1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1",
    "created_at": "2023-04-14T19:05:11Z",
    "tx": "0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d"
  },
  "meta": {
    "cost": 3,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

One field or group

GET/v1/token/{chain}/{address}/{group}
Cost the credits of the group you ask (1 to 4)Plan depends on the groupChains 40 chainsKey required

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.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • Fields you can ask: the groups (core, security, holders, candles, bubbles, deployer, resolve) and single fields such as price, market, liquidity, tax or verdict.
  • A field costs the credits of its group.
Exact rules

One 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).

enumrequired

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.

Groups, one per call: core (1 credit), security (4 credits, from Starter), holders (4 credits, from Starter), candles (1 credit), bubbles (4 credits, from Starter), deployer (3 credits, from Starter), resolve (1 credit).

Query parameters

enumdefault 15m

Candle interval (only with the candles group). Default 15m.

integerdefault 20 · 1 to 30

Holders rows (only with the holders group), 1-30. Default 20.

What you get back

A 200 answer is {"data", "meta"} (TokenGroupAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • 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.

  • 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.

  • Who holds the token: the top holders, biggest first.

  • Price candles (OHLCV) of the main pool, oldest first. Quiet periods without trades may be missing.

  • The bubble map: linked holder groups (wallets funded from the same source), or the top holders as one group when no links are known.

  • Who deployed the contract (EVM chains).

  • Where a token trades.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

27 examples

One group or field of a token

{
  "data": {
    "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%"
      }
    ],
    "complete": true,
    "contract": {
      "owner_renounced": true,
      "proxy": false,
      "verified_source": true
    },
    "flags": [
      {
        "detail": "The owner keeps contract privileges.",
        "id": "owner_active",
        "severity": "info",
        "title": "Owner is not renounced"
      }
    ],
    "lp_lock": {
      "burned_pct": 100,
      "locked": true,
      "locked_pct": 100
    },
    "missing": [],
    "score": 92,
    "tax": {
      "buy_pct": 0,
      "honeypot": false,
      "sell_pct": 0
    },
    "verdict": {
      "known": true,
      "label": "No honeypot, no red flags",
      "level": "ok",
      "reasons": [
        "Sell tax 0%",
        "Owner renounced",
        "Liquidity locked"
      ],
      "sellable": true
    }
  },
  "meta": {
    "cached": [
      "security"
    ],
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

/holders?limit=2: the top holders.

{
  "data": {
    "holder_count": 482113,
    "holders": [
      {
        "address": "0xf3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3",
        "amount": "27394538220371.5",
        "pct": 6.513
      },
      {
        "address": "0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
        "amount": "13125994823417",
        "fresh": false,
        "pct": 3.121
      }
    ],
    "top10_pct": 31.42
  },
  "meta": {
    "cost": 4,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

/price: only the price field (plus the token identity) of the core group.

{
  "data": {
    "price": {
      "change_pct": {
        "h1": -0.4,
        "h24": 3.5,
        "h6": 1.2,
        "m5": 0.1
      },
      "usd": "0.0000092"
    },
    "token": {
      "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
      "chain": "eth",
      "name": "Pepe",
      "symbol": "PEPE"
    }
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Find a token (address or symbol)

GET/v1/resolve
Cost 1 creditPlan FreeChains 40 chainsKey required

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).

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • A symbol search gives up to 5 matches, best first. Show them to your user and let them pick: many tokens share a ticker.
  • Searching a symbol that matches nothing costs nothing.
Exact rules

data.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).

Parameters

Query parameters

stringrequired

A token address, or a symbol / name (at most 40 characters; at most 100 for an address).

string

Only this chain (optional). Chain id.

What you get back

A 200 answer is {"data", "meta"} (ResolveAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • matchesarray of objectsalways

    For an address: ONE match. For a symbol / name: the best matches (up to 5, most liquid first). Empty = no match.

    9 fields inside
    • addressstringalways

      Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

    • chainstringalways

      Chain id.

    • listedbooleanalways

      true = a market lists the token; false = no market lists it (then there is no pair).

    • dexstring

      DEX of the main pair.

    • liquidity_usdinteger

      Symbol / name search only (always there): liquidity over the token's pairs. Whole US dollars (integer).

    • namestring

      Token name.

    • pairstring

      Main pair (pool) address. A listed token can lack it (unknown).

    • symbolstring

      Ticker.

    • volume_24h_usdinteger

      Symbol / name search only (always there): 24 h volume over the token's pairs. Whole US dollars (integer).

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

27 examples

Resolve an address or a symbol

{
  "data": {
    "matches": [
      {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "chain": "eth",
        "dex": "uniswap",
        "liquidity_usd": 41200000,
        "listed": true,
        "name": "Pepe",
        "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
        "symbol": "PEPE",
        "volume_24h_usd": 512000000
      }
    ]
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

q=<address>: one match, the chain and main pair it trades on.

{
  "data": {
    "matches": [
      {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "chain": "eth",
        "dex": "uniswap",
        "listed": true,
        "name": "Pepe",
        "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
        "symbol": "PEPE"
      }
    ]
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

q=<a symbol nobody lists>: no match, costs nothing.

{
  "data": {
    "matches": []
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No data is available for this token.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

refused: Token cannot be scanned

{
  "error": {
    "code": "refused",
    "doc_url": "https://ttf.bot/docs/errors/#refused",
    "message": "This token cannot be scanned.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
422refusedThis token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Wallet activity

GET/v1/wallet/{chain}/{address}/activity
Cost 3 credits · 1 if cachedRequires StarterChains 28 chainsKey required

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.

A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

  • Want a ping the moment a wallet moves instead of asking again and again? Use a wallet webhook rule.
  • Exchange, router and burn addresses are refused: they move on every block.
Exact rules

The 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.

Parameters

Path parameters

stringrequired

Chain id.

stringrequired

Wallet address (0x + 40 hex).

Query parameters

integerdefault 20 · 1 to 50

Transfers per page, 1-50. Default 20.

string

data.next_cursor of the previous page (opaque). Omit for the newest page.

string

Comma-separated keys each transfer keeps (default all): tx, block, time_ms, log_index, token, symbol, decimals, value, from, to, direction, source.

What you get back

A 200 answer is {"data", "meta"} (WalletActivityAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • transfersarray of objectsalways

    Transfers in and out, newest first.

    12 fields inside
    • blockintegeralways*

      Block number.

    • directionstringalways*

      out = the wallet sent it, in = it received it, self = to itself. One of: in, out, self.

    • fromstringalways*

      Sender (0x + 40 hex).

    • log_indexintegeralways*

      Position of the transfer in its transaction's logs.

    • sourcestringalways*

      history = public chain history, watch = recorded live by TTF's watcher. One of: history, watch.

    • tostringalways*

      Receiver (0x + 40 hex).

    • tokenstringalways*

      Token contract (0x + 40 hex); native-coin transfers use 0xeeee...eeee.

    • txstringalways*

      Transaction hash.

    • valuestringalways*

      Raw amount (integer string; divide by 10^decimals).

    • decimalsinteger

      Token decimals (value / 10^decimals = tokens).

    • symbolstring

      Token ticker (third-party text: escape it).

    • time_msinteger

      Block time (absent when the source did not give it). Unix time in milliseconds.

  • watchobjectalways

    TTF's real-time watch of this address for your account.

    5 fields inside
    • configuredbooleanalways

      true = real-time watching is set up on this chain.

    • hotbooleanalways

      true = dropped from live watching because it moves on most blocks (history still works).

    • livebooleanalways

      true = the watcher is running and keeping up right now.

    • expires_msinteger

      When it ends unless you ask again (absent while no watch exists). Unix time in milliseconds.

    • started_msinteger

      When your watch of the address started. Unix time in milliseconds.

  • next_cursorstring

    Pass it as ?cursor= for the next (older) page. Absent = the last page.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

24 examples

Recent transfers of a wallet

{
  "data": {
    "next_cursor": "MjE0MDAwMDA6MTI6MHg1ZDVk",
    "transfers": [
      {
        "block": 21400000,
        "decimals": 18,
        "direction": "out",
        "from": "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a",
        "log_index": 12,
        "source": "history",
        "symbol": "PEPE",
        "time_ms": 1795000000000,
        "to": "0x4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b",
        "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "tx": "0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d",
        "value": "1500000000000000000000"
      }
    ],
    "watch": {
      "configured": true,
      "expires_ms": 1795076400123,
      "hot": false,
      "live": true,
      "started_ms": 1794990000123
    }
  },
  "meta": {
    "cost": 3,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a wallet address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: 'wallet' is not available on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "'wallet' is not available on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: This is a burn, router, wrapped-coin or exchange address: its activity is not served.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This is a burn, router, wrapped-coin or exchange address: its activity is not served.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

timeout: Took too long

{
  "error": {
    "code": "timeout",
    "doc_url": "https://ttf.bot/docs/errors/#timeout",
    "message": "This took too long. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
504timeoutThe data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

TTF signals

GET/v1/signals
Cost 1 creditRequires StarterKey required

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.

A refused or failed call costs nothing.

  • Page through older signals with cursor = the next_cursor of the previous answer.
  • Want them pushed instead? A signal webhook delivers each one as it happens.
Exact rules

The 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.

Parameters

Query parameters

enum

Only signals of this kind: breakout (a new all-time high), call (a call reached a milestone), trending. Default all.

string

Only this chain (optional). Chain id.

integerdefault 20 · 1 to 50

Signals per page, 1-50. Default 20.

string

data.next_cursor of the previous page. Omit for the newest page.

What you get back

A 200 answer is {"data", "meta"} (SignalsAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • livebooleanalways

    true = the signals feed is running.

  • signalsarray of objectsalways

    The signals (the same events a signal webhook rule receives).

    30 fields inside
    • dataobjectalways

      A TTF signal: an ATH breakout or a call milestone. The event data (the keys of this type; unknown = absent).

      23 fields inside
      • kindstringalways

        breakout = a new all-time high was broken, call = a call reached a milestone, trending = a trending signal. One of: breakout, trending, call.

      • buys_24hinteger

        Buys in the last 24 hours.

      • called_at_msinteger

        When the call was made. Unix time in milliseconds.

      • dexstring

        The exchange of the main pool (third-party text: escape it).

      • entry_mc_usdstring

        call: the market cap when the call was made, US dollars. Decimal string (never a float, no exponent).

      • gradestring

        The signal grade: strong (daily ATH) or early (hourly ATH). One of: strong, early.

      • liquidity_usdstring

        Liquidity of its main pool, US dollars. Decimal string (never a float, no exponent).

      • market_cap_usdstring

        Market cap now, US dollars. Decimal string (never a float, no exponent).

      • multiplenumber

        breakout: market cap / the all-time high it broke; call: the milestone reached since the call (2 = 2x).

      • namestring

        Token name (third-party text: escape it).

      • pair_created_msinteger

        When its main pool was created (the token age).

      • plan_textstring

        The plan line of the call ("if it holds 24h -> enter, sell 50% at 2x ...").

      • prev_ath_mc_usdstring

        breakout: the all-time high it broke, as a market cap in US dollars. Decimal string (never a float, no exponent).

      • prev_ath_msinteger

        breakout: when that all-time high was set.

      • price_change_24h_pctnumber

        Price change of the last 24 hours, percent (negative = down).

      • price_usdstring

        Price of one token now, US dollars. Decimal string (never a float, no exponent).

      • refstring

        An id of the signal.

      • scorenumber

        Strength of the signal (higher = stronger), when given.

      • sells_24hinteger

        Sells in the last 24 hours.

      • symbolstring

        Ticker (third-party text: escape it).

      • textstring

        The signal in words (third-party text: escape it).

      • tierstring

        Which all-time high: daily (the daily ATH) or 1h (the hourly ATH). One of: daily, 1h.

      • volume_24h_usdstring

        Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

    • chainstring

      Chain id. Absent for a signal about no chain.

    • tokenstring

      Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.

  • next_cursorstring

    Pass it as ?cursor= for the next (older) page. Absent = the end.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

23 examples

Recent TTF signals

{
  "data": {
    "live": true,
    "next_cursor": "1795000000000-0",
    "signals": [
      {
        "chain": "eth",
        "data": {
          "buys_24h": 4210,
          "called_at_ms": 1795000000000,
          "dex": "uniswap",
          "grade": "strong",
          "kind": "breakout",
          "liquidity_usd": "1240000",
          "market_cap_usd": "19614400",
          "multiple": 1.04,
          "name": "Orbit Cat",
          "pair_created_ms": 1794222400000,
          "plan_text": "if it holds 24h -> enter, sell 50% at 2x, sell 50% every 3x after",
          "prev_ath_mc_usd": "18860000",
          "prev_ath_ms": 1794827200000,
          "price_change_24h_pct": 31.4,
          "price_usd": "0.0196144",
          "sells_24h": 2960,
          "symbol": "ORBIT",
          "tier": "daily",
          "volume_24h_usd": "3870000"
        },
        "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0VW",
        "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "ts": 1795000000000,
        "type": "signal",
        "v": 1
      }
    ]
  },
  "meta": {
    "cost": 1,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "This chain is not supported.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: That does not look like a token address on this chain.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "That does not look like a token address on this chain.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: The request parameters are not valid.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "The request parameters are not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include 'security' endpoints.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include 'security' endpoints.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up per minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: API key credits used up this month.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "API key credits used up this month.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

upstream: Provider did not answer

{
  "error": {
    "code": "upstream",
    "doc_url": "https://ttf.bot/docs/errors/#upstream",
    "message": "This data is not available right now. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "The API is busy right now. Try again shortly.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

capacity: At capacity

{
  "error": {
    "code": "capacity",
    "doc_url": "https://ttf.bot/docs/errors/#capacity",
    "message": "The API is at capacity for today. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: unknown chain, address, field or option. Not charged. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Not charged. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Not charged. Codes: payment_required.
403forbiddenThe key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden.
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
429rate_limitedToo many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited.
500internalUnexpected error. Not charged. Codes: internal.
502upstreamA data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream.
503capacity busy unavailableCapacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Chains, groups and prices

GET/v1/chains
Cost FreeKey not needed

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.

Exact rules

The 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.

Parameters

No parameters: just send it.

What you get back

A 200 answer is {"data", "meta"} (ChainsAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • chainsarray of objectsalways

    The launch chains.

    4 fields inside
    • familystringalways

      Chain family: evm, solana, ...

    • groupsarray of stringsalways

      The field groups of GET /v1/token it serves.

    • idstringalways

      Chain id (use it in paths).

    • namestringalways

      Display name.

  • groupsarray of objectsalways

    The field groups.

    7 fields inside
    • all_chainsbooleanalways

      true = served on every launch chain; false = only on chains.

    • cached_creditsintegeralways

      Credits of an answer from the shared cache.

    • creditsintegeralways

      Credits of a live answer.

    • fieldsarray of stringsalways

      Its field names (a group of one field lists itself).

    • namestringalways

      Group name (use it in fields).

    • tagstringalways

      free = no paid provider behind it; paid = a failed answer keeps the attempt fee. One of: free, paid.

    • chainsarray of strings

      The chains it is served on (only when all_chains is false).

  • intervalsarray of stringsalways

    Candle intervals.

  • route_groupsarray of objectsalways

    The routes that are groups of their own (trending, wallet, signals).

    7 fields inside
    • all_chainsbooleanalways

      true = served on every launch chain; false = only on chains.

    • cached_creditsintegeralways

      Credits of an answer from the shared cache.

    • creditsintegeralways

      Credits of a live answer.

    • namestringalways

      Group name (use it in fields).

    • routestringalways

      Its path.

    • tagstringalways

      free = no paid provider behind it; paid = a failed answer keeps the attempt fee. One of: free, paid.

    • chainsarray of strings

      The chains it is served on (only when all_chains is false).

  • trending_windowsarray of stringsalways

    Trending windows.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

5 examples

Chains, groups and credits

{
  "data": {
    "chains": [
      {
        "family": "evm",
        "groups": [
          "core",
          "security",
          "holders"
        ],
        "id": "eth",
        "name": "Ethereum"
      }
    ],
    "groups": [
      {
        "all_chains": true,
        "cached_credits": 1,
        "credits": 1,
        "fields": [
          "price",
          "market",
          "liquidity",
          "socials",
          "token"
        ],
        "name": "core",
        "tag": "free"
      },
      {
        "all_chains": false,
        "cached_credits": 1,
        "chains": [
          "base",
          "bsc",
          "eth",
          "sol"
        ],
        "credits": 4,
        "fields": [
          "holders"
        ],
        "name": "holders",
        "tag": "paid"
      }
    ],
    "intervals": [
      "1m",
      "5m",
      "15m",
      "1h",
      "4h",
      "1d"
    ],
    "route_groups": [
      {
        "all_chains": true,
        "cached_credits": 1,
        "credits": 2,
        "name": "trending",
        "route": "/v1/trending",
        "tag": "free"
      },
      {
        "all_chains": false,
        "cached_credits": 1,
        "chains": [
          "arb",
          "eth"
        ],
        "credits": 3,
        "name": "wallet",
        "route": "/v1/wallet/{chain}/{address}/activity",
        "tag": "paid"
      },
      {
        "all_chains": true,
        "cached_credits": 1,
        "credits": 1,
        "name": "signals",
        "route": "/v1/signals",
        "tag": "paid"
      }
    ],
    "trending_windows": [
      "5m",
      "1h",
      "4h",
      "6h",
      "1d"
    ]
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
404not_foundNot 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.
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
500internalUnexpected error. Not charged. Codes: internal.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Service health

GET/v1/health
Cost FreeKey not needed

Is the API up? Free, no key, never charged: use it for your own uptime checks.

Exact rules

Liveness of the service and its limits store. No key, no charge; answers even while the API is off.

Parameters

No parameters: just send it.

What you get back

A 200 answer is {"data", "meta"} (HealthAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • checked_atstring (date-time)always

    When this was checked. ISO-8601 UTC ("2026-11-28T10:00:00Z").

  • enabledbooleanalways

    true = the API is switched on (paid routes answer).

  • redisbooleanalways

    true = the limits store answers.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

4 examples

Service health

{
  "data": {
    "checked_at": "2026-11-28T10:00:00Z",
    "enabled": true,
    "redis": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
405method_not_allowedWrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed.
500internalUnexpected error. Not charged. Codes: internal.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Webhooks: get a ping instead of asking

Tell TTF what to watch. When it happens, TTF sends a POST request to your server within seconds.

A webhook is for people who run their own server or bot. Want the alert as a message in Telegram or Discord? That needs no server: see Alerts in Telegram and Alerts in Discord. The alerts are the same; only where they go differs.

Set one up in 3 steps

  1. Add an endpoint

    In the dashboard, tab Destinations, open Add an https:// address and type the address of your server (for example https://yourbot.example/ttf-hook). Only https on port 443 or 8443, and only public addresses. You get a signing secret (whsec_...) once: copy it.

  2. Add a rule

    Tab Alerts (or Wallets): pick what to watch (table below) and send it to that endpoint. One endpoint can have many rules.

  3. Test it

    Press Send test alert: a ping arrives at your server. Answer with any 2xx status, fast. Then check the signature before you trust a body.

What you can watch

Rule typeFires whenSettingsPlan group
price_crossThe price crosses your line (up through above or down through below). Once per crossing; re-armed after it moves 0.5 % back.chain, token, above or below, fire_if_already_pastcore
pct_moveThe price moves by your percent within a window (negative = a drop).chain, token, window (15m, 1h, 4h, 24h), percentcore
trending_enterA token enters the trending board with at least your number of scans, and passes your filters (liquidity, market cap, age, words in the name, tax, holders and more: see Trending alerts and filters). chain, chains or all, min_scans, optional filters, per_chain, repeat, max_per_hour, unknowntrending
wallet_activityA wallet sends (or receives) a token transfer, optionally above a dollar value. With chain evm (All EVMs) one rule watches the wallet on every EVM chain TTF watches, chains added later included; each delivery names the chain it happened on. chain (or evm), address or addresses, direction (out, in, any), min_usdwallet
signalA TTF signal of that kind appears (all-time-high breakout, call milestone).kind signals

A rule only fires if your plan includes its group; on Free only the price rules can be made. How many endpoints, rules and deliveries per month you get depends on the plan (see Credits & limits).

Prefer code? Everything above can also be done with an API key: manage webhooks from code.

What arrives

An HTTPS POST with a JSON body and these headers:

HeaderValue
X-TTF-Eventprice, trending, wallet, signal or ping
X-TTF-Event-IdId of the event (one event can fire several of your rules).
X-TTF-DeliveryId of this delivery, the same on every retry: use it to drop duplicates.
X-TTF-Attempt1, 2, 3 ... (counts retries).
X-TTF-TimestampUnix seconds when this attempt was signed.
X-TTF-Signaturev1=<hex> (two values for 24 h after you rotate the secret).

Every delivery type with its body fields and real examples: price, trending, wallet, signal and the test ping.

Deliveries come from changing addresses of our proxy provider: do not allow-list IPs, check the signature instead.

Price rules price

POSTyour endpoint · X-TTF-Event: price
Rule price_cross Rule pct_move

Sent when a price_cross, pct_move rule fired on a price event.

Delivery rules

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.

Headers

HeaderTypeMeaningExample
X-TTF-EventstringThe event type of the body's event: price, trending, wallet, signal or ping.price
X-TTF-Event-IdstringThe event id (a ULID). One event can fire several of your rules: each is its own delivery.01JDZ8Q7X3M4N5P6Q7R8S9T0PA
X-TTF-DeliverystringThe delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.01JDR4Q7Z2N8M5K3X9V6B4C2HA
X-TTF-Attemptinteger1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).1
X-TTF-TimestampintegerUnix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).1795000000
X-TTF-Signaturestringv1=<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.v1=0000000000000000000000000000000000000000000000000000000000000000
User-AgentstringAlways TTF-Webhooks/1.0.TTF-Webhooks/1.0

Signature

algorithmHMAC-SHA256
formatv1=<64 lower-case hex>[,v1=<hex>]
headerX-TTF-Signature
rotationfor 24 h after a secret rotation the header carries two values (new secret first): accept if any matches
secretthe endpoint secret, the whole whsec_... string as UTF-8
signed payload<X-TTF-Timestamp>.<raw request body bytes>
timestamp headerX-TTF-Timestamp
tolerance s300

Copy-paste verification code in Python and Node.js: Verify the signature.

Body

One body per fired rule. always = in every body; other fields are left out when unknown. Text inside events comes from third parties: escape it before you show it.

WebhookPriceCross

A price_cross rule fired.

  • created_msintegeralways

    When the rule fired. Unix time in milliseconds.

  • detailobjectalways

    Why a price_cross rule fired.

    4 fields inside
    • change_pctnumberalways

      How far the price is past the threshold. Percent (5.2 = 5.2 %).

    • sidestringalways

      above = the price rose to / past it, below = it fell to / past it. One of: above, below.

    • threshold_usdstringalways

      Your threshold price in US dollars. Decimal string (never a float, no exponent).

    • price_usdstring

      The price that crossed it, in US dollars. Decimal string (never a float, no exponent).

  • eventobjectalways

    A price update of a token your rule watches.

    12 fields inside
    • chainstringalways

      Chain id. Absent for a signal about no chain.

    • dataobjectalways

      A price update of a token your rule watches. The event data (the keys of this type; unknown = absent).

      5 fields inside
      • liquidity_usdinteger

        Liquidity of the pool the price comes from. Whole US dollars (integer).

      • namestring

        Token name (third-party text: escape it).

      • pairstring

        The pair (pool) the price comes from.

      • price_usdstring

        Price of one token in US dollars. Absent only for an absurd price (more than 64 characters). Decimal string (never a float, no exponent).

      • symbolstring

        Ticker (third-party text: escape it).

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tokenstringalways

      Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

  • idstringalways

    Delivery id (a ULID) = the X-TTF-Delivery header.

  • reasonstringalways

    Why it fired. One of: crossed, already_past.

  • ruleobjectalways

    The rule that fired.

    2 fields inside
    • idstringalways

      Rule id (whr_ + 24 hex).

    • kindstringalways

      The rule type.

  • typestringalways

    rule.fired

WebhookPctMove

A pct_move rule fired.

  • created_msintegeralways

    When the rule fired. Unix time in milliseconds.

  • detailobjectalways

    Why a pct_move rule fired.

    6 fields inside
    • base_msintegeralways

      When that start price was seen. Unix time in milliseconds.

    • change_pctnumberalways

      The move seen over the window. Percent (5.2 = 5.2 %).

    • threshold_pctnumberalways

      Your move threshold (negative = a drop). Percent (5.2 = 5.2 %).

    • windowstringalways

      Your window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

    • base_price_usdstring

      The price at the start of the window, in US dollars. Decimal string (never a float, no exponent).

    • price_usdstring

      The price now, in US dollars. Decimal string (never a float, no exponent).

  • eventobjectalways

    A price update of a token your rule watches.

    12 fields inside
    • chainstringalways

      Chain id. Absent for a signal about no chain.

    • dataobjectalways

      A price update of a token your rule watches. The event data (the keys of this type; unknown = absent).

      5 fields inside
      • liquidity_usdinteger

        Liquidity of the pool the price comes from. Whole US dollars (integer).

      • namestring

        Token name (third-party text: escape it).

      • pairstring

        The pair (pool) the price comes from.

      • price_usdstring

        Price of one token in US dollars. Absent only for an absurd price (more than 64 characters). Decimal string (never a float, no exponent).

      • symbolstring

        Ticker (third-party text: escape it).

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tokenstringalways

      Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

  • idstringalways

    Delivery id (a ULID) = the X-TTF-Delivery header.

  • reasonstringalways

    Why it fired. One of: moved.

  • ruleobjectalways

    The rule that fired.

    2 fields inside
    • idstringalways

      Rule id (whr_ + 24 hex).

    • kindstringalways

      The rule type.

  • typestringalways

    rule.fired

Examples

2 examples

pct_move delivery

{
  "created_ms": 1795000000000,
  "detail": {
    "base_ms": 1794996500000,
    "base_price_usd": "0.0000086",
    "change_pct": 6.98,
    "price_usd": "0.0000092",
    "threshold_pct": 5,
    "window": "1h"
  },
  "event": {
    "chain": "eth",
    "data": {
      "price_usd": "0.0000092"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PA",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    "ts": 1795000000000,
    "type": "price",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "moved",
  "rule": {
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
    "kind": "pct_move"
  },
  "type": "rule.fired"
}

price_cross delivery

{
  "created_ms": 1795000000000,
  "detail": {
    "change_pct": 2.22,
    "price_usd": "0.0000092",
    "side": "above",
    "threshold_usd": "0.000009"
  },
  "event": {
    "chain": "eth",
    "data": {
      "price_usd": "0.0000092"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PA",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    "ts": 1795000000000,
    "type": "price",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "crossed",
  "rule": {
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
    "kind": "price_cross"
  },
  "type": "rule.fired"
}

Your answer

  • 2XX: Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log.
  • default: Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried.

JSON Schema

Validate bodies in your own code with the published schemas (draft 2020-12): events/price.json · webhook.json.

Wallet rules wallet

POSTyour endpoint · X-TTF-Event: wallet
Rule wallet_activity

Sent when a wallet_activity rule fired on a wallet event.

Delivery rules

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.

Headers

HeaderTypeMeaningExample
X-TTF-EventstringThe event type of the body's event: price, trending, wallet, signal or ping.wallet
X-TTF-Event-IdstringThe event id (a ULID). One event can fire several of your rules: each is its own delivery.01JDZ8Q7X3M4N5P6Q7R8S9T0WC
X-TTF-DeliverystringThe delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.01JDR4Q7Z2N8M5K3X9V6B4C2HA
X-TTF-Attemptinteger1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).1
X-TTF-TimestampintegerUnix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).1795000000
X-TTF-Signaturestringv1=<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.v1=0000000000000000000000000000000000000000000000000000000000000000
User-AgentstringAlways TTF-Webhooks/1.0.TTF-Webhooks/1.0

Signature

algorithmHMAC-SHA256
formatv1=<64 lower-case hex>[,v1=<hex>]
headerX-TTF-Signature
rotationfor 24 h after a secret rotation the header carries two values (new secret first): accept if any matches
secretthe endpoint secret, the whole whsec_... string as UTF-8
signed payload<X-TTF-Timestamp>.<raw request body bytes>
timestamp headerX-TTF-Timestamp
tolerance s300

Copy-paste verification code in Python and Node.js: Verify the signature.

Body

One body per fired rule. always = in every body; other fields are left out when unknown. Text inside events comes from third parties: escape it before you show it.

WebhookWalletActivity

A wallet_activity rule fired.

  • created_msintegeralways

    When the rule fired. Unix time in milliseconds.

  • detailobjectalways

    Why a wallet_activity rule fired.

    2 fields inside
    • min_value_usdstringalways

      Your minimum value in US dollars ("0" = every transfer). Decimal string (never a float, no exponent).

    • value_usdstring

      US dollar value of the transfer, when known. Decimal string (never a float, no exponent).

  • eventobjectalways

    A transfer of a wallet your rule watches (in or out).

    20 fields inside
    • chainstringalways

      Chain id. Absent for a signal about no chain.

    • dataobjectalways

      A transfer of a wallet your rule watches (in or out). The event data (the keys of this type; unknown = absent).

      13 fields inside
      • addressstringalways

        The watched wallet (the subject of your rule). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • txstringalways

        Transaction hash.

      • valuestringalways

        Raw amount (integer string; divide by 10^decimals).

      • blockinteger

        Block number.

      • decimalsinteger

        Token decimals.

      • directionstring

        out = the wallet sent it, in = it received it. Absent = out. One of: out, in.

      • fromstring

        Sender (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • kindstring

        transfer, sell (Solana: a swap out) or native (the chain's own coin; token 0xeeee...eeee). One of: sell, transfer, native.

      • lateinteger

        1 = recorded by a catch-up round long after its block (not a live transfer).

      • log_indexinteger

        Position of the transfer in its transaction's logs.

      • symbolstring

        Token ticker (third-party text: escape it).

      • tostring

        Receiver (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.

      • value_usdstring

        US dollar value of the transfer, when known. Decimal string (never a float, no exponent).

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tokenstringalways

      Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

  • idstringalways

    Delivery id (a ULID) = the X-TTF-Delivery header.

  • reasonstringalways

    Why it fired. One of: activity.

  • ruleobjectalways

    The rule that fired.

    2 fields inside
    • idstringalways

      Rule id (whr_ + 24 hex).

    • kindstringalways

      The rule type.

  • typestringalways

    rule.fired

Examples

1 example

wallet_activity delivery

{
  "created_ms": 1795000000000,
  "detail": {
    "min_value_usd": "10",
    "value_usd": "13.8"
  },
  "event": {
    "chain": "eth",
    "data": {
      "address": "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a",
      "block": 21400000,
      "decimals": 18,
      "direction": "out",
      "from": "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a",
      "log_index": 12,
      "symbol": "PEPE",
      "to": "0x4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b",
      "tx": "0x5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d",
      "value": "1500000000000000000000",
      "value_usd": "13.8"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0WC",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    "ts": 1795000000000,
    "type": "wallet",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "activity",
  "rule": {
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
    "kind": "wallet_activity"
  },
  "type": "rule.fired"
}

Your answer

  • 2XX: Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log.
  • default: Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried.

JSON Schema

Validate bodies in your own code with the published schemas (draft 2020-12): events/wallet.json · webhook.json.

Signal rules signal

POSTyour endpoint · X-TTF-Event: signal
Rule signal

Sent when a signal rule fired on a signal event.

Delivery rules

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.

Headers

HeaderTypeMeaningExample
X-TTF-EventstringThe event type of the body's event: price, trending, wallet, signal or ping.signal
X-TTF-Event-IdstringThe event id (a ULID). One event can fire several of your rules: each is its own delivery.01JDZ8Q7X3M4N5P6Q7R8S9T0SD
X-TTF-DeliverystringThe delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.01JDR4Q7Z2N8M5K3X9V6B4C2HA
X-TTF-Attemptinteger1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).1
X-TTF-TimestampintegerUnix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).1795000000
X-TTF-Signaturestringv1=<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.v1=0000000000000000000000000000000000000000000000000000000000000000
User-AgentstringAlways TTF-Webhooks/1.0.TTF-Webhooks/1.0

Signature

algorithmHMAC-SHA256
formatv1=<64 lower-case hex>[,v1=<hex>]
headerX-TTF-Signature
rotationfor 24 h after a secret rotation the header carries two values (new secret first): accept if any matches
secretthe endpoint secret, the whole whsec_... string as UTF-8
signed payload<X-TTF-Timestamp>.<raw request body bytes>
timestamp headerX-TTF-Timestamp
tolerance s300

Copy-paste verification code in Python and Node.js: Verify the signature.

Body

One body per fired rule. always = in every body; other fields are left out when unknown. Text inside events comes from third parties: escape it before you show it.

WebhookSignal

A signal rule fired.

  • created_msintegeralways

    When the rule fired. Unix time in milliseconds.

  • detailobjectalways

    Why a signal rule fired.

    1 field inside
    • kindstringalways

      The signal kind your rule asked for. One of: breakout, trending, call.

  • eventobjectalways

    A TTF signal: an ATH breakout or a call milestone.

    30 fields inside
    • dataobjectalways

      A TTF signal: an ATH breakout or a call milestone. The event data (the keys of this type; unknown = absent).

      23 fields inside
      • kindstringalways

        breakout = a new all-time high was broken, call = a call reached a milestone, trending = a trending signal. One of: breakout, trending, call.

      • buys_24hinteger

        Buys in the last 24 hours.

      • called_at_msinteger

        When the call was made. Unix time in milliseconds.

      • dexstring

        The exchange of the main pool (third-party text: escape it).

      • entry_mc_usdstring

        call: the market cap when the call was made, US dollars. Decimal string (never a float, no exponent).

      • gradestring

        The signal grade: strong (daily ATH) or early (hourly ATH). One of: strong, early.

      • liquidity_usdstring

        Liquidity of its main pool, US dollars. Decimal string (never a float, no exponent).

      • market_cap_usdstring

        Market cap now, US dollars. Decimal string (never a float, no exponent).

      • multiplenumber

        breakout: market cap / the all-time high it broke; call: the milestone reached since the call (2 = 2x).

      • namestring

        Token name (third-party text: escape it).

      • pair_created_msinteger

        When its main pool was created (the token age).

      • plan_textstring

        The plan line of the call ("if it holds 24h -> enter, sell 50% at 2x ...").

      • prev_ath_mc_usdstring

        breakout: the all-time high it broke, as a market cap in US dollars. Decimal string (never a float, no exponent).

      • prev_ath_msinteger

        breakout: when that all-time high was set.

      • price_change_24h_pctnumber

        Price change of the last 24 hours, percent (negative = down).

      • price_usdstring

        Price of one token now, US dollars. Decimal string (never a float, no exponent).

      • refstring

        An id of the signal.

      • scorenumber

        Strength of the signal (higher = stronger), when given.

      • sells_24hinteger

        Sells in the last 24 hours.

      • symbolstring

        Ticker (third-party text: escape it).

      • textstring

        The signal in words (third-party text: escape it).

      • tierstring

        Which all-time high: daily (the daily ATH) or 1h (the hourly ATH). One of: daily, 1h.

      • volume_24h_usdstring

        Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

    • chainstring

      Chain id. Absent for a signal about no chain.

    • tokenstring

      Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.

  • idstringalways

    Delivery id (a ULID) = the X-TTF-Delivery header.

  • reasonstringalways

    Why it fired. One of: signal.

  • ruleobjectalways

    The rule that fired.

    2 fields inside
    • idstringalways

      Rule id (whr_ + 24 hex).

    • kindstringalways

      The rule type.

  • typestringalways

    rule.fired

Examples

1 example

signal delivery

{
  "created_ms": 1795000000000,
  "detail": {
    "kind": "breakout"
  },
  "event": {
    "chain": "eth",
    "data": {
      "buys_24h": 4210,
      "called_at_ms": 1794996400000,
      "dex": "uniswap",
      "grade": "strong",
      "kind": "breakout",
      "liquidity_usd": "1240000",
      "market_cap_usd": "19614400",
      "multiple": 1.04,
      "name": "Orbit Cat",
      "pair_created_ms": 1794222400000,
      "plan_text": "if it holds 24h -> enter, sell 50% at 2x, sell 50% every 3x after",
      "prev_ath_mc_usd": "18860000",
      "prev_ath_ms": 1794827200000,
      "price_change_24h_pct": 31.4,
      "price_usd": "0.0196144",
      "sells_24h": 2960,
      "symbol": "ORBIT",
      "tier": "daily",
      "volume_24h_usd": "3870000"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0SD",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    "ts": 1795000000000,
    "type": "signal",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "signal",
  "rule": {
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
    "kind": "signal"
  },
  "type": "rule.fired"
}

Your answer

  • 2XX: Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log.
  • default: Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried.

JSON Schema

Validate bodies in your own code with the published schemas (draft 2020-12): events/signal.json · webhook.json.

Test ping ping

POSTyour endpoint · X-TTF-Event: ping
Rule ping

Sent when the dashboard's Test button.

Delivery rules

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.

Headers

HeaderTypeMeaningExample
X-TTF-EventstringThe event type of the body's event: price, trending, wallet, signal or ping.ping
X-TTF-Event-IdstringThe event id (a ULID). One event can fire several of your rules: each is its own delivery.01JDZ8Q7X3M4N5P6Q7R8S9T0PE
X-TTF-DeliverystringThe delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it.01JDR4Q7Z2N8M5K3X9V6B4C2HA
X-TTF-Attemptinteger1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours).1
X-TTF-TimestampintegerUnix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window).1795000000
X-TTF-Signaturestringv1=<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.v1=0000000000000000000000000000000000000000000000000000000000000000
User-AgentstringAlways TTF-Webhooks/1.0.TTF-Webhooks/1.0

Signature

algorithmHMAC-SHA256
formatv1=<64 lower-case hex>[,v1=<hex>]
headerX-TTF-Signature
rotationfor 24 h after a secret rotation the header carries two values (new secret first): accept if any matches
secretthe endpoint secret, the whole whsec_... string as UTF-8
signed payload<X-TTF-Timestamp>.<raw request body bytes>
timestamp headerX-TTF-Timestamp
tolerance s300

Copy-paste verification code in Python and Node.js: Verify the signature.

Body

One body per fired rule. always = in every body; other fields are left out when unknown. Text inside events comes from third parties: escape it before you show it.

WebhookPing

The dashboard's test button.

  • created_msintegeralways

    When the test was queued. Unix time in milliseconds.

  • eventobjectalways

    The dashboard's test delivery (webhooks only, never on the bus).

    6 fields inside
    • dataobjectalways

      The test delivery's data.

      1 field inside
      • textstringalways

        A fixed text ("Test delivery from TTF").

    • idstringalways

      Event id: a ULID (26 characters, sorts by time). One event can fire several rules.

    • tsintegeralways

      When the event happened. Unix time in milliseconds.

    • typestringalways

      The event type.

    • vintegeralways

      Envelope version (1).

  • idstringalways

    Delivery id (a ULID) = the X-TTF-Delivery header.

  • reasonstringalways

    Always test.

  • typestringalways

    ping

Examples

1 example

ping delivery

{
  "created_ms": 1795000000000,
  "event": {
    "data": {
      "text": "Test delivery from TTF"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PE",
    "ts": 1795000000000,
    "type": "ping",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "test",
  "type": "ping"
}

Your answer

  • 2XX: Delivered: any 2xx. The first 1 KB of your answer shows in the delivery log.
  • default: Any other answer (or a timeout, a TLS / connection failure, a redirect) is a failed attempt and is retried.

JSON Schema

Validate bodies in your own code with the published schemas (draft 2020-12): events/ping.json · webhook.json.

Verify the signature

Anyone can POST to your server. The signature proves the body came from TTF and was not changed.

How it works

  1. Take the X-TTF-Timestamp header and the raw body bytes (exactly as received, not re-encoded JSON).
  2. Compute HMAC-SHA256 with your endpoint secret (the whole whsec_... text) as the key, over timestamp + "." + body. Write it as lower-case hex.
  3. Compare it, in constant time, with each v1= value of X-TTF-Signature. One match = valid.
  4. Refuse a timestamp more than 300 seconds (5 minutes) from your clock: that stops replays of an old delivery.

Python

import hashlib
import hmac
import re
import time

_HEX64 = re.compile(r'[0-9a-f]{64}')


def verify_ttf_signature(secret, headers, body, tolerance=300, now=None):
    """secret: your 'whsec_...' text; headers: the request headers; body: the RAW body (bytes).
    Returns True or False, never raises."""
    h = {str(k).lower(): str(v) for k, v in headers.items()}
    try:
        ts = int(h['x-ttf-timestamp'])
    except (KeyError, ValueError):
        return False
    if abs((time.time() if now is None else now) - ts) > tolerance:
        return False
    expected = hmac.new(secret.encode('utf-8'), f'{ts}.'.encode('ascii') + body, hashlib.sha256).hexdigest()
    for part in h.get('x-ttf-signature', '').split(','):
        scheme, _, value = part.strip().partition('=')
        if scheme == 'v1' and _HEX64.fullmatch(value) and hmac.compare_digest(value, expected):
            return True
    return False

Node.js

Read the raw body (for Express: express.raw({type: 'application/json'})), never the parsed JSON.

const crypto = require('crypto');

// secret: your 'whsec_...' text; headers: lower-case header names; rawBody: a Buffer of the RAW body
function verifyTtfSignature(secret, headers, rawBody, toleranceSec = 300, nowSec = Date.now() / 1000) {
  const ts = Number(headers['x-ttf-timestamp']);
  if (!Number.isInteger(ts) || Math.abs(nowSec - ts) > toleranceSec) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${ts}.`).update(rawBody).digest('hex');
  return String(headers['x-ttf-signature'] || '').split(',').some((part) => {
    const [scheme, value] = part.trim().split('=');
    return scheme === 'v1' && /^[0-9a-f]{64}$/.test(value || '') &&
      crypto.timingSafeEqual(Buffer.from(value, 'ascii'), Buffer.from(expected, 'ascii'));
  });
}

module.exports = { verifyTtfSignature };

Test it with these values

Your function must return true for this request (we test our own examples against the same values):

Secretwhsec_dGVzdC12ZWN0b3Itc2VjcmV0LWZvci10dGYtZG9jcy0
X-TTF-Timestamp1795001500
Body (raw bytes, UTF-8){"id":"01JDR4W4D5E6F7G8H9J0K1L2M3","type":"ping","created_ms":1795001500000,"reason":"test","event":{"v":1,"id":"01JDR4W4N5M6B7V8C9X0Z1A2S3","type":"ping","ts":1795001500000,"data":{"text":"Test delivery from TTF"}}}
X-TTF-Signaturev1=33997caf7b21de24aa31c7754caaef491dd8c36664897a9ac5b60ed5cac1b36b
Your clock (now)1795001530

And false when one byte of the body changes, the secret is different, or the timestamp is older than 5 minutes.

Retries, duplicates and limits

Answer fast with a 2xx. If you do not, TTF tries again later.

Answer quickly

You have 10 seconds in total. Answer 200 right away and do the work after (put it in a queue). Redirects are not followed: a 3xx counts as a failure. The first 1 KB of your answer shows in the delivery log of the dashboard.

Retries

No 2xx (an error, a timeout, a connection problem)? We try again after 1 min, 5 min, 30 min, 2 h and 12 h: at most 6 attempts over about 15 hours. Then the delivery is dead (visible in the log). A dead delivery is not sent again: when you need what it carried, read it from the API (for example Wallet activity or Signals).

Duplicates

Delivery is at least once: the same delivery can arrive twice. It always has the same X-TTF-Delivery header and the same body: keep the ids you handled and skip repeats.

Order

Deliveries are not ordered (a retry can arrive after a newer event): sort by created_ms or event.ts.

Automatic pause

An endpoint that keeps failing for over an hour (20 failures in a row, or almost every attempt failing) is turned off: the dashboard shows it as Turned off after failures and its rules stop. An answer slower than 8 seconds counts as a failure there. Fix your server, send a test alert, then press Resume in the dashboard.

Plan limits

Deliveries per month, endpoints and rules depend on your plan. Over a limit, the extra rules pause (nothing is deleted) and come back by themselves after an upgrade.

Manage webhooks from code

Create, change and test your endpoints and rules with an API key that has webhook access.

Make a key with webhook access

In the dashboard, tab Overview, panel API keys: type a name, open Options and set Webhook access, then press Create key. (No Webhook access field under Options? Then managing webhooks from code is not switched on yet; the dashboard does all of it meanwhile.)

AccessWhat the key can do
noneRead data only. This is the default.
readAlso see your endpoints, rules and delivery logs. It never sees a signing secret.
writeAlso create, change, test and delete them, and rotate secrets (includes read).

A write key can send your alerts to another address. Keep it on your server only, limit it to your server's IP addresses, and revoke it if it leaks. The access of a key cannot be changed later: make a new key.

Making or regenerating a key with webhook access needs a recent sign-in: the dashboard asks you to confirm it is you. Revoking a key never does.

Your first endpoint and rule

Create an endpoint

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "Trading bot",
  "event_types": [
    "price",
    "wallet"
  ],
  "url": "https://bot.example.com/ttf"
}'

Add a rule

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/rules' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
  "name": "PEPE breakout",
  "params": {
    "above": 1e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  },
  "type": "price_cross"
}'

Send a test

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/test' \
  -H 'Authorization: Bearer YOUR_KEY'

Take data.endpoint.id of the first answer for endpoint_id and for the test address, and keep data.secret: it is shown once.

How these calls differ from data calls

  • They cost 0 credits. Your account has its own limits for them: 120 calls a minute, of which changes are at most 30 a minute and 300 a day. They never use up the dashboard's limits.
  • The list of rules leaves out wallet addresses and labels (address_count and label_count say how many): get one rule to read them.
  • Send the body of a change within 10 seconds, else it answers 408 request_timeout and nothing changes.
  • Times in these answers are unix seconds.
  • Answers are never cached and carry no ETag.
  • Call them from a server: a web page cannot send a change.
  • There is no idempotency key. After a timeout on a create, list your endpoints or rules before you try again.
  • 403 forbidden naming webhooks: read or webhooks: write means the key lacks that access.
  • An id that belongs to another account answers like an unknown one: 404 not_found.
  • Telegram and Discord destinations are not part of these calls: they are connected and changed in the dashboard only (Telegram, Discord). These calls list only your https endpoints and their rules, but a chat destination still takes one of your plan's endpoint slots.

Rule types and bounds

GET/v1/webhooks/schema
Cost FreePlan FreeKey requiredKey needs webhooks: read

Read this first when you build a rule form: every rule type, the settings it takes, their limits and the chains you can name.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

The 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.

Parameters

No parameters: just send it.

What you get back

A 200 answer is {"data", "meta"} (HookSchemaAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • chainsarray of objectsalways

    Chains a rule may name.

    2 fields inside
    • idstringalways

      Chain id.

    • namestringalways

      Its name.

  • coverage_notesobjectalways

    Every coverage value in words.

    8 fields inside
    • deniedstringalways

      The note of coverage denied.

    • fullstringalways

      The note of coverage full.

    • native_onlystringalways

      The note of coverage native_only.

    • neverstringalways

      The note of coverage never.

    • no_sourcestringalways

      The note of coverage no_source.

    • not_watchedstringalways

      The note of coverage not_watched.

    • partialstringalways

      The note of coverage partial.

    • pendingstringalways

      The note of coverage pending.

  • event_typesarray of stringsalways

    Every event type. One of: price, trending, wallet, signal.

  • limitsobjectalways

    Fixed limits.

    3 fields inside
    • description_maxintegeralways

      Longest endpoint description.

    • rotate_overlap_sintegeralways

      Seconds the previous secret keeps signing after a rotation.

    • test_per_minuteintegeralways

      Test deliveries a minute per endpoint.

  • plan_groupsobjectalways

    The plan data group each rule type needs.

    5 fields inside
    • pct_movestringalways

      The group a pct_move rule needs.

    • price_crossstringalways

      The group a price_cross rule needs.

    • signalstringalways

      The group a signal rule needs.

    • trending_enterstringalways

      The group a trending_enter rule needs.

    • wallet_activitystringalways

      The group a wallet_activity rule needs.

  • rule_typesobjectalways

    Per rule type: the event it sends, its params and bounds.

    70 fields inside
    • pct_moveobjectalways

      Price moves by a percentage.

      6 fields inside
      • eventstringalways

        The event type a rule of this kind sends.

      • hintstringalways

        When it fires, in words.

      • percent_boundsarray of numbersalways

        Smallest and largest percent.

      • percent_min_absnumberalways

        Smallest size of a move.

      • requiredarray of stringsalways

        The params a rule of this kind needs.

      • windowsarray of stringsalways

        Windows available now.

    • price_crossobjectalways

      Price crosses a level.

      5 fields inside
      • eventstringalways

        The event type a rule of this kind sends.

      • hintstringalways

        When it fires, in words.

      • optionalarray of stringsalways

        The optional params.

      • price_boundsarray of numbersalways

        Smallest and largest price.

      • requiredarray of stringsalways

        The params a rule of this kind needs.

    • signalobjectalways

      A TTF signal.

      5 fields inside
      • coveragestringalways

        full while TTF signals are coming in; no_source while the signal feed is off. Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

      • eventstringalways

        The event type a rule of this kind sends.

      • hintstringalways

        When it fires, in words.

      • kindsarray of stringsalways

        Signal kinds a rule may name.

      • requiredarray of stringsalways

        The params a rule of this kind needs.

    • trending_enterobjectalways

      A token enters the trending board.

      32 fields inside
      • board_sizeintegeralways

        Places on the trending board.

      • chains_maxintegeralways

        Most chains in chains / per_chain.

      • coverageobjectalways

        Which value each chain has: a filter on a value a chain does not have does not apply there.

        8 fields inside
        • chainsmap of array of stringssalways

          Per chain id, the values it has.

        • filtersmap of objectsalways

          Per filter, its value and group.

          2 fields inside
          • groupstringalways

            Its coverage group.

          • valuestringalways

            The value it reads.

        • groupsmap of objectsalways

          Coverage groups, by name.

          3 fields inside
          • chainsarray of stringsalways

            The chains that have them.

          • notestringalways

            Where the values come from, in words.

          • valuesarray of stringsalways

            Its values.

      • enter_window_sintegeralways

        Seconds after entering the board a token may still pass.

      • eventstringalways

        The event type a rule of this kind sends.

      • filtersmap of objectsalways

        Every filter, by param name.

        7 fields inside
        • groupstringalways

          Its coverage group.

        • kindstringalways

          int, usd, pct, hours, enum, words or flag.

        • labelstringalways

          The value in words.

        • opstringalways

          min, max, eq, words_any, words_none, true, false or pad.

        • valuestringalways

          The event data value it reads.

        • boundsarray of integers

          Smallest and largest value (numbers).

        • choicesarray of strings

          The values it takes (enum).

      • hintstringalways

        When it fires, in words.

      • max_per_hour_boundsarray of integersalways

        Smallest and largest max_per_hour.

      • min_scans_boundsarray of integersalways

        Smallest and largest min_scans.

      • modifiersarray of stringsalways

        Params that change how filters match (whole_words).

      • never_daysintegeralways

        How long repeat: never remembers a token, days.

      • optionalarray of stringsalways

        The optional params (the filters, per_chain, repeat, max_per_hour, unknown).

      • repeatsarray of stringsalways

        repeat values.

      • requiredarray of stringsalways

        The params a rule of this kind needs.

      • unknown_modesarray of stringsalways

        unknown values.

      • word_lenintegeralways

        Longest word.

      • words_maxintegeralways

        Most words in a word list.

    • wallet_activityobjectalways

      A watched wallet makes a transfer.

      17 fields inside
      • all_evmobjectalways

        All EVMs: a wallet rule with chain "evm" watches its wallets on every chain listed here (chains switched on later are added by themselves).

        7 fields inside
        • chain_namesarray of stringsalways

          Their names, in the same order.

        • chainsarray of stringsalways

          The chains an All EVMs rule watches now.

        • coveragestringalways

          full when at least one chain is watched. Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

        • idstringalways

          The chain value of an All EVMs rule: evm.

        • namestringalways

          Its name.

        • native_only_chainsarray of stringsalways

          Of them, the chains where only native coin moves are seen.

        • not_coveredarray of stringsalways

          EVM chains a rule may name that are not watched yet (Solana and other non-EVM chains are never part of All EVMs).

      • coveragestringalways

        full when wallets are watched on at least one chain. Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

      • directionsarray of stringsalways

        Direction values.

      • eventstringalways

        The event type a rule of this kind sends.

      • full_chainsarray of stringsalways

        Chains where wallet rules fire now.

      • hintstringalways

        When it fires, in words.

      • min_usd_maxnumberalways

        Largest min_usd.

      • native_only_chainsarray of stringsalways

        Chains where only native coin moves are watched (no token transfers): rules there have coverage native_only.

      • optionalarray of stringsalways

        The optional params.

      • requiredarray of stringsalways

        The params a rule of this kind needs.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

17 examples

Rule types, fields and bounds

{
  "data": {
    "chains": [
      {
        "id": "eth",
        "name": "Ethereum"
      },
      {
        "id": "sol",
        "name": "Solana"
      }
    ],
    "coverage_notes": {
      "denied": "This address is not watched.",
      "full": "",
      "native_only": "On this chain only native coin moves are watched.",
      "never": "This rule cannot fire.",
      "no_source": "No TTF signals are coming in yet.",
      "not_watched": "This chain is not watched for webhook wallets yet.",
      "partial": "Some addresses are not read at the moment.",
      "pending": "The watcher has not loaded this address yet."
    },
    "event_types": [
      "price",
      "trending",
      "wallet",
      "signal"
    ],
    "limits": {
      "description_max": 120,
      "rotate_overlap_s": 86400,
      "test_per_minute": 5
    },
    "plan_groups": {
      "pct_move": "core",
      "price_cross": "core",
      "signal": "signals",
      "trending_enter": "trending",
      "wallet_activity": "wallet"
    },
    "rule_types": {
      "pct_move": {
        "event": "price",
        "hint": "Fires when the price moved at least percent within the window.",
        "percent_bounds": [
          -99,
          10000
        ],
        "percent_min_abs": 0.1,
        "required": [
          "chain",
          "token",
          "window",
          "percent"
        ],
        "windows": [
          "15m",
          "1h",
          "4h",
          "24h"
        ]
      },
      "price_cross": {
        "event": "price",
        "hint": "Fires once when the price moves past the level.",
        "optional": [
          "fire_if_already_past"
        ],
        "price_bounds": [
          1e-18,
          1000000000000
        ],
        "required": [
          "chain",
          "token",
          "above | below"
        ]
      },
      "signal": {
        "coverage": "full",
        "event": "signal",
        "hint": "Fires on every TTF signal of that kind.",
        "kinds": [
          "breakout",
          "trending",
          "call"
        ],
        "required": [
          "kind"
        ]
      },
      "trending_enter": {
        "board_size": 30,
        "chains_max": 64,
        "coverage": {
          "chains": {
            "eth": [
              "honeypot",
              "liquidity_usd"
            ],
            "sol": [
              "liquidity_usd"
            ]
          },
          "filters": {
            "exclude_honeypot": {
              "group": "simulation",
              "value": "honeypot"
            },
            "min_liquidity_usd": {
              "group": "market",
              "value": "liquidity_usd"
            }
          },
          "groups": {
            "market": {
              "chains": [
                "eth",
                "sol"
              ],
              "note": "Market lookup of the board tokens: every chain it lists.",
              "values": [
                "liquidity_usd"
              ]
            },
            "simulation": {
              "chains": [
                "eth"
              ],
              "note": "The scan's buy / sell simulation: Ethereum-type (EVM) chains only.",
              "values": [
                "honeypot"
              ]
            }
          }
        },
        "enter_window_s": 900,
        "event": "trending",
        "filters": {
          "exclude_honeypot": {
            "group": "simulation",
            "kind": "flag",
            "label": "honeypot check",
            "op": "false",
            "value": "honeypot"
          },
          "min_liquidity_usd": {
            "bounds": [
              0,
              10000000000000
            ],
            "group": "market",
            "kind": "usd",
            "label": "liquidity",
            "op": "min",
            "value": "liquidity_usd"
          }
        },
        "hint": "Fires when a token enters the trending board.",
        "max_per_hour_bounds": [
          1,
          1000
        ],
        "min_scans_bounds": [
          1,
          100000
        ],
        "modifiers": [
          "whole_words"
        ],
        "never_days": 180,
        "optional": [
          "chain",
          "chains",
          "exclude_honeypot",
          "max_per_hour",
          "min_liquidity_usd",
          "per_chain",
          "repeat",
          "unknown"
        ],
        "repeats": [
          "1h",
          "6h",
          "24h",
          "never"
        ],
        "required": [
          "chain (or all)",
          "min_scans"
        ],
        "unknown_modes": [
          "skip",
          "mark"
        ],
        "word_len": 32,
        "words_max": 50
      },
      "wallet_activity": {
        "all_evm": {
          "chain_names": [
            "Base",
            "BSC",
            "Ethereum"
          ],
          "chains": [
            "base",
            "bsc",
            "eth"
          ],
          "coverage": "full",
          "id": "evm",
          "name": "All EVMs",
          "native_only_chains": [],
          "not_covered": [
            "arb"
          ]
        },
        "coverage": "full",
        "directions": [
          "out",
          "in",
          "any"
        ],
        "event": "wallet",
        "full_chains": [
          "base",
          "bsc",
          "eth"
        ],
        "hint": "Fires on a transfer of the wallet.",
        "min_usd_max": 1000000000000,
        "native_only_chains": [],
        "optional": [
          "min_usd",
          "direction"
        ],
        "required": [
          "chain",
          "address"
        ]
      }
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Webhook usage and limits

GET/v1/webhooks/usage
Cost FreePlan FreeKey requiredKey needs webhooks: read

How much room is left: endpoints, rules, watched wallets and deliveries of this month against what your plan allows.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

Endpoints, 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.

Parameters

No parameters: just send it.

What you get back

A 200 answer is {"data", "meta"} (HookUsageAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • deliveriesobjectalways

    Deliveries of the running subscription month.

    4 fields inside
    • limitintegeralways

      Allowed.

    • over_quotabooleanalways

      true = used up: rules do not fire until the reset or an upgrade.

    • resetsintegeralways

      When the count starts again. Unix time in SECONDS.

    • usedintegeralways

      Sent.

  • endpointsobjectalways

    Endpoints.

    3 fields inside
    • limitintegeralways

      Allowed.

    • over_limitintegeralways

      Above the plan (paused).

    • usedintegeralways

      In use.

  • partialarray of stringsalways

    Parts that could not be read just now (empty when everything was).

  • planobjectalways

    Your plan.

    4 fields inside
    • groupsarray of stringsalways

      Data groups of the plan.

    • plan_idstringalways

      Plan id.

    • plan_namestringalways

      Plan name.

    • statestringalways

      ok, or why paid terms do not apply (expired = the Free terms).

  • rulesobjectalways

    Rules.

    4 fields inside
    • activeintegeralways

      Switched on and inside the plan.

    • limitintegeralways

      Allowed.

    • over_limitintegeralways

      Above the plan (paused).

    • usedintegeralways

      In use.

  • watchobjectalways

    Watched wallet addresses.

    2 fields inside
    • limitintegeralways

      Allowed.

    • usedintegeralways

      In use.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

18 examples

Webhook usage and limits

{
  "data": {
    "deliveries": {
      "limit": 250000,
      "over_quota": false,
      "resets": 1796000000,
      "used": 1840
    },
    "endpoints": {
      "limit": 10,
      "over_limit": 0,
      "used": 2
    },
    "partial": [],
    "plan": {
      "groups": [
        "core",
        "security",
        "signals",
        "wallet"
      ],
      "plan_id": "pro",
      "plan_name": "Pro",
      "state": "ok"
    },
    "rules": {
      "active": 6,
      "limit": 100,
      "over_limit": 0,
      "used": 7
    },
    "watch": {
      "limit": 2500,
      "used": 12
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden account_suspendedThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

List endpoints

GET/v1/webhooks/endpoints
Cost FreePlan FreeKey requiredKey needs webhooks: read

All the places TTF delivers to for your account, with their state, so your tool can show or repair them.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

Every 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.

Parameters

No parameters: just send it.

What you get back

A 200 answer is {"data", "meta"} (HookEndpointListAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • endpointsarray of objectsalways

    The endpoints.

    11 fields inside
    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • descriptionstringalways

      Your note (empty text when none).

    • enabledbooleanalways

      true = switched on.

    • event_typesarray of stringsalways

      The event types it receives. One of: price, trending, wallet, signal.

    • idstringalways

      Endpoint id (whe_ + 24 hex).

    • over_limitbooleanalways

      true = above the number of endpoints of your plan, so it gets nothing.

    • secret_versionintegeralways

      How many signing secrets this endpoint has had (1 = never rotated).

    • statusstringalways

      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. Known values: active, paused, failing, disabled, paused_over_limit (more may come: handle unknown ones).

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • urlstringalways

      Where deliveries are POSTed.

    • previous_secret_untilinteger

      After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

  • max_endpointsintegeralways

    How many endpoints your plan allows.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

18 examples

List your endpoints

{
  "data": {
    "endpoints": [
      {
        "created": 1795000000,
        "description": "Trading bot",
        "enabled": true,
        "event_types": [
          "price",
          "trending",
          "wallet",
          "signal"
        ],
        "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
        "over_limit": false,
        "secret_version": 1,
        "status": "active",
        "updated": 1795000000,
        "url": "https://bot.example.com/ttf"
      }
    ],
    "max_endpoints": 10
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden account_suspendedThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Create an endpoint

POST/v1/webhooks/endpoints
Cost FreePlan FreeKey requiredKey needs webhooks: write

Register the https URL TTF should POST to. Do it from your own deploy script and store the signing secret it returns.

A refused or failed call costs nothing.

  • Store data.secret at once: no other call returns it. Then check the signature of every delivery.
Exact rules

The 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.

Body

A JSON object, sent as Content-Type: application/json. Unknown fields are refused.

  • urlstringrequired

    Public https URL (port 443 or 8443, a host name that resolves, no user name or password).

  • descriptionstring

    A note, up to 120 characters.

  • enabledboolean

    false = create it paused (default true).

  • event_typesarray of strings

    Event types to receive (default: all). One of: price, trending, wallet, signal.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

An endpoint for price and wallet alerts.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "Trading bot",
  "event_types": [
    "price",
    "wallet"
  ],
  "url": "https://bot.example.com/ttf"
}'

Every event type: only the URL.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://bot.example.com/ttf"
}'

What you get back

A 201 answer is {"data", "meta"} (HookEndpointCreatedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • endpointobjectalways

    A webhook endpoint: where deliveries go. Its signing secret is never part of it.

    11 fields inside
    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • descriptionstringalways

      Your note (empty text when none).

    • enabledbooleanalways

      true = switched on.

    • event_typesarray of stringsalways

      The event types it receives. One of: price, trending, wallet, signal.

    • idstringalways

      Endpoint id (whe_ + 24 hex).

    • over_limitbooleanalways

      true = above the number of endpoints of your plan, so it gets nothing.

    • secret_versionintegeralways

      How many signing secrets this endpoint has had (1 = never rotated).

    • statusstringalways

      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. Known values: active, paused, failing, disabled, paused_over_limit (more may come: handle unknown ones).

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • urlstringalways

      Where deliveries are POSTed.

    • previous_secret_untilinteger

      After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

  • noticestringalways

    What to do with the secret, in words.

  • secretstringalways

    The signing secret (whsec_...). It is in this answer ONLY: store it now.

27 examples

Create an endpoint

{
  "data": {
    "endpoint": {
      "created": 1795000000,
      "description": "Trading bot",
      "enabled": true,
      "event_types": [
        "price",
        "trending",
        "wallet",
        "signal"
      ],
      "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "over_limit": false,
      "secret_version": 1,
      "status": "active",
      "updated": 1795000000,
      "url": "https://bot.example.com/ttf"
    },
    "notice": "Copy this signing secret now: it is shown only once. Verify each delivery with it (HMAC-SHA256 of \"<timestamp>.<body>\").",
    "secret": "whsec_EXAMPLE"
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object of valid text.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Send a JSON object.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

quota_exceeded: Plan limit reached

{
  "error": {
    "code": "quota_exceeded",
    "doc_url": "https://ttf.bot/docs/errors/#quota_exceeded",
    "limit": 3,
    "message": "Your plan allows 3 webhook endpoint(s). Delete one first or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

request_timeout: Body not received

{
  "error": {
    "code": "request_timeout",
    "doc_url": "https://ttf.bot/docs/errors/#request_timeout",
    "message": "The request body did not arrive in time. Send it again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

duplicate_url: URL already used

{
  "error": {
    "code": "duplicate_url",
    "doc_url": "https://ttf.bot/docs/errors/#duplicate_url",
    "message": "This account already has an endpoint with that URL.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

too_large: Body too large

{
  "error": {
    "code": "too_large",
    "doc_url": "https://ttf.bot/docs/errors/#too_large",
    "message": "Request body too large.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unsupported_media_type: Send JSON

{
  "error": {
    "code": "unsupported_media_type",
    "doc_url": "https://ttf.bot/docs/errors/#unsupported_media_type",
    "message": "Send the body with Content-Type: application/json.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

url_not_allowed: Webhook URL refused

{
  "error": {
    "code": "url_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#url_not_allowed",
    "message": "URL must start with https://",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_configured: Webhooks not set up

{
  "error": {
    "code": "not_configured",
    "doc_url": "https://ttf.bot/docs/errors/#not_configured",
    "message": "Webhooks are not set up on this server yet. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden quota_exceeded account_suspendedThe 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.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
408request_timeoutThe request body did not arrive in time. Nothing changed. Codes: request_timeout.
409duplicate_urlThe change conflicts with the current state. Nothing changed. Codes: duplicate_url.
413too_largeThe body is too large. Codes: too_large.
415unsupported_media_typeThe body is not declared as JSON. Codes: unsupported_media_type.
422url_not_allowedThe URL or the rule was refused. Nothing changed. Codes: url_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailable not_configuredThe service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Get one endpoint

GET/v1/webhooks/endpoints/{endpoint_id}
Cost FreePlan FreeKey requiredKey needs webhooks: read

Look at one endpoint: its URL, the event types it receives and whether it is receiving.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

One 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.

Parameters

Path parameters

stringrequired

Endpoint id (data.endpoint.id).

What you get back

A 200 answer is {"data", "meta"} (HookEndpointAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • endpointobjectalways

    A webhook endpoint: where deliveries go. Its signing secret is never part of it.

    11 fields inside
    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • descriptionstringalways

      Your note (empty text when none).

    • enabledbooleanalways

      true = switched on.

    • event_typesarray of stringsalways

      The event types it receives. One of: price, trending, wallet, signal.

    • idstringalways

      Endpoint id (whe_ + 24 hex).

    • over_limitbooleanalways

      true = above the number of endpoints of your plan, so it gets nothing.

    • secret_versionintegeralways

      How many signing secrets this endpoint has had (1 = never rotated).

    • statusstringalways

      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. Known values: active, paused, failing, disabled, paused_over_limit (more may come: handle unknown ones).

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • urlstringalways

      Where deliveries are POSTed.

    • previous_secret_untilinteger

      After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

18 examples

Get an endpoint

{
  "data": {
    "endpoint": {
      "created": 1795000000,
      "description": "Trading bot",
      "enabled": true,
      "event_types": [
        "price",
        "trending",
        "wallet",
        "signal"
      ],
      "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "over_limit": false,
      "secret_version": 1,
      "status": "active",
      "updated": 1795000000,
      "url": "https://bot.example.com/ttf"
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Update an endpoint

PATCH/v1/webhooks/endpoints/{endpoint_id}
Cost FreePlan FreeKey requiredKey needs webhooks: write

Change where deliveries go, which events they carry, or pause and resume an endpoint without losing its rules.

A refused or failed call costs nothing.

  • Send only the fields you want to change.
Exact rules

Send 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.

Path parameters

NameTypeMeaning
endpoint_idstringrequired Endpoint id (data.endpoint.id).

Body

A JSON object, sent as Content-Type: application/json. Unknown fields are refused.

  • descriptionstring

    A note, up to 120 characters.

  • enabledboolean

    false = pause, true = resume.

  • event_typesarray of strings

    Event types to receive. One of: price, trending, wallet, signal.

  • urlstring

    Public https URL (port 443 or 8443, a host name that resolves, no user name or password).

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

Pause the endpoint.

curl -sS -X PATCH 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "enabled": false
}'

Move it to another URL.

curl -sS -X PATCH 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://bot.example.com/ttf-v2"
}'

What you get back

A 200 answer is {"data", "meta"} (HookEndpointUpdatedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • endpointobjectalways

    A webhook endpoint: where deliveries go. Its signing secret is never part of it.

    11 fields inside
    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • descriptionstringalways

      Your note (empty text when none).

    • enabledbooleanalways

      true = switched on.

    • event_typesarray of stringsalways

      The event types it receives. One of: price, trending, wallet, signal.

    • idstringalways

      Endpoint id (whe_ + 24 hex).

    • over_limitbooleanalways

      true = above the number of endpoints of your plan, so it gets nothing.

    • secret_versionintegeralways

      How many signing secrets this endpoint has had (1 = never rotated).

    • statusstringalways

      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. Known values: active, paused, failing, disabled, paused_over_limit (more may come: handle unknown ones).

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • urlstringalways

      Where deliveries are POSTed.

    • previous_secret_untilinteger

      After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

29 examples

Update an endpoint

{
  "data": {
    "endpoint": {
      "created": 1795000000,
      "description": "Trading bot",
      "enabled": false,
      "event_types": [
        "price",
        "trending",
        "wallet",
        "signal"
      ],
      "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "over_limit": false,
      "secret_version": 1,
      "status": "paused",
      "updated": 1795000000,
      "url": "https://bot.example.com/ttf"
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object of valid text.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Send a JSON object.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

request_timeout: Body not received

{
  "error": {
    "code": "request_timeout",
    "doc_url": "https://ttf.bot/docs/errors/#request_timeout",
    "message": "The request body did not arrive in time. Send it again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

duplicate_url: URL already used

{
  "error": {
    "code": "duplicate_url",
    "doc_url": "https://ttf.bot/docs/errors/#duplicate_url",
    "message": "This account already has an endpoint with that URL.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

types_in_use: Event types in use

{
  "error": {
    "code": "types_in_use",
    "doc_url": "https://ttf.bot/docs/errors/#types_in_use",
    "message": "Rules of this endpoint use price events: delete those rules first.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

too_large: Body too large

{
  "error": {
    "code": "too_large",
    "doc_url": "https://ttf.bot/docs/errors/#too_large",
    "message": "Request body too large.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unsupported_media_type: Send JSON

{
  "error": {
    "code": "unsupported_media_type",
    "doc_url": "https://ttf.bot/docs/errors/#unsupported_media_type",
    "message": "Send the body with Content-Type: application/json.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

url_not_allowed: Webhook URL refused

{
  "error": {
    "code": "url_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#url_not_allowed",
    "message": "URL must start with https://",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "Another change of your wallet rules is in progress. Try again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_configured: Webhooks not set up

{
  "error": {
    "code": "not_configured",
    "doc_url": "https://ttf.bot/docs/errors/#not_configured",
    "message": "Webhooks are not set up on this server yet. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden account_suspendedThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
408request_timeoutThe request body did not arrive in time. Nothing changed. Codes: request_timeout.
409duplicate_url types_in_useThe change conflicts with the current state. Nothing changed. Codes: duplicate_url, types_in_use.
413too_largeThe body is too large. Codes: too_large.
415unsupported_media_typeThe body is not declared as JSON. Codes: unsupported_media_type.
422url_not_allowedThe URL or the rule was refused. Nothing changed. Codes: url_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503busy unavailable not_configuredThe service cannot answer right now. See Retry-After. Codes: busy, unavailable, not_configured.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Delete an endpoint

DELETE/v1/webhooks/endpoints/{endpoint_id}
Cost FreePlan FreeKey requiredKey needs webhooks: write

Remove an endpoint you no longer need, together with everything attached to it.

A refused or failed call costs nothing.

  • Only want it quiet for a while? Update it with "enabled": false instead.
Exact rules

Removes 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.

Path parameters

NameTypeMeaning
endpoint_idstringrequired Endpoint id (data.endpoint.id).

Body

This call takes no body.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

curl -sS -X DELETE 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a' \
  -H 'Authorization: Bearer YOUR_KEY'

What you get back

A 200 answer is {"data", "meta"} (HookEndpointDeletedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • deletedbooleanalways

    true.

  • deliveries_deletedintegeralways

    Delivery log rows deleted with it.

  • idstringalways

    The deleted endpoint.

  • rules_deletedintegeralways

    Rules of the endpoint deleted with it.

18 examples

Delete an endpoint

{
  "data": {
    "deleted": true,
    "deliveries_deleted": 128,
    "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
    "rules_deleted": 3
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Rotate the signing secret

POST/v1/webhooks/endpoints/{endpoint_id}/rotate
Cost FreePlan FreeKey requiredKey needs webhooks: write

Replace the signing secret, for example after it showed up in a log. Your receiver can accept both for a day.

A refused or failed call costs nothing.

  • For 24 hours every delivery carries two signatures. Switch your receiver to the new secret in that time.
Exact rules

Takes 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.

Path parameters

NameTypeMeaning
endpoint_idstringrequired Endpoint id (data.endpoint.id).

Body

This call takes no body.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/rotate' \
  -H 'Authorization: Bearer YOUR_KEY'

What you get back

A 200 answer is {"data", "meta"} (HookSecretRotatedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • endpointobjectalways

    A webhook endpoint: where deliveries go. Its signing secret is never part of it.

    11 fields inside
    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • descriptionstringalways

      Your note (empty text when none).

    • enabledbooleanalways

      true = switched on.

    • event_typesarray of stringsalways

      The event types it receives. One of: price, trending, wallet, signal.

    • idstringalways

      Endpoint id (whe_ + 24 hex).

    • over_limitbooleanalways

      true = above the number of endpoints of your plan, so it gets nothing.

    • secret_versionintegeralways

      How many signing secrets this endpoint has had (1 = never rotated).

    • statusstringalways

      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. Known values: active, paused, failing, disabled, paused_over_limit (more may come: handle unknown ones).

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • urlstringalways

      Where deliveries are POSTed.

    • previous_secret_untilinteger

      After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

  • noticestringalways

    What to do with the secret, in words.

  • secretstringalways

    The signing secret (whsec_...). It is in this answer ONLY: store it now.

21 examples

Rotate the signing secret

{
  "data": {
    "endpoint": {
      "created": 1795000000,
      "description": "Trading bot",
      "enabled": true,
      "event_types": [
        "price",
        "trending",
        "wallet",
        "signal"
      ],
      "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "over_limit": false,
      "previous_secret_until": 1795086400,
      "secret_version": 2,
      "status": "active",
      "updated": 1795000000,
      "url": "https://bot.example.com/ttf"
    },
    "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).",
    "secret": "whsec_EXAMPLE"
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

conflict: Changed meanwhile

{
  "error": {
    "code": "conflict",
    "doc_url": "https://ttf.bot/docs/errors/#conflict",
    "message": "The secret was changed meanwhile. Reload and try again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_configured: Webhooks not set up

{
  "error": {
    "code": "not_configured",
    "doc_url": "https://ttf.bot/docs/errors/#not_configured",
    "message": "Webhooks are not set up on this server yet. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden account_suspendedThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
409conflictThe change conflicts with the current state. Nothing changed. Codes: conflict.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailable not_configuredThe service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Send a test delivery

POST/v1/webhooks/endpoints/{endpoint_id}/test
Cost FreePlan FreeKey requiredKey needs webhooks: write

Check your receiver end to end: a signed test delivery goes through the same path as a real alert.

A refused or failed call costs nothing.

  • Then ask the delivery log with event_id to see what your server answered.
Exact rules

Takes 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.

Path parameters

NameTypeMeaning
endpoint_idstringrequired Endpoint id (data.endpoint.id).

Body

This call takes no body.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/test' \
  -H 'Authorization: Bearer YOUR_KEY'

What you get back

A 202 answer is {"data", "meta"} (HookTestAnswer). always = in every answer; any other field is left out when there is no value.

data

  • event_idstringalways

    The event id of the test: look it up with ?event_id= in the delivery log.

  • queuedbooleanalways

    true.

23 examples

Send a test delivery

{
  "data": {
    "event_id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PE",
    "queued": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

quota_exceeded: Plan limit reached

{
  "error": {
    "code": "quota_exceeded",
    "doc_url": "https://ttf.bot/docs/errors/#quota_exceeded",
    "limit": 3,
    "message": "This month's delivery quota is used up: test deliveries work again when the next period starts or after an upgrade.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

endpoint_paused: Endpoint paused

{
  "error": {
    "code": "endpoint_paused",
    "doc_url": "https://ttf.bot/docs/errors/#endpoint_paused",
    "message": "Resume the endpoint first: a paused or disabled endpoint gets nothing.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

over_limit: Endpoint over the plan limit

{
  "error": {
    "code": "over_limit",
    "doc_url": "https://ttf.bot/docs/errors/#over_limit",
    "message": "This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_configured: Webhooks not set up

{
  "error": {
    "code": "not_configured",
    "doc_url": "https://ttf.bot/docs/errors/#not_configured",
    "message": "Webhooks are not set up on this server yet. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden quota_exceeded account_suspendedThe 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.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
409endpoint_paused over_limitThe change conflicts with the current state. Nothing changed. Codes: endpoint_paused, over_limit.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailable not_configuredThe service cannot answer right now. See Retry-After. Codes: unavailable, not_configured.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Delivery log

GET/v1/webhooks/endpoints/{endpoint_id}/deliveries
Cost FreePlan FreeKey requiredKey needs webhooks: read

Debug a receiver: what was sent, how many tries it took and what your server answered.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

What 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.

Parameters

Path parameters

stringrequired

Endpoint id (data.endpoint.id).

Query parameters

string

data.next_cursor of the previous page. Omit for the newest page.

integerdefault 25 · 1 to 100

Rows per page, 1-100. Default 25.

string

Only the rows of this event (the event_id of a test).

What you get back

A 200 answer is {"data", "meta"} (HookDeliveryListAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • deliveriesarray of objectsalways

    The rows.

    13 fields inside
    • attemptsintegeralways

      Attempts made.

    • event_idstringalways

      The event it delivered.

    • idstringalways

      Delivery id (= the X-TTF-Delivery header).

    • kindstringalways

      The rule type, or ping. Known values: price_cross, pct_move, trending_enter, wallet_activity, signal, ping (more may come: handle unknown ones).

    • response_snippetstringalways

      The first 1 KB of your receiver's answer (empty text when none).

    • rule_idstringalways

      The rule that fired (empty text for a test ping).

    • snippet_truncatedbooleanalways

      true = the answer was longer.

    • statusstringalways

      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. Known values: pending, delivered, retrying, dead, delayed_expired, lost (more may come: handle unknown ones).

    • tsintegeralways

      When the rule fired. Unix time in SECONDS.

    • errorstring

      A short reason code of the last failure.

    • latency_msinteger

      How long your receiver took, in milliseconds.

    • next_attemptinteger

      When the next attempt is due, while one is. Unix time in SECONDS.

    • response_statusinteger

      The HTTP status your receiver answered, when it answered.

  • next_cursorstring

    Pass as ?cursor= for the older page. Absent on the last page.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

20 examples

Delivery log of an endpoint

{
  "data": {
    "deliveries": [
      {
        "attempts": 1,
        "event_id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PE",
        "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
        "kind": "price_cross",
        "latency_ms": 84,
        "response_snippet": "ok",
        "response_status": 200,
        "rule_id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
        "snippet_truncated": false,
        "status": "delivered",
        "ts": 1795000000
      }
    ],
    "next_cursor": "01JDR4Q7Z2N8M5K3X9V6B4C2HA"
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "limit: 1..100.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: cursor: the next_cursor of the previous page.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "cursor: the next_cursor of the previous page.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

List rules

GET/v1/webhooks/rules
Cost FreePlan FreeKey requiredKey needs webhooks: read

Everything that can fire for your account, with the reason when a rule is not firing.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

Every 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.

Parameters

Query parameters

string

Only the rules of this endpoint.

What you get back

A 200 answer is {"data", "meta"} (HookRuleListAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • max_rulesintegeralways

    How many rules your plan allows.

  • max_watch_addressesintegeralways

    How many wallet addresses your plan may watch at once.

  • rulesarray of objectsalways

    The rules.

    90 fields inside
    • activebooleanalways

      true = it can fire now.

    • coveragestringalways

      What the sources deliver for this rule (coverage_note says it in words). Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

    • coverage_notestringalways

      The coverage in words (empty text when full).

    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • enabledbooleanalways

      Your switch.

    • endpoint_idstringalways

      The endpoint it delivers to.

    • idstringalways

      Rule id (whr_ + 24 hex).

    • namestringalways

      Your name for it (empty text when none).

    • over_limitbooleanalways

      true = above your plan, so it does not fire.

    • paramsobjectalways

      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).

      75 fields inside
      • abovenumber

        price_cross: fire when the price rises to this many US dollars (give above or below).

      • belownumber

        price_cross: fire when the price falls to this many US dollars.

      • chainstring

        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).

      • chainsarray of strings

        trending_enter: a list of chains (instead of chain).

      • directionstring

        wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

      • exclude_honeypotboolean

        trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

      • fire_if_already_pastboolean

        price_cross: fire at once when the price is already past the level.

      • kindstring

        signal: the signal kind. One of: breakout, trending, call, cmd.

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        trending_enter: at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        trending_enter: at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        trending_enter: at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        trending_enter: at most this market cap in US dollars (0 to 1e+13).

      • max_per_hourinteger

        trending_enter: at most this many alerts in any 60 minutes.

      • max_price_change_1h_pctnumber

        trending_enter: at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        trending_enter: at most this place (1 to 30).

      • max_sell_tax_pctnumber

        trending_enter: at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        trending_enter: at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        trending_enter: at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        trending_enter: at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        trending_enter: at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        trending_enter: at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        trending_enter: at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        trending_enter: at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        trending_enter: at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        trending_enter: scans a token needs on the board.

      • min_usdnumber

        wallet_activity: smallest transfer in US dollars (0 = every transfer).

      • min_volume_24h_usdnumber

        trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        trending_enter: pair coin. One of: native, stable.

      • per_chainmap of objects

        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.

        30 fields inside
        • exclude_honeypotboolean

          true = only tokens that pass the honeypot check check (not a honeypot).

        • launchpadstring

          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). One of: only, none.

        • max_age_hoursnumber

          at most this age in hours (0 to 87600).

        • max_buy_tax_pctnumber

          at most this buy tax in percent (0 to 100).

        • max_liquidity_usdnumber

          at most this liquidity in US dollars (0 to 1e+13).

        • max_market_cap_usdnumber

          at most this market cap in US dollars (0 to 1e+13).

        • max_price_change_1h_pctnumber

          at most this 1 h change in percent (-100 to 1e+06).

        • max_rankinteger

          at most this place (1 to 30).

        • max_sell_tax_pctnumber

          at most this sell tax in percent (0 to 100).

        • max_top10_pctnumber

          at most this top 10 share in percent (0 to 100).

        • min_age_hoursnumber

          at least this age in hours (0 to 87600).

        • min_buys_1hinteger

          at least this 1 h buys (0 to 1e+09).

        • min_holdersinteger

          at least this holders (0 to 1e+09).

        • min_liquidity_usdnumber

          at least this liquidity in US dollars (0 to 1e+13).

        • min_locked_pctnumber

          at least this locked or burned liquidity in percent (0 to 100).

        • min_market_cap_usdnumber

          at least this market cap in US dollars (0 to 1e+13).

        • min_price_change_1h_pctnumber

          at least this 1 h change in percent (-100 to 1e+06).

        • min_scansinteger

          scans a token needs on the board.

        • min_volume_24h_usdnumber

          at least this 24 h volume in US dollars (0 to 1e+13).

        • name_excludearray of strings

          words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

        • name_includearray of strings

          words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

        • pair_withstring

          pair coin. One of: native, stable.

        • require_freeze_disabledboolean

          true = only tokens that pass the freeze authority check (required).

        • require_mint_disabledboolean

          true = only tokens that pass the mint authority check (required).

        • require_renouncedboolean

          true = only tokens that pass the ownership check (required).

        • require_telegramboolean

          true = only tokens that pass the Telegram group check (required).

        • require_verified_sourceboolean

          true = only tokens that pass the source code check (required).

        • require_websiteboolean

          true = only tokens that pass the website check (required).

        • require_xboolean

          true = only tokens that pass the X account check (required).

        • whole_wordsboolean

          true = the words match whole words only.

      • percentnumber

        pct_move: the move in percent (negative = a drop).

      • repeatstring

        trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

      • require_freeze_disabledboolean

        trending_enter: true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        trending_enter: true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        trending_enter: true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        trending_enter: true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        trending_enter: true = only tokens that pass the source code check (required).

      • require_websiteboolean

        trending_enter: true = only tokens that pass the website check (required).

      • require_xboolean

        trending_enter: true = only tokens that pass the X account check (required).

      • tokenstring

        Token address (price_cross, pct_move).

      • unknownstring

        trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

      • whole_wordsboolean

        trending_enter: true = the words match whole words only.

      • windowstring

        pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

    • statusstringalways

      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. Known values: active, inactive, disabled, endpoint_paused, paused_plan, paused_over_limit, invalid, inactive_denied, over_quota (more may come: handle unknown ones).

    • typestringalways

      The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

    • address_countinteger

      wallet_activity: how many wallets the rule watches. Absent for other rules.

    • label_countinteger

      wallet_activity: how many of them have a label. Absent for other rules.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

19 examples

List your rules

{
  "data": {
    "max_rules": 100,
    "max_watch_addresses": 2500,
    "rules": [
      {
        "active": true,
        "coverage": "full",
        "coverage_note": "",
        "created": 1795000000,
        "enabled": true,
        "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
        "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
        "name": "PEPE breakout",
        "over_limit": false,
        "params": {
          "above": 1e-05,
          "chain": "eth",
          "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
        },
        "status": "active",
        "type": "price_cross",
        "updated": 1795000000
      },
      {
        "active": true,
        "address_count": 25,
        "coverage": "full",
        "coverage_note": "",
        "created": 1795000000,
        "enabled": true,
        "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
        "id": "whr_0c4e8a2f6b1d9e3a5f7c2b41",
        "label_count": 3,
        "name": "Whales",
        "over_limit": false,
        "params": {
          "chain": "eth",
          "direction": "any",
          "min_usd": 1000
        },
        "status": "active",
        "type": "wallet_activity",
        "updated": 1795000000
      }
    ]
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden account_suspendedThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Create a rule

POST/v1/webhooks/rules
Cost FreePlan FreeKey requiredKey needs webhooks: write

Ask TTF to tell you when a price crosses a level, a wallet moves, a token starts trending or a signal appears.

A refused or failed call costs nothing.

  • Which settings go into params depends on type: Rule types lists them with their limits.
  • No answer (a timeout)? List your rules before you try again, or you may create it twice.
Exact rules

There 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.

Body

A JSON object, sent as Content-Type: application/json. Unknown fields are refused.

  • endpoint_idstringrequired

    The endpoint it delivers to.

  • paramsobjectrequired

    The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

    77 fields inside
    • abovenumber

      price_cross: fire when the price rises to this many US dollars (give above or below).

    • addressstring

      wallet_activity: the wallet to watch (give address or addresses).

    • addressesarray of strings

      wallet_activity: a watchlist of up to 1000 wallets.

    • belownumber

      price_cross: fire when the price falls to this many US dollars.

    • chainstring

      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).

    • chainsarray of strings

      trending_enter: a list of chains (instead of chain).

    • directionstring

      wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

    • exclude_honeypotboolean

      trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

    • fire_if_already_pastboolean

      price_cross: fire at once when the price is already past the level.

    • kindstring

      signal: the signal kind. One of: breakout, trending, call, cmd.

    • launchpadstring

      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). One of: only, none.

    • max_age_hoursnumber

      trending_enter: at most this age in hours (0 to 87600).

    • max_buy_tax_pctnumber

      trending_enter: at most this buy tax in percent (0 to 100).

    • max_liquidity_usdnumber

      trending_enter: at most this liquidity in US dollars (0 to 1e+13).

    • max_market_cap_usdnumber

      trending_enter: at most this market cap in US dollars (0 to 1e+13).

    • max_per_hourinteger

      trending_enter: at most this many alerts in any 60 minutes.

    • max_price_change_1h_pctnumber

      trending_enter: at most this 1 h change in percent (-100 to 1e+06).

    • max_rankinteger

      trending_enter: at most this place (1 to 30).

    • max_sell_tax_pctnumber

      trending_enter: at most this sell tax in percent (0 to 100).

    • max_top10_pctnumber

      trending_enter: at most this top 10 share in percent (0 to 100).

    • min_age_hoursnumber

      trending_enter: at least this age in hours (0 to 87600).

    • min_buys_1hinteger

      trending_enter: at least this 1 h buys (0 to 1e+09).

    • min_holdersinteger

      trending_enter: at least this holders (0 to 1e+09).

    • min_liquidity_usdnumber

      trending_enter: at least this liquidity in US dollars (0 to 1e+13).

    • min_locked_pctnumber

      trending_enter: at least this locked or burned liquidity in percent (0 to 100).

    • min_market_cap_usdnumber

      trending_enter: at least this market cap in US dollars (0 to 1e+13).

    • min_price_change_1h_pctnumber

      trending_enter: at least this 1 h change in percent (-100 to 1e+06).

    • min_scansinteger

      trending_enter: scans a token needs on the board.

    • min_usdnumber

      wallet_activity: smallest transfer in US dollars (0 = every transfer).

    • min_volume_24h_usdnumber

      trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

    • name_excludearray of strings

      trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

    • name_includearray of strings

      trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

    • pair_withstring

      trending_enter: pair coin. One of: native, stable.

    • per_chainmap of objects

      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.

      30 fields inside
      • exclude_honeypotboolean

        true = only tokens that pass the honeypot check check (not a honeypot).

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        at most this market cap in US dollars (0 to 1e+13).

      • max_price_change_1h_pctnumber

        at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        at most this place (1 to 30).

      • max_sell_tax_pctnumber

        at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        scans a token needs on the board.

      • min_volume_24h_usdnumber

        at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        pair coin. One of: native, stable.

      • require_freeze_disabledboolean

        true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        true = only tokens that pass the source code check (required).

      • require_websiteboolean

        true = only tokens that pass the website check (required).

      • require_xboolean

        true = only tokens that pass the X account check (required).

      • whole_wordsboolean

        true = the words match whole words only.

    • percentnumber

      pct_move: the move in percent (negative = a drop).

    • repeatstring

      trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

    • require_freeze_disabledboolean

      trending_enter: true = only tokens that pass the freeze authority check (required).

    • require_mint_disabledboolean

      trending_enter: true = only tokens that pass the mint authority check (required).

    • require_renouncedboolean

      trending_enter: true = only tokens that pass the ownership check (required).

    • require_telegramboolean

      trending_enter: true = only tokens that pass the Telegram group check (required).

    • require_verified_sourceboolean

      trending_enter: true = only tokens that pass the source code check (required).

    • require_websiteboolean

      trending_enter: true = only tokens that pass the website check (required).

    • require_xboolean

      trending_enter: true = only tokens that pass the X account check (required).

    • tokenstring

      Token address (price_cross, pct_move).

    • unknownstring

      trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

    • whole_wordsboolean

      trending_enter: true = the words match whole words only.

    • windowstring

      pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

  • typestringrequired

    The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

  • enabledboolean

    false = create it switched off (default true).

  • labelsmap of strings

    Wallet labels: address -> text (wallet rules only).

  • namestring

    A name, up to 60 characters.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

A price alert.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/rules' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
  "name": "PEPE breakout",
  "params": {
    "above": 1e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  },
  "type": "price_cross"
}'

A watchlist of wallets with labels.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/rules' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
  "labels": {
    "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a": "Whale"
  },
  "params": {
    "addresses": [
      "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a"
    ],
    "chain": "eth",
    "direction": "any",
    "min_usd": 1000
  },
  "type": "wallet_activity"
}'

What you get back

A 201 answer is {"data", "meta"} (HookRuleCreatedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • ruleobjectalways

    A webhook rule: when it matches, its event is sent to its endpoint.

    91 fields inside
    • activebooleanalways

      true = it can fire now.

    • coveragestringalways

      What the sources deliver for this rule (coverage_note says it in words). Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

    • coverage_notestringalways

      The coverage in words (empty text when full).

    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • enabledbooleanalways

      Your switch.

    • endpoint_idstringalways

      The endpoint it delivers to.

    • idstringalways

      Rule id (whr_ + 24 hex).

    • labelsmap of stringsalways

      Your wallet labels: address -> text (empty when none).

    • namestringalways

      Your name for it (empty text when none).

    • over_limitbooleanalways

      true = above your plan, so it does not fire.

    • paramsobjectalways

      The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

      77 fields inside
      • abovenumber

        price_cross: fire when the price rises to this many US dollars (give above or below).

      • addressstring

        wallet_activity: the wallet to watch (give address or addresses).

      • addressesarray of strings

        wallet_activity: a watchlist of up to 1000 wallets.

      • belownumber

        price_cross: fire when the price falls to this many US dollars.

      • chainstring

        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).

      • chainsarray of strings

        trending_enter: a list of chains (instead of chain).

      • directionstring

        wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

      • exclude_honeypotboolean

        trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

      • fire_if_already_pastboolean

        price_cross: fire at once when the price is already past the level.

      • kindstring

        signal: the signal kind. One of: breakout, trending, call, cmd.

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        trending_enter: at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        trending_enter: at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        trending_enter: at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        trending_enter: at most this market cap in US dollars (0 to 1e+13).

      • max_per_hourinteger

        trending_enter: at most this many alerts in any 60 minutes.

      • max_price_change_1h_pctnumber

        trending_enter: at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        trending_enter: at most this place (1 to 30).

      • max_sell_tax_pctnumber

        trending_enter: at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        trending_enter: at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        trending_enter: at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        trending_enter: at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        trending_enter: at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        trending_enter: at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        trending_enter: at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        trending_enter: at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        trending_enter: at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        trending_enter: scans a token needs on the board.

      • min_usdnumber

        wallet_activity: smallest transfer in US dollars (0 = every transfer).

      • min_volume_24h_usdnumber

        trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        trending_enter: pair coin. One of: native, stable.

      • per_chainmap of objects

        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.

        30 fields inside
        • exclude_honeypotboolean

          true = only tokens that pass the honeypot check check (not a honeypot).

        • launchpadstring

          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). One of: only, none.

        • max_age_hoursnumber

          at most this age in hours (0 to 87600).

        • max_buy_tax_pctnumber

          at most this buy tax in percent (0 to 100).

        • max_liquidity_usdnumber

          at most this liquidity in US dollars (0 to 1e+13).

        • max_market_cap_usdnumber

          at most this market cap in US dollars (0 to 1e+13).

        • max_price_change_1h_pctnumber

          at most this 1 h change in percent (-100 to 1e+06).

        • max_rankinteger

          at most this place (1 to 30).

        • max_sell_tax_pctnumber

          at most this sell tax in percent (0 to 100).

        • max_top10_pctnumber

          at most this top 10 share in percent (0 to 100).

        • min_age_hoursnumber

          at least this age in hours (0 to 87600).

        • min_buys_1hinteger

          at least this 1 h buys (0 to 1e+09).

        • min_holdersinteger

          at least this holders (0 to 1e+09).

        • min_liquidity_usdnumber

          at least this liquidity in US dollars (0 to 1e+13).

        • min_locked_pctnumber

          at least this locked or burned liquidity in percent (0 to 100).

        • min_market_cap_usdnumber

          at least this market cap in US dollars (0 to 1e+13).

        • min_price_change_1h_pctnumber

          at least this 1 h change in percent (-100 to 1e+06).

        • min_scansinteger

          scans a token needs on the board.

        • min_volume_24h_usdnumber

          at least this 24 h volume in US dollars (0 to 1e+13).

        • name_excludearray of strings

          words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

        • name_includearray of strings

          words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

        • pair_withstring

          pair coin. One of: native, stable.

        • require_freeze_disabledboolean

          true = only tokens that pass the freeze authority check (required).

        • require_mint_disabledboolean

          true = only tokens that pass the mint authority check (required).

        • require_renouncedboolean

          true = only tokens that pass the ownership check (required).

        • require_telegramboolean

          true = only tokens that pass the Telegram group check (required).

        • require_verified_sourceboolean

          true = only tokens that pass the source code check (required).

        • require_websiteboolean

          true = only tokens that pass the website check (required).

        • require_xboolean

          true = only tokens that pass the X account check (required).

        • whole_wordsboolean

          true = the words match whole words only.

      • percentnumber

        pct_move: the move in percent (negative = a drop).

      • repeatstring

        trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

      • require_freeze_disabledboolean

        trending_enter: true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        trending_enter: true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        trending_enter: true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        trending_enter: true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        trending_enter: true = only tokens that pass the source code check (required).

      • require_websiteboolean

        trending_enter: true = only tokens that pass the website check (required).

      • require_xboolean

        trending_enter: true = only tokens that pass the X account check (required).

      • tokenstring

        Token address (price_cross, pct_move).

      • unknownstring

        trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

      • whole_wordsboolean

        trending_enter: true = the words match whole words only.

      • windowstring

        pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

    • statusstringalways

      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. Known values: active, inactive, disabled, endpoint_paused, paused_plan, paused_over_limit, invalid, inactive_denied, over_quota (more may come: handle unknown ones).

    • typestringalways

      The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

30 examples

Create a rule

{
  "data": {
    "rule": {
      "active": true,
      "coverage": "full",
      "coverage_note": "",
      "created": 1795000000,
      "enabled": true,
      "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
      "labels": {},
      "name": "PEPE breakout",
      "over_limit": false,
      "params": {
        "above": 1e-05,
        "chain": "eth",
        "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
      },
      "status": "active",
      "type": "price_cross",
      "updated": 1795000000
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object of valid text.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Send a JSON object.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

plan_required: Plan group needed

{
  "error": {
    "code": "plan_required",
    "doc_url": "https://ttf.bot/docs/errors/#plan_required",
    "field": "type",
    "group": "signals",
    "message": "Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

quota_exceeded: Plan limit reached

{
  "error": {
    "code": "quota_exceeded",
    "doc_url": "https://ttf.bot/docs/errors/#quota_exceeded",
    "limit": 3,
    "message": "Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

request_timeout: Body not received

{
  "error": {
    "code": "request_timeout",
    "doc_url": "https://ttf.bot/docs/errors/#request_timeout",
    "message": "The request body did not arrive in time. Send it again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

over_limit: Endpoint over the plan limit

{
  "error": {
    "code": "over_limit",
    "doc_url": "https://ttf.bot/docs/errors/#over_limit",
    "message": "This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

too_large: Body too large

{
  "error": {
    "code": "too_large",
    "doc_url": "https://ttf.bot/docs/errors/#too_large",
    "message": "Request body too large.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unsupported_media_type: Send JSON

{
  "error": {
    "code": "unsupported_media_type",
    "doc_url": "https://ttf.bot/docs/errors/#unsupported_media_type",
    "message": "Send the body with Content-Type: application/json.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

invalid_rule: Invalid rule

{
  "error": {
    "code": "invalid_rule",
    "doc_url": "https://ttf.bot/docs/errors/#invalid_rule",
    "field": "percent",
    "message": "percent: percent out of range",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

type_not_subscribed: Event type not subscribed

{
  "error": {
    "code": "type_not_subscribed",
    "doc_url": "https://ttf.bot/docs/errors/#type_not_subscribed",
    "field": "type",
    "message": "This endpoint does not receive price events: add the type to the endpoint first.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "Another change of your wallet rules is in progress. Try again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden quota_exceeded account_suspended plan_requiredThe 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.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
408request_timeoutThe request body did not arrive in time. Nothing changed. Codes: request_timeout.
409over_limitThe change conflicts with the current state. Nothing changed. Codes: over_limit.
413too_largeThe body is too large. Codes: too_large.
415unsupported_media_typeThe body is not declared as JSON. Codes: unsupported_media_type.
422invalid_rule type_not_subscribedThe URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503busy unavailableThe service cannot answer right now. See Retry-After. Codes: busy, unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Check a rule without saving

POST/v1/webhooks/rules/check
Cost FreePlan FreeKey requiredKey needs webhooks: write

Validate what a user typed before you create an endpoint or a rule for it. Nothing is saved.

A refused or failed call costs nothing.

  • Handy for your own form: show message next to the field named in field.
Exact rules

Validates 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.

Body

A JSON object, sent as Content-Type: application/json. Unknown fields are refused.

  • paramsobjectrequired

    The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

    77 fields inside
    • abovenumber

      price_cross: fire when the price rises to this many US dollars (give above or below).

    • addressstring

      wallet_activity: the wallet to watch (give address or addresses).

    • addressesarray of strings

      wallet_activity: a watchlist of up to 1000 wallets.

    • belownumber

      price_cross: fire when the price falls to this many US dollars.

    • chainstring

      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).

    • chainsarray of strings

      trending_enter: a list of chains (instead of chain).

    • directionstring

      wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

    • exclude_honeypotboolean

      trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

    • fire_if_already_pastboolean

      price_cross: fire at once when the price is already past the level.

    • kindstring

      signal: the signal kind. One of: breakout, trending, call, cmd.

    • launchpadstring

      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). One of: only, none.

    • max_age_hoursnumber

      trending_enter: at most this age in hours (0 to 87600).

    • max_buy_tax_pctnumber

      trending_enter: at most this buy tax in percent (0 to 100).

    • max_liquidity_usdnumber

      trending_enter: at most this liquidity in US dollars (0 to 1e+13).

    • max_market_cap_usdnumber

      trending_enter: at most this market cap in US dollars (0 to 1e+13).

    • max_per_hourinteger

      trending_enter: at most this many alerts in any 60 minutes.

    • max_price_change_1h_pctnumber

      trending_enter: at most this 1 h change in percent (-100 to 1e+06).

    • max_rankinteger

      trending_enter: at most this place (1 to 30).

    • max_sell_tax_pctnumber

      trending_enter: at most this sell tax in percent (0 to 100).

    • max_top10_pctnumber

      trending_enter: at most this top 10 share in percent (0 to 100).

    • min_age_hoursnumber

      trending_enter: at least this age in hours (0 to 87600).

    • min_buys_1hinteger

      trending_enter: at least this 1 h buys (0 to 1e+09).

    • min_holdersinteger

      trending_enter: at least this holders (0 to 1e+09).

    • min_liquidity_usdnumber

      trending_enter: at least this liquidity in US dollars (0 to 1e+13).

    • min_locked_pctnumber

      trending_enter: at least this locked or burned liquidity in percent (0 to 100).

    • min_market_cap_usdnumber

      trending_enter: at least this market cap in US dollars (0 to 1e+13).

    • min_price_change_1h_pctnumber

      trending_enter: at least this 1 h change in percent (-100 to 1e+06).

    • min_scansinteger

      trending_enter: scans a token needs on the board.

    • min_usdnumber

      wallet_activity: smallest transfer in US dollars (0 = every transfer).

    • min_volume_24h_usdnumber

      trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

    • name_excludearray of strings

      trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

    • name_includearray of strings

      trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

    • pair_withstring

      trending_enter: pair coin. One of: native, stable.

    • per_chainmap of objects

      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.

      30 fields inside
      • exclude_honeypotboolean

        true = only tokens that pass the honeypot check check (not a honeypot).

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        at most this market cap in US dollars (0 to 1e+13).

      • max_price_change_1h_pctnumber

        at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        at most this place (1 to 30).

      • max_sell_tax_pctnumber

        at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        scans a token needs on the board.

      • min_volume_24h_usdnumber

        at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        pair coin. One of: native, stable.

      • require_freeze_disabledboolean

        true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        true = only tokens that pass the source code check (required).

      • require_websiteboolean

        true = only tokens that pass the website check (required).

      • require_xboolean

        true = only tokens that pass the X account check (required).

      • whole_wordsboolean

        true = the words match whole words only.

    • percentnumber

      pct_move: the move in percent (negative = a drop).

    • repeatstring

      trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

    • require_freeze_disabledboolean

      trending_enter: true = only tokens that pass the freeze authority check (required).

    • require_mint_disabledboolean

      trending_enter: true = only tokens that pass the mint authority check (required).

    • require_renouncedboolean

      trending_enter: true = only tokens that pass the ownership check (required).

    • require_telegramboolean

      trending_enter: true = only tokens that pass the Telegram group check (required).

    • require_verified_sourceboolean

      trending_enter: true = only tokens that pass the source code check (required).

    • require_websiteboolean

      trending_enter: true = only tokens that pass the website check (required).

    • require_xboolean

      trending_enter: true = only tokens that pass the X account check (required).

    • tokenstring

      Token address (price_cross, pct_move).

    • unknownstring

      trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

    • whole_wordsboolean

      trending_enter: true = the words match whole words only.

    • windowstring

      pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

  • typestringrequired

    The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

  • enabledboolean

    As in a new rule.

  • endpoint_idstring

    Also check this endpoint's event types and plan limit.

  • labelsmap of strings

    Wallet labels: address -> text.

  • namestring

    A name.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

Check a price alert.

curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/rules/check' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "params": {
    "above": 1e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  },
  "type": "price_cross"
}'

What you get back

A 200 answer is {"data", "meta"} (HookRuleCheckAnswer). always = in every answer; any other field is left out when there is no value.

data

  • coveragestringalways

    What the sources deliver for this rule (coverage_note says it in words). Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

  • coverage_notestringalways

    The coverage in words (empty text when full).

  • okbooleanalways

    true.

29 examples

Check a rule without saving

{
  "data": {
    "coverage": "full",
    "coverage_note": "",
    "ok": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object of valid text.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Send a JSON object.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

plan_required: Plan group needed

{
  "error": {
    "code": "plan_required",
    "doc_url": "https://ttf.bot/docs/errors/#plan_required",
    "field": "type",
    "group": "signals",
    "message": "Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

quota_exceeded: Plan limit reached

{
  "error": {
    "code": "quota_exceeded",
    "doc_url": "https://ttf.bot/docs/errors/#quota_exceeded",
    "limit": 3,
    "message": "Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such endpoint.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

request_timeout: Body not received

{
  "error": {
    "code": "request_timeout",
    "doc_url": "https://ttf.bot/docs/errors/#request_timeout",
    "message": "The request body did not arrive in time. Send it again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

over_limit: Endpoint over the plan limit

{
  "error": {
    "code": "over_limit",
    "doc_url": "https://ttf.bot/docs/errors/#over_limit",
    "message": "This endpoint is above your plan's limit, so it is paused. Delete other endpoints or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

too_large: Body too large

{
  "error": {
    "code": "too_large",
    "doc_url": "https://ttf.bot/docs/errors/#too_large",
    "message": "Request body too large.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unsupported_media_type: Send JSON

{
  "error": {
    "code": "unsupported_media_type",
    "doc_url": "https://ttf.bot/docs/errors/#unsupported_media_type",
    "message": "Send the body with Content-Type: application/json.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

invalid_rule: Invalid rule

{
  "error": {
    "code": "invalid_rule",
    "doc_url": "https://ttf.bot/docs/errors/#invalid_rule",
    "field": "percent",
    "message": "percent: percent out of range",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

type_not_subscribed: Event type not subscribed

{
  "error": {
    "code": "type_not_subscribed",
    "doc_url": "https://ttf.bot/docs/errors/#type_not_subscribed",
    "field": "type",
    "message": "This endpoint does not receive price events: add the type to the endpoint first.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden quota_exceeded account_suspended plan_requiredThe 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.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
408request_timeoutThe request body did not arrive in time. Nothing changed. Codes: request_timeout.
409over_limitThe change conflicts with the current state. Nothing changed. Codes: over_limit.
413too_largeThe body is too large. Codes: too_large.
415unsupported_media_typeThe body is not declared as JSON. Codes: unsupported_media_type.
422invalid_rule type_not_subscribedThe URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Get one rule

GET/v1/webhooks/rules/{rule_id}
Cost FreePlan FreeKey requiredKey needs webhooks: read

Look at one rule: its settings, whether it is active and what coverage it has.

A refused or failed call costs nothing.

  • The one-click page key has no webhook access: paste a key made with Webhook access (how).
Exact rules

One 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.

Parameters

Path parameters

stringrequired

Rule id (data.rule.id).

What you get back

A 200 answer is {"data", "meta"} (HookRuleAnswer). always = in every answer; always* = in every answer that does not narrow it with fields; any other field is left out when there is no value (never null). Objects are open: ignore keys you do not know.

data

  • ruleobjectalways

    A webhook rule: when it matches, its event is sent to its endpoint.

    91 fields inside
    • activebooleanalways

      true = it can fire now.

    • coveragestringalways

      What the sources deliver for this rule (coverage_note says it in words). Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

    • coverage_notestringalways

      The coverage in words (empty text when full).

    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • enabledbooleanalways

      Your switch.

    • endpoint_idstringalways

      The endpoint it delivers to.

    • idstringalways

      Rule id (whr_ + 24 hex).

    • labelsmap of stringsalways

      Your wallet labels: address -> text (empty when none).

    • namestringalways

      Your name for it (empty text when none).

    • over_limitbooleanalways

      true = above your plan, so it does not fire.

    • paramsobjectalways

      The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

      77 fields inside
      • abovenumber

        price_cross: fire when the price rises to this many US dollars (give above or below).

      • addressstring

        wallet_activity: the wallet to watch (give address or addresses).

      • addressesarray of strings

        wallet_activity: a watchlist of up to 1000 wallets.

      • belownumber

        price_cross: fire when the price falls to this many US dollars.

      • chainstring

        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).

      • chainsarray of strings

        trending_enter: a list of chains (instead of chain).

      • directionstring

        wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

      • exclude_honeypotboolean

        trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

      • fire_if_already_pastboolean

        price_cross: fire at once when the price is already past the level.

      • kindstring

        signal: the signal kind. One of: breakout, trending, call, cmd.

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        trending_enter: at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        trending_enter: at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        trending_enter: at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        trending_enter: at most this market cap in US dollars (0 to 1e+13).

      • max_per_hourinteger

        trending_enter: at most this many alerts in any 60 minutes.

      • max_price_change_1h_pctnumber

        trending_enter: at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        trending_enter: at most this place (1 to 30).

      • max_sell_tax_pctnumber

        trending_enter: at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        trending_enter: at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        trending_enter: at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        trending_enter: at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        trending_enter: at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        trending_enter: at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        trending_enter: at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        trending_enter: at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        trending_enter: at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        trending_enter: scans a token needs on the board.

      • min_usdnumber

        wallet_activity: smallest transfer in US dollars (0 = every transfer).

      • min_volume_24h_usdnumber

        trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        trending_enter: pair coin. One of: native, stable.

      • per_chainmap of objects

        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.

        30 fields inside
        • exclude_honeypotboolean

          true = only tokens that pass the honeypot check check (not a honeypot).

        • launchpadstring

          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). One of: only, none.

        • max_age_hoursnumber

          at most this age in hours (0 to 87600).

        • max_buy_tax_pctnumber

          at most this buy tax in percent (0 to 100).

        • max_liquidity_usdnumber

          at most this liquidity in US dollars (0 to 1e+13).

        • max_market_cap_usdnumber

          at most this market cap in US dollars (0 to 1e+13).

        • max_price_change_1h_pctnumber

          at most this 1 h change in percent (-100 to 1e+06).

        • max_rankinteger

          at most this place (1 to 30).

        • max_sell_tax_pctnumber

          at most this sell tax in percent (0 to 100).

        • max_top10_pctnumber

          at most this top 10 share in percent (0 to 100).

        • min_age_hoursnumber

          at least this age in hours (0 to 87600).

        • min_buys_1hinteger

          at least this 1 h buys (0 to 1e+09).

        • min_holdersinteger

          at least this holders (0 to 1e+09).

        • min_liquidity_usdnumber

          at least this liquidity in US dollars (0 to 1e+13).

        • min_locked_pctnumber

          at least this locked or burned liquidity in percent (0 to 100).

        • min_market_cap_usdnumber

          at least this market cap in US dollars (0 to 1e+13).

        • min_price_change_1h_pctnumber

          at least this 1 h change in percent (-100 to 1e+06).

        • min_scansinteger

          scans a token needs on the board.

        • min_volume_24h_usdnumber

          at least this 24 h volume in US dollars (0 to 1e+13).

        • name_excludearray of strings

          words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

        • name_includearray of strings

          words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

        • pair_withstring

          pair coin. One of: native, stable.

        • require_freeze_disabledboolean

          true = only tokens that pass the freeze authority check (required).

        • require_mint_disabledboolean

          true = only tokens that pass the mint authority check (required).

        • require_renouncedboolean

          true = only tokens that pass the ownership check (required).

        • require_telegramboolean

          true = only tokens that pass the Telegram group check (required).

        • require_verified_sourceboolean

          true = only tokens that pass the source code check (required).

        • require_websiteboolean

          true = only tokens that pass the website check (required).

        • require_xboolean

          true = only tokens that pass the X account check (required).

        • whole_wordsboolean

          true = the words match whole words only.

      • percentnumber

        pct_move: the move in percent (negative = a drop).

      • repeatstring

        trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

      • require_freeze_disabledboolean

        trending_enter: true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        trending_enter: true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        trending_enter: true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        trending_enter: true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        trending_enter: true = only tokens that pass the source code check (required).

      • require_websiteboolean

        trending_enter: true = only tokens that pass the website check (required).

      • require_xboolean

        trending_enter: true = only tokens that pass the X account check (required).

      • tokenstring

        Token address (price_cross, pct_move).

      • unknownstring

        trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

      • whole_wordsboolean

        trending_enter: true = the words match whole words only.

      • windowstring

        pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

    • statusstringalways

      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. Known values: active, inactive, disabled, endpoint_paused, paused_plan, paused_over_limit, invalid, inactive_denied, over_quota (more may come: handle unknown ones).

    • typestringalways

      The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

meta

  • costintegeralways

    Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.

  • request_idstringalways

    Id of this request (= the X-Request-Id header). Quote it to support.

  • cachedarray of strings

    The groups answered from the shared answer cache (charged at their cached weight). Absent when none.

  • partialarray of strings

    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.

18 examples

Get a rule

{
  "data": {
    "rule": {
      "active": true,
      "coverage": "full",
      "coverage_note": "",
      "created": 1795000000,
      "enabled": true,
      "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
      "labels": {},
      "name": "PEPE breakout",
      "over_limit": false,
      "params": {
        "above": 1e-05,
        "chain": "eth",
        "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
      },
      "status": "active",
      "type": "price_cross",
      "updated": 1795000000
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:read permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such rule.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503unavailableThe service cannot answer right now. See Retry-After. Codes: unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}. What each code means and how to fix it: Errors.

Update a rule

PATCH/v1/webhooks/rules/{rule_id}
Cost FreePlan FreeKey requiredKey needs webhooks: write

Change the threshold, the wallets or the name of a rule, or switch it off for a while.

A refused or failed call costs nothing.

  • params replaces all settings of the rule: send every setting it needs.
Exact rules

Send 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.

Path parameters

NameTypeMeaning
rule_idstringrequired Rule id (data.rule.id).

Body

A JSON object, sent as Content-Type: application/json. Unknown fields are refused.

  • enabledboolean

    Switch the rule on or off.

  • labelsmap of strings

    Wallet labels: address -> text.

  • namestring

    A new name.

  • paramsobject

    The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

    77 fields inside
    • abovenumber

      price_cross: fire when the price rises to this many US dollars (give above or below).

    • addressstring

      wallet_activity: the wallet to watch (give address or addresses).

    • addressesarray of strings

      wallet_activity: a watchlist of up to 1000 wallets.

    • belownumber

      price_cross: fire when the price falls to this many US dollars.

    • chainstring

      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).

    • chainsarray of strings

      trending_enter: a list of chains (instead of chain).

    • directionstring

      wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

    • exclude_honeypotboolean

      trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

    • fire_if_already_pastboolean

      price_cross: fire at once when the price is already past the level.

    • kindstring

      signal: the signal kind. One of: breakout, trending, call, cmd.

    • launchpadstring

      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). One of: only, none.

    • max_age_hoursnumber

      trending_enter: at most this age in hours (0 to 87600).

    • max_buy_tax_pctnumber

      trending_enter: at most this buy tax in percent (0 to 100).

    • max_liquidity_usdnumber

      trending_enter: at most this liquidity in US dollars (0 to 1e+13).

    • max_market_cap_usdnumber

      trending_enter: at most this market cap in US dollars (0 to 1e+13).

    • max_per_hourinteger

      trending_enter: at most this many alerts in any 60 minutes.

    • max_price_change_1h_pctnumber

      trending_enter: at most this 1 h change in percent (-100 to 1e+06).

    • max_rankinteger

      trending_enter: at most this place (1 to 30).

    • max_sell_tax_pctnumber

      trending_enter: at most this sell tax in percent (0 to 100).

    • max_top10_pctnumber

      trending_enter: at most this top 10 share in percent (0 to 100).

    • min_age_hoursnumber

      trending_enter: at least this age in hours (0 to 87600).

    • min_buys_1hinteger

      trending_enter: at least this 1 h buys (0 to 1e+09).

    • min_holdersinteger

      trending_enter: at least this holders (0 to 1e+09).

    • min_liquidity_usdnumber

      trending_enter: at least this liquidity in US dollars (0 to 1e+13).

    • min_locked_pctnumber

      trending_enter: at least this locked or burned liquidity in percent (0 to 100).

    • min_market_cap_usdnumber

      trending_enter: at least this market cap in US dollars (0 to 1e+13).

    • min_price_change_1h_pctnumber

      trending_enter: at least this 1 h change in percent (-100 to 1e+06).

    • min_scansinteger

      trending_enter: scans a token needs on the board.

    • min_usdnumber

      wallet_activity: smallest transfer in US dollars (0 = every transfer).

    • min_volume_24h_usdnumber

      trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

    • name_excludearray of strings

      trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

    • name_includearray of strings

      trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

    • pair_withstring

      trending_enter: pair coin. One of: native, stable.

    • per_chainmap of objects

      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.

      30 fields inside
      • exclude_honeypotboolean

        true = only tokens that pass the honeypot check check (not a honeypot).

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        at most this market cap in US dollars (0 to 1e+13).

      • max_price_change_1h_pctnumber

        at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        at most this place (1 to 30).

      • max_sell_tax_pctnumber

        at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        scans a token needs on the board.

      • min_volume_24h_usdnumber

        at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        pair coin. One of: native, stable.

      • require_freeze_disabledboolean

        true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        true = only tokens that pass the source code check (required).

      • require_websiteboolean

        true = only tokens that pass the website check (required).

      • require_xboolean

        true = only tokens that pass the X account check (required).

      • whole_wordsboolean

        true = the words match whole words only.

    • percentnumber

      pct_move: the move in percent (negative = a drop).

    • repeatstring

      trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

    • require_freeze_disabledboolean

      trending_enter: true = only tokens that pass the freeze authority check (required).

    • require_mint_disabledboolean

      trending_enter: true = only tokens that pass the mint authority check (required).

    • require_renouncedboolean

      trending_enter: true = only tokens that pass the ownership check (required).

    • require_telegramboolean

      trending_enter: true = only tokens that pass the Telegram group check (required).

    • require_verified_sourceboolean

      trending_enter: true = only tokens that pass the source code check (required).

    • require_websiteboolean

      trending_enter: true = only tokens that pass the website check (required).

    • require_xboolean

      trending_enter: true = only tokens that pass the X account check (required).

    • tokenstring

      Token address (price_cross, pct_move).

    • unknownstring

      trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

    • whole_wordsboolean

      trending_enter: true = the words match whole words only.

    • windowstring

      pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

  • typestring

    Only for a price rule: switch between price_cross and pct_move (send the new params too). One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

Switch the rule off.

curl -sS -X PATCH 'https://api.ttf.bot/v1/webhooks/rules/whr_6f1c0a9e2b7d4c3a1e0f9b8d' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "enabled": false
}'

New settings.

curl -sS -X PATCH 'https://api.ttf.bot/v1/webhooks/rules/whr_6f1c0a9e2b7d4c3a1e0f9b8d' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "params": {
    "above": 1.2e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  }
}'

What you get back

A 200 answer is {"data", "meta"} (HookRuleUpdatedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • ruleobjectalways

    A webhook rule: when it matches, its event is sent to its endpoint.

    91 fields inside
    • activebooleanalways

      true = it can fire now.

    • coveragestringalways

      What the sources deliver for this rule (coverage_note says it in words). Known values: full, not_watched, never, partial, pending, denied, native_only, no_source (more may come: handle unknown ones).

    • coverage_notestringalways

      The coverage in words (empty text when full).

    • createdintegeralways

      When it was created. Unix time in SECONDS.

    • enabledbooleanalways

      Your switch.

    • endpoint_idstringalways

      The endpoint it delivers to.

    • idstringalways

      Rule id (whr_ + 24 hex).

    • labelsmap of stringsalways

      Your wallet labels: address -> text (empty when none).

    • namestringalways

      Your name for it (empty text when none).

    • over_limitbooleanalways

      true = above your plan, so it does not fire.

    • paramsobjectalways

      The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).

      77 fields inside
      • abovenumber

        price_cross: fire when the price rises to this many US dollars (give above or below).

      • addressstring

        wallet_activity: the wallet to watch (give address or addresses).

      • addressesarray of strings

        wallet_activity: a watchlist of up to 1000 wallets.

      • belownumber

        price_cross: fire when the price falls to this many US dollars.

      • chainstring

        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).

      • chainsarray of strings

        trending_enter: a list of chains (instead of chain).

      • directionstring

        wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: out, in, any.

      • exclude_honeypotboolean

        trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).

      • fire_if_already_pastboolean

        price_cross: fire at once when the price is already past the level.

      • kindstring

        signal: the signal kind. One of: breakout, trending, call, cmd.

      • launchpadstring

        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). One of: only, none.

      • max_age_hoursnumber

        trending_enter: at most this age in hours (0 to 87600).

      • max_buy_tax_pctnumber

        trending_enter: at most this buy tax in percent (0 to 100).

      • max_liquidity_usdnumber

        trending_enter: at most this liquidity in US dollars (0 to 1e+13).

      • max_market_cap_usdnumber

        trending_enter: at most this market cap in US dollars (0 to 1e+13).

      • max_per_hourinteger

        trending_enter: at most this many alerts in any 60 minutes.

      • max_price_change_1h_pctnumber

        trending_enter: at most this 1 h change in percent (-100 to 1e+06).

      • max_rankinteger

        trending_enter: at most this place (1 to 30).

      • max_sell_tax_pctnumber

        trending_enter: at most this sell tax in percent (0 to 100).

      • max_top10_pctnumber

        trending_enter: at most this top 10 share in percent (0 to 100).

      • min_age_hoursnumber

        trending_enter: at least this age in hours (0 to 87600).

      • min_buys_1hinteger

        trending_enter: at least this 1 h buys (0 to 1e+09).

      • min_holdersinteger

        trending_enter: at least this holders (0 to 1e+09).

      • min_liquidity_usdnumber

        trending_enter: at least this liquidity in US dollars (0 to 1e+13).

      • min_locked_pctnumber

        trending_enter: at least this locked or burned liquidity in percent (0 to 100).

      • min_market_cap_usdnumber

        trending_enter: at least this market cap in US dollars (0 to 1e+13).

      • min_price_change_1h_pctnumber

        trending_enter: at least this 1 h change in percent (-100 to 1e+06).

      • min_scansinteger

        trending_enter: scans a token needs on the board.

      • min_usdnumber

        wallet_activity: smallest transfer in US dollars (0 = every transfer).

      • min_volume_24h_usdnumber

        trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).

      • name_excludearray of strings

        trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

      • name_includearray of strings

        trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

      • pair_withstring

        trending_enter: pair coin. One of: native, stable.

      • per_chainmap of objects

        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.

        30 fields inside
        • exclude_honeypotboolean

          true = only tokens that pass the honeypot check check (not a honeypot).

        • launchpadstring

          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). One of: only, none.

        • max_age_hoursnumber

          at most this age in hours (0 to 87600).

        • max_buy_tax_pctnumber

          at most this buy tax in percent (0 to 100).

        • max_liquidity_usdnumber

          at most this liquidity in US dollars (0 to 1e+13).

        • max_market_cap_usdnumber

          at most this market cap in US dollars (0 to 1e+13).

        • max_price_change_1h_pctnumber

          at most this 1 h change in percent (-100 to 1e+06).

        • max_rankinteger

          at most this place (1 to 30).

        • max_sell_tax_pctnumber

          at most this sell tax in percent (0 to 100).

        • max_top10_pctnumber

          at most this top 10 share in percent (0 to 100).

        • min_age_hoursnumber

          at least this age in hours (0 to 87600).

        • min_buys_1hinteger

          at least this 1 h buys (0 to 1e+09).

        • min_holdersinteger

          at least this holders (0 to 1e+09).

        • min_liquidity_usdnumber

          at least this liquidity in US dollars (0 to 1e+13).

        • min_locked_pctnumber

          at least this locked or burned liquidity in percent (0 to 100).

        • min_market_cap_usdnumber

          at least this market cap in US dollars (0 to 1e+13).

        • min_price_change_1h_pctnumber

          at least this 1 h change in percent (-100 to 1e+06).

        • min_scansinteger

          scans a token needs on the board.

        • min_volume_24h_usdnumber

          at least this 24 h volume in US dollars (0 to 1e+13).

        • name_excludearray of strings

          words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).

        • name_includearray of strings

          words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).

        • pair_withstring

          pair coin. One of: native, stable.

        • require_freeze_disabledboolean

          true = only tokens that pass the freeze authority check (required).

        • require_mint_disabledboolean

          true = only tokens that pass the mint authority check (required).

        • require_renouncedboolean

          true = only tokens that pass the ownership check (required).

        • require_telegramboolean

          true = only tokens that pass the Telegram group check (required).

        • require_verified_sourceboolean

          true = only tokens that pass the source code check (required).

        • require_websiteboolean

          true = only tokens that pass the website check (required).

        • require_xboolean

          true = only tokens that pass the X account check (required).

        • whole_wordsboolean

          true = the words match whole words only.

      • percentnumber

        pct_move: the move in percent (negative = a drop).

      • repeatstring

        trending_enter: the same token again only after this long (absent = once each time it enters the board; never = remembered for 180 days). One of: 1h, 6h, 24h, never.

      • require_freeze_disabledboolean

        trending_enter: true = only tokens that pass the freeze authority check (required).

      • require_mint_disabledboolean

        trending_enter: true = only tokens that pass the mint authority check (required).

      • require_renouncedboolean

        trending_enter: true = only tokens that pass the ownership check (required).

      • require_telegramboolean

        trending_enter: true = only tokens that pass the Telegram group check (required).

      • require_verified_sourceboolean

        trending_enter: true = only tokens that pass the source code check (required).

      • require_websiteboolean

        trending_enter: true = only tokens that pass the website check (required).

      • require_xboolean

        trending_enter: true = only tokens that pass the X account check (required).

      • tokenstring

        Token address (price_cross, pct_move).

      • unknownstring

        trending_enter: skip (default) = no alert when a value a filter needs is unknown; mark = alert and list them in detail.unknown. One of: skip, mark.

      • whole_wordsboolean

        trending_enter: true = the words match whole words only.

      • windowstring

        pct_move: the time window. One of: 1m, 5m, 15m, 1h, 4h, 24h.

    • statusstringalways

      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. Known values: active, inactive, disabled, endpoint_paused, paused_plan, paused_over_limit, invalid, inactive_denied, over_quota (more may come: handle unknown ones).

    • typestringalways

      The rule type. One of: price_cross, pct_move, trending_enter, wallet_activity, signal.

    • updatedintegeralways

      When it was last changed. Unix time in SECONDS.

28 examples

Update a rule

{
  "data": {
    "rule": {
      "active": false,
      "coverage": "full",
      "coverage_note": "",
      "created": 1795000000,
      "enabled": false,
      "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
      "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
      "labels": {},
      "name": "PEPE breakout",
      "over_limit": false,
      "params": {
        "above": 1e-05,
        "chain": "eth",
        "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
      },
      "status": "disabled",
      "type": "price_cross",
      "updated": 1795000000
    }
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Bad request

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object of valid text.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

bad_request: Send a JSON object.

{
  "error": {
    "code": "bad_request",
    "doc_url": "https://ttf.bot/docs/errors/#bad_request",
    "message": "Send a JSON object.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

account_suspended: Account suspended

{
  "error": {
    "code": "account_suspended",
    "doc_url": "https://ttf.bot/docs/errors/#account_suspended",
    "message": "This account is suspended. Contact support.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

plan_required: Plan group needed

{
  "error": {
    "code": "plan_required",
    "doc_url": "https://ttf.bot/docs/errors/#plan_required",
    "field": "type",
    "group": "signals",
    "message": "Your plan does not include signals data, so signal rules are not available. Move to a plan that includes it.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

quota_exceeded: Plan limit reached

{
  "error": {
    "code": "quota_exceeded",
    "doc_url": "https://ttf.bot/docs/errors/#quota_exceeded",
    "limit": 3,
    "message": "Your plan allows 3 webhook rule(s). Delete one first or move to a larger plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such rule.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

request_timeout: Body not received

{
  "error": {
    "code": "request_timeout",
    "doc_url": "https://ttf.bot/docs/errors/#request_timeout",
    "message": "The request body did not arrive in time. Send it again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

too_large: Body too large

{
  "error": {
    "code": "too_large",
    "doc_url": "https://ttf.bot/docs/errors/#too_large",
    "message": "Request body too large.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unsupported_media_type: Send JSON

{
  "error": {
    "code": "unsupported_media_type",
    "doc_url": "https://ttf.bot/docs/errors/#unsupported_media_type",
    "message": "Send the body with Content-Type: application/json.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

invalid_rule: Invalid rule

{
  "error": {
    "code": "invalid_rule",
    "doc_url": "https://ttf.bot/docs/errors/#invalid_rule",
    "field": "percent",
    "message": "percent: percent out of range",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "Another change of your wallet rules is in progress. Try again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
400bad_requestBad request: an unknown field or a bad value. Nothing changed. Codes: bad_request.
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbidden quota_exceeded account_suspended plan_requiredThe 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.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
408request_timeoutThe request body did not arrive in time. Nothing changed. Codes: request_timeout.
413too_largeThe body is too large. Codes: too_large.
415unsupported_media_typeThe body is not declared as JSON. Codes: unsupported_media_type.
422invalid_ruleThe URL or the rule was refused. Nothing changed. Codes: invalid_rule.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503busy unavailableThe service cannot answer right now. See Retry-After. Codes: busy, unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Delete a rule

DELETE/v1/webhooks/rules/{rule_id}
Cost FreePlan FreeKey requiredKey needs webhooks: write

Stop an alert for good: the rule is removed and its place in your plan is free again.

A refused or failed call costs nothing.

Exact rules

Takes 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.

Path parameters

NameTypeMeaning
rule_idstringrequired Rule id (data.rule.id).

Body

This call takes no body.

Example request

This page has no try-it form: a change is only made by your own code. For macOS, Linux, Git Bash or WSL.

curl -sS -X DELETE 'https://api.ttf.bot/v1/webhooks/rules/whr_6f1c0a9e2b7d4c3a1e0f9b8d' \
  -H 'Authorization: Bearer YOUR_KEY'

What you get back

A 200 answer is {"data", "meta"} (HookRuleDeletedAnswer). always = in every answer; any other field is left out when there is no value.

data

  • deletedbooleanalways

    true.

  • idstringalways

    The deleted rule.

19 examples

Delete a rule

{
  "data": {
    "deleted": true,
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d"
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: Missing or invalid key

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "An API key is required (Authorization: Bearer <key>).",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unauthorized: This API key is not valid.

{
  "error": {
    "code": "unauthorized",
    "doc_url": "https://ttf.bot/docs/errors/#unauthorized",
    "message": "This API key is not valid.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

payment_required: Subscription ended

{
  "error": {
    "code": "payment_required",
    "doc_url": "https://ttf.bot/docs/errors/#payment_required",
    "message": "This API key subscription has ended. Renew it to continue.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: Not included in your plan

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not have the webhooks:write permission. Create a key with webhook access in the developer dashboard.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key may not be used from this address.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key may not be used from this address.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

forbidden: This API key does not include the developer plan.

{
  "error": {
    "code": "forbidden",
    "doc_url": "https://ttf.bot/docs/errors/#forbidden",
    "message": "This API key does not include the developer plan.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "No such rule.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

not_found: Not found

{
  "error": {
    "code": "not_found",
    "doc_url": "https://ttf.bot/docs/errors/#not_found",
    "message": "Not found",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

method_not_allowed: Method not allowed

{
  "error": {
    "code": "method_not_allowed",
    "doc_url": "https://ttf.bot/docs/errors/#method_not_allowed",
    "message": "Method not allowed",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Slow down

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests for this account. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests of this account at once. Wait for one to finish.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests of this account at once. Wait for one to finish.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many invalid API keys from this network. Try again later.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many invalid API keys from this network. Try again later.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

rate_limited: Too many requests per second for this account. Slow down and retry.

{
  "error": {
    "code": "rate_limited",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "message": "Too many requests per second for this account. Slow down and retry.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

internal: Internal error

{
  "error": {
    "code": "internal",
    "doc_url": "https://ttf.bot/docs/errors/#internal",
    "message": "Something went wrong. Try again in a moment.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

busy: Busy

{
  "error": {
    "code": "busy",
    "doc_url": "https://ttf.bot/docs/errors/#busy",
    "message": "Another change of your wallet rules is in progress. Try again.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: Temporarily unavailable

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The API cannot check its limits right now. Try again in a few seconds.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

unavailable: The webhook service is busy. Try again in a minute.

{
  "error": {
    "code": "unavailable",
    "doc_url": "https://ttf.bot/docs/errors/#unavailable",
    "message": "The webhook service is busy. Try again in a minute.",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

error: Request refused

{
  "error": {
    "code": "error",
    "doc_url": "https://ttf.bot/docs/errors/#error",
    "message": "Request refused",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid. Codes: unauthorized.
402payment_requiredThe subscription of this API key has ended. Codes: payment_required.
403forbiddenThe key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden.
404not_foundNo such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found.
405method_not_allowedWrong HTTP method for this route. Codes: method_not_allowed.
429rate_limitedToo many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited.
500internalUnexpected error. Codes: internal.
503busy unavailableThe service cannot answer right now. See Retry-After. Codes: busy, unavailable.
othererrorAny other refusal of the HTTP layer (rare): the status says which. Codes: error.

Every error is {"error": {"code", "message", "doc_url", "request_id"}}; some also carry field, limit or group. What each code means: Errors.

Errors

When something goes wrong, the answer says what, why, and whether it cost anything.

Every error has the same shape:

{
  "error": {
    "code": "rate_limited",
    "message": "API key credits used up per minute.",
    "doc_url": "https://ttf.bot/docs/errors/#rate_limited",
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}

Check code in your program (it never changes); show message to people. Quote request_id when you ask us for help.

CodeWhat it meansHow to fix itChargedRetry
bad_request400Bad request

Something in the request is off: an unknown chain, an address that does not fit the chain, an unknown field or group, a group the chain does not serve, a bad option (interval, limit, cursor, fields), an address we do not serve (burn, router, wrapped coin, exchange), or a webhook body that is not a JSON object of valid text.

Fix the request: GET /v1/chains lists the chains, groups and fields; the message names what was wrong.No-
unauthorized401Missing or invalid key

No API key was sent, or the key is not valid (typo, revoked, malformed).

Send the key as Authorization: Bearer ttfk_... or X-API-Key: ttfk_.... Create or copy a key in the dashboard.No-
payment_required402Subscription ended

The subscription behind this key has run out.

Renew the plan in the dashboard; the same key works again right after.No-
forbidden403Not included in your plan

The key is valid but may not do this: its plan does not include the asked group, the account has no developer plan, the key is locked to other IP addresses, or it does not have the webhook permission the route needs.

Upgrade the plan (GET /v1/chains shows which groups exist), drop the group from fields, add this IP to the key's allow-list, or create a key with webhook access (read or write) in the dashboard.No-
quota_exceeded403Plan limit reached

Your plan's number of webhook endpoints, webhook rules or watched wallet addresses is used up, or this month's delivery quota is.

Delete something you no longer need or move to a larger plan; error.limit is the limit that was reached.No-
account_suspended403Account suspended

The account behind this key is suspended, so nothing can be changed.

Contact support and quote the request_id.No-
plan_required403Plan group needed

Your plan does not include the data a webhook rule of this type delivers.

Move to a plan that includes the group named in error.group, or use another rule type.No-
not_found404Not found

No data for this token (no market lists it, no holders, no price history, unknown deployer), your account has no webhook endpoint or rule with that id (never charged), the route does not exist, or the API is switched off.

Check the chain and the address (GET /v1/resolve finds where a token trades), or list your endpoints and rules for their ids. A brand-new token may simply not be listed yet.1 credit attempt fee-
method_not_allowed405Method not allowed

The route exists but not with this HTTP method. Every data route is GET; the /v1/webhooks routes also take POST, PATCH and DELETE, each as its page says.

Use the method the route's page shows.No-
request_timeout408Body not received

The body of a webhook request did not arrive in time; nothing was changed.

Send the whole body at once with a correct Content-Length, then repeat the call.No-
duplicate_url409URL already used

This account already has a webhook endpoint with that URL.

Use the existing endpoint (GET /v1/webhooks/endpoints) or choose another URL.No-
types_in_use409Event types in use

Rules of this endpoint use an event type the change would remove.

Delete those rules first, or keep the event type.No-
endpoint_paused409Endpoint paused

The endpoint is paused or disabled, so it gets nothing, not even a test.

Switch it on first (PATCH the endpoint with enabled true).No-
over_limit409Endpoint over the plan limit

This endpoint is above your plan's number of endpoints, so it is paused.

Delete other endpoints or move to a larger plan.No-
conflict409Changed meanwhile

The same webhook secret was changed by another request at the same moment; this one changed nothing.

Read the endpoint again, then repeat the change only if it is still needed.No-
too_large413Body too large

The request body is larger than the route accepts (8 KB for an endpoint, 256 KB for a rule).

Send a smaller body; split a very long watchlist into more rules.No-
unsupported_media_type415Send JSON

A webhook route that takes a body got one that is not declared as JSON.

Send the header Content-Type: application/json and a JSON object.No-
refused422Token cannot be scanned

The address is a contract we cannot scan (for example a proxy, or not a token contract at all).

Nothing to retry: this is a property of the address. Check you used the token address, not a pair or a wallet.1 credit attempt fee-
url_not_allowed422Webhook URL refused

The webhook URL cannot be used: it must be a public https address with a host name that resolves.

Use a public https URL on port 443 or 8443, without a user name or password.No-
invalid_rule422Invalid rule

A setting of the webhook rule is missing, unknown or out of range.

Fix the setting named in error.field (GET /v1/webhooks/schema lists every rule type and its limits).No-
type_not_subscribed422Event type not subscribed

The endpoint does not receive the event type this rule sends.

Add the type to the endpoint's event_types first, or pick another endpoint.No-
rate_limited429Slow down

Too many requests per second, too many at once, the credits of the minute / day / month (or of this key) are used up, too many webhook reads or changes for your account, or too many invalid keys came from your network.

Wait the Retry-After seconds, then retry. Watch X-RateLimit-Remaining; upgrade the plan for more credits.NoYes, after Retry-After
capacity503At capacity

The API's shared capacity for today is full (free and trial keys pause first).

Retry after Retry-After, or later today. Paid plans are served first.NoYes, after Retry-After
busy503Busy

The API or its data providers are busy right now (nothing was asked from a provider), or another change of your wallet rules is still in progress.

Retry after Retry-After (usually a couple of seconds).NoYes, after Retry-After
unavailable503Temporarily unavailable

The API cannot check its limits or your key's plan right now (an outage on our side), the key is not set up for metering yet, or the webhook service did not answer.

Retry after Retry-After. If it keeps happening for one key, contact support with the request_id.NoYes, after Retry-After
not_configured503Webhooks not set up

Webhooks cannot be created or delivered on this server right now; nothing was changed.

Try again later (Retry-After). If it lasts, contact support.NoYes, after Retry-After
upstream502Provider did not answer

A data provider behind the answer failed or returned nothing usable.

Retry in a moment. The attempt fee (1 credit) applies to core and the paid-provider groups.1 credit attempt fee-
timeout504Took too long

The data did not arrive in time (a slow scan or provider).

Retry in a moment: a slow security scan often finishes in the background and the next call is a cache hit.1 credit attempt fee-
internal500Internal error

An unexpected error on our side.

Retry; if it repeats, contact support and quote the request_id.No-
erroranyRequest refused

Any other refusal of the HTTP layer (the status says which); rare.

Read the message and the status; quote the request_id if you contact support.No-

Changelog

Every change of the API contract, newest first. Version 1 is frozen: new fields can be added, existing ones keep their meaning (breaking changes are flagged).

Current version 1.1.0.

1.1.0 · 2026-11-29 stable

Additive: webhooks can be managed with an API key (/v1/webhooks/*).

  • added Webhook management routes (/v1/webhooks/*): create, change, test and delete endpoints and rules and read their delivery logs, for 0 credits. They need an API key with webhook access (none, read or write), chosen when the key is made; every existing key has none. These calls have their own account limits. The rule list leaves out wallet addresses and labels (address_count and label_count say how many); read one rule for them. webhooks auth
  • added New error codes that only the webhook management routes answer; their error body may also carry field, limit or group. errors
  • added request_timeout (408): the body of a webhook write did not arrive in time; nothing was changed. errors

1.0.0 · 2026-11-28 stable

The /v1 contract is frozen: OpenAPI 3.1 document, JSON Schemas of every event and webhook body, error catalog.

  • added The OpenAPI 3.1 contract (openapi.json) documents every route, field, unit, error code, credit cost and webhook; from now on every change to it is listed here. *
  • added Published JSON Schemas (draft 2020-12) of the event envelope, every event type, every webhook body and the error answer. events webhooks
  • added One catalog of every error code with its HTTP status, meaning and fix; every error answer links its entry (doc_url). errors
  • changed breaking The API lives on its own host (servers in openapi.json); error doc_url points at the main site's errors page. host
  • security breaking Answers no longer name third-party data providers: meta.sources is removed, core.links and bubbles.map_url (outbound third-party pages) are removed (fields=links is now an unknown field), and price / signal events no longer carry source; a wallet transfer's source (history / watch) stays. * format events webhooks getToken getTokenGroup

0.9.0 · 2026-11-27 pre-release

Response format review before the freeze.

  • changed breaking One response format: snake_case keys, money never a float (whole-dollar integers or decimal strings), ISO-8601 *_at outside lists and unix ms *_ms inside, unknown values absent instead of null. format
  • changed breaking Every error is {code, message, doc_url, request_id}; a failed group of /v1/token is {"error": {code, message, doc_url}}. errors
  • added Every 200 carries a weak ETag of its data; If-None-Match answers 304 (billed like the 200); gzip / br compression. *
  • removed breaking The columnar compact=1 option is gone (it saved nothing after compression). getTrending getWalletActivity
  • changed breaking Events and webhook bodies use the same format: price_usd, value_usd, first_seen_ms, called_at_ms, created_ms; a ping has no rule or detail. events webhooks listSignals