YepBoss documentation

REST API and MCP access

An overview of the YepBoss REST API, API key scoping and entity keys, and the MCP server that lets an AI assistant read back-office data and manage numbers.

YepBoss documentation

YepBoss documentation

  1. Overview
  2. Core concepts and glossary
  3. Routing
  4. Rate decks and effective dates
  5. Rating and margin
  6. Credit and fraud control
  7. Invoicing and billing cycles
  8. Payments, credit notes and disputes
  9. Multi-currency and FX gain and loss
  10. E-invoicing and the general ledger
  11. SMS billing
  12. Vendor bill reconciliation
  13. Reports, report builder and customer portal
  14. REST API and MCP access
    1. API keys
    2. Customer API
    3. MCP server
    4. Setting up access
    5. What is not in the API

Other products

YepBoss exposes two machine interfaces. The REST API lets a customer's own systems, or your internal tools, read and change data. The MCP server lets an AI assistant read what the back office shows and, with an Admin key, add, assign and route numbers. Both authenticate with the same API keys.

API keys

Staff create keys in the back office. A key is shown once, when it is created. YepBoss keeps only a prefix, to tell keys apart, and a hash. A lost key is replaced by a new one and the old one is revoked. A key may have an expiry, and the list shows when each key was last used.

A request carries the key in a header. What a key can do depends on its binding and its scopes.

KeyBindingReach
Customer keyOne accountReads that account's data only: balance, calls, issued invoices, prices, rate notices and numbers
Customer key with the numbers scopeOne accountAlso reserves, buys and releases numbers from your stock, limited to stock carrying the tags that staff have given the account
Staff keyNo accountReads everything the back office shows
Admin keyNo accountReads and changes accounts, ingress and egress connections, the number inventory, risk prefixes, ported numbers and block rules across accounts. It is never given to a customer, and the product refuses to save an admin key bound to an account
Entity keyOne entityFor a retail product's front end. It acts for any account of that entity, named per request, and with the billing scope reads products, sets quantities, records top-ups and gives numbers to those accounts

Customer API

The customer API is organised in groups.

GroupPurpose
AccountThe identity of the key's account and its balance
Calls and usageCall records and usage totals. Each call shows its direction (outbound on the account's ingress connections, otherwise inbound), its sell amount and its inbound amount, and can be listed by direction
InvoicesIssued invoices, each as data, a PDF, a UBL file and a call-detail ZIP
RatesThe price lists in force for the account and the rate notices sent to it, with their Excel files
FXExchange rates
NumbersThe account's numbers, a search of available stock, the tags that decide which stock the account sees, and reserve, buy and release
Billing (entity keys)Products, subscription items and payments

Conventions:

  • Money, rates and quantities are decimal strings, never floating-point numbers.
  • Timestamps are RFC 3339 in UTC.
  • Telephone numbers are E.164 digits. Requests also accept a plus sign, spaces and separators.
  • Every error returns a message and an HTTP status code, and clients branch on the status.
  • Payment creation is idempotent on a reference supplied by the caller, so a retry does not post a payment twice.

A key with an account sees what the customer portal shows. Calls are those on its own ingress connections plus the inbound calls delivered to its numbers, invoices are issued ones only, and nothing names a vendor.

Admin endpoints

Admin keys also reach endpoints for accounts, ingress connections, egress connections, the number inventory, risk prefixes, ported numbers and block rules, so a provisioning system can create a customer and its connection without the back office. The number inventory endpoint lists the whole stock, adds numbers to it, and sets the status, the holder and the delivery of up to 500 numbers in one request. These are documented to customers who need them.

MCP server

The MCP server speaks the Model Context Protocol over Streamable HTTP. Any MCP-capable assistant connects with one of your API keys and gets a set of tools built for that key.

  • Account key. The assistant reads that account's own data with the same scoping as the customer API: balance and reservation, live calls, call search and call detail, issued invoices, ledger, payments, numbers, rates, SMS messages and destination lookups. Nothing names a vendor.
  • Staff key. The assistant reads everything the back office shows, and gains operational tools: accounts, egress connections, SBC nodes, alerts, refused calls, fraud events, credit actions, test-call results and a route explainer that shows what routing would do for a given number.
  • Admin key. The assistant has everything a staff key reads, and two tools that change the number inventory. One adds numbers to stock. The other sets the status, the holder, the delivery connection and the ESME of the numbers it is given.

Changing numbers

With an Admin key, an assistant does what staff do on the Numbers screen. It adds a block of numbers, assigns numbers to an account, sends their calls to an egress connection and their messages to one of the holder's ESMEs, reserves them, releases them and returns them to stock.

  • All or nothing. One request covers 1 to 500 numbers. If one number is refused, none changes, and the answer gives the reason for each refused number.
  • Dry run. A request marked as a dry run is checked in full and answers what would change. Nothing is changed.
  • The back office's rules. The MCP server passes each request to the back office under the assistant's own key, and the back office applies the rules of the Numbers screen. A closed account cannot be given numbers. A number that moves to a new holder loses its previous delivery. A number given to a retail account refuses a change of status or holder.
  • Nothing emptied by accident. A field is emptied only when the request names it to be cleared. A value the assistant leaves out or sends empty changes nothing.
  • On the record. Every change is written to the number's history and to the audit log under the key that made it.

Routing follows a change within about half a minute.

What limits it

  • The MCP server's own database session is read-only at the connection level, and its Redis client only reads. The back office makes the changes to numbers, after it has authenticated the key again.
  • The two tools that change numbers are offered only to a key with no account and the Admin scope. A staff key without that scope and every account key get reading tools only, each annotated read-only.
  • The two tools can be switched off for a whole installation, which leaves the server read-only for every key.
  • The MCP server itself writes only the key's last-used timestamp, kept in a separate connection.
  • There is no raw SQL tool. Each tool has typed arguments, a capped time window and a capped result size, and a bad argument returns a tool error that the assistant can correct.
  • An expired key, a revoked key or a closed account is refused.
  • Each call is logged with the tool, the key prefix, the account and the duration.

A key with an account always reads that account only, whatever its scopes. The number inventory is the only thing an assistant can change. Accounts, connections, rates, routing profiles, invoices and payments can be read through the MCP server and are changed in the back office or through the REST API.

Setting up access

  1. An Admin creates a key with the narrowest binding that serves the purpose, an expiry and a name that says who uses it. An assistant is given an Admin key only when it is meant to change numbers.
  2. The key is passed to the person who connects the system, over a channel they trust.
  3. For MCP, the client is pointed at the server address with the key in the header shown on the key creation page, which also gives a sample request.
  4. When the system is retired, revoke the key.

What is not in the API

The API does not expose message text, because YepBoss does not store it. It does not provide a way to change deck versions or routing for a customer key. A customer key is read-only apart from number self-service.

Contact sales

Questions about YepBoss?

Ask an engineer about your deployment, or request the full interface specifications and a demonstration of YepBoss on a traffic profile like yours.

  1. We reply within one business day to arrange a time.
  2. A scoping call about your traffic, network and billing model.
  3. A demonstration on a traffic profile like yours, and a lab deployment if your engineers want one.

Prefer email? hello@yeptelcosoft.com

What would you like?
Interested in

We reply within one business day. We use your details only to respond to your request. Privacy notice