Authentication
Learn how to authenticate your API requests
API
Integrate with TBit using our REST API
# API Reference > Integrate with TBit using our REST API - Page: https://tbit.app/docs/api - Base URL: `https://rest-api.tbit.app/v1` - Authentication: `X-API-Key` header with your key on every request (the examples read it from the `TBIT_API_KEY` environment variable) > **Base URL** > > `https://rest-api.tbit.app/v1` > **Rate Limits** > > 100 requests per minute per API key ### Quick Start Make your first API call in seconds: > **Open-Source Example** > > [Complete storefront example built on this API →](https://github.com/tbit-io/tbit-storefront-example) - [Authentication](https://tbit.app/docs/api/authentication): Learn how to authenticate your API requests - [Activities](https://tbit.app/docs/api/activities): Manage conversations and contacts - [Tags](https://tbit.app/docs/api/tags): Create and manage tags for your contacts - [Contacts](https://tbit.app/docs/api/contacts): Read and update contact information - [Templates](https://tbit.app/docs/api/templates): List and send WhatsApp templates - [Products](https://tbit.app/docs/api/products): Read your product catalog and semantic search - [Categories](https://tbit.app/docs/api/categories): List the category facets of your catalog - [Carts](https://tbit.app/docs/api/carts): Shareable carts that close on WhatsApp - [Form forwarding](https://tbit.app/docs/api/forms-webhook): Receive every completed form in your API (webhook) - [Custom tools](https://tbit.app/docs/api/custom-tools): Let the AI call your API mid-conversation - [Errors](https://tbit.app/docs/api/errors): Error codes and handling reference `GET /v1/activities` ```bash curl "https://rest-api.tbit.app/v1/activities" \ -H "X-API-Key: $TBIT_API_KEY" ```Make your first API call in seconds:
Learn how to authenticate your API requests
Manage conversations and contacts
Create and manage tags for your contacts
Read and update contact information
List and send WhatsApp templates
Read your product catalog and semantic search
List the category facets of your catalog
Shareable carts that close on WhatsApp
Receive every completed form in your API (webhook)
Let the AI call your API mid-conversation
Error codes and handling reference
/v1/activitiescurl "https://rest-api.tbit.app/v1/activities" \
-H "X-API-Key: $TBIT_API_KEY"const response = await fetch('https://rest-api.tbit.app/v1/activities', {
headers: {
'X-API-Key': process.env.TBIT_API_KEY,
},
});
const data = await response.json();import axios from 'axios';
const { data } = await axios.get(
'https://rest-api.tbit.app/v1/activities',
{
headers: {
'X-API-Key': process.env.TBIT_API_KEY,
},
},
);import os
import requests
response = requests.get(
'https://rest-api.tbit.app/v1/activities',
headers={'X-API-Key': os.environ['TBIT_API_KEY']},
)
data = response.json()<?php
$ch = curl_init('https://rest-api.tbit.app/v1/activities');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: ' . getenv('TBIT_API_KEY'),
],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);