# TTF API reference

The whole reference of the TTF data API as one Markdown text: every guide, endpoint and webhook.

- Base URL: `https://api.ttf.bot`
- API key: `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`)
- OpenAPI contract (machine-readable): https://ttf.bot/developers/openapi.json
- Web version, with try-it forms: https://ttf.bot/developers/docs/

## Contents

### Start here

- [TTF docs: what do you want to do?](https://ttf.bot/developers/docs/md/start.md)
- [Build with AI: use the TTF API with an AI assistant](https://ttf.bot/developers/docs/md/build-with-ai.md)
- [Plans, limits and paying](https://ttf.bot/developers/docs/md/plans.md)

### Alerts (no code)

- [Alerts: how they work](https://ttf.bot/developers/docs/md/alerts.md)
- [Alerts in Telegram](https://ttf.bot/developers/docs/md/telegram-alerts.md)
- [Alerts in Discord](https://ttf.bot/developers/docs/md/discord-alerts.md)
- [Trending alerts and filters](https://ttf.bot/developers/docs/md/alerts-trending.md)
- [Wallet alerts](https://ttf.bot/developers/docs/md/alerts-wallets.md)
- [Price alerts](https://ttf.bot/developers/docs/md/alerts-price.md)
- [Design the message](https://ttf.bot/developers/docs/md/alerts-design.md)
- [Delivery log: did my alert arrive?](https://ttf.bot/developers/docs/md/alerts-log.md)

### Get started

- [Quickstart: your first call in 60 seconds](https://ttf.bot/developers/docs/md/quickstart.md)
- [Authentication: your API key](https://ttf.bot/developers/docs/md/authentication.md)
- [Response format](https://ttf.bot/developers/docs/md/format.md)
- [Credits and limits](https://ttf.bot/developers/docs/md/credits.md)

### Tokens

- [Full token report](https://ttf.bot/developers/docs/md/token-report.md)
- [Security check](https://ttf.bot/developers/docs/md/token-security.md)
- [Price and market data](https://ttf.bot/developers/docs/md/token-market.md)
- [Top holders](https://ttf.bot/developers/docs/md/token-holders.md)
- [Price candles (chart)](https://ttf.bot/developers/docs/md/token-candles.md)
- [Bubble map (linked wallets)](https://ttf.bot/developers/docs/md/token-bubbles.md)
- [Deployer](https://ttf.bot/developers/docs/md/token-deployer.md)
- [One field or group](https://ttf.bot/developers/docs/md/token-field.md)

### Discovery

- [Find a token (address or symbol)](https://ttf.bot/developers/docs/md/resolve.md)
- [Trending tokens](https://ttf.bot/developers/docs/md/trending.md)

### Wallets

- [Wallet activity](https://ttf.bot/developers/docs/md/wallet-activity.md)

### Signals

- [TTF signals](https://ttf.bot/developers/docs/md/signals.md)

### Service

- [Chains, groups and prices](https://ttf.bot/developers/docs/md/chains.md)
- [Service health](https://ttf.bot/developers/docs/md/health.md)

### Webhooks

- [Webhooks: get a ping instead of asking](https://ttf.bot/developers/docs/md/webhooks.md)
- [Price rules](https://ttf.bot/developers/docs/md/webhook-price.md)
- [Trending rules](https://ttf.bot/developers/docs/md/webhook-trending.md)
- [Wallet rules](https://ttf.bot/developers/docs/md/webhook-wallet.md)
- [Signal rules](https://ttf.bot/developers/docs/md/webhook-signal.md)
- [Test ping](https://ttf.bot/developers/docs/md/webhook-ping.md)
- [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md)
- [Retries, duplicates and limits](https://ttf.bot/developers/docs/md/webhook-retries.md)

### Webhook management

- [Manage webhooks from code](https://ttf.bot/developers/docs/md/webhook-api.md)
- [Rule types and bounds](https://ttf.bot/developers/docs/md/api-webhook-schema.md)
- [Webhook usage and limits](https://ttf.bot/developers/docs/md/api-webhook-usage.md)
- [List endpoints](https://ttf.bot/developers/docs/md/api-endpoints.md)
- [Create an endpoint](https://ttf.bot/developers/docs/md/api-endpoint-create.md)
- [Get one endpoint](https://ttf.bot/developers/docs/md/api-endpoint.md)
- [Update an endpoint](https://ttf.bot/developers/docs/md/api-endpoint-update.md)
- [Delete an endpoint](https://ttf.bot/developers/docs/md/api-endpoint-delete.md)
- [Rotate the signing secret](https://ttf.bot/developers/docs/md/api-secret-rotate.md)
- [Send a test delivery](https://ttf.bot/developers/docs/md/api-test-delivery.md)
- [Delivery log](https://ttf.bot/developers/docs/md/api-deliveries.md)
- [List rules](https://ttf.bot/developers/docs/md/api-rules.md)
- [Create a rule](https://ttf.bot/developers/docs/md/api-rule-create.md)
- [Check a rule without saving](https://ttf.bot/developers/docs/md/api-rule-check.md)
- [Get one rule](https://ttf.bot/developers/docs/md/api-rule.md)
- [Update a rule](https://ttf.bot/developers/docs/md/api-rule-update.md)
- [Delete a rule](https://ttf.bot/developers/docs/md/api-rule-delete.md)

### Help

- [Errors](https://ttf.bot/developers/docs/md/errors.md)
- [Changelog](https://ttf.bot/developers/docs/md/changelog.md)

---

## TTF docs: what do you want to do?

- Section: Start here (TTF API reference)
- Source: https://ttf.bot/developers/docs/#start

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

- [Alerts in my Telegram](https://ttf.bot/developers/docs/md/telegram-alerts.md): In your chat with the TTF bot, a group or a
  channel. Set up in two minutes.
- [Alerts in my Discord](https://ttf.bot/developers/docs/md/discord-alerts.md): In your DMs or a channel of your server.
- [Filter trending tokens](https://ttf.bot/developers/docs/md/alerts-trending.md): Only fresh launches, only 25k+ liquidity, no
  honeypots, words in the name...
- [Watch wallets](https://ttf.bot/developers/docs/md/alerts-wallets.md): One message when a wallet buys, sells or moves tokens.
  Paste up to 1,000 wallets.
- [Price alerts](https://ttf.bot/developers/docs/md/alerts-price.md): When a token crosses your price, or pumps or dumps by a
  percent.
- [Change how alerts look](https://ttf.bot/developers/docs/md/alerts-design.md): Ready-made looks, your own text, buttons, quiet
  messages.

### Build with the API

- [My first API call](https://ttf.bot/developers/docs/md/quickstart.md): Try it in this page in 60 seconds, then copy the code.
- [Check a token](https://ttf.bot/developers/docs/md/token-security.md): Honeypot and tax test, lock, owner powers, a score.
- [Trending tokens](https://ttf.bot/developers/docs/md/trending.md): What people scan with TTF right now.
- [Alerts to my server](https://ttf.bot/developers/docs/md/webhooks.md): Signed HTTPS calls (webhooks) to a server or app you run.
- [Manage alerts from code](https://ttf.bot/developers/docs/md/webhook-api.md): Create and change alerts with an API key.
- [Build with AI](https://ttf.bot/developers/docs/md/build-with-ai.md): Hand these docs to ChatGPT, Claude or a coding assistant:
  Markdown copies, llms.txt, the OpenAPI contract and ready prompts.
- [Something went wrong](https://ttf.bot/developers/docs/md/errors.md): Every error code in plain words.

### Your account

- [Plans, limits and paying](https://ttf.bot/developers/docs/md/plans.md): What Free includes, what each plan adds, how to
  pay.
- [Did my alert arrive?](https://ttf.bot/developers/docs/md/alerts-log.md): The delivery log and what each status means.
- [Open the dashboard](https://ttf.bot/developers/app/): Sign in free with Telegram or email.

### Words used in these pages

| Word | What it means |
| --- | --- |
| **Alert** | What to watch (a price, the trending board, a wallet) and where to send it. The API calls it a **rule**. |
| **Destination** | Where 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. |
| **Delivery** | One alert message on its way to one destination. The [delivery log](https://ttf.bot/developers/docs/md/alerts-log.md) shows each one. |
| **API key** | Your password for the data API. Only needed for code: alerts in Telegram or Discord need none. |
| **Credits** | What a data API call costs. Alerts do not use credits; they have their own monthly allowance ([Plans](https://ttf.bot/developers/docs/md/plans.md)). |

> 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](https://t.me/TTFBotOfficial).

---

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

- Section: Start here (TTF API reference)
- Source: https://ttf.bot/developers/docs/#build-with-ai

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

| What | Where | Use it for |
| --- | --- | --- |
| **One page as Markdown** | **Copy 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>.md` | A question about one endpoint, one alert type or one error. |
| **The whole reference** | [https://ttf.bot/developers/docs/llms-full.txt](https://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 short** | [https://ttf.bot/llms.txt](https://ttf.bot/llms.txt) and [https://ttf.bot/llms-full.txt](https://ttf.bot/llms-full.txt) | What TTF is, which pages exist and the plain-language guides. |
| **The OpenAPI contract** | [https://api.ttf.bot/openapi.json](https://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 Claude** | In the **Build with AI** menu of every page | Starts 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](https://ttf.bot/developers/app/) (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:

   ```bash
   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](https://ttf.bot/developers/app/), 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](https://ttf.bot/developers/docs/md/webhook-api.md).

3. **An alert**

   Tab **Alerts**: **Trending tokens**, pick the chains and filters ([Trending alerts and filters](https://ttf.bot/developers/docs/md/alerts-trending.md)), 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](https://ttf.bot/developers/docs/md/plans.md)).

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](https://ttf.bot/developers/docs/md/telegram-alerts.md)). 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](https://ttf.bot/developers/docs/md/credits.md)); 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](https://ttf.bot/developers/docs/errors/) says what each error code means.

---

## Plans, limits and paying

- Section: Start here (TTF API reference)
- Source: https://ttf.bot/developers/docs/#plans

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

|   | Free | Starter | Pro | Scale |
| --- | --- | --- | --- | --- |
| Price per month | $0 | $49 | $200 | $600 |
| Alert kinds | price | all | all | all |
| Destinations (Telegram, Discord, webhook) | 1 | 3 | 10 | 25 |
| Alerts | 3 | 20 | 100 | 500 |
| Alert messages per month | 1,000 | 25,000 | 250,000 | 2,000,000 |
| Watched wallets | 10 | 500 | 2,500 | 10,000 |
| Credits per month | 500 | 25,000 | 100,000 | 250,000 |
| Credits per day | 500 | 5,000 | 8,000 | 25,000 |
| Credits per minute | 60 | 300 | 300 | 1,000 |
| Requests per second | 1 | 3 | 10 | 25 |
| API keys | 2 | 3 | 5 | 10 |
| Data groups | core, candles, resolve | all | all | all |

Your own numbers can differ from this table (for example during a trial, or with a special offer): the [dashboard](https://ttf.bot/developers/app/) 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](https://ttf.bot/developers/docs/md/credits.md)). 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](https://ttf.bot/developers/app/), 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](https://ttf.bot/developers/docs/md/credits.md)).

---

## Alerts: how they work

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts

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

| Alert | You get a message when... | Read more |
| --- | --- | --- |
| **Price alerts** | a token crosses your price, or moves up or down by your percent within a time window. | [Price alerts](https://ttf.bot/developers/docs/md/alerts-price.md) |
| **Trending tokens** | a 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](https://ttf.bot/developers/docs/md/alerts-trending.md) |
| **Wallet alerts** | a wallet you watch buys, sells, sends or receives tokens. | [Wallet alerts](https://ttf.bot/developers/docs/md/alerts-wallets.md) |
| **TTF signals** | the 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](https://ttf.bot/developers/docs/md/webhook-signal.md) |

### Where it can go

| Destination | Good for | How |
| --- | --- | --- |
| **Telegram** | Your own chat with the TTF bot, a group, or a channel you run. | [Alerts in Telegram](https://ttf.bot/developers/docs/md/telegram-alerts.md) |
| **Discord** | Your DMs, or a channel of a server you manage. | [Alerts in Discord](https://ttf.bot/developers/docs/md/discord-alerts.md) |
| **Your server** | A server or app you run: a signed HTTPS call with all the data. | [Webhooks](https://ttf.bot/developers/docs/md/webhooks.md) |

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](https://ttf.bot/developers/app/) 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 says | What it means |
| --- | --- |
| **On** | Working: you get a message when it happens. |
| **Paused** | You paused it. Press **Resume** on the Alerts tab. |
| **Destination paused** | Its destination is paused or turned off: resume the destination. |
| **Needs a bigger plan** | Your plan does not include this kind of alert (any more). It comes back by itself after an upgrade. |
| **Over your plan limit** | You have more alerts than your plan allows: the newest ones rest. Delete one or upgrade. |
| **Monthly alerts used up** | This month's alert messages are used up. It goes on in the next period or after an upgrade. |
| **Cannot run** | A setting is no longer possible (for example a time window): edit it or delete it. |
| **Address cannot be watched** | An exchange, router or burn address: pause or delete this alert. |
| **Not running** | Saved, 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](https://ttf.bot/developers/docs/md/plans.md)).
- 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](https://ttf.bot/developers/docs/md/alerts-log.md) says so.
- Alerts show facts, never advice: an alert never means a token is safe.

---

## Alerts in Telegram

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#telegram-alerts

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](https://ttf.bot/developers/app/) 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](https://t.me/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 says | What 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](https://t.me/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](https://ttf.bot/guides/telegram-and-discord-alerts/).

---

## Alerts in Discord

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#discord-alerts

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](https://ttf.bot/developers/app/), 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](https://ttf.bot/developers/docs/md/alerts-design.md)).

### 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](https://ttf.bot/guides/telegram-and-discord-alerts/).

---

## Trending alerts and filters

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts-trending

Get a message the moment a token enters TTF trending, only on the chains you want and only when it passes your filters: liquidity, market cap, age, words in the name, tax, holders and more.

### What "trending" means here

TTF trending is a board of the 30 tokens people scan most with TTF in the last few minutes. An alert fires when a token **enters** the board with at least your number of scans, at most 15 minutes after it entered and only for tokens that enter after you made the alert (the board that is already there never fires). It needs a plan with trending data (paid plans and the trial).

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
```

### Set it up

1. **Make the alert**

   Dashboard, tab **Alerts**, **Trending tokens**, **Set up**.

2. **Pick a starting point**

   **Everything** (every token that enters trending), **Fresh launches** (under a day old, 10k+ liquidity, low tax), **Bigger pools** (100k+ liquidity, 1m+ market cap) or **Strict checks** (low tax, locked liquidity, spread-out holders). Then change anything.

3. **Pick chains**

   One, several or all chains. A filter only applies on chains that have its value (table at the end).

4. **Watch the preview**

   **Try it on the board** checks the last trending board with your filters, token by token, with the reason a token does not pass ("liquidity $9K, under $25K"). **What arrives** shows the message of the first token that passes.

### Every filter

Empty means no limit. Money takes short forms: `25k`, `1.5m`. A token has 15 minutes after it enters trending to pass: one that fails now can still pass a few minutes later.

| In the dashboard | In the API | What it does |
| --- | --- | --- |
| **Scans, at least** | `min_scans` | TTF scans of the token on the board. The only setting you must fill in. |
| **Only the top places** | `max_rank` | Only tokens in the top places of the board (1 to 30). |
| **Liquidity, USD** | `min_liquidity_usd` / `max_liquidity_usd` | Money in the token's biggest pool, in US dollars. |
| **Market cap, USD** | `min_market_cap_usd` / `max_market_cap_usd` | Market cap in US dollars (the fully diluted value when no market cap is known). |
| **Volume 24 h, at least** | `min_volume_24h_usd` | Trading volume of the last 24 hours, in US dollars. |
| **Price change 1 h, %** | `min_price_change_1h_pct` / `max_price_change_1h_pct` | Price change of the last hour. Negative is a drop. |
| **Buys 1 h, at least** | `min_buys_1h` | Number of buys in the last hour. |
| **Token age, hours** | `min_age_hours` / `max_age_hours` | Age of the token's biggest pool. |
| **Paired with** | `pair_with` | The coin of the pool: the chain's own coin (`native`) or a stablecoin (`stable`). |
| **Must contain one of** | `name_include` | Words in the name or the symbol: at least one must be there. Up to 50 words of up to 32 characters, plain text. |
| **Never contain** | `name_exclude` | None of these words may be in the name or the symbol. |
| **How words match** | `whole_words` | **Part of a word** (the default: "cat" also finds "Bobcat") or **Whole words only**. Never case sensitive; accents and look-alike letters count as the plain letter. |
| **Skip flagged honeypots** | `exclude_honeypot` | Leaves out tokens the TTF buy and sell test flagged as a honeypot (you can buy, but not sell). |
| **Buy tax, at most %** | `max_buy_tax_pct` | Tax taken on a buy, measured by the TTF buy and sell test. |
| **Sell tax, at most %** | `max_sell_tax_pct` | Tax taken on a sell, measured the same way. |
| **Liquidity locked or burned, at least %** | `min_locked_pct` | Share of the pool that is locked or burned. |
| **Holders, at least** | `min_holders` | Number of wallets that hold the token. |
| **Top 10 wallets hold at most %** | `max_top10_pct` | Share of the supply held by the 10 biggest wallets. |
| **Ownership renounced** | `require_renounced` | The contract has no owner any more. |
| **Source code verified** | `require_verified_source` | The contract's source code is published and verified. |
| **Mint authority off** | `require_mint_disabled` | Solana: nobody can make more of the token. |
| **Freeze authority off** | `require_freeze_disabled` | Solana: nobody can freeze holders' tokens. |
| **Launchpad** | `launchpad` | Solana: `only` = launchpad tokens only; `none` = no launchpad detected by TTF (a token from a launchpad TTF could not recognise can still pass). |
| **Has a website** | `require_website` | The token lists a website. |
| **Has an X account** | `require_x` | The token lists an X account. |
| **Has a Telegram group** | `require_telegram` | The token lists a Telegram group. |
| **Same token again after**, **Alerts per hour, at most**, **When a value is unknown** | `repeat` / `max_per_hour` / `unknown` | How often: see the next table. |

### Different values per chain

The filters apply to every chain you picked. Press a chain's tab to give it its own value (for example 50k liquidity on Ethereum, 10k on Solana) or **no limit** there. A chain tab only offers the filters that chain has.

### How often

| Setting | What it does |
| --- | --- |
| **Same token again after** | Empty: once each time a token enters trending (it has to leave the board for 20 minutes to enter again). **1 hour**, **6 hours** or **24 hours**: the same token again only after that long. **Never**: each token only once (remembered for 180 days). |
| **Alerts per hour, at most** | A cap over any 60 minutes, from 1 to 1,000. Tokens over the cap are skipped, not saved up. |
| **When a value is unknown** | **Do not alert** (the default): a filter whose value TTF does not know stops the alert. **Alert and say so**: the alert still goes out and its message lists the unknown values. Unknown is never counted as zero or as "passed". |

### Where the values come from

Market values (liquidity, market cap, volume, price change, buys, age, the coin it is paired with, website and socials) are read for the board's tokens every time the board updates. Token checks (honeypot, tax, lock, holders, owner, source code, Solana authorities) come from the newest TTF scan of the token and count only while fresh: the buy and sell test 30 minutes, holders 6 hours, the lock 24 hours. A test that could not run is unknown, never a pass.

Not every chain has every value. A filter on a value the token's chain never has does not apply on that chain (the message says "not used on ..."):

| Values | Chains that have them |
| --- | --- |
| Scans, place on the board, name and symbol | Every chain |
| Liquidity, market cap, 24 h volume, 1 h price change, 1 h buys, age, pair coin, website, X, Telegram | Every chain except Story |
| Honeypot test, buy tax, sell tax | Every chain except Solana, TON, Tron, Sui, XRP Ledger |
| Liquidity locked or burned | Every chain except Tron, XRP Ledger |
| Holders, top 10 share | Ethereum, BNB Chain, Base, Arbitrum, Avalanche, Polygon, Optimism, Blast, Manta, Sonic, Solana, Tron |
| Ownership renounced | Every chain except Solana, TON, Tron, Sui, XRP Ledger |
| Source code verified | Ethereum, BNB Chain, Base, Arbitrum, Avalanche, Polygon, Optimism, Blast, Sonic |
| Mint authority, freeze authority, launchpad | Solana |

### In the message

With filters, the standard message adds a market line, a checks line, the unknown values and "Passed your filters." Without filters it stays short:

Trending alert without filters

```
🔥 DEMO just entered trending - Ethereum
Rank 3 - 12 scans
Open - Scan
via TTF
```

Change the look in [Design the message](https://ttf.bot/developers/docs/md/alerts-design.md). A webhook gets the same values as data fields ([Trending rules](https://ttf.bot/developers/docs/md/webhook-trending.md)).

> Passing your filters means only that: the numbers matched. It never means a token is safe.

---

## Wallet alerts

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts-wallets

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](https://ttf.bot/developers/docs/md/plans.md)). 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](https://ttf.bot/developers/docs/md/alerts-design.md)).
- Webhooks are not merged: your server gets one delivery per transfer, with the transaction id to group them ([Wallet rules](https://ttf.bot/developers/docs/md/webhook-wallet.md)).

### 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

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts-price

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

| Kind | Fires when | Example |
| --- | --- | --- |
| **Crosses a price** | The 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 percent** | The 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

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts-design

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.

| Value | What | Alerts | Type | Example |
| --- | --- | --- | --- | --- |
| `{rule_name}` | Alert name | every alert | text, cleaned | `Demo alert` |
| `{kind_label}` | Alert type | every alert and the test | as shown | `Price cross` |
| `{chain}` | Chain key | every alert | text | `eth` |
| `{chain_name}` | Chain | every alert | as shown | `Ethereum` |
| `{time}` | Time | every alert and the test | as shown | `2026-11-18 11:06 UTC` |
| `{time_hm}` | Time (short) | every alert and the test | as shown | `11:06 UTC` |
| `{token}` | Token address | every alert | text | `0x000000000000000000000000000000000000dead` |
| `{token_short}` | Token (short) | every alert | as shown | `0x0000…dead` |
| `{token_symbol}` | Token symbol | price cross, price move | text, cleaned | `DEMO` |
| `{symbol}` | Symbol | trending, wallet, signal | text, cleaned | `DEMO` |
| `{name}` | Token name | trending, signal | text, cleaned | `Demo Token` |
| `{price}` | Price | price cross, price move, signal | number | `$2.04` |
| `{threshold}` | Threshold | price cross | number | `$2.00` |
| `{side}` | Direction | price cross | text | `above` |
| `{change_pct}` | Change % | price cross, price move | number | `2` |
| `{window}` | Window | price move | text | `1h` |
| `{threshold_pct}` | Target % | price move | number | `4` |
| `{base_price}` | Base price | price move | number | `$1.95` |
| `{base_time}` | Base time | price move | as shown | `2026-11-18 10:06 UTC` |
| `{rank}` | Rank | trending | number | `3` |
| `{scans}` | Scans | trending | number | `12` |
| `{min_scans}` | Min scans | trending | number | `5` |
| `{first_seen}` | First seen | trending | as shown | `2026-11-18 11:04 UTC` |
| `{liquidity}` | Liquidity | trending, signal | number | `$62K` |
| `{market_cap}` | Market cap | trending, signal | number | `$480K` |
| `{change_1h}` | Change 1 h % | trending | number | `38.5` |
| `{buy_tax}` | Buy tax % | trending | number | `0` |
| `{sell_tax}` | Sell tax % | trending | number | `5` |
| `{locked_pct}` | Locked or burned % | trending | number | `100` |
| `{holders}` | Holders | trending | number | `900` |
| `{top10_pct}` | Top 10 share % | trending | number | `22.5` |
| `{market_line}` | Market line | trending, signal | as shown | `Liquidity $62K - MC $480K - 1 h +38.5%` |
| `{checks_line}` | Checks line | trending | as shown | `Tax 0% / 5% - locked 100% - 900 holders` |
| `{unknown_values}` | Unknown values | trending | as shown | `source code` |
| `{filters_note}` | Filters note | trending | as shown | `Passed your filters.` |
| `{wallet}` | Wallet | wallet | text | `0x000000000000000000000000000000000000beef` |
| `{wallet_short}` | Wallet (short) | wallet | as shown | `0x0000…beef` |
| `{wallet_label}` | Wallet label | wallet | text, cleaned | - |
| `{amount}` | Amount | wallet | as shown | `1.25` |
| `{swap_sent}` | Swap: paid | wallet | as shown | - |
| `{swap_received}` | Swap: received | wallet | as shown | - |
| `{network_fee}` | Network fee | wallet | as shown | - |
| `{value_usd}` | Value | wallet | number | `$2.5K` |
| `{direction}` | Direction | wallet | text | `in` |
| `{from}` | Sender | wallet | as shown | `0x0000…cafe` |
| `{to}` | Receiver | wallet | as shown | `0x0000…beef` |
| `{tx}` | Transaction | wallet | text | `0xabababababababababababababababababababababababababababababababab` |
| `{signal_kind}` | Signal | signal | text | `breakout` |
| `{signal_text}` | Signal text | signal | text, cleaned | `Demo signal: this is a sample` |
| `{score}` | Score | signal | number | `87` |
| `{multiple}` | Multiple | signal | number | `1x` |
| `{plan_text}` | Plan | signal | text, cleaned | `if it holds 24h → enter - sell 50% at 2x - sell 50% every 3x after` |
| `{plan_short}` | Plan (short) | signal | text, cleaned | `if it holds 24h → enter - sell 50% at 2x - sell 50% every 3x after` |
| `{called_at}` | Called at | signal | as shown | `2026-11-18 11:06 UTC` |
| `{tier_name}` | Signal tier | signal | as shown | `Daily ATH` |
| `{grade}` | Signal grade | signal | as shown | `STRONG` |
| `{dex}` | DEX | signal | text, cleaned | `uniswap` |
| `{age}` | Token age | signal | as shown | `9d` |
| `{breakout_pct}` | Above the old ATH % | signal | number | `2.5` |
| `{prev_ath}` | Previous ATH (market cap) | signal | number | `$18.86M` |
| `{prev_ath_age}` | Previous ATH age | signal | as shown | `2d` |
| `{volume_24h}` | Volume 24 h | signal | number | `$3.87M` |
| `{change_24h}` | Change 24 h % | signal | number | `31.4` |
| `{buys_24h}` | Buys 24 h | signal | number | `4,210` |
| `{sells_24h}` | Sells 24 h | signal | number | `2,960` |
| `{buy_sell_ratio}` | Buys / sells | signal | number | `1.42` |
| `{entry_mc}` | Market cap at the call | signal | number | - |
| `{called_ago}` | Called (ago) | signal | as shown | `0m` |
| `{move_line}` | Move line | signal | as shown | `Broke ATH by +2.5% (prev ATH $18.86M - 2d ago)` |
| `{activity_line}` | Activity line | signal | as shown | `24h +31.4% - Vol $3.87M - B 4,210 / S 2,960 (1.42)` |
| `{ping_text}` | Test text | test | text, cleaned | `Hello from TTF` |
| `{endpoint_name}` | Destination name | every alert and the test | text, cleaned | `Demo destination` |
| `{delivery_short}` | Delivery id | every alert and the test | as shown | `DEMO000P` |
| `{link_token}` | Token page | every alert | a link, for `href` | - |
| `{link_scan}` | Scan in TTF Bot | every alert | a link, for `href` | - |
| `{link_tx}` | Transaction | wallet | a link, for `href` | - |
| `{link_wallet}` | Wallet page | wallet | a link, for `href` | - |
| `{is_up}` | Price went up | price cross, price move | yes / no, for `{if}` | - |
| `{is_down}` | Price went down | price cross, price move | yes / no, for `{if}` | - |
| `{is_out}` | Sent from the wallet | wallet | yes / no, for `{if}` | - |
| `{is_in}` | Received by the wallet | wallet | yes / no, for `{if}` | - |
| `{has_label}` | Wallet has a label | wallet | yes / no, for `{if}` | - |
| `{is_swap}` | The transaction is a swap | wallet | yes / no, for `{if}` | - |
| `{has_unknown}` | Some values unknown | trending | yes / no, for `{if}` | - |
| `{is_breakout}` | The signal is an ATH breakout | signal | yes / no, for `{if}` | - |
| `{is_call}` | The signal is a call milestone | signal | yes / no, for `{if}` | - |
| `{has_trades}` | Buys or sells are known | signal | yes / no, for `{if}` | - |

### Formats

| Format | What it does | Works on | Example |
| --- | --- | --- | --- |
| `\|usd` | Dollars, short | numbers | `2550000` → `$2.55M` |
| `\|price` | A price, with small prices written out | numbers | `1.23e-05` → `$0.00001230` |
| `\|num` | A number, short | numbers | `2550000` → `2.55M` |
| `\|int` | A whole number with separators | numbers | `2550000` → `2,550,000` |
| `\|pct` | Percent, 2 decimals | numbers | `4.5` → `4.50%` |
| `\|pct1` | Percent, 1 decimal | numbers | `4.5` → `4.5%` |
| `\|pct0` | Percent, no decimals | numbers | `4.5` → `5%` |
| `\|signed` | Percent with + or - | numbers | `4.5` → `+4.5%` |
| `\|x` | A multiple | numbers | `3` → `3x` |
| `\|raw` | The value as it is | numbers, yes / no values | `4.5` → `4.5` |
| `\|upper` | Text in capitals | text | `Demo` → `DEMO` |
| `\|lower` | Text in small letters | text | `Demo` → `demo` |
| `\|short` | A long address, shortened | text | `0x000000000000000000000000000000000000dead` → `0x00…dead` |
| `\|yesno` | A true / false value as Yes or No | yes / no values | `True` → `Yes` |
| `\|tick` | A true / false value as a sign | yes / no values | `False` → `✅` |

### 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?

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#alerts-log

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](https://ttf.bot/developers/docs/md/api-deliveries.md) of the API.

### Status of a delivery

| Status | What it means |
| --- | --- |
| `pending` | Sending now. |
| `delivered` | It arrived. For your server: it answered with a 2xx status. |
| `retrying` | Not delivered yet. TTF tries again by itself (your server: after 1 min, 5 min, 30 min, 2 h and 12 h). |
| `dead` | Given 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_expired` | Could not be tried in time because our sending side was busy. Not your fault and not counted. |
| `lost` | Lost 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:

| Reason | What it means |
| --- | --- |
| `ok` | Sent. |
| `tg_blocked` | The bot is blocked in that chat. Unblock it in Telegram, then press Re-check. |
| `tg_kicked` | The bot was removed from the chat. Add it back, then press Re-check. |
| `tg_chat_gone` | Telegram cannot find that chat any more. Check that it still exists, then press Re-check. |
| `dc_50013` | Discord says the bot may not post there: fix the channel permissions and press Re-check. |
| `dc_50001` | Discord says the bot cannot see that channel: fix its permissions and press Re-check. |
| `dc_10003` | Discord cannot find that channel any more. Check it, then press Re-check. |
| `dc_50007` | Discord did not let the bot message you: allow DMs from server members, then press Re-check. |
| `stale` | The message waited more than 15 minutes and was dropped, because old alerts are not useful. |
| `access_lost` | TTF could not confirm that this chat is still yours. Press Re-check. |
| `rate_capped` | This destination got more than 600 alerts in an hour, so this one was not sent. |
| `render_failed` | The message could not be built from your design. Check it in Edit message. |
| `render_rejected` | The chat app did not accept the message design. Check it in Edit message. |
| `too_long` | The message was too long for the chat app. Shorten it in Edit message. |
| `provider_unavailable` | The chat app was not answering. TTF tried again while the alert was still useful. |
| `tg_forbidden` | Telegram says the bot cannot post: fix its permissions and press Re-check. |
| `dc_missing_access` | Discord says the bot cannot see that channel: fix its permissions and press Re-check. |
| `dc_missing_perms` | Discord says the bot may not post there: fix the channel permissions and press Re-check. |
| `dc_cannot_dm` | Discord did not let the bot message you: share a server with it and allow DMs, then press Re-check. |
| `verify_unavailable` | TTF could not check the chat just then (it never sends without checking). |
| `chat_off` | Chat delivery was switched off for the moment. |
| `paced` | Held for a moment to stay within the chat app's speed limit. |
| `timeout` | The chat app took too long to answer. |
| `tg_floodwait` | Telegram asked TTF to slow down. The message goes out shortly. |
| `tx_wait` | Waiting a moment for the transaction details. |
| `tx_merge` | Waiting for the message about the same swap. |
| `tx_failed` | The transaction failed on-chain, so nothing moved and no message was sent. |
| `merged` | This 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 says | What it means |
| --- | --- |
| **Working** | Messages arrive. |
| **Having trouble** | The latest messages did not arrive. TTF keeps trying: look at the delivery log. |
| **Paused** | You paused it. Nothing is sent or saved up until you press **Resume**. |
| **Turned off after failures** | Messages kept failing for over an hour. Fix the cause, send a test, then **Resume**. |
| **Over your plan limit** | You have more destinations than your plan allows: delete one or upgrade. |
| **Needs attention** | Telegram 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](https://ttf.bot/developers/docs/md/webhook-retries.md)).

---

## Quickstart: your first call in 60 seconds

- Section: Get started (TTF API reference)
- Source: https://ttf.bot/developers/docs/#quickstart

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](https://ttf.bot/developers/docs/md/alerts.md).

1. **Sign in (free)**

   Open the [developer dashboard](https://ttf.bot/developers/login/) 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](https://ttf.bot/developers/docs/md/token-market.md) (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:

```bash
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

- [Full token report](https://ttf.bot/developers/docs/md/token-report.md): All data of a token in one call.
- [Trending tokens](https://ttf.bot/developers/docs/md/trending.md): What people scan right now.
- [Webhooks](https://ttf.bot/developers/docs/md/webhooks.md): Get a ping when a price crosses or a wallet moves.
- [Credits & limits](https://ttf.bot/developers/docs/md/credits.md): What each call costs.

---

## Authentication: your API key

- Section: Get started (TTF API reference)
- Source: https://ttf.bot/developers/docs/#authentication

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](https://ttf.bot/developers/app/), 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](https://ttf.bot/developers/docs/md/webhook-api.md) when you made it.

### No key needed

[Chains & prices](https://ttf.bot/developers/docs/md/chains.md) and [Service health](https://ttf.bot/developers/docs/md/health.md) are open and free.

---

## Response format

- Section: Get started (TTF API reference)
- Source: https://ttf.bot/developers/docs/#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:

```json
{
  "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](https://ttf.bot/developers/docs/md/errors.md).

### 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

- Section: Get started (TTF API reference)
- Source: https://ttf.bot/developers/docs/#credits

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.

| Group | What | Credits | From cache | From plan | Chains |
| --- | --- | --- | --- | --- | --- |
| [`core`](https://ttf.bot/developers/docs/md/token-market.md) | Price & market (core) | 1 | 1 | Free | all |
| [`security`](https://ttf.bot/developers/docs/md/token-security.md) | Security check | 4 | 1 | Starter | 33 chains |
| [`holders`](https://ttf.bot/developers/docs/md/token-holders.md) | Top holders | 4 | 1 | Starter | eth, sol, base, bsc |
| [`candles`](https://ttf.bot/developers/docs/md/token-candles.md) | Price candles | 1 | 1 | Free | all |
| [`bubbles`](https://ttf.bot/developers/docs/md/token-bubbles.md) | Bubble map | 4 | 1 | Starter | 8 chains |
| [`deployer`](https://ttf.bot/developers/docs/md/token-deployer.md) | Deployer | 3 | 1 | Starter | 39 chains |
| [`resolve`](https://ttf.bot/developers/docs/md/resolve.md) | Chain and main pair | 1 | 1 | Free | all |
| [`trending`](https://ttf.bot/developers/docs/md/trending.md) | Trending tokens | 2 | 1 | Starter | all |
| [`wallet`](https://ttf.bot/developers/docs/md/wallet-activity.md) | Wallet activity | 3 | 1 | Starter | all |
| [`signals`](https://ttf.bot/developers/docs/md/signals.md) | Signals | 1 | 1 | Starter | all |
| [`resolve`](https://ttf.bot/developers/docs/md/resolve.md) | Find a token | 1 | 1 | Free | all |
| `chains`, `health` | Lists and status | 0 | 0 | no 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

|   | Free | Starter | Pro | Scale |
| --- | --- | --- | --- | --- |
| Price per month | $0 | $49 | $200 | $600 |
| Alert kinds | price | all | all | all |
| Destinations (Telegram, Discord, webhook) | 1 | 3 | 10 | 25 |
| Alerts | 3 | 20 | 100 | 500 |
| Alert messages per month | 1,000 | 25,000 | 250,000 | 2,000,000 |
| Watched wallets | 10 | 500 | 2,500 | 10,000 |
| Credits per month | 500 | 25,000 | 100,000 | 250,000 |
| Credits per day | 500 | 5,000 | 8,000 | 25,000 |
| Credits per minute | 60 | 300 | 300 | 1,000 |
| Requests per second | 1 | 3 | 10 | 25 |
| API keys | 2 | 3 | 5 | 10 |
| Data groups | core, candles, resolve | all | all | all |

Your own numbers (they can differ from this table, for example during a trial) are in the [dashboard](https://ttf.bot/developers/app/), 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

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-report

`GET /v1/token/{chain}/{address}`

- Base URL: `https://api.ttf.bot`
- Cost: Sum of the groups you ask
- Plan: depends on the group
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

#### Query parameters

- `fields` (string, query, optional): 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.

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

  - Groups, comma separated: `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). Nothing picked: core.
  - At most 200 characters.
  - Example: `core,security`
- `interval` (enum, query, optional): Candle interval (only with the candles group). Default 15m.
  - Allowed: `1m`, `5m`, `15m`, `1h`, `4h`, `1d`.
  - Default: `15m`.
  - Example: `15m`
- `limit` (integer, query, optional): Holders rows (only with the holders group), 1-30. Default 20.
  - Default: `20`.
  - Range: 1 to 30.
  - Example: `20`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/token/eth/0x6982508145454ce325ddbe47a25d4ec3d2311933?fields=core,security' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Token data by field groups

```json
{
  "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"
  }
}
```

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

```json
{
  "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"
  }
}
```

`200` (`partial`): 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).

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenAnswer`).

#### `data`

- `bubbles` (object (or a group error)): The bubbles group (4 credits live, 1 cached).
  - `clusters` (array of objects, always): The groups, biggest first.
    - `holders` (array of objects, always): The wallets of the group.
      - `address` (string, always): Wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
      - `pct` (number, always): Share of the supply it holds. Percent (5.2 = 5.2 %).
      - `balance` (string): Tokens it holds (human units). Decimal string (never a float, no exponent).
      - `label` (string): A public name of the wallet (an exchange, a contract) when known. Third-party text: escape it.
      - `marks` (array of strings): Behaviour marks of the wallet. Known values: `sniper`, `bundler`, `insider`, `dev` (more may come: handle unknown ones).
      - `tags` (array 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).
    - `id` (integer, always): Group number in this answer.
    - `size` (integer, always): Wallets in the group.
    - `pct` (number): Share of the supply the group holds. Percent (5.2 = 5.2 %).
    - `tags` (array 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).
  - `mode` (string, always): clusters = linked groups were found; holders = no links known, the top holders are shown as one group (never "linked"). One of: `clusters`, `holders`.
  - `stats` (object): Totals over the map (a value the source does not give is absent).
    - `bundlers_pct` (number): Share held by bundler wallets. Percent (5.2 = 5.2 %).
    - `dev_pct` (number): Share held by the developer. Percent (5.2 = 5.2 %).
    - `half_supply_wallets` (integer): How few wallets hold half the supply.
    - `in_view_pct` (number): Share of the supply the wallets on the map hold. Percent (5.2 = 5.2 %).
    - `insiders_pct` (number): Share held by insider wallets. Percent (5.2 = 5.2 %).
    - `largest_pct` (number): Share of the biggest single wallet. Percent (5.2 = 5.2 %).
    - `linked_groups` (integer): Linked groups found.
    - `snipers_pct` (number): Share held by sniper wallets. Percent (5.2 = 5.2 %).
    - `top10_pct` (number): Share of the 10 biggest wallets. Percent (5.2 = 5.2 %).
    - `wallets` (integer): Wallets on the map.
  - `tag_text` (map of strings): What each tag means, keyed by tag.
  - `total_cluster_pct` (number): Share of the supply held by all linked groups together. Percent (5.2 = 5.2 %).
- `candles` (object (or a group error)): The candles group (1 credits live, 1 cached).
  - `candles` (array of rows, always): The candles, oldest first.
    - Each row is a list, in this order:
      - column 0 `time_ms` (integer): Candle open time. Unix time in milliseconds.
      - column 1 `open_usd` (string): Open price in US dollars. Decimal string (never a float, no exponent).
      - column 2 `high_usd` (string): High price in US dollars. Decimal string (never a float, no exponent).
      - column 3 `low_usd` (string): Low price in US dollars. Decimal string (never a float, no exponent).
      - column 4 `close_usd` (string): Close price in US dollars. Decimal string (never a float, no exponent).
      - column 5 `volume_usd` (integer): Volume of the candle. Whole US dollars (integer).
  - `columns` (array of strings, always): 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"]`.
  - `interval` (string, always): The candle interval. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `1d`.
  - `change_pct` (number): Price change from the first candle's open to the last close. Percent (5.2 = 5.2 %).
  - `pair` (string): The pool the candles are from.
- `core` (object (or a group error)): The core group (1 credits live, 1 cached).
  - `token` (object, always): Which token this is (always kept, whatever `fields` asks).
    - `address` (string, always): Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `chain` (string, always): Chain id (GET /v1/chains).
    - `name` (string): Token name, as the market lists it.
    - `symbol` (string): Ticker, as the market lists it.
  - `liquidity` (object): The main pool.
    - `dex` (string): DEX of the main pool ("uniswap", "raydium", ...).
    - `pair` (string): Pair (pool) address of the main pool.
    - `pair_created_at` (string (date-time)): When the main pool was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").
    - `usd` (integer): Liquidity of the main pool. Whole US dollars (integer).
  - `market` (object): Market size.
    - `market_cap_usd` (integer): Market cap (or fully diluted value when the market reports only that). Whole US dollars (integer).
    - `txns_24h` (object): Trades over the last 24 hours.
      - `buys` (integer, always): Buy trades.
      - `sells` (integer, always): Sell trades.
    - `volume_24h_usd` (integer): Traded volume over the last 24 hours. Whole US dollars (integer).
  - `price` (object): The price.
    - `change_pct` (object): Price change per window (percent). A window the market does not report is absent.
      - `h1` (number): Price change over the last hour. Percent (5.2 = 5.2 %).
      - `h24` (number): Price change over the last 24 hours. Percent (5.2 = 5.2 %).
      - `h6` (number): Price change over the last 6 hours. Percent (5.2 = 5.2 %).
      - `m5` (number): Price change over the last 5 minutes. Percent (5.2 = 5.2 %).
    - `usd` (string): Price of one token in US dollars. Decimal string (never a float, no exponent).
  - `socials` (map of strings): The project's links, keyed by site ("website", "twitter", "telegram", ...). Only https URLs.
- `deployer` (object (or a group error)): The deployer group (3 credits live, 1 cached).
  - `address` (string, always): Deployer wallet (0x + 40 hex).
  - `created_at` (string (date-time)): When the contract was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").
  - `tx` (string): The creation transaction hash.
- `holders` (object (or a group error)): The holders group (4 credits live, 1 cached).
  - `holders` (array of objects, always): The top holders (`limit` rows, default 20).
    - `address` (string, always): Holder wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `amount` (string): Tokens it holds (human units: decimals applied). Decimal string (never a float, no exponent).
    - `fresh` (boolean): true = a fresh wallet (new, little history): a common sign of insiders or bundles.
    - `pct` (number): Share of the supply it holds. Percent (5.2 = 5.2 %).
  - `top10_pct` (number, always): Share of the supply the 10 biggest holders own. Percent (5.2 = 5.2 %).
  - `holder_count` (integer): Number of holders (when the source reports it).
- `resolve` (object (or a group error)): The resolve group (1 credits live, 1 cached).
  - `address` (string, always): Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
  - `chain` (string, always): Chain id.
  - `listed` (boolean, always): true = a market lists the token; false = no market lists it (then there is no pair).
  - `dex` (string): DEX of the main pair.
  - `liquidity_usd` (integer): Symbol / name search only (always there): liquidity over the token's pairs. Whole US dollars (integer).
  - `name` (string): Token name.
  - `pair` (string): Main pair (pool) address. A listed token can lack it (unknown).
  - `symbol` (string): Ticker.
  - `volume_24h_usd` (integer): Symbol / name search only (always there): 24 h volume over the token's pairs. Whole US dollars (integer).
- `security` (object (or a group error)): The security group (4 credits live, 1 cached).
  - `complete` (boolean, always): true = every part of the scan answered. false = see missing; the answer is then not a rating.
  - `missing` (array of strings, always): 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).
  - `checks` (array of objects, always*): Every check the scan ran, with its outcome.
    - `id` (string, always): Stable id of the check. Known values: `honeypot`, `tax`, `lp_lock`, `mint`, `freeze`, `owner`, `source`, `contract`, `holders`, `liquidity` (more may come: handle unknown ones).
    - `label` (string, always): The check in words.
    - `state` (string, always): ok, warn, bad, or na (not answered). One of: `ok`, `warn`, `bad`, `na`.
    - `value` (string): What it found, in words ("0% / 0%", "top 10: 31%").
  - `flags` (array of objects, always*): Findings, worst first. Empty = nothing found.
    - `id` (string, always): 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).
    - `severity` (string, always): critical (a red flag), warn (risky), info (good to know). One of: `critical`, `warn`, `info`.
    - `title` (string, always): The finding in a few words.
    - `detail` (string): One more sentence about it.
  - `verdict` (object, always*): The one-line answer.
    - `known` (boolean, always): true = enough checks answered to rate the token; false = not a rating, check it yourself.
    - `label` (string, always): The verdict in words ("No honeypot, no red flags", "Honeypot", "2 warnings", ...).
    - `level` (string, always): ok = nothing bad found, warn = look closer, danger = red flag (honeypot, critical finding). One of: `ok`, `warn`, `danger`.
    - `reasons` (array of strings, always): Short reasons behind the verdict (at most a few), most important first.
    - `sellable` (boolean): true = the sell simulation passed, false = it failed (honeypot). Absent = not simulated.
  - `contract` (object): Contract facts (true / false; unknown = absent).
    - `freeze_authority` (boolean): Solana: true = the freeze authority is still set (wallets can be frozen).
    - `mint_authority` (boolean): Solana: true = the mint authority is still set (more tokens can be created).
    - `owner_renounced` (boolean): true = nobody owns the contract any more.
    - `proxy` (boolean): true = the contract is a proxy (its code can be swapped).
    - `verified_source` (boolean): true = the source code is verified on the explorer.
  - `lp_lock` (object): Is the liquidity locked or burned?
    - `burned_pct` (number): Share of the liquidity that is burned. Percent (5.2 = 5.2 %).
    - `locked` (boolean): true = (part of) the liquidity is locked or burned.
    - `locked_pct` (number): Share of the liquidity that is locked. Percent (5.2 = 5.2 %).
    - `locker` (string): Who holds the lock (a locker service or contract).
    - `unlock_in_days` (number): Days until the lock ends.
  - `score` (integer): Safety score 0-100 (higher is safer). Absent when the answer is not a rating (verdict.known false or something missing).
  - `tax` (object): Trading taxes from the buy / sell simulation.
    - `buy_pct` (number): Buy tax. Percent (5.2 = 5.2 %).
    - `honeypot` (boolean): true = buying works but selling fails.
    - `max_tx_amount` (string): Largest amount one transaction may move, in tokens (absent = no limit found). Decimal string (never a float, no exponent).
    - `sell_pct` (number): Sell tax. Percent (5.2 = 5.2 %).
    - `transfer_pct` (number): Tax on a plain transfer between wallets. Percent (5.2 = 5.2 %).

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Security check

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-security

`GET /v1/token/{chain}/{address}/security`

- Base URL: `https://api.ttf.bot`
- Cost: 4 credits, 1 if cached
- Plan: requires Starter
- Chains: 33 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- `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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `elysium`, `flare`, `fraxtal`, `hedera`, `injective`, `ink`, `katana`, `mantle`, `megaeth`, `merlinchain`, `opbnb`, `plasma`, `polygonzkevm`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): The security group

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `complete` (boolean, always): true = every part of the scan answered. false = see missing; the answer is then not a rating.
- `missing` (array of strings, always): 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).
- `checks` (array of objects, always*): Every check the scan ran, with its outcome.
  - `id` (string, always): Stable id of the check. Known values: `honeypot`, `tax`, `lp_lock`, `mint`, `freeze`, `owner`, `source`, `contract`, `holders`, `liquidity` (more may come: handle unknown ones).
  - `label` (string, always): The check in words.
  - `state` (string, always): ok, warn, bad, or na (not answered). One of: `ok`, `warn`, `bad`, `na`.
  - `value` (string): What it found, in words ("0% / 0%", "top 10: 31%").
- `flags` (array of objects, always*): Findings, worst first. Empty = nothing found.
  - `id` (string, always): 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).
  - `severity` (string, always): critical (a red flag), warn (risky), info (good to know). One of: `critical`, `warn`, `info`.
  - `title` (string, always): The finding in a few words.
  - `detail` (string): One more sentence about it.
- `verdict` (object, always*): The one-line answer.
  - `known` (boolean, always): true = enough checks answered to rate the token; false = not a rating, check it yourself.
  - `label` (string, always): The verdict in words ("No honeypot, no red flags", "Honeypot", "2 warnings", ...).
  - `level` (string, always): ok = nothing bad found, warn = look closer, danger = red flag (honeypot, critical finding). One of: `ok`, `warn`, `danger`.
  - `reasons` (array of strings, always): Short reasons behind the verdict (at most a few), most important first.
  - `sellable` (boolean): true = the sell simulation passed, false = it failed (honeypot). Absent = not simulated.
- `contract` (object): Contract facts (true / false; unknown = absent).
  - `freeze_authority` (boolean): Solana: true = the freeze authority is still set (wallets can be frozen).
  - `mint_authority` (boolean): Solana: true = the mint authority is still set (more tokens can be created).
  - `owner_renounced` (boolean): true = nobody owns the contract any more.
  - `proxy` (boolean): true = the contract is a proxy (its code can be swapped).
  - `verified_source` (boolean): true = the source code is verified on the explorer.
- `lp_lock` (object): Is the liquidity locked or burned?
  - `burned_pct` (number): Share of the liquidity that is burned. Percent (5.2 = 5.2 %).
  - `locked` (boolean): true = (part of) the liquidity is locked or burned.
  - `locked_pct` (number): Share of the liquidity that is locked. Percent (5.2 = 5.2 %).
  - `locker` (string): Who holds the lock (a locker service or contract).
  - `unlock_in_days` (number): Days until the lock ends.
- `score` (integer): Safety score 0-100 (higher is safer). Absent when the answer is not a rating (verdict.known false or something missing).
- `tax` (object): Trading taxes from the buy / sell simulation.
  - `buy_pct` (number): Buy tax. Percent (5.2 = 5.2 %).
  - `honeypot` (boolean): true = buying works but selling fails.
  - `max_tx_amount` (string): Largest amount one transaction may move, in tokens (absent = no limit found). Decimal string (never a float, no exponent).
  - `sell_pct` (number): Sell tax. Percent (5.2 = 5.2 %).
  - `transfer_pct` (number): Tax on a plain transfer between wallets. Percent (5.2 = 5.2 %).

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Price and market data

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-market

`GET /v1/token/{chain}/{address}/core`

- Base URL: `https://api.ttf.bot`
- Cost: 1 credit
- Plan: Free
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): The core group

```json
{
  "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"
  }
}
```

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

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `token` (object, always): Which token this is (always kept, whatever `fields` asks).
  - `address` (string, always): Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
  - `chain` (string, always): Chain id (GET /v1/chains).
  - `name` (string): Token name, as the market lists it.
  - `symbol` (string): Ticker, as the market lists it.
- `liquidity` (object): The main pool.
  - `dex` (string): DEX of the main pool ("uniswap", "raydium", ...).
  - `pair` (string): Pair (pool) address of the main pool.
  - `pair_created_at` (string (date-time)): When the main pool was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").
  - `usd` (integer): Liquidity of the main pool. Whole US dollars (integer).
- `market` (object): Market size.
  - `market_cap_usd` (integer): Market cap (or fully diluted value when the market reports only that). Whole US dollars (integer).
  - `txns_24h` (object): Trades over the last 24 hours.
    - `buys` (integer, always): Buy trades.
    - `sells` (integer, always): Sell trades.
  - `volume_24h_usd` (integer): Traded volume over the last 24 hours. Whole US dollars (integer).
- `price` (object): The price.
  - `change_pct` (object): Price change per window (percent). A window the market does not report is absent.
    - `h1` (number): Price change over the last hour. Percent (5.2 = 5.2 %).
    - `h24` (number): Price change over the last 24 hours. Percent (5.2 = 5.2 %).
    - `h6` (number): Price change over the last 6 hours. Percent (5.2 = 5.2 %).
    - `m5` (number): Price change over the last 5 minutes. Percent (5.2 = 5.2 %).
  - `usd` (string): Price of one token in US dollars. Decimal string (never a float, no exponent).
- `socials` (map of strings): The project's links, keyed by site ("website", "twitter", "telegram", ...). Only https URLs.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Top holders

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-holders

`GET /v1/token/{chain}/{address}/holders`

- Base URL: `https://api.ttf.bot`
- Cost: 4 credits, 1 if cached
- Plan: requires Starter
- Chains: eth, sol, base, bsc
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

#### Query parameters

- `limit` (integer, query, optional): Holders rows (only with the holders group), 1-30. Default 20.
  - Default: `20`.
  - Range: 1 to 30.
  - Example: `20`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): /holders?limit=2: the top holders.

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `holders` (array of objects, always): The top holders (`limit` rows, default 20).
  - `address` (string, always): Holder wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
  - `amount` (string): Tokens it holds (human units: decimals applied). Decimal string (never a float, no exponent).
  - `fresh` (boolean): true = a fresh wallet (new, little history): a common sign of insiders or bundles.
  - `pct` (number): Share of the supply it holds. Percent (5.2 = 5.2 %).
- `top10_pct` (number, always): Share of the supply the 10 biggest holders own. Percent (5.2 = 5.2 %).
- `holder_count` (integer): Number of holders (when the source reports it).

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Price candles (chart)

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-candles

`GET /v1/token/{chain}/{address}/candles`

- Base URL: `https://api.ttf.bot`
- Cost: 1 credit
- Plan: Free
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.

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

- 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

#### Query parameters

- `interval` (enum, query, optional): Candle interval (only with the candles group). Default 15m.
  - Allowed: `1m`, `5m`, `15m`, `1h`, `4h`, `1d`.
  - Default: `15m`.
  - Example: `15m`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): The candles group

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `candles` (array of rows, always): The candles, oldest first.
  - Each row is a list, in this order:
    - column 0 `time_ms` (integer): Candle open time. Unix time in milliseconds.
    - column 1 `open_usd` (string): Open price in US dollars. Decimal string (never a float, no exponent).
    - column 2 `high_usd` (string): High price in US dollars. Decimal string (never a float, no exponent).
    - column 3 `low_usd` (string): Low price in US dollars. Decimal string (never a float, no exponent).
    - column 4 `close_usd` (string): Close price in US dollars. Decimal string (never a float, no exponent).
    - column 5 `volume_usd` (integer): Volume of the candle. Whole US dollars (integer).
- `columns` (array of strings, always): 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"]`.
- `interval` (string, always): The candle interval. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `1d`.
- `change_pct` (number): Price change from the first candle's open to the last close. Percent (5.2 = 5.2 %).
- `pair` (string): The pool the candles are from.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Bubble map (linked wallets)

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-bubbles

`GET /v1/token/{chain}/{address}/bubbles`

- Base URL: `https://api.ttf.bot`
- Cost: 4 credits, 1 if cached
- Plan: requires Starter
- Chains: 8 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- `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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arc`, `monad`, `robinhood`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): The bubbles group

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `clusters` (array of objects, always): The groups, biggest first.
  - `holders` (array of objects, always): The wallets of the group.
    - `address` (string, always): Wallet. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `pct` (number, always): Share of the supply it holds. Percent (5.2 = 5.2 %).
    - `balance` (string): Tokens it holds (human units). Decimal string (never a float, no exponent).
    - `label` (string): A public name of the wallet (an exchange, a contract) when known. Third-party text: escape it.
    - `marks` (array of strings): Behaviour marks of the wallet. Known values: `sniper`, `bundler`, `insider`, `dev` (more may come: handle unknown ones).
    - `tags` (array 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).
  - `id` (integer, always): Group number in this answer.
  - `size` (integer, always): Wallets in the group.
  - `pct` (number): Share of the supply the group holds. Percent (5.2 = 5.2 %).
  - `tags` (array 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).
- `mode` (string, always): clusters = linked groups were found; holders = no links known, the top holders are shown as one group (never "linked"). One of: `clusters`, `holders`.
- `stats` (object): Totals over the map (a value the source does not give is absent).
  - `bundlers_pct` (number): Share held by bundler wallets. Percent (5.2 = 5.2 %).
  - `dev_pct` (number): Share held by the developer. Percent (5.2 = 5.2 %).
  - `half_supply_wallets` (integer): How few wallets hold half the supply.
  - `in_view_pct` (number): Share of the supply the wallets on the map hold. Percent (5.2 = 5.2 %).
  - `insiders_pct` (number): Share held by insider wallets. Percent (5.2 = 5.2 %).
  - `largest_pct` (number): Share of the biggest single wallet. Percent (5.2 = 5.2 %).
  - `linked_groups` (integer): Linked groups found.
  - `snipers_pct` (number): Share held by sniper wallets. Percent (5.2 = 5.2 %).
  - `top10_pct` (number): Share of the 10 biggest wallets. Percent (5.2 = 5.2 %).
  - `wallets` (integer): Wallets on the map.
- `tag_text` (map of strings): What each tag means, keyed by tag.
- `total_cluster_pct` (number): Share of the supply held by all linked groups together. Percent (5.2 = 5.2 %).

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Deployer

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-deployer

`GET /v1/token/{chain}/{address}/deployer`

- Base URL: `https://api.ttf.bot`
- Cost: 3 credits, 1 if cached
- Plan: requires Starter
- Chains: 39 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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

- Combine it with [Wallet activity](https://ttf.bot/developers/docs/md/wallet-activity.md) to see what the deployer did next.

### 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): The deployer group

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

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- `address` (string, always): Deployer wallet (0x + 40 hex).
- `created_at` (string (date-time)): When the contract was created. ISO-8601 UTC ("2026-11-28T10:00:00Z").
- `tx` (string): The creation transaction hash.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## One field or group

- Section: Tokens (TTF API reference)
- Source: https://ttf.bot/developers/docs/#token-field

`GET /v1/token/{chain}/{address}/{group}`

- Base URL: `https://api.ttf.bot`
- Cost: the credits of the group you ask (1 to 4)
- Plan: depends on the group
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Token address of the chain (0x + 40 hex on EVM chains, base58 on Solana).
  - At most 64 characters.
  - Example: `0x6982508145454ce325ddbe47a25d4ec3d2311933`
- `group` (enum, path, required): 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.
  - Allowed: `bubbles`, `candles`, `checks`, `contract`, `core`, `deployer`, `flags`, `holders`, `liquidity`, `lp_lock`, `market`, `price`, `resolve`, `score`, `security`, `socials`, `tax`, `token`, `verdict`.
  - 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).
  - Example: `security`

#### Query parameters

- `interval` (enum, query, optional): Candle interval (only with the candles group). Default 15m.
  - Allowed: `1m`, `5m`, `15m`, `1h`, `4h`, `1d`.
  - Default: `15m`.
  - Example: `15m`
- `limit` (integer, query, optional): Holders rows (only with the holders group), 1-30. Default 20.
  - Default: `20`.
  - Range: 1 to 30.
  - Example: `20`

### Example request

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

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): One group or field of a token

```json
{
  "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"
  }
}
```

`200` (`holders`): /holders?limit=2: the top holders.

```json
{
  "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"
  }
}
```

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

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TokenGroupAnswer`).

#### `data`

- One of: [Price & market (core)](https://ttf.bot/developers/docs/md/token-market.md): 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 of: [Security check](https://ttf.bot/developers/docs/md/token-security.md): 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 of: [Top holders](https://ttf.bot/developers/docs/md/token-holders.md): Who holds the token: the top holders, biggest first.
- One of: [Price candles](https://ttf.bot/developers/docs/md/token-candles.md): Price candles (OHLCV) of the main pool, oldest first. Quiet periods without trades may be missing.
- One of: [Bubble map](https://ttf.bot/developers/docs/md/token-bubbles.md): 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 of: [Deployer](https://ttf.bot/developers/docs/md/token-deployer.md): Who deployed the contract (EVM chains).
- One of: [Chain and main pair](https://ttf.bot/developers/docs/md/resolve.md): Where a token trades.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Find a token (address or symbol)

- Section: Discovery (TTF API reference)
- Source: https://ttf.bot/developers/docs/#resolve

`GET /v1/resolve`

- Base URL: `https://api.ttf.bot`
- Cost: 1 credit
- Plan: Free
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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

- `q` (string, query, required): A token address, or a symbol / name (at most 40 characters; at most 100 for an address).
  - At most 100 characters.
  - Example: `PEPE`
- `chain` (string, query, optional): Only this chain (optional). Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/resolve?q=PEPE' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Resolve an address or a symbol

```json
{
  "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"
  }
}
```

`200` (`address`): q=\<address>: one match, the chain and main pair it trades on.

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

`200` (`no_match`): q=\<a symbol nobody lists>: no match, costs nothing.

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

### Response fields

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

A `200` answer is `{"data", "meta"}` (`ResolveAnswer`).

#### `data`

- `matches` (array of objects, always): For an address: ONE match. For a symbol / name: the best matches (up to 5, most liquid first). Empty = no match.
  - `address` (string, always): Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
  - `chain` (string, always): Chain id.
  - `listed` (boolean, always): true = a market lists the token; false = no market lists it (then there is no pair).
  - `dex` (string): DEX of the main pair.
  - `liquidity_usd` (integer): Symbol / name search only (always there): liquidity over the token's pairs. Whole US dollars (integer).
  - `name` (string): Token name.
  - `pair` (string): Main pair (pool) address. A listed token can lack it (unknown).
  - `symbol` (string): Ticker.
  - `volume_24h_usd` (integer): Symbol / name search only (always there): 24 h volume over the token's pairs. Whole US dollars (integer).

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 422 | `refused` | This token cannot be scanned. The attempt fee (1 credit) applies. Codes: refused. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Trending tokens

- Section: Discovery (TTF API reference)
- Source: https://ttf.bot/developers/docs/#trending

`GET /v1/trending`

- Base URL: `https://api.ttf.bot`
- Cost: 2 credits, 1 if cached
- Plan: requires Starter
- Chains: 40 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.

What TTF users are scanning right now: the most scanned tokens of a window with market cap, price and quick security badges. Perfect for a "hot right now" feed or a trending channel.

- Use `window=1h` for what is hot right now, `1d` for the day.
- Keep the answer small with `fields`, for example `symbol,scans,market_cap_usd`.

### Exact rules

The tokens people scanned most with TTF in the window, optionally on one chain, most distinct scanners first. Per token: scans, scanners, chat_groups (Telegram groups it was scanned in), the first and last scan of the window, the latest scanned market cap / price / liquidity, the market cap change over the hourly spark (last 24 h, market_cap_spark_usd) and security badges when TTF scanned it lately. `fields` keeps only the asked row keys (plus chain and address). Costs 2 credits (1 from the cache).

### Parameters

#### Query parameters

- `chain` (string, query, optional): Only this chain (optional). Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `sol`
- `window` (enum, query, optional): Time window: the board is counted over the scans of that window. Default 1d; 24h = 1d.
  - Allowed: `5m`, `1h`, `4h`, `6h`, `1d`, `24h`.
  - Default: `1d`.
  - Example: `1d`
- `limit` (integer, query, optional): Rows, 1-40. Default 30.
  - Default: `30`.
  - Range: 1 to 40.
  - Example: `30`
- `fields` (string, query, optional): Comma-separated keys each token row keeps (default all; chain and address are always kept): chain, address, symbol, name, scans, scanners, chat_groups, first_scan_ms, last_scan_ms, market_cap_usd, price_usd, liquidity_usd, market_cap_change_pct, market_cap_spark_usd, badges.
  - Values, comma separated: `chain`, `address`, `symbol`, `name`, `scans`, `scanners`, `chat_groups`, `first_scan_ms`, `last_scan_ms`, `market_cap_usd`, `price_usd`, `liquidity_usd`, `market_cap_change_pct`, `market_cap_spark_usd`, `badges`. Nothing picked: all.
  - At most 200 characters.
  - Example: `chain,address,symbol,scans`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/trending' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Most scanned tokens

```json
{
  "data": {
    "chain": "eth",
    "generated_at": "2026-11-28T10:00:00Z",
    "tokens": [
      {
        "address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
        "badges": {
          "buy_tax_pct": 0,
          "flag_count": 0,
          "honeypot": false,
          "level": "ok",
          "sell_tax_pct": 0
        },
        "chain": "eth",
        "chat_groups": 31,
        "first_scan_ms": 1794913600000,
        "last_scan_ms": 1794999990000,
        "liquidity_usd": 41200000,
        "market_cap_change_pct": 2.3,
        "market_cap_spark_usd": [
          3781000000,
          3802000000,
          3870000000
        ],
        "market_cap_usd": 3870000000,
        "name": "Pepe",
        "price_usd": "0.0000092",
        "scanners": 96,
        "scans": 412,
        "symbol": "PEPE"
      }
    ],
    "window": "1d"
  },
  "meta": {
    "cost": 2,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`TrendingAnswer`).

#### `data`

- `generated_at` (string (date-time), always): When the board was built (it is shared for about a minute). ISO-8601 UTC ("2026-11-28T10:00:00Z").
- `tokens` (array of objects, always): The tokens, most distinct scanners first.
  - `address` (string, always): Token address. Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
  - `chain` (string, always): Chain id.
  - `chat_groups` (integer, always*): Telegram groups it was scanned in during the window.
  - `first_scan_ms` (integer, always*): First scan in the window. Unix time in milliseconds.
  - `last_scan_ms` (integer, always*): Latest scan in the window. Unix time in milliseconds.
  - `scanners` (integer, always*): Distinct people who scanned it in the window.
  - `scans` (integer, always*): TTF scans of the token in the window.
  - `symbol` (string, always*): Ticker.
  - `badges` (object): Security badges from TTF's latest scan of the token (absent when not scanned lately).
    - `flag_count` (integer, always): Findings of the scan.
    - `level` (string, always): ok, warn or danger (the scan verdict). One of: `ok`, `warn`, `danger`.
    - `buy_tax_pct` (number): Buy tax. Percent (5.2 = 5.2 %).
    - `honeypot` (boolean): true = the sell simulation failed.
    - `sell_tax_pct` (number): Sell tax. Percent (5.2 = 5.2 %).
  - `liquidity_usd` (integer): Liquidity at the latest scan. Whole US dollars (integer).
  - `market_cap_change_pct` (number): Market cap change over the spark (last 24 h). Percent (5.2 = 5.2 %).
  - `market_cap_spark_usd` (array of integers): Hourly market cap over the last 24 h, oldest first (whole US dollars).
  - `market_cap_usd` (integer): Market cap at the latest scan. Whole US dollars (integer).
  - `name` (string): Token name.
  - `price_usd` (string): Price at the latest scan, in US dollars. Decimal string (never a float, no exponent).
- `window` (string, always): The window the board counts.
- `chain` (string): The chain filter, when one was asked.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Wallet activity

- Section: Wallets (TTF API reference)
- Source: https://ttf.bot/developers/docs/#wallet-activity

`GET /v1/wallet/{chain}/{address}/activity`

- Base URL: `https://api.ttf.bot`
- Cost: 3 credits, 1 if cached
- Plan: requires Starter
- Chains: 28 chains
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused call costs nothing; a failed one costs 1 credit (the attempt fee).

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.

- Want a ping the moment a wallet moves instead of asking again and again? Use a [wallet webhook](https://ttf.bot/developers/docs/md/webhook-wallet.md) 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

- `chain` (string, path, required): Chain id.
  - Allowed: `eth`, `base`, `bsc`, `abstract`, `arb`, `arc`, `avax`, `berachain`, `bttc`, `celo`, `fraxtal`, `gnosis`, `hyperevm`, `linea`, `mantle`, `megaeth`, `monad`, `opt`, `polygon`, `pulsechain`, `robinhood`, `scroll`, `sonic`, `taiko`, `unichain`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `address` (string, path, required): Wallet address (0x + 40 hex).
  - At most 64 characters.
  - Example: `0xd8da6bf26964af9d7eed9e03e53415d37aa96045`

#### Query parameters

- `limit` (integer, query, optional): Transfers per page, 1-50. Default 20.
  - Default: `20`.
  - Range: 1 to 50.
  - Example: `20`
- `cursor` (string, query, optional): data.next_cursor of the previous page (opaque). Omit for the newest page.
  - At most 200 characters.
  - Example: `MjE0MDAwMDA6MTI6MHg1ZDVk`
- `fields` (string, query, optional): Comma-separated keys each transfer keeps (default all): tx, block, time_ms, log_index, token, symbol, decimals, value, from, to, direction, source.
  - Values, comma separated: `tx`, `block`, `time_ms`, `log_index`, `token`, `symbol`, `decimals`, `value`, `from`, `to`, `direction`, `source`. Nothing picked: all.
  - At most 200 characters.
  - Example: `tx,token,value,direction`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/wallet/eth/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/activity' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Recent transfers of a wallet

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`WalletActivityAnswer`).

#### `data`

- `transfers` (array of objects, always): Transfers in and out, newest first.
  - `block` (integer, always*): Block number.
  - `direction` (string, always*): out = the wallet sent it, in = it received it, self = to itself. One of: `in`, `out`, `self`.
  - `from` (string, always*): Sender (0x + 40 hex).
  - `log_index` (integer, always*): Position of the transfer in its transaction's logs.
  - `source` (string, always*): history = public chain history, watch = recorded live by TTF's watcher. One of: `history`, `watch`.
  - `to` (string, always*): Receiver (0x + 40 hex).
  - `token` (string, always*): Token contract (0x + 40 hex); native-coin transfers use 0xeeee...eeee.
  - `tx` (string, always*): Transaction hash.
  - `value` (string, always*): Raw amount (integer string; divide by 10^decimals).
  - `decimals` (integer): Token decimals (value / 10^decimals = tokens).
  - `symbol` (string): Token ticker (third-party text: escape it).
  - `time_ms` (integer): Block time (absent when the source did not give it). Unix time in milliseconds.
- `watch` (object, always): TTF's real-time watch of this address for your account.
  - `configured` (boolean, always): true = real-time watching is set up on this chain.
  - `hot` (boolean, always): true = dropped from live watching because it moves on most blocks (history still works).
  - `live` (boolean, always): true = the watcher is running and keeping up right now.
  - `expires_ms` (integer): When it ends unless you ask again (absent while no watch exists). Unix time in milliseconds.
  - `started_ms` (integer): When your watch of the address started. Unix time in milliseconds.
- `next_cursor` (string): Pass it as ?cursor= for the next (older) page. Absent = the last page.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| 504 | `timeout` | The data took too long. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: timeout. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## TTF signals

- Section: Signals (TTF API reference)
- Source: https://ttf.bot/developers/docs/#signals

`GET /v1/signals`

- Base URL: `https://api.ttf.bot`
- Cost: 1 credit
- Plan: requires Starter
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.

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.

- Page through older signals with `cursor` = the `next_cursor` of the previous answer.
- Want them pushed instead? A [signal webhook](https://ttf.bot/developers/docs/md/webhook-signal.md) 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

- `kind` (enum, query, optional): Only signals of this kind: breakout (a new all-time high), call (a call reached a milestone), trending. Default all.
  - Allowed: `breakout`, `trending`, `call`.
  - Example: `breakout`
- `chain` (string, query, optional): Only this chain (optional). Chain id.
  - Allowed: `eth`, `sol`, `base`, `bsc`, `abstract`, `arbitrumnova`, `arc`, `berachain`, `bttc`, `celo`, `cronos`, `elysium`, `flare`, `fraxtal`, `gnosis`, `hedera`, `injective`, `ink`, `katana`, `linea`, `mantle`, `megaeth`, `merlinchain`, `monad`, `moonbeam`, `moonriver`, `opbnb`, `plasma`, `polygonzkevm`, `pulsechain`, `robinhood`, `scroll`, `seiv2`, `sophon`, `stable`, `swellchain`, `taiko`, `worldchain`, `xdc`, `zksync`.
  - At most 16 characters.
  - Example: `eth`
- `limit` (integer, query, optional): Signals per page, 1-50. Default 20.
  - Default: `20`.
  - Range: 1 to 50.
  - Example: `20`
- `cursor` (string, query, optional): data.next_cursor of the previous page. Omit for the newest page.
  - At most 32 characters.
  - Example: `1795000000000-0`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/signals' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Recent TTF signals

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`SignalsAnswer`).

#### `data`

- `live` (boolean, always): true = the signals feed is running.
- `signals` (array of objects, always): The signals (the same events a `signal` webhook rule receives).
  - `data` (object, always): A TTF signal: an ATH breakout or a call milestone. The event data (the keys of this type; unknown = absent).
    - `kind` (string, always): breakout = a new all-time high was broken, call = a call reached a milestone, trending = a trending signal. One of: `breakout`, `trending`, `call`.
    - `buys_24h` (integer): Buys in the last 24 hours.
    - `called_at_ms` (integer): When the call was made. Unix time in milliseconds.
    - `dex` (string): The exchange of the main pool (third-party text: escape it).
    - `entry_mc_usd` (string): call: the market cap when the call was made, US dollars. Decimal string (never a float, no exponent).
    - `grade` (string): The signal grade: strong (daily ATH) or early (hourly ATH). One of: `strong`, `early`.
    - `liquidity_usd` (string): Liquidity of its main pool, US dollars. Decimal string (never a float, no exponent).
    - `market_cap_usd` (string): Market cap now, US dollars. Decimal string (never a float, no exponent).
    - `multiple` (number): breakout: market cap / the all-time high it broke; call: the milestone reached since the call (2 = 2x).
    - `name` (string): Token name (third-party text: escape it).
    - `pair_created_ms` (integer): When its main pool was created (the token age).
    - `plan_text` (string): The plan line of the call ("if it holds 24h -> enter, sell 50% at 2x ...").
    - `prev_ath_mc_usd` (string): breakout: the all-time high it broke, as a market cap in US dollars. Decimal string (never a float, no exponent).
    - `prev_ath_ms` (integer): breakout: when that all-time high was set.
    - `price_change_24h_pct` (number): Price change of the last 24 hours, percent (negative = down).
    - `price_usd` (string): Price of one token now, US dollars. Decimal string (never a float, no exponent).
    - `ref` (string): An id of the signal.
    - `score` (number): Strength of the signal (higher = stronger), when given.
    - `sells_24h` (integer): Sells in the last 24 hours.
    - `symbol` (string): Ticker (third-party text: escape it).
    - `text` (string): The signal in words (third-party text: escape it).
    - `tier` (string): Which all-time high: daily (the daily ATH) or 1h (the hourly ATH). One of: `daily`, `1h`.
    - `volume_24h_usd` (string): Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
  - `chain` (string): Chain id. Absent for a signal about no chain.
  - `token` (string): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
- `next_cursor` (string): Pass it as ?cursor= for the next (older) page. Absent = the end.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: unknown chain, address, field or option. Not charged. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Not charged. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Not charged. Codes: payment_required. |
| 403 | `forbidden` | The key has no developer plan, or does not include the asked groups. Not charged. Codes: forbidden. |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests per second, or the credits of the minute / day / month are used up. See Retry-After. Not charged. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| 502 | `upstream` | A data provider did not answer. The attempt fee (1 credit) applies to core and the paid-provider groups. Codes: upstream. |
| 503 | `capacity` `busy` `unavailable` | Capacity, shedding, busy providers or the limits store is unavailable. See Retry-After. Not charged. Codes: capacity, busy, unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Chains, groups and prices

- Section: Service (TTF API reference)
- Source: https://ttf.bot/developers/docs/#chains

`GET /v1/chains`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- API key: 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.

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/chains'
```

### Example answer

`200` (`default`): Chains, groups and credits

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`ChainsAnswer`).

#### `data`

- `chains` (array of objects, always): The launch chains.
  - `family` (string, always): Chain family: evm, solana, ...
  - `groups` (array of strings, always): The field groups of GET /v1/token it serves.
  - `id` (string, always): Chain id (use it in paths).
  - `name` (string, always): Display name.
- `groups` (array of objects, always): The field groups.
  - `all_chains` (boolean, always): true = served on every launch chain; false = only on `chains`.
  - `cached_credits` (integer, always): Credits of an answer from the shared cache.
  - `credits` (integer, always): Credits of a live answer.
  - `fields` (array of strings, always): Its field names (a group of one field lists itself).
  - `name` (string, always): Group name (use it in `fields`).
  - `tag` (string, always): free = no paid provider behind it; paid = a failed answer keeps the attempt fee. One of: `free`, `paid`.
  - `chains` (array of strings): The chains it is served on (only when all_chains is false).
- `intervals` (array of strings, always): Candle intervals.
- `route_groups` (array of objects, always): The routes that are groups of their own (trending, wallet, signals).
  - `all_chains` (boolean, always): true = served on every launch chain; false = only on `chains`.
  - `cached_credits` (integer, always): Credits of an answer from the shared cache.
  - `credits` (integer, always): Credits of a live answer.
  - `name` (string, always): Group name (use it in `fields`).
  - `route` (string, always): Its path.
  - `tag` (string, always): free = no paid provider behind it; paid = a failed answer keeps the attempt fee. One of: `free`, `paid`.
  - `chains` (array of strings): The chains it is served on (only when all_chains is false).
- `trending_windows` (array of strings, always): Trending windows.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 404 | `not_found` | Not found: no data for this token (the attempt fee applies, see the description), or the API is switched off / an unknown route (not charged). Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Service health

- Section: Service (TTF API reference)
- Source: https://ttf.bot/developers/docs/#health

`GET /v1/health`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- API key: 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.

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/health'
```

### Example answer

`200` (`default`): Service health

```json
{
  "data": {
    "checked_at": "2026-11-28T10:00:00Z",
    "enabled": true,
    "redis": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HealthAnswer`).

#### `data`

- `checked_at` (string (date-time), always): When this was checked. ISO-8601 UTC ("2026-11-28T10:00:00Z").
- `enabled` (boolean, always): true = the API is switched on (paid routes answer).
- `redis` (boolean, always): true = the limits store answers.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 405 | `method_not_allowed` | Wrong HTTP method (every data route is GET). Not charged. Codes: method_not_allowed. |
| 500 | `internal` | Unexpected error. Not charged. Codes: internal. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Webhooks: get a ping instead of asking

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhooks

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](https://ttf.bot/developers/docs/md/telegram-alerts.md) and [Alerts in Discord](https://ttf.bot/developers/docs/md/discord-alerts.md). The alerts are the same; only where they go differs.

### Set one up in 3 steps

1. **Add an endpoint**

   In the [dashboard](https://ttf.bot/developers/app/), 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](https://ttf.bot/developers/docs/md/webhook-signatures.md) before you trust a body.

### What you can watch

| Rule type | Fires when | Settings | Plan group |
| --- | --- | --- | --- |
| `price_cross` | The 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_past | core |
| `pct_move` | The price moves by your percent within a window (negative = a drop). | chain, token, window (15m, 1h, 4h, 24h), percent | core |
| `trending_enter` | A 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](https://ttf.bot/developers/docs/md/alerts-trending.md)). | chain, `chains` or `all`, min_scans, optional filters, per_chain, repeat, max_per_hour, unknown | trending |
| `wallet_activity` | A 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_usd | wallet |
| `signal` | A 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](https://ttf.bot/developers/docs/md/credits.md)).

Prefer code? Everything above can also be done with an API key: [manage webhooks from code](https://ttf.bot/developers/docs/md/webhook-api.md).

### What arrives

An HTTPS `POST` with a JSON body and these headers:

| Header | Value |
| --- | --- |
| `X-TTF-Event` | `price`, `trending`, `wallet`, `signal` or `ping` |
| `X-TTF-Event-Id` | Id of the event (one event can fire several of your rules). |
| `X-TTF-Delivery` | Id of this delivery, the same on every retry: use it to drop duplicates. |
| `X-TTF-Attempt` | 1, 2, 3 ... (counts retries). |
| `X-TTF-Timestamp` | Unix seconds when this attempt was signed. |
| `X-TTF-Signature` | `v1=<hex>` (two values for 24 h after you rotate the secret). |

Every delivery type with its body fields and real examples: [price](https://ttf.bot/developers/docs/md/webhook-price.md), [trending](https://ttf.bot/developers/docs/md/webhook-trending.md), [wallet](https://ttf.bot/developers/docs/md/webhook-wallet.md), [signal](https://ttf.bot/developers/docs/md/webhook-signal.md) and the [test ping](https://ttf.bot/developers/docs/md/webhook-ping.md).

> Deliveries come from changing addresses of our proxy provider: do not allow-list IPs, check the signature instead.

---

## Price rules `price`

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-price

`POST` to your endpoint, with the header `X-TTF-Event: price`.

Rule types: `price_cross`, `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

| Header | Type | Meaning | Example |
| --- | --- | --- | --- |
| `X-TTF-Event` | string | The event type of the body's `event`: price, trending, wallet, signal or ping. | `price` |
| `X-TTF-Event-Id` | string | The event id (a ULID). One event can fire several of your rules: each is its own delivery. | `01JDZ8Q7X3M4N5P6Q7R8S9T0PA` |
| `X-TTF-Delivery` | string | The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it. | `01JDR4Q7Z2N8M5K3X9V6B4C2HA` |
| `X-TTF-Attempt` | integer | 1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours). | `1` |
| `X-TTF-Timestamp` | integer | Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window). | `1795000000` |
| `X-TTF-Signature` | string | v1=\<hex>: HMAC-SHA256(key = your endpoint secret "whsec_...", message = X-TTF-Timestamp + "." + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: "v1=\<new>,v1=\<old>". Compare in constant time; accept if any value matches. | `v1=0000000000000000000000000000000000000000000000000000000000000000` |
| `User-Agent` | string | Always TTF-Webhooks/1.0. | `TTF-Webhooks/1.0` |

### Signature

| Field | Value |
| --- | --- |
| algorithm | HMAC-SHA256 |
| format | v1=\<64 lower-case hex>[,v1=\<hex>] |
| header | X-TTF-Signature |
| rotation | for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches |
| secret | the endpoint secret, the whole whsec_... string as UTF-8 |
| signed payload | \<X-TTF-Timestamp>.\<raw request body bytes> |
| timestamp header | X-TTF-Timestamp |
| tolerance s | 300 |

Copy-paste verification code in Python and Node.js: [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md).

### 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_ms` (integer, always): When the rule fired. Unix time in milliseconds.
- `detail` (object, always): Why a price_cross rule fired.
  - `change_pct` (number, always): How far the price is past the threshold. Percent (5.2 = 5.2 %).
  - `side` (string, always): above = the price rose to / past it, below = it fell to / past it. One of: `above`, `below`.
  - `threshold_usd` (string, always): Your threshold price in US dollars. Decimal string (never a float, no exponent).
  - `price_usd` (string): The price that crossed it, in US dollars. Decimal string (never a float, no exponent).
- `event` (object, always): A price update of a token your rule watches.
  - `chain` (string, always): Chain id. Absent for a signal about no chain.
  - `data` (object, always): A price update of a token your rule watches. The event data (the keys of this type; unknown = absent).
    - `liquidity_usd` (integer): Liquidity of the pool the price comes from. Whole US dollars (integer).
    - `name` (string): Token name (third-party text: escape it).
    - `pair` (string): The pair (pool) the price comes from.
    - `price_usd` (string): Price of one token in US dollars. Absent only for an absurd price (more than 64 characters). Decimal string (never a float, no exponent).
    - `symbol` (string): Ticker (third-party text: escape it).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `token` (string, always): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Why it fired. One of: `crossed`, `already_past`.
- `rule` (object, always): The rule that fired.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `kind` (string, always): The rule type.
- `type` (string, always): rule.fired

#### `WebhookPctMove`

A `pct_move` rule fired.

- `created_ms` (integer, always): When the rule fired. Unix time in milliseconds.
- `detail` (object, always): Why a pct_move rule fired.
  - `base_ms` (integer, always): When that start price was seen. Unix time in milliseconds.
  - `change_pct` (number, always): The move seen over the window. Percent (5.2 = 5.2 %).
  - `threshold_pct` (number, always): Your move threshold (negative = a drop). Percent (5.2 = 5.2 %).
  - `window` (string, always): Your window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
  - `base_price_usd` (string): The price at the start of the window, in US dollars. Decimal string (never a float, no exponent).
  - `price_usd` (string): The price now, in US dollars. Decimal string (never a float, no exponent).
- `event` (object, always): A price update of a token your rule watches.
  - `chain` (string, always): Chain id. Absent for a signal about no chain.
  - `data` (object, always): A price update of a token your rule watches. The event data (the keys of this type; unknown = absent).
    - `liquidity_usd` (integer): Liquidity of the pool the price comes from. Whole US dollars (integer).
    - `name` (string): Token name (third-party text: escape it).
    - `pair` (string): The pair (pool) the price comes from.
    - `price_usd` (string): Price of one token in US dollars. Absent only for an absurd price (more than 64 characters). Decimal string (never a float, no exponent).
    - `symbol` (string): Ticker (third-party text: escape it).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `token` (string, always): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Why it fired. One of: `moved`.
- `rule` (object, always): The rule that fired.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `kind` (string, always): The rule type.
- `type` (string, always): rule.fired

### Examples

`pct_move`: pct_move delivery

```json
{
  "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`: price_cross delivery

```json
{
  "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](https://ttf.bot/developers/docs/schemas/events/price.json)
- [webhook.json](https://ttf.bot/developers/docs/schemas/webhook.json)

---

## Trending rules `trending`

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-trending

`POST` to your endpoint, with the header `X-TTF-Event: trending`.

Rule types: `trending_enter`

Sent when a `trending_enter` rule fired on a `trending` 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

| Header | Type | Meaning | Example |
| --- | --- | --- | --- |
| `X-TTF-Event` | string | The event type of the body's `event`: price, trending, wallet, signal or ping. | `trending` |
| `X-TTF-Event-Id` | string | The event id (a ULID). One event can fire several of your rules: each is its own delivery. | `01JDZ8Q7X3M4N5P6Q7R8S9T0TB` |
| `X-TTF-Delivery` | string | The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it. | `01JDR4Q7Z2N8M5K3X9V6B4C2HA` |
| `X-TTF-Attempt` | integer | 1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours). | `1` |
| `X-TTF-Timestamp` | integer | Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window). | `1795000000` |
| `X-TTF-Signature` | string | v1=\<hex>: HMAC-SHA256(key = your endpoint secret "whsec_...", message = X-TTF-Timestamp + "." + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: "v1=\<new>,v1=\<old>". Compare in constant time; accept if any value matches. | `v1=0000000000000000000000000000000000000000000000000000000000000000` |
| `User-Agent` | string | Always TTF-Webhooks/1.0. | `TTF-Webhooks/1.0` |

### Signature

| Field | Value |
| --- | --- |
| algorithm | HMAC-SHA256 |
| format | v1=\<64 lower-case hex>[,v1=\<hex>] |
| header | X-TTF-Signature |
| rotation | for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches |
| secret | the endpoint secret, the whole whsec_... string as UTF-8 |
| signed payload | \<X-TTF-Timestamp>.\<raw request body bytes> |
| timestamp header | X-TTF-Timestamp |
| tolerance s | 300 |

Copy-paste verification code in Python and Node.js: [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md).

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

#### `WebhookTrendingEnter`

A `trending_enter` rule fired.

- `created_ms` (integer, always): When the rule fired. Unix time in milliseconds.
- `detail` (object, always): Why a trending_enter rule fired.
  - `first_seen_ms` (integer, always): When the token entered the board. Unix time in milliseconds.
  - `min_scans` (integer, always): Your minimum (on the token's chain, when that chain has its own).
  - `scans` (integer, always): Scans of the token on the board.
  - `filters` (array of strings): The filters of your rule that applied on this chain and passed (besides min_scans). Absent for a rule without filters.
  - `not_applied` (array of strings): Filters of your rule that did not apply on this chain because TTF never has their value there (e.g. a tax filter on Solana). Absent when every filter applied.
  - `unknown` (array of strings): With unknown: mark, the values a filter needed that are unknown (event data keys, e.g. holders). Absent when every value was known.
- `event` (object, always): A token on TTF's trending board (the most scanned tokens).
  - `chain` (string, always): Chain id. Absent for a signal about no chain.
  - `data` (object, always): A token on TTF's trending board (the most scanned tokens). The event data (the keys of this type; unknown = absent).
    - `rank` (integer, always): Position on the board (1 = most scanned).
    - `scans` (integer, always): TTF scans of the token in the board window.
    - `buy_tax_pct` (number): Buy tax measured by that simulation, percent.
    - `buys_1h` (integer): Buys in the last hour.
    - `first_seen_ms` (integer): When the token entered the board. Absent when its entry was not observed (after a gap). Unix time in milliseconds.
    - `freeze_disabled` (boolean): Solana: true = the freeze authority is off.
    - `has_telegram` (boolean): true = a Telegram group is listed for the token.
    - `has_website` (boolean): true = a website is listed for the token.
    - `has_x` (boolean): true = an X account is listed for the token.
    - `holders` (integer): Number of holders the TTF scan read.
    - `honeypot` (boolean): The TTF scan's buy / sell simulation: true = selling failed or was blocked. Absent when no simulation ran (never false for a check that failed). EVM chains only.
    - `interval_min` (integer): The board window, in minutes.
    - `launchpad` (boolean): Solana: true = the token comes from a launchpad; false = no launchpad detected by TTF (a graduated Moonshot token, a LaunchLab token without its suffix or a pump.fun mint whose read failed can still be false).
    - `liquidity_usd` (string): Liquidity of its most liquid pool, US dollars. Decimal string (never a float, no exponent).
    - `locked_pct` (number): Share of the liquidity that is locked or burned, percent.
    - `market_cap_usd` (string): Market cap (or the fully diluted value when no market cap is known), US dollars. Decimal string (never a float, no exponent).
    - `mint_disabled` (boolean): Solana: true = the mint authority is off.
    - `name` (string): Token name (third-party text: escape it).
    - `pair` (string): The main pair (pool).
    - `pair_created_ms` (integer): When its pool was created (the token age).
    - `pair_with` (string): What the pool pairs it with: native (the chain coin), stable (a stablecoin) or other. One of: `native`, `stable`, `other`.
    - `price_change_1h_pct` (number): Price change of the last hour, percent (negative = down).
    - `renounced` (boolean): true = the contract owner is renounced (EVM chains).
    - `sell_tax_pct` (number): Sell tax measured by that simulation, percent.
    - `symbol` (string): Ticker (third-party text: escape it).
    - `top10_pct` (number): Share of the supply the 10 largest holders hold, percent.
    - `verified_source` (boolean): true = the contract source code is verified.
    - `volume_24h_usd` (string): Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `token` (string, always): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Why it fired. One of: `entered`.
- `rule` (object, always): The rule that fired.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `kind` (string, always): The rule type.
- `type` (string, always): rule.fired

### Examples

`trending_enter`: trending_enter delivery

```json
{
  "created_ms": 1795000000000,
  "detail": {
    "filters": [
      "min_liquidity_usd",
      "exclude_honeypot"
    ],
    "first_seen_ms": 1794999880000,
    "min_scans": 25,
    "scans": 41
  },
  "event": {
    "chain": "eth",
    "data": {
      "buy_tax_pct": 0.0,
      "buys_1h": 412,
      "first_seen_ms": 1794999880000,
      "has_telegram": true,
      "has_website": true,
      "has_x": true,
      "holders": 400000,
      "honeypot": false,
      "interval_min": 5,
      "liquidity_usd": "38200000",
      "locked_pct": 100.0,
      "market_cap_usd": "3870000000",
      "name": "Pepe",
      "pair": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
      "pair_created_ms": 1681900000000,
      "pair_with": "native",
      "price_change_1h_pct": 1.8,
      "rank": 3,
      "renounced": true,
      "scans": 41,
      "sell_tax_pct": 0.0,
      "symbol": "PEPE",
      "top10_pct": 41.2,
      "verified_source": true,
      "volume_24h_usd": "51200000"
    },
    "id": "01JDZ8Q7X3M4N5P6Q7R8S9T0TB",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
    "ts": 1795000000000,
    "type": "trending",
    "v": 1
  },
  "id": "01JDR4Q7Z2N8M5K3X9V6B4C2HA",
  "reason": "entered",
  "rule": {
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d",
    "kind": "trending_enter"
  },
  "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/trending.json](https://ttf.bot/developers/docs/schemas/events/trending.json)
- [webhook.json](https://ttf.bot/developers/docs/schemas/webhook.json)

---

## Wallet rules `wallet`

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-wallet

`POST` to your endpoint, with the header `X-TTF-Event: wallet`.

Rule types: `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

| Header | Type | Meaning | Example |
| --- | --- | --- | --- |
| `X-TTF-Event` | string | The event type of the body's `event`: price, trending, wallet, signal or ping. | `wallet` |
| `X-TTF-Event-Id` | string | The event id (a ULID). One event can fire several of your rules: each is its own delivery. | `01JDZ8Q7X3M4N5P6Q7R8S9T0WC` |
| `X-TTF-Delivery` | string | The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it. | `01JDR4Q7Z2N8M5K3X9V6B4C2HA` |
| `X-TTF-Attempt` | integer | 1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours). | `1` |
| `X-TTF-Timestamp` | integer | Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window). | `1795000000` |
| `X-TTF-Signature` | string | v1=\<hex>: HMAC-SHA256(key = your endpoint secret "whsec_...", message = X-TTF-Timestamp + "." + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: "v1=\<new>,v1=\<old>". Compare in constant time; accept if any value matches. | `v1=0000000000000000000000000000000000000000000000000000000000000000` |
| `User-Agent` | string | Always TTF-Webhooks/1.0. | `TTF-Webhooks/1.0` |

### Signature

| Field | Value |
| --- | --- |
| algorithm | HMAC-SHA256 |
| format | v1=\<64 lower-case hex>[,v1=\<hex>] |
| header | X-TTF-Signature |
| rotation | for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches |
| secret | the endpoint secret, the whole whsec_... string as UTF-8 |
| signed payload | \<X-TTF-Timestamp>.\<raw request body bytes> |
| timestamp header | X-TTF-Timestamp |
| tolerance s | 300 |

Copy-paste verification code in Python and Node.js: [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md).

### 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_ms` (integer, always): When the rule fired. Unix time in milliseconds.
- `detail` (object, always): Why a wallet_activity rule fired.
  - `min_value_usd` (string, always): Your minimum value in US dollars ("0" = every transfer). Decimal string (never a float, no exponent).
  - `value_usd` (string): US dollar value of the transfer, when known. Decimal string (never a float, no exponent).
- `event` (object, always): A transfer of a wallet your rule watches (in or out).
  - `chain` (string, always): Chain id. Absent for a signal about no chain.
  - `data` (object, always): A transfer of a wallet your rule watches (in or out). The event data (the keys of this type; unknown = absent).
    - `address` (string, always): The watched wallet (the subject of your rule). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `tx` (string, always): Transaction hash.
    - `value` (string, always): Raw amount (integer string; divide by 10^decimals).
    - `block` (integer): Block number.
    - `decimals` (integer): Token decimals.
    - `direction` (string): out = the wallet sent it, in = it received it. Absent = out. One of: `out`, `in`.
    - `from` (string): Sender (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `kind` (string): transfer, sell (Solana: a swap out) or native (the chain's own coin; token 0xeeee...eeee). One of: `sell`, `transfer`, `native`.
    - `late` (integer): 1 = recorded by a catch-up round long after its block (not a live transfer).
    - `log_index` (integer): Position of the transfer in its transaction's logs.
    - `symbol` (string): Token ticker (third-party text: escape it).
    - `to` (string): Receiver (empty when unknown). Address on its chain: 0x + 40 hex (lower case) on EVM chains, base58 on Solana.
    - `value_usd` (string): US dollar value of the transfer, when known. Decimal string (never a float, no exponent).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `token` (string, always): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Why it fired. One of: `activity`.
- `rule` (object, always): The rule that fired.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `kind` (string, always): The rule type.
- `type` (string, always): rule.fired

### Examples

`wallet_activity`: wallet_activity delivery

```json
{
  "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](https://ttf.bot/developers/docs/schemas/events/wallet.json)
- [webhook.json](https://ttf.bot/developers/docs/schemas/webhook.json)

---

## Signal rules `signal`

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-signal

`POST` to your endpoint, with the header `X-TTF-Event: signal`.

Rule types: `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

| Header | Type | Meaning | Example |
| --- | --- | --- | --- |
| `X-TTF-Event` | string | The event type of the body's `event`: price, trending, wallet, signal or ping. | `signal` |
| `X-TTF-Event-Id` | string | The event id (a ULID). One event can fire several of your rules: each is its own delivery. | `01JDZ8Q7X3M4N5P6Q7R8S9T0SD` |
| `X-TTF-Delivery` | string | The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it. | `01JDR4Q7Z2N8M5K3X9V6B4C2HA` |
| `X-TTF-Attempt` | integer | 1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours). | `1` |
| `X-TTF-Timestamp` | integer | Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window). | `1795000000` |
| `X-TTF-Signature` | string | v1=\<hex>: HMAC-SHA256(key = your endpoint secret "whsec_...", message = X-TTF-Timestamp + "." + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: "v1=\<new>,v1=\<old>". Compare in constant time; accept if any value matches. | `v1=0000000000000000000000000000000000000000000000000000000000000000` |
| `User-Agent` | string | Always TTF-Webhooks/1.0. | `TTF-Webhooks/1.0` |

### Signature

| Field | Value |
| --- | --- |
| algorithm | HMAC-SHA256 |
| format | v1=\<64 lower-case hex>[,v1=\<hex>] |
| header | X-TTF-Signature |
| rotation | for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches |
| secret | the endpoint secret, the whole whsec_... string as UTF-8 |
| signed payload | \<X-TTF-Timestamp>.\<raw request body bytes> |
| timestamp header | X-TTF-Timestamp |
| tolerance s | 300 |

Copy-paste verification code in Python and Node.js: [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md).

### 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_ms` (integer, always): When the rule fired. Unix time in milliseconds.
- `detail` (object, always): Why a signal rule fired.
  - `kind` (string, always): The signal kind your rule asked for. One of: `breakout`, `trending`, `call`.
- `event` (object, always): A TTF signal: an ATH breakout or a call milestone.
  - `data` (object, always): A TTF signal: an ATH breakout or a call milestone. The event data (the keys of this type; unknown = absent).
    - `kind` (string, always): breakout = a new all-time high was broken, call = a call reached a milestone, trending = a trending signal. One of: `breakout`, `trending`, `call`.
    - `buys_24h` (integer): Buys in the last 24 hours.
    - `called_at_ms` (integer): When the call was made. Unix time in milliseconds.
    - `dex` (string): The exchange of the main pool (third-party text: escape it).
    - `entry_mc_usd` (string): call: the market cap when the call was made, US dollars. Decimal string (never a float, no exponent).
    - `grade` (string): The signal grade: strong (daily ATH) or early (hourly ATH). One of: `strong`, `early`.
    - `liquidity_usd` (string): Liquidity of its main pool, US dollars. Decimal string (never a float, no exponent).
    - `market_cap_usd` (string): Market cap now, US dollars. Decimal string (never a float, no exponent).
    - `multiple` (number): breakout: market cap / the all-time high it broke; call: the milestone reached since the call (2 = 2x).
    - `name` (string): Token name (third-party text: escape it).
    - `pair_created_ms` (integer): When its main pool was created (the token age).
    - `plan_text` (string): The plan line of the call ("if it holds 24h -> enter, sell 50% at 2x ...").
    - `prev_ath_mc_usd` (string): breakout: the all-time high it broke, as a market cap in US dollars. Decimal string (never a float, no exponent).
    - `prev_ath_ms` (integer): breakout: when that all-time high was set.
    - `price_change_24h_pct` (number): Price change of the last 24 hours, percent (negative = down).
    - `price_usd` (string): Price of one token now, US dollars. Decimal string (never a float, no exponent).
    - `ref` (string): An id of the signal.
    - `score` (number): Strength of the signal (higher = stronger), when given.
    - `sells_24h` (integer): Sells in the last 24 hours.
    - `symbol` (string): Ticker (third-party text: escape it).
    - `text` (string): The signal in words (third-party text: escape it).
    - `tier` (string): Which all-time high: daily (the daily ATH) or 1h (the hourly ATH). One of: `daily`, `1h`.
    - `volume_24h_usd` (string): Trading volume of the last 24 hours, US dollars. Decimal string (never a float, no exponent).
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
  - `chain` (string): Chain id. Absent for a signal about no chain.
  - `token` (string): Token address (one canonical form per chain: EVM lower-case 0x + 40 hex). Absent for a signal about no token.
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Why it fired. One of: `signal`.
- `rule` (object, always): The rule that fired.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `kind` (string, always): The rule type.
- `type` (string, always): rule.fired

### Examples

`signal`: signal delivery

```json
{
  "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](https://ttf.bot/developers/docs/schemas/events/signal.json)
- [webhook.json](https://ttf.bot/developers/docs/schemas/webhook.json)

---

## Test ping `ping`

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-ping

`POST` to your endpoint, with the header `X-TTF-Event: ping`.

Rule types: `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

| Header | Type | Meaning | Example |
| --- | --- | --- | --- |
| `X-TTF-Event` | string | The event type of the body's `event`: price, trending, wallet, signal or ping. | `ping` |
| `X-TTF-Event-Id` | string | The event id (a ULID). One event can fire several of your rules: each is its own delivery. | `01JDZ8Q7X3M4N5P6Q7R8S9T0PE` |
| `X-TTF-Delivery` | string | The delivery id (a ULID) = body.id, THE SAME on every retry and re-send: drop duplicates on it. | `01JDR4Q7Z2N8M5K3X9V6B4C2HA` |
| `X-TTF-Attempt` | integer | 1 for the first try, then 2, 3, ... (at most 6 attempts over about 15 hours). | `1` |
| `X-TTF-Timestamp` | integer | Unix SECONDS when this attempt was signed (every retry is signed afresh). Refuse it when more than 300 s away from your clock (replay window). | `1795000000` |
| `X-TTF-Signature` | string | v1=\<hex>: HMAC-SHA256(key = your endpoint secret "whsec_...", message = X-TTF-Timestamp + "." + the raw body bytes), lower-case hex. During the 24 h after a secret rotation: "v1=\<new>,v1=\<old>". Compare in constant time; accept if any value matches. | `v1=0000000000000000000000000000000000000000000000000000000000000000` |
| `User-Agent` | string | Always TTF-Webhooks/1.0. | `TTF-Webhooks/1.0` |

### Signature

| Field | Value |
| --- | --- |
| algorithm | HMAC-SHA256 |
| format | v1=\<64 lower-case hex>[,v1=\<hex>] |
| header | X-TTF-Signature |
| rotation | for 24 h after a secret rotation the header carries two values (new secret first): accept if any matches |
| secret | the endpoint secret, the whole whsec_... string as UTF-8 |
| signed payload | \<X-TTF-Timestamp>.\<raw request body bytes> |
| timestamp header | X-TTF-Timestamp |
| tolerance s | 300 |

Copy-paste verification code in Python and Node.js: [Verify the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md).

### 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_ms` (integer, always): When the test was queued. Unix time in milliseconds.
- `event` (object, always): The dashboard's test delivery (webhooks only, never on the bus).
  - `data` (object, always): The test delivery's data.
    - `text` (string, always): A fixed text ("Test delivery from TTF").
  - `id` (string, always): Event id: a ULID (26 characters, sorts by time). One event can fire several rules.
  - `ts` (integer, always): When the event happened. Unix time in milliseconds.
  - `type` (string, always): The event type.
  - `v` (integer, always): Envelope version (1).
- `id` (string, always): Delivery id (a ULID) = the X-TTF-Delivery header.
- `reason` (string, always): Always test.
- `type` (string, always): ping

### Examples

`ping`: ping delivery

```json
{
  "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](https://ttf.bot/developers/docs/schemas/events/ping.json)
- [webhook.json](https://ttf.bot/developers/docs/schemas/webhook.json)

---

## Verify the signature

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-signatures

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

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

```javascript
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):

| Field | Value |
| --- | --- |
| Secret | `whsec_dGVzdC12ZWN0b3Itc2VjcmV0LWZvci10dGYtZG9jcy0` |
| X-TTF-Timestamp | `1795001500` |
| 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-Signature | `v1=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

- Section: Webhooks (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-retries

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](https://ttf.bot/developers/docs/md/wallet-activity.md) or [Signals](https://ttf.bot/developers/docs/md/signals.md)).

### 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

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#webhook-api

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](https://ttf.bot/developers/app/), 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.)

| Access | What the key can do |
| --- | --- |
| `none` | Read data only. This is the default. |
| `read` | Also see your endpoints, rules and delivery logs. It never sees a signing secret. |
| `write` | Also 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

```bash
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

```bash
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

```bash
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](https://ttf.bot/developers/docs/md/telegram-alerts.md), [Discord](https://ttf.bot/developers/docs/md/discord-alerts.md)). 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

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-webhook-schema

`GET /v1/webhooks/schema`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key 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.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

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

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/schema' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Rule types, fields and bounds

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookSchemaAnswer`).

#### `data`

- `chains` (array of objects, always): Chains a rule may name.
  - `id` (string, always): Chain id.
  - `name` (string, always): Its name.
- `coverage_notes` (object, always): Every coverage value in words.
  - `denied` (string, always): The note of coverage denied.
  - `full` (string, always): The note of coverage full.
  - `native_only` (string, always): The note of coverage native_only.
  - `never` (string, always): The note of coverage never.
  - `no_source` (string, always): The note of coverage no_source.
  - `not_watched` (string, always): The note of coverage not_watched.
  - `partial` (string, always): The note of coverage partial.
  - `pending` (string, always): The note of coverage pending.
- `event_types` (array of strings, always): Every event type. One of: `price`, `trending`, `wallet`, `signal`.
- `limits` (object, always): Fixed limits.
  - `description_max` (integer, always): Longest endpoint description.
  - `rotate_overlap_s` (integer, always): Seconds the previous secret keeps signing after a rotation.
  - `test_per_minute` (integer, always): Test deliveries a minute per endpoint.
- `plan_groups` (object, always): The plan data group each rule type needs.
  - `pct_move` (string, always): The group a pct_move rule needs.
  - `price_cross` (string, always): The group a price_cross rule needs.
  - `signal` (string, always): The group a signal rule needs.
  - `trending_enter` (string, always): The group a trending_enter rule needs.
  - `wallet_activity` (string, always): The group a wallet_activity rule needs.
- `rule_types` (object, always): Per rule type: the event it sends, its params and bounds.
  - `pct_move` (object, always): Price moves by a percentage.
    - `event` (string, always): The event type a rule of this kind sends.
    - `hint` (string, always): When it fires, in words.
    - `percent_bounds` (array of numbers, always): Smallest and largest percent.
    - `percent_min_abs` (number, always): Smallest size of a move.
    - `required` (array of strings, always): The params a rule of this kind needs.
    - `windows` (array of strings, always): Windows available now.
  - `price_cross` (object, always): Price crosses a level.
    - `event` (string, always): The event type a rule of this kind sends.
    - `hint` (string, always): When it fires, in words.
    - `optional` (array of strings, always): The optional params.
    - `price_bounds` (array of numbers, always): Smallest and largest price.
    - `required` (array of strings, always): The params a rule of this kind needs.
  - `signal` (object, always): A TTF signal.
    - `coverage` (string, always): 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).
    - `event` (string, always): The event type a rule of this kind sends.
    - `hint` (string, always): When it fires, in words.
    - `kinds` (array of strings, always): Signal kinds a rule may name.
    - `required` (array of strings, always): The params a rule of this kind needs.
  - `trending_enter` (object, always): A token enters the trending board.
    - `board_size` (integer, always): Places on the trending board.
    - `chains_max` (integer, always): Most chains in chains / per_chain.
    - `coverage` (object, always): Which value each chain has: a filter on a value a chain does not have does not apply there.
      - `chains` (map of array of stringss, always): Per chain id, the values it has.
      - `filters` (map of objects, always): Per filter, its value and group.
        - `group` (string, always): Its coverage group.
        - `value` (string, always): The value it reads.
      - `groups` (map of objects, always): Coverage groups, by name.
        - `chains` (array of strings, always): The chains that have them.
        - `note` (string, always): Where the values come from, in words.
        - `values` (array of strings, always): Its values.
    - `enter_window_s` (integer, always): Seconds after entering the board a token may still pass.
    - `event` (string, always): The event type a rule of this kind sends.
    - `filters` (map of objects, always): Every filter, by param name.
      - `group` (string, always): Its coverage group.
      - `kind` (string, always): int, usd, pct, hours, enum, words or flag.
      - `label` (string, always): The value in words.
      - `op` (string, always): min, max, eq, words_any, words_none, true, false or pad.
      - `value` (string, always): The event data value it reads.
      - `bounds` (array of integers): Smallest and largest value (numbers).
      - `choices` (array of strings): The values it takes (enum).
    - `hint` (string, always): When it fires, in words.
    - `max_per_hour_bounds` (array of integers, always): Smallest and largest max_per_hour.
    - `min_scans_bounds` (array of integers, always): Smallest and largest min_scans.
    - `modifiers` (array of strings, always): Params that change how filters match (whole_words).
    - `never_days` (integer, always): How long repeat: never remembers a token, days.
    - `optional` (array of strings, always): The optional params (the filters, per_chain, repeat, max_per_hour, unknown).
    - `repeats` (array of strings, always): repeat values.
    - `required` (array of strings, always): The params a rule of this kind needs.
    - `unknown_modes` (array of strings, always): unknown values.
    - `word_len` (integer, always): Longest word.
    - `words_max` (integer, always): Most words in a word list.
  - `wallet_activity` (object, always): A watched wallet makes a transfer.
    - `all_evm` (object, always): All EVMs: a wallet rule with chain "evm" watches its wallets on every chain listed here (chains switched on later are added by themselves).
      - `chain_names` (array of strings, always): Their names, in the same order.
      - `chains` (array of strings, always): The chains an All EVMs rule watches now.
      - `coverage` (string, always): 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).
      - `id` (string, always): The chain value of an All EVMs rule: evm.
      - `name` (string, always): Its name.
      - `native_only_chains` (array of strings, always): Of them, the chains where only native coin moves are seen.
      - `not_covered` (array of strings, always): EVM chains a rule may name that are not watched yet (Solana and other non-EVM chains are never part of All EVMs).
    - `coverage` (string, always): 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).
    - `directions` (array of strings, always): Direction values.
    - `event` (string, always): The event type a rule of this kind sends.
    - `full_chains` (array of strings, always): Chains where wallet rules fire now.
    - `hint` (string, always): When it fires, in words.
    - `min_usd_max` (number, always): Largest min_usd.
    - `native_only_chains` (array of strings, always): Chains where only native coin moves are watched (no token transfers): rules there have coverage native_only.
    - `optional` (array of strings, always): The optional params.
    - `required` (array of strings, always): The params a rule of this kind needs.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Webhook usage and limits

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-webhook-usage

`GET /v1/webhooks/usage`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

How much room is left: endpoints, rules, watched wallets and deliveries of this month against what your plan allows.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

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

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/usage' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Webhook usage and limits

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookUsageAnswer`).

#### `data`

- `deliveries` (object, always): Deliveries of the running subscription month.
  - `limit` (integer, always): Allowed.
  - `over_quota` (boolean, always): true = used up: rules do not fire until the reset or an upgrade.
  - `resets` (integer, always): When the count starts again. Unix time in SECONDS.
  - `used` (integer, always): Sent.
- `endpoints` (object, always): Endpoints.
  - `limit` (integer, always): Allowed.
  - `over_limit` (integer, always): Above the plan (paused).
  - `used` (integer, always): In use.
- `partial` (array of strings, always): Parts that could not be read just now (empty when everything was).
- `plan` (object, always): Your plan.
  - `groups` (array of strings, always): Data groups of the plan.
  - `plan_id` (string, always): Plan id.
  - `plan_name` (string, always): Plan name.
  - `state` (string, always): ok, or why paid terms do not apply (expired = the Free terms).
- `rules` (object, always): Rules.
  - `active` (integer, always): Switched on and inside the plan.
  - `limit` (integer, always): Allowed.
  - `over_limit` (integer, always): Above the plan (paused).
  - `used` (integer, always): In use.
- `watch` (object, always): Watched wallet addresses.
  - `limit` (integer, always): Allowed.
  - `used` (integer, always): In use.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## List endpoints

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-endpoints

`GET /v1/webhooks/endpoints`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

All the places TTF delivers to for your account, with their state, so your tool can show or repair them.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

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

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/endpoints' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): List your endpoints

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookEndpointListAnswer`).

#### `data`

- `endpoints` (array of objects, always): The endpoints.
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `description` (string, always): Your note (empty text when none).
  - `enabled` (boolean, always): true = switched on.
  - `event_types` (array of strings, always): The event types it receives. One of: `price`, `trending`, `wallet`, `signal`.
  - `id` (string, always): Endpoint id (whe_ + 24 hex).
  - `over_limit` (boolean, always): true = above the number of endpoints of your plan, so it gets nothing.
  - `secret_version` (integer, always): How many signing secrets this endpoint has had (1 = never rotated).
  - `status` (string, always): 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).
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `url` (string, always): Where deliveries are POSTed.
  - `previous_secret_until` (integer): After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.
- `max_endpoints` (integer, always): How many endpoints your plan allows.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Create an endpoint

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-endpoint-create

`POST /v1/webhooks/endpoints`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key 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.

- Store `data.secret` at once: no other call returns it. Then [check the signature](https://ttf.bot/developers/docs/md/webhook-signatures.md) 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.

### Parameters

No parameters: just send it.

### Request body

`application/json`, required.

- `url` (string, required): Public https URL (port 443 or 8443, a host name that resolves, no user name or password).
- `description` (string, optional): A note, up to 120 characters. At most 120 characters.
- `enabled` (boolean, optional): false = create it paused (default true).
- `event_types` (array of strings, optional): Event types to receive (default: all). One of: `price`, `trending`, `wallet`, `signal`.

Example body:

```json
{
  "description": "Trading bot",
  "event_types": [
    "price",
    "wallet"
  ],
  "url": "https://bot.example.com/ttf"
}
```

Another example body (`all_events`): Every event type: only the URL.

```json
{
  "url": "https://bot.example.com/ttf"
}
```

### Example request

```bash
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"
}'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`201` (`default`): Create an endpoint

```json
{
  "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"
  }
}
```

### Response fields

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

A `201` answer is `{"data", "meta"}` (`HookEndpointCreatedAnswer`).

#### `data`

- `endpoint` (object, always): A webhook endpoint: where deliveries go. Its signing secret is never part of it.
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `description` (string, always): Your note (empty text when none).
  - `enabled` (boolean, always): true = switched on.
  - `event_types` (array of strings, always): The event types it receives. One of: `price`, `trending`, `wallet`, `signal`.
  - `id` (string, always): Endpoint id (whe_ + 24 hex).
  - `over_limit` (boolean, always): true = above the number of endpoints of your plan, so it gets nothing.
  - `secret_version` (integer, always): How many signing secrets this endpoint has had (1 = never rotated).
  - `status` (string, always): 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).
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `url` (string, always): Where deliveries are POSTed.
  - `previous_secret_until` (integer): After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.
- `notice` (string, always): What to do with the secret, in words.
- `secret` (string, always): The signing secret (whsec_...). It is in this answer ONLY: store it now.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `quota_exceeded` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 408 | `request_timeout` | The request body did not arrive in time. Nothing changed. Codes: request_timeout. |
| 409 | `duplicate_url` | The change conflicts with the current state. Nothing changed. Codes: duplicate_url. |
| 413 | `too_large` | The body is too large. Codes: too_large. |
| 415 | `unsupported_media_type` | The body is not declared as JSON. Codes: unsupported_media_type. |
| 422 | `url_not_allowed` | The URL or the rule was refused. Nothing changed. Codes: url_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` `not_configured` | The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Get one endpoint

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-endpoint

`GET /v1/webhooks/endpoints/{endpoint_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

Look at one endpoint: its URL, the event types it receives and whether it is receiving.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

### 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

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Get an endpoint

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookEndpointAnswer`).

#### `data`

- `endpoint` (object, always): A webhook endpoint: where deliveries go. Its signing secret is never part of it.
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `description` (string, always): Your note (empty text when none).
  - `enabled` (boolean, always): true = switched on.
  - `event_types` (array of strings, always): The event types it receives. One of: `price`, `trending`, `wallet`, `signal`.
  - `id` (string, always): Endpoint id (whe_ + 24 hex).
  - `over_limit` (boolean, always): true = above the number of endpoints of your plan, so it gets nothing.
  - `secret_version` (integer, always): How many signing secrets this endpoint has had (1 = never rotated).
  - `status` (string, always): 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).
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `url` (string, always): Where deliveries are POSTed.
  - `previous_secret_until` (integer): After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Update an endpoint

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-endpoint-update

`PATCH /v1/webhooks/endpoints/{endpoint_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Change where deliveries go, which events they carry, or pause and resume an endpoint without losing its rules.

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

### Parameters

#### Path parameters

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Request body

`application/json`, required.

- `description` (string, optional): A note, up to 120 characters. At most 120 characters.
- `enabled` (boolean, optional): false = pause, true = resume.
- `event_types` (array of strings, optional): Event types to receive. One of: `price`, `trending`, `wallet`, `signal`.
- `url` (string, optional): Public https URL (port 443 or 8443, a host name that resolves, no user name or password).

Example body:

```json
{
  "enabled": false
}
```

Another example body (`url`): Move it to another URL.

```json
{
  "url": "https://bot.example.com/ttf-v2"
}
```

### Example request

```bash
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
}'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Update an endpoint

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookEndpointUpdatedAnswer`).

#### `data`

- `endpoint` (object, always): A webhook endpoint: where deliveries go. Its signing secret is never part of it.
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `description` (string, always): Your note (empty text when none).
  - `enabled` (boolean, always): true = switched on.
  - `event_types` (array of strings, always): The event types it receives. One of: `price`, `trending`, `wallet`, `signal`.
  - `id` (string, always): Endpoint id (whe_ + 24 hex).
  - `over_limit` (boolean, always): true = above the number of endpoints of your plan, so it gets nothing.
  - `secret_version` (integer, always): How many signing secrets this endpoint has had (1 = never rotated).
  - `status` (string, always): 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).
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `url` (string, always): Where deliveries are POSTed.
  - `previous_secret_until` (integer): After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 408 | `request_timeout` | The request body did not arrive in time. Nothing changed. Codes: request_timeout. |
| 409 | `duplicate_url` `types_in_use` | The change conflicts with the current state. Nothing changed. Codes: duplicate_url, types_in_use. |
| 413 | `too_large` | The body is too large. Codes: too_large. |
| 415 | `unsupported_media_type` | The body is not declared as JSON. Codes: unsupported_media_type. |
| 422 | `url_not_allowed` | The URL or the rule was refused. Nothing changed. Codes: url_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `busy` `unavailable` `not_configured` | The service cannot answer right now. See Retry-After. Codes: busy, unavailable, not_configured. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Delete an endpoint

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-endpoint-delete

`DELETE /v1/webhooks/endpoints/{endpoint_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Remove an endpoint you no longer need, together with everything attached to it.

- Only want it quiet for a while? [Update](https://ttf.bot/developers/docs/md/api-endpoint-update.md) 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.

### Parameters

#### Path parameters

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Example request

```bash
curl -sS -X DELETE 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Delete an endpoint

```json
{
  "data": {
    "deleted": true,
    "deliveries_deleted": 128,
    "id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
    "rules_deleted": 3
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookEndpointDeletedAnswer`).

#### `data`

- `deleted` (boolean, always): true.
- `deliveries_deleted` (integer, always): Delivery log rows deleted with it.
- `id` (string, always): The deleted endpoint.
- `rules_deleted` (integer, always): Rules of the endpoint deleted with it.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Rotate the signing secret

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-secret-rotate

`POST /v1/webhooks/endpoints/{endpoint_id}/rotate`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Replace the signing secret, for example after it showed up in a log. Your receiver can accept both for a day.

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

### Parameters

#### Path parameters

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Example request

```bash
curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/rotate' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Rotate the signing secret

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookSecretRotatedAnswer`).

#### `data`

- `endpoint` (object, always): A webhook endpoint: where deliveries go. Its signing secret is never part of it.
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `description` (string, always): Your note (empty text when none).
  - `enabled` (boolean, always): true = switched on.
  - `event_types` (array of strings, always): The event types it receives. One of: `price`, `trending`, `wallet`, `signal`.
  - `id` (string, always): Endpoint id (whe_ + 24 hex).
  - `over_limit` (boolean, always): true = above the number of endpoints of your plan, so it gets nothing.
  - `secret_version` (integer, always): How many signing secrets this endpoint has had (1 = never rotated).
  - `status` (string, always): 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).
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `url` (string, always): Where deliveries are POSTed.
  - `previous_secret_until` (integer): After a rotation: when the previous secret stops signing. Absent otherwise. Unix time in SECONDS.
- `notice` (string, always): What to do with the secret, in words.
- `secret` (string, always): The signing secret (whsec_...). It is in this answer ONLY: store it now.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 409 | `conflict` | The change conflicts with the current state. Nothing changed. Codes: conflict. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` `not_configured` | The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Send a test delivery

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-test-delivery

`POST /v1/webhooks/endpoints/{endpoint_id}/test`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Check your receiver end to end: a signed test delivery goes through the same path as a real alert.

- Then ask the [delivery log](https://ttf.bot/developers/docs/md/api-deliveries.md) 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.

### Parameters

#### Path parameters

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Example request

```bash
curl -sS -X POST 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/test' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`202` (`default`): Send a test delivery

```json
{
  "data": {
    "event_id": "01JDZ8Q7X3M4N5P6Q7R8S9T0PE",
    "queued": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `202` answer is `{"data", "meta"}` (`HookTestAnswer`).

#### `data`

- `event_id` (string, always): The event id of the test: look it up with ?event_id= in the delivery log.
- `queued` (boolean, always): true.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `quota_exceeded` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 409 | `endpoint_paused` `over_limit` | The change conflicts with the current state. Nothing changed. Codes: endpoint_paused, over_limit. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` `not_configured` | The service cannot answer right now. See Retry-After. Codes: unavailable, not_configured. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Delivery log

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-deliveries

`GET /v1/webhooks/endpoints/{endpoint_id}/deliveries`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

Debug a receiver: what was sent, how many tries it took and what your server answered.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

### 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

- `endpoint_id` (string, path, required): Endpoint id (data.endpoint.id).
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

#### Query parameters

- `cursor` (string, query, optional): data.next_cursor of the previous page. Omit for the newest page.
  - At most 64 characters.
  - Example: `01JDR4Q7Z2N8M5K3X9V6B4C2HA`
- `limit` (integer, query, optional): Rows per page, 1-100. Default 25.
  - Default: `25`.
  - Range: 1 to 100.
  - Example: `25`
- `event_id` (string, query, optional): Only the rows of this event (the event_id of a test).
  - At most 64 characters.
  - Example: `01JDZ8Q7X3M4N5P6Q7R8S9T0PE`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/endpoints/whe_8b1f0c2d9a7e4f3b5c6d1e2a/deliveries' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Delivery log of an endpoint

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookDeliveryListAnswer`).

#### `data`

- `deliveries` (array of objects, always): The rows.
  - `attempts` (integer, always): Attempts made.
  - `event_id` (string, always): The event it delivered.
  - `id` (string, always): Delivery id (= the X-TTF-Delivery header).
  - `kind` (string, always): The rule type, or ping. Known values: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`, `ping` (more may come: handle unknown ones).
  - `response_snippet` (string, always): The first 1 KB of your receiver's answer (empty text when none).
  - `rule_id` (string, always): The rule that fired (empty text for a test ping).
  - `snippet_truncated` (boolean, always): true = the answer was longer.
  - `status` (string, always): 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).
  - `ts` (integer, always): When the rule fired. Unix time in SECONDS.
  - `error` (string): A short reason code of the last failure.
  - `latency_ms` (integer): How long your receiver took, in milliseconds.
  - `next_attempt` (integer): When the next attempt is due, while one is. Unix time in SECONDS.
  - `response_status` (integer): The HTTP status your receiver answered, when it answered.
- `next_cursor` (string): Pass as ?cursor= for the older page. Absent on the last page.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## List rules

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rules

`GET /v1/webhooks/rules`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

Everything that can fire for your account, with the reason when a rule is not firing.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

### 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

- `endpoint_id` (string, query, optional): Only the rules of this endpoint.
  - At most 64 characters.
  - Example: `whe_8b1f0c2d9a7e4f3b5c6d1e2a`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/rules' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): List your rules

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookRuleListAnswer`).

#### `data`

- `max_rules` (integer, always): How many rules your plan allows.
- `max_watch_addresses` (integer, always): How many wallet addresses your plan may watch at once.
- `rules` (array of objects, always): The rules.
  - `active` (boolean, always): true = it can fire now.
  - `coverage` (string, always): 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_note` (string, always): The coverage in words (empty text when full).
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `enabled` (boolean, always): Your switch.
  - `endpoint_id` (string, always): The endpoint it delivers to.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `name` (string, always): Your name for it (empty text when none).
  - `over_limit` (boolean, always): true = above your plan, so it does not fire.
  - `params` (object, always): 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).
    - `above` (number): price_cross: fire when the price rises to this many US dollars (give above or below).
    - `below` (number): price_cross: fire when the price falls to this many US dollars.
    - `chain` (string): 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).
    - `chains` (array of strings): trending_enter: a list of chains (instead of chain).
    - `direction` (string): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
    - `exclude_honeypot` (boolean): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
    - `fire_if_already_past` (boolean): price_cross: fire at once when the price is already past the level.
    - `kind` (string): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
    - `launchpad` (string): 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_hours` (number): trending_enter: at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number): trending_enter: at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number): trending_enter: at most this market cap in US dollars (0 to 1e+13).
    - `max_per_hour` (integer): trending_enter: at most this many alerts in any 60 minutes.
    - `max_price_change_1h_pct` (number): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer): trending_enter: at most this place (1 to 30).
    - `max_sell_tax_pct` (number): trending_enter: at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number): trending_enter: at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number): trending_enter: at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer): trending_enter: at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer): trending_enter: at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number): trending_enter: at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer): trending_enter: scans a token needs on the board.
    - `min_usd` (number): wallet_activity: smallest transfer in US dollars (0 = every transfer).
    - `min_volume_24h_usd` (number): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array 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_include` (array 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_with` (string): trending_enter: pair coin. One of: `native`, `stable`.
    - `per_chain` (map 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.
      - `exclude_honeypot` (boolean): true = only tokens that pass the honeypot check check (not a honeypot).
      - `launchpad` (string): 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_hours` (number): at most this age in hours (0 to 87600).
      - `max_buy_tax_pct` (number): at most this buy tax in percent (0 to 100).
      - `max_liquidity_usd` (number): at most this liquidity in US dollars (0 to 1e+13).
      - `max_market_cap_usd` (number): at most this market cap in US dollars (0 to 1e+13).
      - `max_price_change_1h_pct` (number): at most this 1 h change in percent (-100 to 1e+06).
      - `max_rank` (integer): at most this place (1 to 30).
      - `max_sell_tax_pct` (number): at most this sell tax in percent (0 to 100).
      - `max_top10_pct` (number): at most this top 10 share in percent (0 to 100).
      - `min_age_hours` (number): at least this age in hours (0 to 87600).
      - `min_buys_1h` (integer): at least this 1 h buys (0 to 1e+09).
      - `min_holders` (integer): at least this holders (0 to 1e+09).
      - `min_liquidity_usd` (number): at least this liquidity in US dollars (0 to 1e+13).
      - `min_locked_pct` (number): at least this locked or burned liquidity in percent (0 to 100).
      - `min_market_cap_usd` (number): at least this market cap in US dollars (0 to 1e+13).
      - `min_price_change_1h_pct` (number): at least this 1 h change in percent (-100 to 1e+06).
      - `min_scans` (integer): scans a token needs on the board.
      - `min_volume_24h_usd` (number): at least this 24 h volume in US dollars (0 to 1e+13).
      - `name_exclude` (array of strings): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `name_include` (array of strings): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `pair_with` (string): pair coin. One of: `native`, `stable`.
      - `require_freeze_disabled` (boolean): true = only tokens that pass the freeze authority check (required).
      - `require_mint_disabled` (boolean): true = only tokens that pass the mint authority check (required).
      - `require_renounced` (boolean): true = only tokens that pass the ownership check (required).
      - `require_telegram` (boolean): true = only tokens that pass the Telegram group check (required).
      - `require_verified_source` (boolean): true = only tokens that pass the source code check (required).
      - `require_website` (boolean): true = only tokens that pass the website check (required).
      - `require_x` (boolean): true = only tokens that pass the X account check (required).
      - `whole_words` (boolean): true = the words match whole words only.
    - `percent` (number): pct_move: the move in percent (negative = a drop).
    - `repeat` (string): 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_disabled` (boolean): trending_enter: true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean): trending_enter: true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean): trending_enter: true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean): trending_enter: true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean): trending_enter: true = only tokens that pass the source code check (required).
    - `require_website` (boolean): trending_enter: true = only tokens that pass the website check (required).
    - `require_x` (boolean): trending_enter: true = only tokens that pass the X account check (required).
    - `token` (string): Token address (price_cross, pct_move).
    - `unknown` (string): 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_words` (boolean): trending_enter: true = the words match whole words only.
    - `window` (string): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
  - `status` (string, always): 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).
  - `type` (string, always): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.
  - `address_count` (integer): wallet_activity: how many wallets the rule watches. Absent for other rules.
  - `label_count` (integer): wallet_activity: how many of them have a label. Absent for other rules.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `account_suspended` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, account_suspended. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Create a rule

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rule-create

`POST /v1/webhooks/rules`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key 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.

- Which settings go into `params` depends on `type`: [Rule types](https://ttf.bot/developers/docs/md/api-webhook-schema.md) lists them with their limits.
- No answer (a timeout)? [List your rules](https://ttf.bot/developers/docs/md/api-rules.md) 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.

### Parameters

No parameters: just send it.

### Request body

`application/json`, required.

- `endpoint_id` (string, required): The endpoint it delivers to.
- `params` (object, required): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
  - `above` (number, optional): price_cross: fire when the price rises to this many US dollars (give above or below).
  - `address` (string, optional): wallet_activity: the wallet to watch (give address or addresses).
  - `addresses` (array of strings, optional): wallet_activity: a watchlist of up to 1000 wallets.
  - `below` (number, optional): price_cross: fire when the price falls to this many US dollars.
  - `chain` (string, optional): 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).
  - `chains` (array of strings, optional): trending_enter: a list of chains (instead of chain).
  - `direction` (string, optional): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
  - `exclude_honeypot` (boolean, optional): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
  - `fire_if_already_past` (boolean, optional): price_cross: fire at once when the price is already past the level.
  - `kind` (string, optional): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
  - `launchpad` (string, optional): 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_hours` (number, optional): trending_enter: at most this age in hours (0 to 87600).
  - `max_buy_tax_pct` (number, optional): trending_enter: at most this buy tax in percent (0 to 100).
  - `max_liquidity_usd` (number, optional): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
  - `max_market_cap_usd` (number, optional): trending_enter: at most this market cap in US dollars (0 to 1e+13).
  - `max_per_hour` (integer, optional): trending_enter: at most this many alerts in any 60 minutes. Range: 1 to 1000.
  - `max_price_change_1h_pct` (number, optional): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
  - `max_rank` (integer, optional): trending_enter: at most this place (1 to 30).
  - `max_sell_tax_pct` (number, optional): trending_enter: at most this sell tax in percent (0 to 100).
  - `max_top10_pct` (number, optional): trending_enter: at most this top 10 share in percent (0 to 100).
  - `min_age_hours` (number, optional): trending_enter: at least this age in hours (0 to 87600).
  - `min_buys_1h` (integer, optional): trending_enter: at least this 1 h buys (0 to 1e+09).
  - `min_holders` (integer, optional): trending_enter: at least this holders (0 to 1e+09).
  - `min_liquidity_usd` (number, optional): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
  - `min_locked_pct` (number, optional): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
  - `min_market_cap_usd` (number, optional): trending_enter: at least this market cap in US dollars (0 to 1e+13).
  - `min_price_change_1h_pct` (number, optional): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
  - `min_scans` (integer, optional): trending_enter: scans a token needs on the board.
  - `min_usd` (number, optional): wallet_activity: smallest transfer in US dollars (0 = every transfer).
  - `min_volume_24h_usd` (number, optional): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
  - `name_exclude` (array of strings, optional): trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `name_include` (array of strings, optional): trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `pair_with` (string, optional): trending_enter: pair coin. One of: `native`, `stable`.
  - `per_chain` (map of objects, optional): 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.
    - `exclude_honeypot` (boolean, optional): true = only tokens that pass the honeypot check check (not a honeypot).
    - `launchpad` (string, optional): 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_hours` (number, optional): at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number, optional): at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number, optional): at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number, optional): at most this market cap in US dollars (0 to 1e+13).
    - `max_price_change_1h_pct` (number, optional): at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer, optional): at most this place (1 to 30).
    - `max_sell_tax_pct` (number, optional): at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number, optional): at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number, optional): at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer, optional): at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer, optional): at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number, optional): at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number, optional): at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number, optional): at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number, optional): at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer, optional): scans a token needs on the board.
    - `min_volume_24h_usd` (number, optional): at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array of strings, optional): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `name_include` (array of strings, optional): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `pair_with` (string, optional): pair coin. One of: `native`, `stable`.
    - `require_freeze_disabled` (boolean, optional): true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean, optional): true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean, optional): true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean, optional): true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean, optional): true = only tokens that pass the source code check (required).
    - `require_website` (boolean, optional): true = only tokens that pass the website check (required).
    - `require_x` (boolean, optional): true = only tokens that pass the X account check (required).
    - `whole_words` (boolean, optional): true = the words match whole words only.
  - `percent` (number, optional): pct_move: the move in percent (negative = a drop).
  - `repeat` (string, optional): 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_disabled` (boolean, optional): trending_enter: true = only tokens that pass the freeze authority check (required).
  - `require_mint_disabled` (boolean, optional): trending_enter: true = only tokens that pass the mint authority check (required).
  - `require_renounced` (boolean, optional): trending_enter: true = only tokens that pass the ownership check (required).
  - `require_telegram` (boolean, optional): trending_enter: true = only tokens that pass the Telegram group check (required).
  - `require_verified_source` (boolean, optional): trending_enter: true = only tokens that pass the source code check (required).
  - `require_website` (boolean, optional): trending_enter: true = only tokens that pass the website check (required).
  - `require_x` (boolean, optional): trending_enter: true = only tokens that pass the X account check (required).
  - `token` (string, optional): Token address (price_cross, pct_move).
  - `unknown` (string, optional): 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_words` (boolean, optional): trending_enter: true = the words match whole words only.
  - `window` (string, optional): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
- `type` (string, required): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
- `enabled` (boolean, optional): false = create it switched off (default true).
- `labels` (map of strings, optional): Wallet labels: address -> text (wallet rules only).
- `name` (string, optional): A name, up to 60 characters. At most 60 characters.

Example body:

```json
{
  "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
  "name": "PEPE breakout",
  "params": {
    "above": 1e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  },
  "type": "price_cross"
}
```

Another example body (`watchlist`): A watchlist of wallets with labels.

```json
{
  "endpoint_id": "whe_8b1f0c2d9a7e4f3b5c6d1e2a",
  "labels": {
    "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a": "Whale"
  },
  "params": {
    "addresses": [
      "0x3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a3a"
    ],
    "chain": "eth",
    "direction": "any",
    "min_usd": 1000
  },
  "type": "wallet_activity"
}
```

### Example request

```bash
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"
}'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`201` (`default`): Create a rule

```json
{
  "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"
  }
}
```

### Response fields

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

A `201` answer is `{"data", "meta"}` (`HookRuleCreatedAnswer`).

#### `data`

- `rule` (object, always): A webhook rule: when it matches, its event is sent to its endpoint.
  - `active` (boolean, always): true = it can fire now.
  - `coverage` (string, always): 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_note` (string, always): The coverage in words (empty text when full).
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `enabled` (boolean, always): Your switch.
  - `endpoint_id` (string, always): The endpoint it delivers to.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `labels` (map of strings, always): Your wallet labels: address -> text (empty when none).
  - `name` (string, always): Your name for it (empty text when none).
  - `over_limit` (boolean, always): true = above your plan, so it does not fire.
  - `params` (object, always): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
    - `above` (number): price_cross: fire when the price rises to this many US dollars (give above or below).
    - `address` (string): wallet_activity: the wallet to watch (give address or addresses).
    - `addresses` (array of strings): wallet_activity: a watchlist of up to 1000 wallets.
    - `below` (number): price_cross: fire when the price falls to this many US dollars.
    - `chain` (string): 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).
    - `chains` (array of strings): trending_enter: a list of chains (instead of chain).
    - `direction` (string): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
    - `exclude_honeypot` (boolean): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
    - `fire_if_already_past` (boolean): price_cross: fire at once when the price is already past the level.
    - `kind` (string): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
    - `launchpad` (string): 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_hours` (number): trending_enter: at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number): trending_enter: at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number): trending_enter: at most this market cap in US dollars (0 to 1e+13).
    - `max_per_hour` (integer): trending_enter: at most this many alerts in any 60 minutes.
    - `max_price_change_1h_pct` (number): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer): trending_enter: at most this place (1 to 30).
    - `max_sell_tax_pct` (number): trending_enter: at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number): trending_enter: at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number): trending_enter: at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer): trending_enter: at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer): trending_enter: at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number): trending_enter: at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer): trending_enter: scans a token needs on the board.
    - `min_usd` (number): wallet_activity: smallest transfer in US dollars (0 = every transfer).
    - `min_volume_24h_usd` (number): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array 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_include` (array 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_with` (string): trending_enter: pair coin. One of: `native`, `stable`.
    - `per_chain` (map 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.
      - `exclude_honeypot` (boolean): true = only tokens that pass the honeypot check check (not a honeypot).
      - `launchpad` (string): 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_hours` (number): at most this age in hours (0 to 87600).
      - `max_buy_tax_pct` (number): at most this buy tax in percent (0 to 100).
      - `max_liquidity_usd` (number): at most this liquidity in US dollars (0 to 1e+13).
      - `max_market_cap_usd` (number): at most this market cap in US dollars (0 to 1e+13).
      - `max_price_change_1h_pct` (number): at most this 1 h change in percent (-100 to 1e+06).
      - `max_rank` (integer): at most this place (1 to 30).
      - `max_sell_tax_pct` (number): at most this sell tax in percent (0 to 100).
      - `max_top10_pct` (number): at most this top 10 share in percent (0 to 100).
      - `min_age_hours` (number): at least this age in hours (0 to 87600).
      - `min_buys_1h` (integer): at least this 1 h buys (0 to 1e+09).
      - `min_holders` (integer): at least this holders (0 to 1e+09).
      - `min_liquidity_usd` (number): at least this liquidity in US dollars (0 to 1e+13).
      - `min_locked_pct` (number): at least this locked or burned liquidity in percent (0 to 100).
      - `min_market_cap_usd` (number): at least this market cap in US dollars (0 to 1e+13).
      - `min_price_change_1h_pct` (number): at least this 1 h change in percent (-100 to 1e+06).
      - `min_scans` (integer): scans a token needs on the board.
      - `min_volume_24h_usd` (number): at least this 24 h volume in US dollars (0 to 1e+13).
      - `name_exclude` (array of strings): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `name_include` (array of strings): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `pair_with` (string): pair coin. One of: `native`, `stable`.
      - `require_freeze_disabled` (boolean): true = only tokens that pass the freeze authority check (required).
      - `require_mint_disabled` (boolean): true = only tokens that pass the mint authority check (required).
      - `require_renounced` (boolean): true = only tokens that pass the ownership check (required).
      - `require_telegram` (boolean): true = only tokens that pass the Telegram group check (required).
      - `require_verified_source` (boolean): true = only tokens that pass the source code check (required).
      - `require_website` (boolean): true = only tokens that pass the website check (required).
      - `require_x` (boolean): true = only tokens that pass the X account check (required).
      - `whole_words` (boolean): true = the words match whole words only.
    - `percent` (number): pct_move: the move in percent (negative = a drop).
    - `repeat` (string): 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_disabled` (boolean): trending_enter: true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean): trending_enter: true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean): trending_enter: true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean): trending_enter: true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean): trending_enter: true = only tokens that pass the source code check (required).
    - `require_website` (boolean): trending_enter: true = only tokens that pass the website check (required).
    - `require_x` (boolean): trending_enter: true = only tokens that pass the X account check (required).
    - `token` (string): Token address (price_cross, pct_move).
    - `unknown` (string): 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_words` (boolean): trending_enter: true = the words match whole words only.
    - `window` (string): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
  - `status` (string, always): 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).
  - `type` (string, always): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `quota_exceeded` `account_suspended` `plan_required` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 408 | `request_timeout` | The request body did not arrive in time. Nothing changed. Codes: request_timeout. |
| 409 | `over_limit` | The change conflicts with the current state. Nothing changed. Codes: over_limit. |
| 413 | `too_large` | The body is too large. Codes: too_large. |
| 415 | `unsupported_media_type` | The body is not declared as JSON. Codes: unsupported_media_type. |
| 422 | `invalid_rule` `type_not_subscribed` | The URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `busy` `unavailable` | The service cannot answer right now. See Retry-After. Codes: busy, unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Check a rule without saving

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rule-check

`POST /v1/webhooks/rules/check`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Validate what a user typed before you create an endpoint or a rule for it. Nothing is saved.

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

### Parameters

No parameters: just send it.

### Request body

`application/json`, required.

- `params` (object, required): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
  - `above` (number, optional): price_cross: fire when the price rises to this many US dollars (give above or below).
  - `address` (string, optional): wallet_activity: the wallet to watch (give address or addresses).
  - `addresses` (array of strings, optional): wallet_activity: a watchlist of up to 1000 wallets.
  - `below` (number, optional): price_cross: fire when the price falls to this many US dollars.
  - `chain` (string, optional): 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).
  - `chains` (array of strings, optional): trending_enter: a list of chains (instead of chain).
  - `direction` (string, optional): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
  - `exclude_honeypot` (boolean, optional): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
  - `fire_if_already_past` (boolean, optional): price_cross: fire at once when the price is already past the level.
  - `kind` (string, optional): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
  - `launchpad` (string, optional): 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_hours` (number, optional): trending_enter: at most this age in hours (0 to 87600).
  - `max_buy_tax_pct` (number, optional): trending_enter: at most this buy tax in percent (0 to 100).
  - `max_liquidity_usd` (number, optional): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
  - `max_market_cap_usd` (number, optional): trending_enter: at most this market cap in US dollars (0 to 1e+13).
  - `max_per_hour` (integer, optional): trending_enter: at most this many alerts in any 60 minutes. Range: 1 to 1000.
  - `max_price_change_1h_pct` (number, optional): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
  - `max_rank` (integer, optional): trending_enter: at most this place (1 to 30).
  - `max_sell_tax_pct` (number, optional): trending_enter: at most this sell tax in percent (0 to 100).
  - `max_top10_pct` (number, optional): trending_enter: at most this top 10 share in percent (0 to 100).
  - `min_age_hours` (number, optional): trending_enter: at least this age in hours (0 to 87600).
  - `min_buys_1h` (integer, optional): trending_enter: at least this 1 h buys (0 to 1e+09).
  - `min_holders` (integer, optional): trending_enter: at least this holders (0 to 1e+09).
  - `min_liquidity_usd` (number, optional): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
  - `min_locked_pct` (number, optional): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
  - `min_market_cap_usd` (number, optional): trending_enter: at least this market cap in US dollars (0 to 1e+13).
  - `min_price_change_1h_pct` (number, optional): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
  - `min_scans` (integer, optional): trending_enter: scans a token needs on the board.
  - `min_usd` (number, optional): wallet_activity: smallest transfer in US dollars (0 = every transfer).
  - `min_volume_24h_usd` (number, optional): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
  - `name_exclude` (array of strings, optional): trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `name_include` (array of strings, optional): trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `pair_with` (string, optional): trending_enter: pair coin. One of: `native`, `stable`.
  - `per_chain` (map of objects, optional): 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.
    - `exclude_honeypot` (boolean, optional): true = only tokens that pass the honeypot check check (not a honeypot).
    - `launchpad` (string, optional): 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_hours` (number, optional): at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number, optional): at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number, optional): at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number, optional): at most this market cap in US dollars (0 to 1e+13).
    - `max_price_change_1h_pct` (number, optional): at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer, optional): at most this place (1 to 30).
    - `max_sell_tax_pct` (number, optional): at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number, optional): at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number, optional): at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer, optional): at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer, optional): at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number, optional): at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number, optional): at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number, optional): at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number, optional): at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer, optional): scans a token needs on the board.
    - `min_volume_24h_usd` (number, optional): at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array of strings, optional): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `name_include` (array of strings, optional): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `pair_with` (string, optional): pair coin. One of: `native`, `stable`.
    - `require_freeze_disabled` (boolean, optional): true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean, optional): true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean, optional): true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean, optional): true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean, optional): true = only tokens that pass the source code check (required).
    - `require_website` (boolean, optional): true = only tokens that pass the website check (required).
    - `require_x` (boolean, optional): true = only tokens that pass the X account check (required).
    - `whole_words` (boolean, optional): true = the words match whole words only.
  - `percent` (number, optional): pct_move: the move in percent (negative = a drop).
  - `repeat` (string, optional): 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_disabled` (boolean, optional): trending_enter: true = only tokens that pass the freeze authority check (required).
  - `require_mint_disabled` (boolean, optional): trending_enter: true = only tokens that pass the mint authority check (required).
  - `require_renounced` (boolean, optional): trending_enter: true = only tokens that pass the ownership check (required).
  - `require_telegram` (boolean, optional): trending_enter: true = only tokens that pass the Telegram group check (required).
  - `require_verified_source` (boolean, optional): trending_enter: true = only tokens that pass the source code check (required).
  - `require_website` (boolean, optional): trending_enter: true = only tokens that pass the website check (required).
  - `require_x` (boolean, optional): trending_enter: true = only tokens that pass the X account check (required).
  - `token` (string, optional): Token address (price_cross, pct_move).
  - `unknown` (string, optional): 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_words` (boolean, optional): trending_enter: true = the words match whole words only.
  - `window` (string, optional): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
- `type` (string, required): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
- `enabled` (boolean, optional): As in a new rule.
- `endpoint_id` (string, optional): Also check this endpoint's event types and plan limit.
- `labels` (map of strings, optional): Wallet labels: address -> text.
- `name` (string, optional): A name. At most 60 characters.

Example body:

```json
{
  "params": {
    "above": 1e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  },
  "type": "price_cross"
}
```

### Example request

```bash
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"
}'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Check a rule without saving

```json
{
  "data": {
    "coverage": "full",
    "coverage_note": "",
    "ok": true
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookRuleCheckAnswer`).

#### `data`

- `coverage` (string, always): 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_note` (string, always): The coverage in words (empty text when full).
- `ok` (boolean, always): true.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `quota_exceeded` `account_suspended` `plan_required` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 408 | `request_timeout` | The request body did not arrive in time. Nothing changed. Codes: request_timeout. |
| 409 | `over_limit` | The change conflicts with the current state. Nothing changed. Codes: over_limit. |
| 413 | `too_large` | The body is too large. Codes: too_large. |
| 415 | `unsupported_media_type` | The body is not declared as JSON. Codes: unsupported_media_type. |
| 422 | `invalid_rule` `type_not_subscribed` | The URL or the rule was refused. Nothing changed. Codes: invalid_rule, type_not_subscribed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Get one rule

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rule

`GET /v1/webhooks/rules/{rule_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: read

Look at one rule: its settings, whether it is active and what coverage it has.

- The one-click page key has no webhook access: paste a key made with **Webhook access** ([how](https://ttf.bot/developers/docs/md/webhook-api.md)).

### 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

- `rule_id` (string, path, required): Rule id (data.rule.id).
  - At most 64 characters.
  - Example: `whr_6f1c0a9e2b7d4c3a1e0f9b8d`

### Example request

```bash
curl -sS 'https://api.ttf.bot/v1/webhooks/rules/whr_6f1c0a9e2b7d4c3a1e0f9b8d' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Get a rule

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookRuleAnswer`).

#### `data`

- `rule` (object, always): A webhook rule: when it matches, its event is sent to its endpoint.
  - `active` (boolean, always): true = it can fire now.
  - `coverage` (string, always): 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_note` (string, always): The coverage in words (empty text when full).
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `enabled` (boolean, always): Your switch.
  - `endpoint_id` (string, always): The endpoint it delivers to.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `labels` (map of strings, always): Your wallet labels: address -> text (empty when none).
  - `name` (string, always): Your name for it (empty text when none).
  - `over_limit` (boolean, always): true = above your plan, so it does not fire.
  - `params` (object, always): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
    - `above` (number): price_cross: fire when the price rises to this many US dollars (give above or below).
    - `address` (string): wallet_activity: the wallet to watch (give address or addresses).
    - `addresses` (array of strings): wallet_activity: a watchlist of up to 1000 wallets.
    - `below` (number): price_cross: fire when the price falls to this many US dollars.
    - `chain` (string): 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).
    - `chains` (array of strings): trending_enter: a list of chains (instead of chain).
    - `direction` (string): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
    - `exclude_honeypot` (boolean): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
    - `fire_if_already_past` (boolean): price_cross: fire at once when the price is already past the level.
    - `kind` (string): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
    - `launchpad` (string): 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_hours` (number): trending_enter: at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number): trending_enter: at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number): trending_enter: at most this market cap in US dollars (0 to 1e+13).
    - `max_per_hour` (integer): trending_enter: at most this many alerts in any 60 minutes.
    - `max_price_change_1h_pct` (number): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer): trending_enter: at most this place (1 to 30).
    - `max_sell_tax_pct` (number): trending_enter: at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number): trending_enter: at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number): trending_enter: at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer): trending_enter: at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer): trending_enter: at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number): trending_enter: at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer): trending_enter: scans a token needs on the board.
    - `min_usd` (number): wallet_activity: smallest transfer in US dollars (0 = every transfer).
    - `min_volume_24h_usd` (number): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array 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_include` (array 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_with` (string): trending_enter: pair coin. One of: `native`, `stable`.
    - `per_chain` (map 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.
      - `exclude_honeypot` (boolean): true = only tokens that pass the honeypot check check (not a honeypot).
      - `launchpad` (string): 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_hours` (number): at most this age in hours (0 to 87600).
      - `max_buy_tax_pct` (number): at most this buy tax in percent (0 to 100).
      - `max_liquidity_usd` (number): at most this liquidity in US dollars (0 to 1e+13).
      - `max_market_cap_usd` (number): at most this market cap in US dollars (0 to 1e+13).
      - `max_price_change_1h_pct` (number): at most this 1 h change in percent (-100 to 1e+06).
      - `max_rank` (integer): at most this place (1 to 30).
      - `max_sell_tax_pct` (number): at most this sell tax in percent (0 to 100).
      - `max_top10_pct` (number): at most this top 10 share in percent (0 to 100).
      - `min_age_hours` (number): at least this age in hours (0 to 87600).
      - `min_buys_1h` (integer): at least this 1 h buys (0 to 1e+09).
      - `min_holders` (integer): at least this holders (0 to 1e+09).
      - `min_liquidity_usd` (number): at least this liquidity in US dollars (0 to 1e+13).
      - `min_locked_pct` (number): at least this locked or burned liquidity in percent (0 to 100).
      - `min_market_cap_usd` (number): at least this market cap in US dollars (0 to 1e+13).
      - `min_price_change_1h_pct` (number): at least this 1 h change in percent (-100 to 1e+06).
      - `min_scans` (integer): scans a token needs on the board.
      - `min_volume_24h_usd` (number): at least this 24 h volume in US dollars (0 to 1e+13).
      - `name_exclude` (array of strings): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `name_include` (array of strings): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `pair_with` (string): pair coin. One of: `native`, `stable`.
      - `require_freeze_disabled` (boolean): true = only tokens that pass the freeze authority check (required).
      - `require_mint_disabled` (boolean): true = only tokens that pass the mint authority check (required).
      - `require_renounced` (boolean): true = only tokens that pass the ownership check (required).
      - `require_telegram` (boolean): true = only tokens that pass the Telegram group check (required).
      - `require_verified_source` (boolean): true = only tokens that pass the source code check (required).
      - `require_website` (boolean): true = only tokens that pass the website check (required).
      - `require_x` (boolean): true = only tokens that pass the X account check (required).
      - `whole_words` (boolean): true = the words match whole words only.
    - `percent` (number): pct_move: the move in percent (negative = a drop).
    - `repeat` (string): 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_disabled` (boolean): trending_enter: true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean): trending_enter: true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean): trending_enter: true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean): trending_enter: true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean): trending_enter: true = only tokens that pass the source code check (required).
    - `require_website` (boolean): trending_enter: true = only tokens that pass the website check (required).
    - `require_x` (boolean): trending_enter: true = only tokens that pass the X account check (required).
    - `token` (string): Token address (price_cross, pct_move).
    - `unknown` (string): 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_words` (boolean): trending_enter: true = the words match whole words only.
    - `window` (string): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
  - `status` (string, always): 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).
  - `type` (string, always): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `unavailable` | The service cannot answer right now. See Retry-After. Codes: unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Update a rule

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rule-update

`PATCH /v1/webhooks/rules/{rule_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Change the threshold, the wallets or the name of a rule, or switch it off for a while.

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

### Parameters

#### Path parameters

- `rule_id` (string, path, required): Rule id (data.rule.id).
  - At most 64 characters.
  - Example: `whr_6f1c0a9e2b7d4c3a1e0f9b8d`

### Request body

`application/json`, required.

- `enabled` (boolean, optional): Switch the rule on or off.
- `labels` (map of strings, optional): Wallet labels: address -> text.
- `name` (string, optional): A new name. At most 60 characters.
- `params` (object, optional): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
  - `above` (number, optional): price_cross: fire when the price rises to this many US dollars (give above or below).
  - `address` (string, optional): wallet_activity: the wallet to watch (give address or addresses).
  - `addresses` (array of strings, optional): wallet_activity: a watchlist of up to 1000 wallets.
  - `below` (number, optional): price_cross: fire when the price falls to this many US dollars.
  - `chain` (string, optional): 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).
  - `chains` (array of strings, optional): trending_enter: a list of chains (instead of chain).
  - `direction` (string, optional): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
  - `exclude_honeypot` (boolean, optional): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
  - `fire_if_already_past` (boolean, optional): price_cross: fire at once when the price is already past the level.
  - `kind` (string, optional): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
  - `launchpad` (string, optional): 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_hours` (number, optional): trending_enter: at most this age in hours (0 to 87600).
  - `max_buy_tax_pct` (number, optional): trending_enter: at most this buy tax in percent (0 to 100).
  - `max_liquidity_usd` (number, optional): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
  - `max_market_cap_usd` (number, optional): trending_enter: at most this market cap in US dollars (0 to 1e+13).
  - `max_per_hour` (integer, optional): trending_enter: at most this many alerts in any 60 minutes. Range: 1 to 1000.
  - `max_price_change_1h_pct` (number, optional): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
  - `max_rank` (integer, optional): trending_enter: at most this place (1 to 30).
  - `max_sell_tax_pct` (number, optional): trending_enter: at most this sell tax in percent (0 to 100).
  - `max_top10_pct` (number, optional): trending_enter: at most this top 10 share in percent (0 to 100).
  - `min_age_hours` (number, optional): trending_enter: at least this age in hours (0 to 87600).
  - `min_buys_1h` (integer, optional): trending_enter: at least this 1 h buys (0 to 1e+09).
  - `min_holders` (integer, optional): trending_enter: at least this holders (0 to 1e+09).
  - `min_liquidity_usd` (number, optional): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
  - `min_locked_pct` (number, optional): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
  - `min_market_cap_usd` (number, optional): trending_enter: at least this market cap in US dollars (0 to 1e+13).
  - `min_price_change_1h_pct` (number, optional): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
  - `min_scans` (integer, optional): trending_enter: scans a token needs on the board.
  - `min_usd` (number, optional): wallet_activity: smallest transfer in US dollars (0 = every transfer).
  - `min_volume_24h_usd` (number, optional): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
  - `name_exclude` (array of strings, optional): trending_enter: words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `name_include` (array of strings, optional): trending_enter: words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
  - `pair_with` (string, optional): trending_enter: pair coin. One of: `native`, `stable`.
  - `per_chain` (map of objects, optional): 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.
    - `exclude_honeypot` (boolean, optional): true = only tokens that pass the honeypot check check (not a honeypot).
    - `launchpad` (string, optional): 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_hours` (number, optional): at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number, optional): at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number, optional): at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number, optional): at most this market cap in US dollars (0 to 1e+13).
    - `max_price_change_1h_pct` (number, optional): at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer, optional): at most this place (1 to 30).
    - `max_sell_tax_pct` (number, optional): at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number, optional): at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number, optional): at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer, optional): at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer, optional): at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number, optional): at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number, optional): at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number, optional): at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number, optional): at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer, optional): scans a token needs on the board.
    - `min_volume_24h_usd` (number, optional): at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array of strings, optional): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `name_include` (array of strings, optional): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
    - `pair_with` (string, optional): pair coin. One of: `native`, `stable`.
    - `require_freeze_disabled` (boolean, optional): true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean, optional): true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean, optional): true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean, optional): true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean, optional): true = only tokens that pass the source code check (required).
    - `require_website` (boolean, optional): true = only tokens that pass the website check (required).
    - `require_x` (boolean, optional): true = only tokens that pass the X account check (required).
    - `whole_words` (boolean, optional): true = the words match whole words only.
  - `percent` (number, optional): pct_move: the move in percent (negative = a drop).
  - `repeat` (string, optional): 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_disabled` (boolean, optional): trending_enter: true = only tokens that pass the freeze authority check (required).
  - `require_mint_disabled` (boolean, optional): trending_enter: true = only tokens that pass the mint authority check (required).
  - `require_renounced` (boolean, optional): trending_enter: true = only tokens that pass the ownership check (required).
  - `require_telegram` (boolean, optional): trending_enter: true = only tokens that pass the Telegram group check (required).
  - `require_verified_source` (boolean, optional): trending_enter: true = only tokens that pass the source code check (required).
  - `require_website` (boolean, optional): trending_enter: true = only tokens that pass the website check (required).
  - `require_x` (boolean, optional): trending_enter: true = only tokens that pass the X account check (required).
  - `token` (string, optional): Token address (price_cross, pct_move).
  - `unknown` (string, optional): 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_words` (boolean, optional): trending_enter: true = the words match whole words only.
  - `window` (string, optional): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
- `type` (string, optional): 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 body:

```json
{
  "enabled": false
}
```

Another example body (`params`): New settings.

```json
{
  "params": {
    "above": 1.2e-05,
    "chain": "eth",
    "token": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
  }
}
```

### Example request

```bash
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
}'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Update a rule

```json
{
  "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"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookRuleUpdatedAnswer`).

#### `data`

- `rule` (object, always): A webhook rule: when it matches, its event is sent to its endpoint.
  - `active` (boolean, always): true = it can fire now.
  - `coverage` (string, always): 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_note` (string, always): The coverage in words (empty text when full).
  - `created` (integer, always): When it was created. Unix time in SECONDS.
  - `enabled` (boolean, always): Your switch.
  - `endpoint_id` (string, always): The endpoint it delivers to.
  - `id` (string, always): Rule id (whr_ + 24 hex).
  - `labels` (map of strings, always): Your wallet labels: address -> text (empty when none).
  - `name` (string, always): Your name for it (empty text when none).
  - `over_limit` (boolean, always): true = above your plan, so it does not fire.
  - `params` (object, always): The settings of a rule. Which keys apply depends on the rule type (GET /v1/webhooks/schema).
    - `above` (number): price_cross: fire when the price rises to this many US dollars (give above or below).
    - `address` (string): wallet_activity: the wallet to watch (give address or addresses).
    - `addresses` (array of strings): wallet_activity: a watchlist of up to 1000 wallets.
    - `below` (number): price_cross: fire when the price falls to this many US dollars.
    - `chain` (string): 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).
    - `chains` (array of strings): trending_enter: a list of chains (instead of chain).
    - `direction` (string): wallet_activity: out (default) = sent by the wallet, in = received, any = both. One of: `out`, `in`, `any`.
    - `exclude_honeypot` (boolean): trending_enter: true = only tokens that pass the honeypot check check (not a honeypot).
    - `fire_if_already_past` (boolean): price_cross: fire at once when the price is already past the level.
    - `kind` (string): signal: the signal kind. One of: `breakout`, `trending`, `call`, `cmd`.
    - `launchpad` (string): 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_hours` (number): trending_enter: at most this age in hours (0 to 87600).
    - `max_buy_tax_pct` (number): trending_enter: at most this buy tax in percent (0 to 100).
    - `max_liquidity_usd` (number): trending_enter: at most this liquidity in US dollars (0 to 1e+13).
    - `max_market_cap_usd` (number): trending_enter: at most this market cap in US dollars (0 to 1e+13).
    - `max_per_hour` (integer): trending_enter: at most this many alerts in any 60 minutes.
    - `max_price_change_1h_pct` (number): trending_enter: at most this 1 h change in percent (-100 to 1e+06).
    - `max_rank` (integer): trending_enter: at most this place (1 to 30).
    - `max_sell_tax_pct` (number): trending_enter: at most this sell tax in percent (0 to 100).
    - `max_top10_pct` (number): trending_enter: at most this top 10 share in percent (0 to 100).
    - `min_age_hours` (number): trending_enter: at least this age in hours (0 to 87600).
    - `min_buys_1h` (integer): trending_enter: at least this 1 h buys (0 to 1e+09).
    - `min_holders` (integer): trending_enter: at least this holders (0 to 1e+09).
    - `min_liquidity_usd` (number): trending_enter: at least this liquidity in US dollars (0 to 1e+13).
    - `min_locked_pct` (number): trending_enter: at least this locked or burned liquidity in percent (0 to 100).
    - `min_market_cap_usd` (number): trending_enter: at least this market cap in US dollars (0 to 1e+13).
    - `min_price_change_1h_pct` (number): trending_enter: at least this 1 h change in percent (-100 to 1e+06).
    - `min_scans` (integer): trending_enter: scans a token needs on the board.
    - `min_usd` (number): wallet_activity: smallest transfer in US dollars (0 = every transfer).
    - `min_volume_24h_usd` (number): trending_enter: at least this 24 h volume in US dollars (0 to 1e+13).
    - `name_exclude` (array 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_include` (array 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_with` (string): trending_enter: pair coin. One of: `native`, `stable`.
    - `per_chain` (map 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.
      - `exclude_honeypot` (boolean): true = only tokens that pass the honeypot check check (not a honeypot).
      - `launchpad` (string): 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_hours` (number): at most this age in hours (0 to 87600).
      - `max_buy_tax_pct` (number): at most this buy tax in percent (0 to 100).
      - `max_liquidity_usd` (number): at most this liquidity in US dollars (0 to 1e+13).
      - `max_market_cap_usd` (number): at most this market cap in US dollars (0 to 1e+13).
      - `max_price_change_1h_pct` (number): at most this 1 h change in percent (-100 to 1e+06).
      - `max_rank` (integer): at most this place (1 to 30).
      - `max_sell_tax_pct` (number): at most this sell tax in percent (0 to 100).
      - `max_top10_pct` (number): at most this top 10 share in percent (0 to 100).
      - `min_age_hours` (number): at least this age in hours (0 to 87600).
      - `min_buys_1h` (integer): at least this 1 h buys (0 to 1e+09).
      - `min_holders` (integer): at least this holders (0 to 1e+09).
      - `min_liquidity_usd` (number): at least this liquidity in US dollars (0 to 1e+13).
      - `min_locked_pct` (number): at least this locked or burned liquidity in percent (0 to 100).
      - `min_market_cap_usd` (number): at least this market cap in US dollars (0 to 1e+13).
      - `min_price_change_1h_pct` (number): at least this 1 h change in percent (-100 to 1e+06).
      - `min_scans` (integer): scans a token needs on the board.
      - `min_volume_24h_usd` (number): at least this 24 h volume in US dollars (0 to 1e+13).
      - `name_exclude` (array of strings): words matched in the name and symbol (none of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `name_include` (array of strings): words matched in the name and symbol (any of; at most 50 words of 32 characters, plain text, not case sensitive).
      - `pair_with` (string): pair coin. One of: `native`, `stable`.
      - `require_freeze_disabled` (boolean): true = only tokens that pass the freeze authority check (required).
      - `require_mint_disabled` (boolean): true = only tokens that pass the mint authority check (required).
      - `require_renounced` (boolean): true = only tokens that pass the ownership check (required).
      - `require_telegram` (boolean): true = only tokens that pass the Telegram group check (required).
      - `require_verified_source` (boolean): true = only tokens that pass the source code check (required).
      - `require_website` (boolean): true = only tokens that pass the website check (required).
      - `require_x` (boolean): true = only tokens that pass the X account check (required).
      - `whole_words` (boolean): true = the words match whole words only.
    - `percent` (number): pct_move: the move in percent (negative = a drop).
    - `repeat` (string): 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_disabled` (boolean): trending_enter: true = only tokens that pass the freeze authority check (required).
    - `require_mint_disabled` (boolean): trending_enter: true = only tokens that pass the mint authority check (required).
    - `require_renounced` (boolean): trending_enter: true = only tokens that pass the ownership check (required).
    - `require_telegram` (boolean): trending_enter: true = only tokens that pass the Telegram group check (required).
    - `require_verified_source` (boolean): trending_enter: true = only tokens that pass the source code check (required).
    - `require_website` (boolean): trending_enter: true = only tokens that pass the website check (required).
    - `require_x` (boolean): trending_enter: true = only tokens that pass the X account check (required).
    - `token` (string): Token address (price_cross, pct_move).
    - `unknown` (string): 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_words` (boolean): trending_enter: true = the words match whole words only.
    - `window` (string): pct_move: the time window. One of: `1m`, `5m`, `15m`, `1h`, `4h`, `24h`.
  - `status` (string, always): 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).
  - `type` (string, always): The rule type. One of: `price_cross`, `pct_move`, `trending_enter`, `wallet_activity`, `signal`.
  - `updated` (integer, always): When it was last changed. Unix time in SECONDS.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 400 | `bad_request` | Bad request: an unknown field or a bad value. Nothing changed. Codes: bad_request. |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` `quota_exceeded` `account_suspended` `plan_required` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden, quota_exceeded, account_suspended, plan_required. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 408 | `request_timeout` | The request body did not arrive in time. Nothing changed. Codes: request_timeout. |
| 413 | `too_large` | The body is too large. Codes: too_large. |
| 415 | `unsupported_media_type` | The body is not declared as JSON. Codes: unsupported_media_type. |
| 422 | `invalid_rule` | The URL or the rule was refused. Nothing changed. Codes: invalid_rule. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `busy` `unavailable` | The service cannot answer right now. See Retry-After. Codes: busy, unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Delete a rule

- Section: Webhook management (TTF API reference)
- Source: https://ttf.bot/developers/docs/#api-rule-delete

`DELETE /v1/webhooks/rules/{rule_id}`

- Base URL: `https://api.ttf.bot`
- Cost: Free
- Plan: Free
- API key: required. Send `Authorization: Bearer YOUR_KEY` (or `X-API-Key: YOUR_KEY`).
- A refused or failed call costs nothing.
- Key needs: webhooks: write

Stop an alert for good: the rule is removed and its place in your plan is free again.

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

### Parameters

#### Path parameters

- `rule_id` (string, path, required): Rule id (data.rule.id).
  - At most 64 characters.
  - Example: `whr_6f1c0a9e2b7d4c3a1e0f9b8d`

### Example request

```bash
curl -sS -X DELETE 'https://api.ttf.bot/v1/webhooks/rules/whr_6f1c0a9e2b7d4c3a1e0f9b8d' \
  -H 'Authorization: Bearer YOUR_KEY'
```

Put your key in place of `YOUR_KEY`.

### Example answer

`200` (`default`): Delete a rule

```json
{
  "data": {
    "deleted": true,
    "id": "whr_6f1c0a9e2b7d4c3a1e0f9b8d"
  },
  "meta": {
    "cost": 0,
    "request_id": "3f2a9c0e5b7d4e18a6c1f0b2d9e8a7c6"
  }
}
```

### Response fields

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

A `200` answer is `{"data", "meta"}` (`HookRuleDeletedAnswer`).

#### `data`

- `deleted` (boolean, always): true.
- `id` (string, always): The deleted rule.

#### `meta`

- `cost` (integer, always): Credits this call finally spent (= the X-Credits-Cost header). 0 for free routes and refused calls.
- `request_id` (string, always): Id of this request (= the X-Request-Id header). Quote it to support.
- `cached` (array of strings): The groups answered from the shared answer cache (charged at their cached weight). Absent when none.
- `partial` (array 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.

### Errors

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthorized` | The API key is missing or not valid. Codes: unauthorized. |
| 402 | `payment_required` | The subscription of this API key has ended. Codes: payment_required. |
| 403 | `forbidden` | The key lacks the webhook permission (or its plan, IP or account refuses the call), or a plan limit is reached. Codes: forbidden. |
| 404 | `not_found` | No such endpoint or rule in your account, or the webhook API is switched off. Codes: not_found. |
| 405 | `method_not_allowed` | Wrong HTTP method for this route. Codes: method_not_allowed. |
| 429 | `rate_limited` | Too many requests, or too many webhook reads or changes of your account. See Retry-After. Codes: rate_limited. |
| 500 | `internal` | Unexpected error. Codes: internal. |
| 503 | `busy` `unavailable` | The service cannot answer right now. See Retry-After. Codes: busy, unavailable. |
| other | `error` | Any 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](https://ttf.bot/developers/docs/md/errors.md).

---

## Errors

- Section: Help (TTF API reference)
- Source: https://ttf.bot/developers/docs/#errors

When something goes wrong, the answer says what, why, and whether it cost anything.

Every error has the same shape:

```json
{
  "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.

| Code | What it means | How to fix it | Charged | Retry |
| --- | --- | --- | --- | --- |
| `bad_request` 400 | **Bad 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 | - |
| `unauthorized` 401 | **Missing 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_required` 402 | **Subscription ended** The subscription behind this key has run out. | Renew the plan in the dashboard; the same key works again right after. | No | - |
| `forbidden` 403 | **Not 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_exceeded` 403 | **Plan 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_suspended` 403 | **Account suspended** The account behind this key is suspended, so nothing can be changed. | Contact support and quote the request_id. | No | - |
| `plan_required` 403 | **Plan 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_found` 404 | **Not 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_allowed` 405 | **Method 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_timeout` 408 | **Body 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_url` 409 | **URL 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_use` 409 | **Event 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_paused` 409 | **Endpoint 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_limit` 409 | **Endpoint 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 | - |
| `conflict` 409 | **Changed 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_large` 413 | **Body 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_type` 415 | **Send 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 | - |
| `refused` 422 | **Token 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_allowed` 422 | **Webhook 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_rule` 422 | **Invalid 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_subscribed` 422 | **Event 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_limited` 429 | **Slow 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. | No | Yes, after Retry-After |
| `capacity` 503 | **At 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. | No | Yes, after Retry-After |
| `busy` 503 | **Busy** 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). | No | Yes, after Retry-After |
| `unavailable` 503 | **Temporarily 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. | No | Yes, after Retry-After |
| `not_configured` 503 | **Webhooks 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. | No | Yes, after Retry-After |
| `upstream` 502 | **Provider 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 | - |
| `timeout` 504 | **Took 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 | - |
| `internal` 500 | **Internal error** An unexpected error on our side. | Retry; if it repeats, contact support and quote the request_id. | No | - |
| `error` any | **Request 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

- Section: Help (TTF API reference)
- Source: https://ttf.bot/developers/docs/#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`
- **added** fields= keeps only the asked keys of each trending row (chain and address always kept). `getTrending`
- **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`
