0800 310 1010
← Developer docs
Developer documentation

NumberGroup API

A small, stable Web Services API for allocating DDIs, updating translations, reserving numbers and pulling call records. JSON or XML over HTTPS. Built for the people who'd rather hit an endpoint than open a portal.

What you can do with it

  • Temporary or permanent DDI allocation for sales pages, auctions and listings.
  • Automated number diversions for out-of-hours support rotas.
  • Number search and reservation for distribution partners or referral sites.
  • Programmatic access to Call Detail Records for third-party billing, reporting or attribution.
  • Dynamic number insertion (DNI) for paid-search campaigns — see the call-tracking recipe.

Access and documentation

Requests are made over HTTPS and responses come back in either JSON or XML. JSON is the default for everything except the CDR feed, which is JSON only.

Your API host, key and authentication details are sent to you when your account is set up. Lost them? Email help@numbergroup.com. Each key identifies both the caller and the account that owns any resources the call touches. If you think a key has been exposed, mail help@numbergroup.com and we'll rotate it.

Status, success and failure

Every response carries a status object (JSON) or <status> element (XML) with a type of success or fail. On failure, a reason string tells you what went wrong. Always check status.type before reading the rest of the body.

// success
{"translation":{"ddi":"08000588026", ...},"status":{"type":"success","reason":""}}

// failure
{"status":{"type":"fail","reason":"Invalid API key specified"}}

Usage

Fair-use limits apply. Tell us if you need more headroom.

Methods

Translation Request →
Allocate a DDI to your account and point it at a destination (PSTN, SIP, trunk or media stream). Optional TTL for temporary allocations.
Translation Update →
Change the destination of an existing DDI, add hunting, missed-call alerts or voicemail, extend the TTL, or release the number.
Reservations →
Search for available DDIs (optionally from a cherished band), reserve one for 24 hours, then allocate it through Translation Request.
CDR Feed →
Pull completed call detail records in batches of up to 1,000. JSON only. Use it for third-party billing, reporting or attribution.

Recipes

An evolving API

This API is an evolving feature of the NumberGroup network. Suggestions for additional methods or parameters are welcome — drop a line to help@numbergroup.com with what you're trying to build and we'll see what we can do.

Need an API key?

We don't have a self-serve signup for API keys — drop us a line and we'll set you up. Tell us roughly what you're building so we can recommend the right transaction limit.

Request an API key →help@numbergroup.com