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 - [OTP via WhatsApp](https://tbit.app/docs/api/otp): Verification codes via WhatsApp with a Copy code button - [SMS and calls](https://tbit.app/docs/api/sms-calls): Send SMS and request AI calls through the agent's line - [Appointments](https://tbit.app/docs/api/appointments): Services, team and batch appointments for your calendar - [Products](https://tbit.app/docs/api/products): Read your product catalog and semantic search - [Categories](https://tbit.app/docs/api/categories): List the categories in 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) - [Webhooks](https://tbit.app/docs/api/webhooks): Receive appointments, payments and escalations in your system, signed - [Custom tools](https://tbit.app/docs/api/custom-tools): Let the AI call your API during the 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
Verification codes via WhatsApp with a Copy code button
Send SMS and request AI calls through the agent's line
Services, team and batch appointments for your calendar
Read your product catalog and semantic search
List the categories in your catalog
Shareable carts that close on WhatsApp
Receive every completed form in your API (webhook)
Receive appointments, payments and escalations in your system, signed
Let the AI call your API during the 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);