Getting started
The TeleBoost API is available on every paid plan, from Solo. Create a key under Settings → Developers → API keys: it's shown once, so copy it then. All requests use HTTPS and return JSON.
curl https://teleboost.app/api/v1/contacts \ -H "Authorization: Bearer tb_live_your_key_here"
List endpoints return { "data": [...], "next_cursor": "...", "has_more": true }. Pass next_cursor back as ?cursor= to page.
Authentication & scopes
Two mechanisms, one scope model. Use an API key (Authorization: Bearer tb_live_…) for scripts and automation, or OAuth 2.1 for AI apps connecting over MCP. Keys are workspace-scoped: a key is bound to your solo data or one team at creation. Each area has a read and a write scope; messages.send is separate, so a credential can read and draft without ever sending. In a team, a credential also inherits its member's account restrictions and page permissions.
| Scope | Grants |
|---|---|
| workspace.read | Read workspace metadata, team members, plan usage and quotas |
| accounts.write | Update connected account settings such as daily sending quotas and the auto-delete timer for new chats |
| contacts.read | Read leads/contacts, custom fields, notes, statuses and engagement scores |
| contacts.write | Create and update contacts, custom fields, notes and pipeline stages |
| lists.read | Read lists and their members |
| lists.write | Create lists, add or remove contacts from lists |
| segments.read | Read dynamic segments, their definitions, counts and matching contacts |
| segments.write | Create, update and archive dynamic segments |
| groups.read | Read saved Telegram groups (targets for scraping and campaigns) |
| groups.write | Add and delete saved Telegram groups |
| inbox.read | Read conversations and message history across connected accounts |
| inbox.write | Assign conversations, change their work state (snooze, resolve...) and schedule follow-ups |
| messages.send | Send and forward messages from connected Telegram accounts and set conversation auto-delete timers (respects account quotas) |
| custom_fields.read | Read the custom fields defined on contacts, tickets and conversations |
| custom_fields.write | Create, rename, reorder and delete custom fields |
| campaigns.read | Read DM and group campaigns, their stats and delivery logs |
| campaigns.write | Create, start and pause DM and group campaigns |
| templates.read | Read message templates and AI personalities (campaign building blocks) |
| templates.write | Create message templates and AI personalities |
| tickets.read | Read tickets, statuses, priorities and SLA state |
| tickets.write | Create and update tickets and reminders |
| links.read | Read tracked links, click stats and the attribution of a click |
| links.write | Create, update and archive tracked links |
| outcomes.read | Read recorded outcomes, revenue and configurable outcome types |
| outcomes.write | Record and reverse outcomes (idempotent, append-only) |
| analytics.read | Read aggregated analytics and dashboard metrics |
| automations.read | Read automation rules, their catalog and execution history |
| automations.write | Create, edit, enable, disable and delete automation rules |
| playbooks.read | Read conversation playbooks, their runs and step analytics |
| playbooks.write | Start, advance and end a playbook on a conversation |
| sales.read | Read paid offers, purchases and offer performance |
| sales.write | Create, edit and archive paid offers |
| sourcing.read | Read lead sourcing jobs (group scrapes, imports) and their budgets |
| sourcing.write | Start and cancel lead sourcing jobs from saved Telegram groups |
| stories.read | Read the stories of connected accounts, their stats and who viewed them |
| stories.write | Post, schedule, edit and delete stories on connected accounts |
| notifications.read | Read the in-app notifications of the connected user |
| notifications.write | Mark notifications as read |
API resources
All paths are relative to https://teleboost.app/api/v1. A selection is shown below: the full, always-current reference of every endpoint is the OpenAPI spec.
| Method | Path | Description | Scope |
|---|---|---|---|
| GET | /accounts | List connected accounts (status only) | workspace.read |
| PATCH | /accounts/{id}/quota | Update an account's sending quota | accounts.write |
| GET | /contacts | List and search contacts | contacts.read |
| POST | /contacts | Create a contact | contacts.write |
| PATCH | /contacts/{id} | Update status, custom fields | contacts.write |
| GET | /lists | Browse lists with counts | lists.read |
| POST | /lists/{id}/contacts | Add contacts to a list | lists.write |
| GET | /groups | List saved Telegram groups | groups.read |
| GET | /conversations | List inbox conversations | inbox.read |
| GET | /conversations/{id}/messages | Message history | inbox.read |
| POST | /messages | Send a message (to a conversation_id, contact or @username) | messages.send |
| POST | /messages/forward | Forward messages to other chats of the account | messages.send |
| PUT | /conversations/{id}/auto-delete | Set a conversation's auto-delete timer | messages.send |
| PUT | /accounts/{id}/auto-delete | Default auto-delete timer for new chats | accounts.write |
| GET | /campaigns/dm | List DM campaigns | campaigns.read |
| POST | /campaigns/dm/{id}/start | Start / resume a DM campaign | campaigns.write |
| POST | /campaigns/group | Create a group campaign | campaigns.write |
| GET | /templates | List message templates | templates.read |
| GET | /personalities | List AI personalities | templates.read |
| GET | /tickets | List tickets | tickets.read |
| POST | /tickets | Create a ticket | tickets.write |
| POST | /reminders | Create a reminder | tickets.write |
| GET | /analytics/summary | Aggregated KPIs | analytics.read |
| GET | /analytics/activity | 7×24 inbound activity heatmap | analytics.read |
| GET | /workspace/usage | Plan usage and API quotas | workspace.read |
| GET | /custom-fields | List custom fields | custom_fields.read |
| POST | /custom-fields | Create a custom field | custom_fields.write |
| PATCH | /notes/{id} | Edit or pin a note | contacts.write |
| GET | /conversations/queues | Shared Inbox queue counts | inbox.read |
| POST | /conversations/{id}/assign | Assign a conversation | inbox.write |
| POST | /conversations/{id}/state | Snooze, resolve or reopen | inbox.write |
| POST | /conversations/{id}/followups | Schedule a follow-up | inbox.write |
| POST | /conversations/{id}/playbook | Start a playbook | playbooks.write |
| GET | /tickets/{id}/comments | Internal ticket comments | tickets.read |
| GET | /offers | List paid offers | sales.read |
| GET | /offers/{id}/stats | Offer conversion and revenue | sales.read |
| POST | /automations | Create an automation (disabled) | automations.write |
| POST | /automations/{id}/dry-run | Preview a rule on one contact | automations.read |
| POST | /sourcing/group-scrapes | Collect members of public groups | sourcing.write |
| GET | /notifications | In-app notifications | notifications.read |
MCP server
TeleBoost runs a hosted MCP server so any MCP-compatible AI: Claude, ChatGPT, Cursor, Zed, and automation tools like n8n and Make: can work with your pipeline directly.
MCP endpoint: https://mcp.teleboost.app/mcp 1. Copy the URL from Settings → Developers → Connected AI apps 2. Add it as a custom connector in your AI tool 3. Authorize via the TeleBoost consent screen (OAuth 2.1 + PKCE)
The server exposes 128 tools that call the same services as the API, grouped below by area. A tool whose scope the connection was not granted answers with an explicit “missing scope” error, so the assistant can tell you what to enable. The descriptions of each tool are on the MCP overview.
| Area | Tools |
|---|---|
| Find and capture leads | list_groups, add_group, delete_group, start_group_scrape, import_usernames, list_sourcing_jobs, get_sourcing_budgets, cancel_sourcing_job |
| Contacts and Contact 360 | search_contacts, get_contact, get_contact_profile, create_contact, update_contact, add_note, list_notes, update_note, delete_note, get_contact_consent, record_contact_consent |
| Custom fields | list_custom_fields, create_custom_field, update_custom_field, delete_custom_field |
| Lists and segments | list_lists, create_list, add_to_list, remove_from_list, get_list_members, list_segments, get_segment, preview_segment, create_segment, update_segment, get_segment_contacts, review_segment_audience |
| Pipelines | list_pipelines, get_pipeline, get_pipeline_board, move_contact_to_stage, get_contact_stage_history |
| Inbox and messaging | list_conversations, get_conversation, send_message, forward_messages, set_conversation_auto_delete, set_account_auto_delete, list_accounts, set_account_quota |
| Stories | list_stories, create_story, delete_story, get_story_viewers |
| Shared Inbox operations | get_inbox_queues, get_conversation_assignment, assign_conversation, set_conversation_state, list_followups, schedule_followup, cancel_followup, list_workspace_members |
| Playbooks | list_playbooks, get_playbook, get_playbook_analytics, get_conversation_playbook, start_playbook, update_playbook_run |
| Campaigns | list_campaigns, get_dm_campaign, get_campaign_stats, get_campaign_variant_stats, get_campaign_performance, create_dm_campaign, create_group_campaign, start_campaign, pause_campaign, start_group_campaign, pause_group_campaign |
| Content library | list_templates, create_template, search_library, get_content_item, update_content_item, list_personalities, create_personality |
| Selling | list_offers, get_offer, get_offer_stats, list_purchases, create_offer, update_offer, archive_offer |
| Outcomes and revenue | list_outcome_types, list_outcomes, get_outcome, record_outcome, reverse_outcome, suggest_outcome_attribution, get_outcome_analytics |
| Tracked links | list_tracked_links, get_tracked_link, create_tracked_link, update_tracked_link, get_link_stats, get_contact_clicks, get_click_attribution |
| Tickets and reminders | list_tickets, get_ticket, create_ticket, update_ticket, list_ticket_comments, add_ticket_comment, get_ticket_stats, set_reminder, list_reminders |
| Automations | get_automation_catalog, list_automations, get_automation, create_automation, update_automation, delete_automation, test_automation, list_automation_runs |
| Analytics, workspace and notifications | get_analytics_summary, get_activity_heatmap, get_response_metrics, get_workspace_usage, list_notifications, mark_notifications_read |
Keeping a connection current
OAuth access tokens are short-lived. When one expires or is revoked, the MCP endpoint answers 401 with WWW-Authenticate: Bearer error="invalid_token", and MCP clients refresh it on their own with the refresh token. Nothing to reconnect.
New tools ship regularly. To pick them up without a new consent, grant Full access, including permissions added later on the consent screen or on an API key: the credential then follows the scope catalog as it grows. With a hand-picked set, enable a new scope under Settings → Developers → Connected AI apps → Edit permissions. It applies to the next call.
GET /workspace returns the scopes a credential holds and includes_future_scopes, so an integration can check what it may do before trying.
Webhooks
Register an HTTPS endpoint under Settings → Developers → Webhooks. Each delivery carries an X-TeleBoost-Signature header: an HMAC-SHA256 of the body with your endpoint secret. Verify it before trusting the payload.
import hmac, hashlib
def verify(body: bytes, header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header)Deliveries retry with exponential backoff for up to 24 hours; endpoints that keep failing are auto-disabled with an alert. message.received and message.sent fire for every private message of your connected accounts, whoever sent it (contact, teammate, API or the Telegram app), with its conversation_id: reply with POST /messages and that id. Available events:
Rate limits
Limits are per plan and returned on every response via X-RateLimit-* headers. A 429 includes Retry-After.
| Plan | Per minute | Per day | Sends / hour |
|---|---|---|---|
| Solo | 120 | 10,000 | 30 |
| Team, Agency | 300 | 50,000 | 100 |
Message sends also respect each account's own safety quota: the hourly API cap is in addition to, not instead of, those limits. Replies to a contact who wrote to the account in the last 24 hours don't count toward the hourly cap; they still count toward the per-minute and daily limits.