# Http

Runs a HTTP server (reverse proxy) for Tomba.

## Usage

```bash
tomba http
 ┌───────────────────────────────────────────────────┐
 │                       tomba                       │
 │                   Fiber v2.48.0                   │
 │               http://127.0.0.1:3000               │
 │       (bound on host 0.0.0.0 and port 3000)       │
 │                                                   │
 │ Handlers ............ 16  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ............. 97207 │
 └───────────────────────────────────────────────────┘
```

### with port flag

```bash
tomba http --port=3001
 ┌───────────────────────────────────────────────────┐
 │                       tomba                       │
 │                   Fiber v2.48.0                   │
 │               http://127.0.0.1:3001               │
 │       (bound on host 0.0.0.0 and port 3001)       │
 │                                                   │
 │ Handlers ............ 16  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ............. 97207 │
 └───────────────────────────────────────────────────┘

```

**Details:**
This command starts the Tomba reverse proxy server.

## Endpoints

| Name            | Route            | Body                                                 | State     | Slack | Method |
| --------------- | ---------------- | ---------------------------------------------------- | --------- | ----- | ------ |
| author finder   | /author          | `url`                                                | Completed | Yes   | Post   |
| email counter   | /count           | `domain`                                             | Completed | No    | Post   |
| enrichment      | /enrich          | `email`, `enrich_mobile`                             | Completed | Yes   | Post   |
| email finder    | /finder          | `domain`, `first_name`, `last_name`, `enrich_mobile` | Completed | No    | Post   |
| linkedin finder | /linkedin        | `url`, `enrich_mobile`                               | Completed | Yes   | Post   |
| phone finder    | /phone-finder    | `email`, `domain`, or `linkedin`                     | Completed | No    | Post   |
| phone validator | /phone-validator | `phone`, `country_code`                              | Completed | No    | Post   |
| reveal          | /reveal          | `query`, `country`, `industry`, `size`               | Completed | No    | Post   |
| domain search   | /search          | `domain`                                             | Completed | Yes   | Post   |
| similar domains | /similar         | `domain`                                             | Completed | No    | Post   |
| email sources   | /sources         | `email`                                              | Completed | No    | Post   |
| domain status   | /status          | `domain`                                             | Completed | No    | Post   |
| technology      | /technology      | `domain`                                             | Completed | No    | Post   |
| email verifier  | /verify          | `email`                                              | Completed | Yes   | Post   |
| logs            | /logs            | No                                                   | Completed | No    | Get    |
| usage           | /usage           | No                                                   | Completed | No    | Get    |
| whoami          | /whoami          | No                                                   | Completed | No    | Get    |
