# Orthogonal

[Orthogonal](https://orthogonal.com) est une passerelle d'API pour les agents IA. Elle référence Tomba comme API vérifiée et transmet les requêtes à 20 endpoints Tomba avec ses propres identifiants Tomba. Orthogonal développe, tarifie et assure le support de cette intégration : vous vous authentifiez avec une clé API Orthogonal et vous payez Orthogonal, et les requêtes n'utilisent pas vos crédits Tomba. La page du catalogue d'Orthogonal est [orthogonal.com/discover/tomba](https://orthogonal.com/discover/tomba).

## Prérequis

- Une clé API Orthogonal, pour appeler Tomba via le SDK ou l'API d'Orthogonal.
- Ou, pour payer plutôt à l'appel : un portefeuille contenant des USDC sur Base, utilisé via x402.

Les questions de configuration, de facturation et de support sont à adresser à Orthogonal.

## Appeler Tomba avec une clé API

Les chemins et les paramètres sont ceux de Tomba : la [référence de l'API](/api) s'applique donc. Avec le SDK Node.js d'Orthogonal (`npm install @orth/sdk`) :

```javascript
import Orthogonal from "@orth/sdk";

const orthogonal = new Orthogonal({
    apiKey: process.env.ORTHOGONAL_API_KEY,
});

const result = await orthogonal.run({
    api: "tomba",
    path: "/v1/domain-search",
    query: { domain: "stripe.com" },
});
console.log(result);
```

## Endpoints

| Méthode | Chemin                     | Référence                                                            |
| ------ | ------------------------ | -------------------------------------------------------------------- |
| `GET`  | `/v1/domain-search`      | [Domain Search](/api/finder#domain-search)                           |
| `GET`  | `/v1/email-finder`       | [Email Finder](/api/finder#email-finder)                             |
| `GET`  | `/v1/email-verifier`     | [Email Verifier](/api/verifier#email-verifier)                       |
| `GET`  | `/v1/author-finder`      | [Author Finder](/api/finder#author-finder)                           |
| `GET`  | `/v1/linkedin`           | [LinkedIn Finder](/api/finder#linkedin-finder)                       |
| `GET`  | `/v1/phone-finder`       | [Phone Finder](/api/phone#phone-finder)                              |
| `GET`  | `/v1/phone-validator`    | [Phone Validator](/api/phone#phone-validator)                        |
| `GET`  | `/v1/email-count`        | [Email Count](/api/finder#email-count)                               |
| `GET`  | `/v1/email-sources`      | [Email Sources](/api/email#email-sources)                            |
| `GET`  | `/v1/email-format`       | [Email Format](/api/finder#email-format)                             |
| `GET`  | `/v1/enrich`             | [Email Enrichment](/api/finder#email-enrichment)                     |
| `GET`  | `/v1/people/find`        | [Person Enrichment](/api/enrichment#person-api)                      |
| `GET`  | `/v1/companies/find`     | [Company Enrichment](/api/enrichment#company-api)                    |
| `GET`  | `/v1/combined/find`      | [Combined Enrichment](/api/enrichment#combined-api)                  |
| `GET`  | `/v1/technology`         | [Technology](/api/domain#technology)                                 |
| `GET`  | `/v1/location`           | [Localisation](/api/finder#location)                                     |
| `GET`  | `/v1/similar`            | [Similar Domains](/api/domain#similar)                               |
| `GET`  | `/v1/domain-suggestions` | [Suggestions de domaines](/api/domain-suggestions#get-domain-suggestions) |
| `GET`  | `/v1/domain-status`      | [Domain Status](/api/domain#domain-status)                           |
| `POST` | `/v1/reveal/search`      | [Companies Search](/api/reveal#search-companies)                       |

## Payer à l'appel avec x402

Orthogonal accepte aussi le paiement à l'appel en USDC sur Base via x402, sans clé API Orthogonal. Envoyez la requête à `https://x402.orthogonal.com/tomba` suivi du chemin Tomba, avec un client x402 comme `x402-fetch` (`npm install x402-fetch viem`) :

```javascript
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);

const response = await fetchWithPayment(
    "https://x402.orthogonal.com/tomba/v1/domain-search?domain=stripe.com",
);
console.log(await response.json());
```

<Callout type="danger">
    `PRIVATE_KEY` est la clé d'un portefeuille contenant des USDC sur Base. Toute personne qui la détient peut dépenser les fonds du portefeuille : chargez-la donc depuis un gestionnaire de secrets ou une variable d'environnement, jamais depuis le code source.
</Callout>

Pour payer Tomba directement à chaque requête, sans compte Tomba ni passerelle, voir [Paiements par les agents (MPP)](/mpp/introduction).
